1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11744,(e,t,i)=>{e.e,function(e){"use strict";let t="font-weight: normal;",i="font-weight: bold;",s="font-style: italic;",n=t+s,r="default",l=Object.freeze({assert:!0,error:!0,warn:!0}),a={expand:!1,defaultEvent:void 0,event:void 0,label:"AutoConsoleGroup",showTime:!0},o={profile:0,profileEnd:0,timeStamp:0,trace:0},d=Object.assign(console),{fromEntries:c,keys:u}=Object,h=e=>[e,d[e]],m=(e,t)=>c(u(e).map(t)),p=!(typeof window>"u")&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;e.BOLD=i,e.FOREGROUND=p?"color: #E3E3E3;":"color: #1F1F1F;",e.HIGHLIGHT=p?"color: #A9C7FB;":"color: #135CD2;",e.ITALIC=s,e.NORMAL=t,e.default=function(e={}){let s={},c={},u=[],p={...a,expand:!e.collapsed||a.expanded,...e},f="";function g(){u.length=0,f=""}function x(){delete p.event,g()}function b(){let e;if(0===u.length)return void x();for(let[s,...r]of(d[u.some(([e])=>e in l)||p.expand?"group":"groupCollapsed"](`%c${p.label}%c ${(e=p.event||p.defaultEvent)?`${e}`:""} %c${p.showTime?f:""}`,t,i,n),u))d.assert(s in d,`Unknown console method: ${s}`),s in d&&d[s](...r);d.groupEnd(),x()}function y(){let e,t,i,s,n,r;""===f&&(e=new Date,i=(t=(t,i)=>e[t]().toString().padStart(i,"0"))("getHours",2),s=t("getMinutes",2),n=t("getSeconds",2),r=t("getMilliseconds",3),f=`@ ${i}:${s}:${n}.${r}`,queueMicrotask(()=>queueMicrotask(b)))}function w(e,...t){0===u.length&&y(),u.push([e,...t])}function v(e=r,...t){if(!s[e])return void w("timeLog",e,...t);let i=performance.now()-s[e];w("log",`${e}: ${i} ms`,...t)}return{...m(p,e=>[e,function(t){p[e]=t}]),...m(console,e=>[e,(...t)=>w(e,...t)]),...m(o,h),assert:function(e,...t){!0!==e&&w("assert",e,...t)},count:function(e=r){c[e]?c[e]+=1:c[e]=1,w("log",`${e}: ${c[e]}`)},countReset:function(e=r){delete c[e]},endAutoGroup:b,errorBoundary:e=>(...t)=>{let i;try{i=e(...t)}catch(e){if(!Error.prototype.isPrototypeOf(e))throw e;w("error",e),b()}return i},event:function(e){y(),p.event=e},purge:g,time:function(e=r){y(),s[e]=performance.now()},timeEnd:function(e=r){v(e),delete s[e]},timeLog:v,touch:y}},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}(i)},43042,(e,t,i)=>{e.e,t.exports=function(e){"use strict";var t;let i,s="5.5.9",n="iframeResizer",r="autoResize",l="init",a="iframeReady",o="load",d="message",c="onload",u="pageInfo",h="parentInfo",m="reset",p="resize",f="scroll",g="parent",x="string",b="object",y="function",w="auto",v="none",j="both",k="vertical",N="horizontal",z="[iFrameSizer]",T=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),E=Object.freeze({[c]:1,[l]:1,[a]:1}),R="expanded",L="collapsed",S=Object.freeze({[R]:1,[L]:1}),C="Use of the old name will be removed in a future version of <i>iframe-resizer</>.",O=(e,t,i,s)=>e.addEventListener(t,i,s||!1),A=(e,t,i)=>e.removeEventListener(t,i,!1),I=e=>{if(!e)return"";let t=-0x21524118,i=0x41c6ce50;for(let s,n=0;n<e.length;n++)t=Math.imul(t^(s=e.codePointAt(n)),0x85ebca77),i=Math.imul(i^s,0xc2b2ae3d);return t^=Math.imul(t^i>>>15,0x735a2d97),i^=Math.imul(i^t>>>15,0xcaf649a9),t^=i>>>16,(2097152*((i^=t>>>16)>>>0)+(t>>>11)).toString(36)},$=e=>e.replace(/[A-Za-z]/g,e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26)),H=["<yi>Puchspk Spjluzl Rlf</><iy><iy>","<yi>Tpzzpun Spjluzl Rlf</><iy><iy>","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>","<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.","<iy><yi>Zvsv spjluzl kvlz uva zbwwvya jyvzz-kvthpu</><iy><iy>Av bzl <p>pmyhtl-ylzpgly</> dpao jyvzz kvthpu pmyhtlz fvb ullk lpaoly aol Wyvmlzzpvuhs vy Ibzpulzz spjluzlz. Mvy klahpsz vu bwnyhkl wypjpun wslhzl jvuahja [email protected].","Pu whnl spurpun ylxbpylz h Wyvmlzzpvuhs vy Ibzpulzz spjluzl. Wslhzl zll <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</> mvy tvyl klahpsz."],M=["NWSc3","zvsv","wyv","ibzpulzz","vlt"],F=Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5","2b5sdlfhbev","zo4ui3arjo","oclbb4thgl"].map((e,t)=>[e,Math.max(0,t-1)])),D=e=>$(H[e]),W=Object.hasOwn||((e,t)=>Object.prototype.hasOwnProperty.call(e,t)),P={br:"\n",rb:"\x1b[31;1m",bb:"\x1b[34;1m",b:"\x1b[1m",i:"\x1b[3m",u:"\x1b[4m","/":"\x1b[m"},B=Object.keys(P),U=RegExp(`<(${B.join("|")})>`,"gi"),G=(e,t)=>P[t]??"",_=e=>t=>e(typeof t===x?window.chrome?t.replace(U,G):t.replaceAll("<br>","\n").replaceAll(/<\/?[^>]+>/gi,""):t),Q={}
1,q=e?.__esModule?e.default:e,K=!0,Y=q({expand:!1,label:g}),Z=e=>(t,...i)=>Q[t]?Q[t].console[e](...i):Y[e](...i),V=(e,...t)=>!0===(Q[e]?Q[e].log:K)?Z("log")(e,...t):null,J=Z("warn"),X=Z("error"),ee=Z("event"),et=Z("purge"),ei=Z("endAutoGroup"),es=Z("errorBoundary"),en=_(e=>e),er=(e,...t)=>Q[e]?Q[e].console.warn(...t.map(en)):queueMicrotask(()=>{let i=_((...t)=>[`${n}(${e})`,...t].join(" "));console?.warn(...t.map(i))}),el=((e,t="renamed to")=>(i,s,n="",r="")=>er(r,`<rb>Deprecated ${e}(${i.replace("()","")})</> 2 3The <b>${i}</> ${e.toLowerCase()} has been ${t} <b>${s}</>. ${n}Use of the old ${e.toLowerCase()} will be removed in a future version of <i>iframe-resizer</>.`))("Option"),ea={},eo=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyPadding:null,checkOrigin:!0,direction:k,firstRun:!0,inPageLinks:!1,heightCalculationMethod:w,id:"iFrameResizer",log:!1,logExpand:!1,license:void 0,mouseEvents:!0,offsetHeight:null,offsetWidth:null,postMessageTarget:null,sameDomain:!1,scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,waitForLoad:!1,warningTimeout:5e3,widthCalculationMethod:w,onBeforeClose:()=>!0,onAfterClose(){},onInit:!1,onMessage:null,onMouseEnter(){},onMouseLeave(){},onReady:e=>{typeof Q[e.id].onInit===y&&(el("init()","onReady()","",e.id),Q[e.id].onInit(e))},onResized(){},onScroll:()=>!0}),ed={position:null,version:s};function ec(t){var i;let n,a,c,b,y;function w(){eb(W),eg(U),F("onResized",W)}let v=e=>D.slice(D.indexOf(":")+7+e),j=(e,t)=>(i,s)=>{let n={};n[s]||(ey(`${i} (${e})`,`${e}:${t()}`,s),n[s]=requestAnimationFrame(()=>{n[s]=null}))},k=(e,t)=>()=>{let i=!1,s=t=>()=>{Q[d]?i&&i!==t||(e(t,d),i=t,requestAnimationFrame(()=>{i=!1})):a()},n=s(f),r=s("resize window");function l(e,t){t(window,f,n),t(window,p,r)}function a(){ee(d,`stop${t}`),l(0,A),c.disconnect(),u.disconnect(),A(Q[d].iframe,o,a)}let d=U,c=new ResizeObserver(s("pageObserver")),u=new ResizeObserver(s("iframeObserver"));Q[d]&&(Q[d][`stop${t}`]=a,O(Q[d].iframe,o,a),l(0,O),c.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),u.observe(Q[d].iframe,{attributes:!0,childList:!1,subtree:!1}))},N=e=>()=>{e in Q[U]&&(Q[U][e](),delete Q[U][e])},T=j(u,function(){let e=document.body.getBoundingClientRect(),t=W.iframe.getBoundingClientRect(),{scrollY:i,scrollX:s,innerHeight:n,innerWidth:r}=window,{clientHeight:l,clientWidth:a}=document.documentElement;return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(l,n||0),clientWidth:Math.max(a,r||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:i,scrollLeft:s,documentHeight:l,documentWidth:a,windowHeight:n,windowWidth:r})}),E=j(h,function(){let{iframe:e}=W,{scrollWidth:t,scrollHeight:i}=document.documentElement,{width:s,height:n,offsetLeft:r,offsetTop:l,pageLeft:a,pageTop:o,scale:d}=window.visualViewport;return JSON.stringify({iframe:e.getBoundingClientRect(),document:{scrollWidth:t,scrollHeight:i},viewport:{width:s,height:n,offsetLeft:r,offsetTop:l,pageLeft:a,pageTop:o,scale:d}})}),R=k(T,"PageInfo"),L=k(E,"ParentInfo"),S=N("stopPageInfo"),C=N("stopParentInfo");function I(e){let t=e.getBoundingClientRect();return ep(),{x:Number(t.left)+Number(ed.position.x),y:Number(t.top)+Number(ed.position.y)}}function $(t){let i=t?I(W.iframe):{x:0,y:0};V(U,`Reposition requested (offset x:%c${i.x}%c y:%c${i.y})`,e.HIGHLIGHT,e.FOREGROUND,e.HIGHLIGHT);let s={x:W.width+i.x,y:W.height+i.y},n=window.parentIframe||window.parentIFrame;n?setTimeout(()=>n["scrollTo"+(t?"Offset":"")](s.x,s.y)):(ed.position=s,H(U))}function H(e){let{x:t,y:i}=ed.position;!1!==F("onScroll",{iframe:Q[e]?.iframe,top:i,left:t,x:t,y:i})?eg(e):ef()}function M(e){let t={};if(0===W.width&&0===W.height){let e=v(9).split(":");t={x:e[1],y:e[0]}}else t={x:W.width,y:W.height};F(e,{iframe:W.iframe,screenX:Number(t.x),screenY:Number(t.y),type:W.type})}let F=(e,t)=>eu(U,e,t),D=t.data;if("[iFrameResizerChild]Ready"===D)return i=t.source,void Object.values(Q).forEach(({initChild:e,postMessageTarget:t})=>{i===t&&e()});if(z!==`${D}`.slice(0,13)||!(D.slice(13).split(":")[0]in Q)){if(typeof D!==x)return;return void ee(g,"ignoredMessage")}let W=(a=(n=D.slice(13).split(":"))[1]?Number(n[1]):0,b=getComputedStyle(c=Q[n[0]]?.iframe),y={iframe:c,id:n[0],height:a+("border-box"!==b.boxSizing?0:(b.paddingTop?parseInt(b.paddingTop,10):0)+(b.paddingBottom?parseInt(b.paddingBottom,10):0))+("border-box"!==b.boxSizing?0:(b.borderTopWidth?parseInt(b.borderTopWidth,10):0)+(b.borderBottomWidth?parseInt(b.borderBottomWidth,10):0)),width:Number(n[2]),type:n[3],msg:n[4]},n[5]&&(y.mode=n[5]),y),{id:P,type:B}=W,U=P;U?(ee(U,B),es(U,function(i){(function(e){if(!Q[e])throw Error(`${W.type} No settings for ${e}. Message was: ${D}`)}
3)(U),W.type in{true:1,false:1,undefined:1}||(null!==W.iframe||(J(U,`The iframe (${W.id}) was not found.`),0))&&function(){let{origin:e,sameOrigin:i}=t;if(i)return!0;let s=Q[U]?.checkOrigin;if(s&&"null"!=`${e}`&&!(s.constructor===Array?function(){let t=0,i=!1;for(;t<s.length;t++)if(s[t]===e){i=!0;break}return i}():e===Q[U]?.remoteHost))throw Error(`Unexpected message received from: ${e} for ${W.iframe.id}. Message was: ${t.data}. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.`);return!0}()&&function(){var t;let{height:i,iframe:n,msg:a,type:o,width:c}=W;switch(Q[U]?.firstRun&&Q[U]&&(ek(U,W.mode),Q[U].firstRun=!1),o){case"close":em(n);break;case d:t=v(6),F("onMessage",{iframe:W.iframe,message:JSON.parse(t)});break;case"mouseenter":M("onMouseEnter");break;case"mouseleave":M("onMouseLeave");break;case"beforeUnload":V(U,"Ready state reset"),Q[U].initialised=!1;break;case r:Q[U].autoResize=JSON.parse(v(9));break;case"scrollBy":let p,f,g;p=W.width,f=W.height,g=window.parentIframe||window.parentIFrame||window,V(U,`scrollBy: x: %c${p}%c y: %c${f}`,e.HIGHLIGHT,e.FOREGROUND,e.HIGHLIGHT),g.scrollBy(p,f);break;case"scrollTo":$(!1);break;case"scrollToOffset":$(!0);break;case u:R();break;case h:L();break;case"pageInfoStop":S();break;case"parentInfoStop":C();break;case"inPageLink":let x,b,y,j,k;b=decodeURIComponent(x=v(9).split("#")[1]||""),(y=document.getElementById(b)||document.getElementsByName(b)[0])?(j=I(y),V(U,`Moving to in page link: %c#${x}`,e.HIGHLIGHT),ed.position={x:j.x,y:j.y},H(U),window.location.hash=x):window.top!==window.self&&(k=window.parentIframe||window.parentIFrame)&&k.moveToAnchor(x);break;case"title":Q[U]?.syncTitle&&(Q[U].iframe.title=a,V(U,`Set iframe title attribute: %c${a}`,e.HIGHLIGHT));break;case m:ex(W);break;case l:w(),function(e){try{Q[e].sameOrigin=!!Q[e]?.iframe?.contentWindow?.iframeChildListener}catch(t){Q[e].sameOrigin=!1}}(U),a!==s&&(void 0!==a||er(U,"<rb>Legacy version detected in iframe</>\n\nDetected legacy version of child page script. It is recommended to update the page in the iframe to use <b>@iframe-resizer/child</>.\n\nSee <u>https://iframe-resizer.com/setup/#child-page-setup</> for more details.\n")),Q[U].initialised=!0,F("onReady",n);break;default:if(0===c&&0===i)return J(U,`Unsupported message received (${o}), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`);if(0===c||0===i||document.hidden)return;w()}}()})(D)):J("","iframeResizer received messageData without id, message was: ",D)}function eu(e,t,i){let s=null,n=null;if(Q[e]){if(typeof(s=Q[e][t])!==y)throw TypeError(`${t} on iFrame[${e}] is not a function`);if("onBeforeClose"===t||"onScroll"===t)try{n=s(i)}catch(i){console.error(i),J(e,`Error in ${t} callback`)}else((e,...t)=>{setTimeout(()=>e(...t),0)})(s,i)}return n}function eh(e){let{id:t}=e;delete Q[t],delete e.iframeResizer}function em(e){let{id:t}=e;if(!1!==eu(t,"onBeforeClose",t)){try{e.parentNode&&e.remove()}catch(e){J(t,e)}eu(t,"onAfterClose",t),eh(e)}}function ep(e){null===ed.position&&(ed.position={x:window.scrollX,y:window.scrollY})}function ef(){ed.position=null}function eg(t){null!==ed.position&&(window.scrollTo(ed.position.x,ed.position.y),V(t,`Set page position: %c${ed.position.x}%c, %c${ed.position.y}`,e.HIGHLIGHT,e.FOREGROUND,e.HIGHLIGHT),ef())}function ex(e){ep(e.id),eb(e),ey(m,m,e.id)}function eb(t){function i(i){let n=`${t[i]}px`;t.iframe.style[i]=n,V(s,`Set ${i}: %c${n}`,e.HIGHLIGHT)}let{id:s}=t,{sizeHeight:n,sizeWidth:r}=Q[s];n&&i("height"),r&&i("width")}function ey(t,i,s){function n(n){let r=t in E?i.split(":").filter((e,t)=>19!==t).join(":"):i;V(s,n,e.HIGHLIGHT,e.FOREGROUND,e.HIGHLIGHT),V(s,`Message data: %c${r}`,e.HIGHLIGHT)}ee(s,t),Q[s]&&(Q[s]?.postMessageTarget?function(){let{iframe:e,postMessageTarget:r,sameOrigin:l,targetOrigin:a}=Q[s];if(l)try{return e.contentWindow.iframeChildListener(z+i),void n(`Sending message to iframe %c${s}%c via same origin%c`)}catch(e){t in E?Q[s].sameOrigin=!1:J(s,"Same origin messaging failed, falling back to postMessage")}n(`Sending message to iframe: %c${s}%c targetOrigin: %c${a}`),r.postMessage(z+i,a)}():J(s,`Iframe(${s}) not found`))}let ew=0,ev=!1,ej=!1;function ek(t,i=-3){var n;if(ev)return;let r=Math.max(Q[t].mode,i);if(r>Q[t].mode&&(Q[t].mode=r),r<0)throw et(t),Q[t].vAdvised||er(t||"Parent",`${D(r+2)}${D(2)}`),Q[t].vAdvised=!0,D(r+2).replace(/<\/?[a-z][^>]*>|<\/>/gi,"");r>0&&ej||(n=`v${s} (${$(M[r])})`,queueMicrotask(()=>console.info(`%ciframe-resizer ${n}`,K||r<1?"font-weight: bold;":e.NORMAL))),r<1&&er("Parent",D(3)),ev=!0}function eN(){!0!==document.hidden&&Object.values(Q).filter(({autoResize:e,f
3irstRun:t})=>e&&!t).forEach(({iframe:e})=>ey("tabVisible",p,e.id))}let ez=(t=()=>{O(window,d,ec),O(document,"visibilitychange",eN),window.iframeParentListener=e=>setTimeout(()=>ec({data:e,sameOrigin:!0}))},i=!1,function(){return i?void 0:(i=!0,Reflect.apply(t,this,arguments))});return t=>i=>{let s,u,h;function m(e,t){W(Q[f],e)&&(er(f,`<rb>Deprecated option</> 4 5The <b>${e}</> option has been renamed to <b>${t}</>. ${C}`),Q[f][t]=Q[f][e],delete Q[f][e])}let f=function(e){let s;if(e&&typeof e!==x)throw TypeError("Invalid id for iFrame. Expected String");return""!==e&&e||(s=t?.id||eo.id+ew++,null!==document.getElementById(s)&&(s+=ew++),i.id=e=s,ee(e,"assignId")),e}(i.id);if(typeof t!==b)throw TypeError("Options is not an object");return function(e){let{search:t}=window.location;t.includes("ifrlog")&&(e.log=L,e.logExpand=t.includes("ifrlog=expanded"))}(t),s=W(t,"log"),u=typeof t.log===x,h=s?!!u||t.log:eo.log,W(t,"logExpand")||(t.logExpand=s&&u?t.log===R:eo.logExpand),-1===t?.log&&(t.log=!1,ej=!0),function({enabled:e,expand:t,iframeId:i}){let s=q({expand:t,label:window.top===window.self?`parent(${i})`:`nested parent(${i})`});K=e,Q[i]||(Q[i]={console:s})}({enabled:h,expand:t.logExpand,iframeId:f}),!u||t.log in S||X(f,'Invalid value for options.log: Accepted values are "expanded" and "collapsed"'),t.log=h,es(f,function(t){var s,u;let h;n in i?J(f,`Ignored iframe (${f}), already setup.`):(Q[f]={...Q[f],iframe:i,remoteHost:i?.src.split("/").slice(0,3).join("/"),...eo,...t?(("sizeWidth"in t||"sizeHeight"in t||r in t)&&er(f,`<rb>Deprecated Option</> 6 7The <b>sizeWidth</>, <b>sizeHeight</> and <b>autoResize</> options have been replaced with new <b>direction</> option which expects values of <bb>${k}</>, <bb>${N}</>, <bb>${j}</> or <bb>${v}</>. 8`),t):{},mouseEvents:W(t,"onMouseEnter")||W(t,"onMouseLeave"),mode:(e=>{let t=e[$("spjluzl")]||e[$("rlf")]||e[$("clyzpvu")];if(!t)return -1;let i=t.split("-"),s=function(e=""){let t=-2,i=I($(e));return i in F&&(t=F[i]),t>4?t-4:t}(i[0]);return 0===s||i[2]===I(i[0]+i[1])||(s=-2),s})(t),syncTitle:""===(h=Q[f]?.iframe?.title)||void 0===h},m("offset","offsetSize"),m("onClose","onBeforeClose"),m("onClosed","onAfterClose"),ee(f,"setup"),function(){let{direction:e}=Q[f];switch(e){case k:break;case N:Q[f].sizeHeight=!1;case j:Q[f].sizeWidth=!0;break;case v:Q[f].sizeWidth=!1,Q[f].sizeHeight=!1,Q[f].autoResize=!1;break;default:throw TypeError(f,`Direction value of "${e}" is not valid`)}}(),(s=t?.offsetSize||t?.offset)&&(Q[f].direction===k?Q[f].offsetHeight=s:Q[f].offsetWidth=s),Q[f].warningTimeout||V(f,"warningTimeout:%c disabled",e.HIGHLIGHT),null===Q[f].postMessageTarget&&(Q[f].postMessageTarget=i.contentWindow),Q[f].targetOrigin=!0===Q[f].checkOrigin?""===(u=Q[f].remoteHost)||null!==u.match(/^(about:blank|javascript:|file:\/\/)/)?"*":u:"*",function(e){if(!0===ea[e])return;let t=document.querySelectorAll(`iframe#${CSS.escape(e)}`);if(t.length<=1)return;ea[e]=!0;let i=Array.from(t).flatMap(e=>["\n",e,"\n"]);er(e,`<rb>Duplicate ID attributes detected</> 9 10The <b>${e}</> ID is not unique. Having multiple iframes on the same page with the same ID causes problems with communication between the iframe and parent page. Please ensure that the ID of each iframe has a unique value. 11 12Found <bb>${t.length}</> iframes with the <b>${e}</> ID:`,...i,"\n")}(f),function(){if(ev)return;let{mode:e}=Q[f];-1!==e&&ek(f,e)}(),ez(),function(){switch(i.style.overflow=!1===Q[f]?.scrolling?"hidden":w,Q[f]?.scrolling){case"omit":break;case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=Q[f]?Q[f].scrolling:"no"}}(),function(){let{bodyMargin:e}=Q[f];"number"!=typeof e&&"0"!==e||(Q[f].bodyMargin=`${e}px`)}(),function(e,t){var s;let n=s=>()=>{if(!Q[e])return;let{firstRun:n,iframe:r}=Q[e];ey(s,t,e),s===l&&"lazy"===r.loading||function(e,t){let i=t[e],{msgTimeout:s,warningTimeout:n}=i;n&&(s&&clearTimeout(s),i.msgTimeout=setTimeout(function(){let i=t[e];void 0!==i&&(i.msgTimeout=void 0,function(e){let{initialised:t}=e;return t&&(e.initialisedFirstPage=!0),t}(i)||function(e){let{checkOrigin:t,iframe:{id:i,src:s,sandbox:n},initialisedFirstPage:r,waitForLoad:l,warningTimeout:a}=e,o=(e=>{try{return new URL(e).origin}catch(e){return null}})(s);ee(i,"noResponse"),er(i,`<rb>No response from iframe</> 13 14The iframe (<i>${i}</>) has not responded within ${a/1e3} seconds. Check <b>@iframe-resizer/child</> package has been loaded in the iframe. 15${t&&o?` 16The <b>checkOrigin</> option is currently enabled. If the iframe redirects away from <i>${o}</>, then the connection to the iframe may be blocked by the browser. To disable this option, set <b>checkOrigin</> to <bb>false</> or an array of allowed origins. See <u>https://iframe-resizer.com/checkorigin</> for more information. 17`:""}${l&&!r?"\nThe <b>waitForLoad</> option is currently set to <bb>true</>. If the iframe loads before <i>iframe-resizer</> runs, this option will prevent <i>iframe-resizer</> initialising. To disable this option, set <b>waitForLoad</> to <bb>false</>.\n":""}${typeof n===b&&n.length>
170&&!(n.contains("allow-scripts")&&n.contains("allow-same-origin"))?"\nThe iframe has the <b>sandbox</> attribute, please ensure it contains both the <bb>allow-same-origin</> and <bb>allow-scripts</> values.\n":""} 18This message can be ignored if everything is working, or you can set the <b>warningTimeout</> option to a higher value or zero to suppress this warning. 19`)}(i))},n))}(e,Q),n||Q[f]?.heightCalculationMethod in T&&ex({iframe:i,height:1,width:1,type:l})},{iframe:r}=Q[e];Q[e].initChild=n(a),s=n(c),O(r,o,()=>setTimeout(s,1)),function(e,t){let{iframe:i,waitForLoad:s}=Q[e];!0!==s&&((e=>{let{src:t,srcdoc:i}=e;return!i&&(null==t||""===t||"about:blank"===t)})(i)?setTimeout(()=>{ee(e,"noContent"),V(e,"No content detected in the iframe, delaying initialisation")}):setTimeout(t))}(e,n(l))}(f,function(e){let{autoResize:t,bodyBackground:i,bodyMargin:s,bodyPadding:n,heightCalculationMethod:r,inPageLinks:l,license:a,log:o,logExpand:d,mouseEvents:c,offsetHeight:u,offsetWidth:h,mode:m,sizeHeight:p,sizeWidth:f,tolerance:g,widthCalculationMethod:x}=Q[e];return[e,"8",f,o,"32",!0,t,s,r,i,n,g,l,"child",x,c,u,h,p,a,ed.version,m,"",d].join(":")}(f)),function(){if(Q[f]){let{iframe:e}=Q[f],t={close:em.bind(null,e),disconnect:eh.bind(null,e),removeListeners(){er(f,`<rb>Deprecated Method Name</> 20 21The <b>removeListeners()</> method has been renamed to <b>disconnect()</>. ${C} 22`),this.disconnect()},resize(){er(f,"<rb>Deprecated Method</>\n\nUse of the <b>resize()</> method from the parent page is deprecated and will be removed in a future version of <i>iframe-resizer</>. As their are no longer any edge cases that require triggering a resize from the parent page, it is recommended to remove this method from your code."),ey.bind(null,"Window resize",p,f)},moveToAnchor(e){((e,t,i)=>{if(typeof e!==t)throw TypeError(`${i} is not a ${t.charAt(0).toUpperCase()+t.slice(1)}`)})(e,x,"moveToAnchor(anchor) anchor"),ey("Move to anchor",`moveToAnchor:${e}`,f)},sendMessage(e){e=JSON.stringify(e),ey(d,`${d}:${e}`,f)}};e.iframeResizer=t,e.iFrameResizer=t}}(),ei(f))})(t),i?.iframeResizer}}(e.r(11744))},43181,e=>{"use strict";let t;var i=e.i(91398),s=e.i(91788),n=e.i(72043),r=e.i(3828),l=e.i(30794),a=s,o=e.i(86485);class d extends a.Component{componentDidCatch(e,t){o.logger.error(`${e}, ${t}`)}render(){return this.props.children}}let c=e=>(0,i.jsx)(d,{children:(0,i.jsx)(u,{...e})}),u=({position:e,shouldQueueAdRendering:t,className:a,setLoadingClass:o=!0})=>{let{asPath:d}=(0,r.useRouter)();return(0,s.useEffect)(()=>{t&&(0,l.queueAdRendering)(e)},[e,t,d]),(0,i.jsx)("div",{className:(0,n.default)(a,{"sadblob-loading":o},"block","mx-auto","max-w-main","overflow-hidden","text-center","lg:max-w-full"),"data-ad-position":e,"data-testid":`ad-position-${e}`},`${e}-${d}`)},h=()=>{let{asPath:e}=(0,r.useRouter)();return(0,i.jsx)("div",{className:(0,n.default)("sticky","top-0","sticky-wallpaper-fix"),children:(0,i.jsx)("div",{className:(0,n.default)("wallpaper-background-container","absolute","top-0","w-full","min-h-screen","overflow-hidden","bg-top","bg-no-repeat"),children:(0,i.jsx)(c,{position:"wallpaper",setLoadingClass:!1,shouldQueueAdRendering:!0})})},e)},m=["wallpaper-ad-wrapper","ad-wrapper"],p=({isWallpaperAd:e})=>{let{asPath:t}=(0,r.useRouter)();return(0,i.jsx)("div",{className:(0,n.default)(m,"relative","block","overflow-hidden","mx-auto","w-wider","flex","justify-center","xl:justify-start","max-w-full",{"my-4":e})},t)};var f=e.i(68489);let g=e=>(0,i.jsxs)("div",{className:"ad-with-disclaimer",children:[(0,i.jsx)("p",{className:"ad-disclaimer",children:"Mainos"}),(0,i.jsx)(c,{...e})]});var x=e.i(45246);function b(){return(b=Object.assign.bind()).apply(null,arguments)}var y=e.i(43042);let w="font-weight: normal;",v=w+"font-style: italic;",j="default",k=Object.freeze({assert:!0,error:!0,warn:!0}),N={expand:!1,defaultEvent:void 0,event:void 0,label:"AutoConsoleGroup",showTime:!0},z={profile:0,profileEnd:0,timeStamp:0,trace:0},T=Object.assign(console),{fromEntries:E,keys:R}=Object,L=e=>[e,T[e]],S=(e,t)=>E(R(e).map(t));typeof window>"u"||"function"!=typeof window.matchMedia||window.matchMedia("(prefers-color-scheme: dark)").matches;let C=(t=function(e={}){let t={},i={},s=[],n={...N,expand:!e.collapsed||N.expanded,...e},r="";function l(){s.length=0,r=""}function a(){delete n.event,l()}function o(){let e;if(0===s.length)return void a();for(let[t,...i]of(T[s.some(([e])=>e in k)||n.expand?"group":"groupCollapsed"](`%c${n.label}%c ${(e=n.event||n.defaultEvent)?`${e}`:""} %c${n.showTime?r:""}`,w,"font-weight: bold;",v),s))T.assert(t in T,`Unknown console method: ${t}`),t in T&&T[t](...i);T.groupEnd(),a()}function d(){let e,t,i,s,n,l;""===r&&(e=new Date,i=(t=(t,i)=>e[t]().toString().padStart(i,"0"))("getHours",2),s=t("getMinutes",2),n=t("getSeconds",2),l=t("getMilliseconds",3),r=`@ ${i}:${s}:${n}.${l}`,queueMicrotask(()=>queueMicrotask(o)))}function c(e,...t){0===s.length&&d(),s.push([e,...t])}function u(e=j,...i){if(!t[e])return void c("timeLog",e,...i);let s=performance.now()-t[e];c("log",`${e}: ${s} ms`,...i)}return{...S(n,e=>[e,function(t){n[e]=t}]),...S(console,e=>[e,(...t)=>c(e,...t)]),...S(z,L),assert:function(e,...t){!0!==e&&c("assert",e,...t)},count:function(e=j){i[e]?i[e]+=1:i[e]=1,c("log",`${e}: ${i[e]}`)},countReset:function(e=j){delete i[e]},endAutoGroup:o,errorBoundary:e=>(...t)=>{let i;try{i=e(...t)}catch(e){if(!Error.prototype.isPrototypeOf(e))throw e;c("error",e),o()}return i},event:function(e){d(),n.event=e},purge:l,time:function(e=j){d(),t[e]=performance.now()},timeEnd:function(e=j){u(e),delete t[e]},timeLog:u,touch:d}}
22,t?.__esModule?t.default:t);function O({forwardRef:e,...t}){let i=(({license:e,bodyBackground:t,bodyMargin:i,bodyPadding:s,checkOrigin:n,direction:r,inPageLinks:l,log:a,offset:o,offsetHeight:d,offsetWidth:c,scrolling:u,tolerance:h,warningTimeout:m,waitForLoad:p,onAfterClose:f,onReady:g,onMessage:x,onResized:b,...y})=>y)(t),n=(0,s.useRef)(null),r=C(),l=()=>(r.event("close"),r.warn("Close event ignored, to remove the iframe update your React component."),!1);return(0,s.useEffect)(()=>{let e=n.current,i={...t,onBeforeClose:l};r.label(`react(${e.id})`),r.event("setup");let s=(0,y.default)(i)(e);return r.expand(i.logExpand),t.log&&r.log("Created React component"),()=>{r.endAutoGroup(),s?.disconnect()}},[]),(0,s.useImperativeHandle)(e,()=>({getRef:()=>n,getElement:()=>n.current,resize:()=>n.current.iframeResizer.resize(),moveToAnchor:e=>n.current.iframeResizer.moveToAnchor(e),sendMessage:(e,t)=>{n.current.iframeResizer.sendMessage(e,t)}})),s.default.createElement("iframe",b({},i,{ref:n}))}let A=()=>{},I=!1;var $=e.i(98986),H=e.i(49749);let M="loading",F=({id:e,src:t,className:s,resizeOptions:n={},height:r,width:l,title:a,...o})=>(0,i.jsx)(d,{children:(0,i.jsx)(D,{id:e,src:t,className:s,resizeOptions:n,height:r,width:l,title:a,...o})}),D=({id:e,src:t,className:r,resizeOptions:l={},height:a,width:d,title:c,showSpinner:u=!1,...h})=>{let m=(0,s.useRef)(null),p=(0,s.useRef)(null),f=(0,$.getIframeResizerLicense)(),g=!!a&&!!d,[b,y]=(0,s.useState)(!1);if((({target:e,onEnter:t=A,onExit:i=A,onCleanup:n=A,onIntersect:r=A,root:l=null,threshold:a=0,isDisabled:d=!1,rootMargin:c})=>{(0,s.useEffect)(()=>{try{if(!e?.current||d)return A;let s=new IntersectionObserver(e=>{e.length&&void 0!==e[0]&&(e[0].isIntersecting||e[0].intersectionRatio>a?t():i()),r.call(s,e,s)},{root:l?l.current:null,rootMargin:c??`${window.innerHeight}px`,threshold:a});return s.observe(e.current),function(){n(),s.disconnect()}}catch(e){return I||(o.logger.error(e,"Selaimesi ei tue IntersectionObserver-ominaisuutta. Jotkin sivuston ominaisuudet eivät toimi ilman sitä. Jos olet estänyt sen käytön asetuksista, ole hyvä ja käy sallimassa se uudelleen."),I=!0),A}},[e,d,t,i,n,r,l,c,a])})({target:m,onEnter:(0,s.useCallback)(()=>{y(!0)},[]),rootMargin:`100000px 0px ${"u">typeof document?window.innerHeight:0}px 0px`}),!t||0===t.length)return null;let w=d&&a?`${1/(d/a)*100}%`:"initial";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{"data-id":e,ref:m,className:x.default.dynamic([["c7199bb82fd7fe9d",[w,M]]])+" "+((0,n.default)(r,"relative")||""),children:[(0,i.jsx)("div",{className:x.default.dynamic([["c7199bb82fd7fe9d",[w,M]]])+" iframe-container",children:b?(0,i.jsx)(O,{license:f,...l,onLoad:()=>{p.current&&p.current.classList.remove(M)},className:(0,n.default)("w-full","border-0",{"absolute top-0 left-0 h-full":g}),src:t,height:g?void 0:a,title:c??"Upotettua sisältöä",...h}):(0,i.jsx)("div",{style:{height:g?void 0:a},className:x.default.dynamic([["c7199bb82fd7fe9d",[w,M]]])})}),u&&(0,i.jsx)("div",{"data-testid":"spinner-wrapper",ref:p,className:x.default.dynamic([["c7199bb82fd7fe9d",[w,M]]])+" "+((0,n.default)(M,"hidden","absolute","top-0","left-0","h-full","w-full","justify-center","items-center")||""),children:(0,i.jsx)(H.LoadingIndicator,{})})]}),(0,i.jsx)(x.default,{id:"c7199bb82fd7fe9d",dynamic:[w,M],children:`.iframe-container.__jsx-style-dynamic-selector{padding-top:${w}}.${M}.__jsx-style-dynamic-selector{display:flex}.spinner.__jsx-style-dynamic-selector{width:32px;height:32px}`})]})};var W=e.i(22577),P=e.i(79407);let B=({fillColor:e,windDirection:t,windSpeed:s})=>{let n=[`Tuulen nopeus on ${s} metri\xe4 sekunnissa.`,void 0!==t?`${(0,P.getCardinalDirection)(t)}.`:void 0].filter(e=>void 0!==e).join(" "),r=(s>=21?"#CD2128":s>=8?"#F36F21":void 0)??e??"#191919";return(0,i.jsxs)("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img","aria-label":n,children:[(0,i.jsx)("title",{children:n}),(0,i.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,i.jsxs)("g",{transform:t?`rotate(${t} 16 16)`:"none",children:[(0,i.jsx)("circle",{stroke:r,strokeWidth:"2",cx:"16",cy:"16",r:"11"}),(0,i.jsx)("path",{d:"M17.6361647,15.379796 L16.4833677,25.4973639 L6.40173813,26.6142226 C10.2105192,24.8328027 12.5855566,23.471446 13.5268503,22.5301523 C14.468144,21.5888586 15.8379154,19.2054065 17.6361647,15.379796 Z",fill:r,transform:"translate(12.018951, 20.997009) rotate(45.000000) translate(-12.018951, -20.997009) translate(5.65)"})]}),(0,i.jsx)("text",{x:"50%",y:"52%",fontSize:"14px",strokeWidth:"0.2",fill:e??"#191919",stroke:e??"#191919",dominantBaseline:"middle",textAnchor:"middle",children:s})]})]})};var U=e.i(40236),G=e.i(26019);let _=`Lataa IS Supers\xe4\xe4 23-mobiilisovellus`,Q=`Sovelluksessa tallennat paikat 24suosikkeihin ja tarkistat s\xe4\xe4n ja 25varoitukset entist\xe4kin 26k\xe4tev\xe4mmin!`,q=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"jsx-1bf3eadf0c03eb16 "+((0,n.default)("app-download-promo","flex","flex-col","justify-center","p-4","bg-light-blue","border-15","border-default","items-center")||""),children:[(0,i.jsx)(G.default,{src:"/supersaa/assets/logo-circle-pos.svg",height:54,width:54,alt:""}),(0,i.jsx)("span",{className:"jsx-1bf3eadf0c03eb16 section-heading-20 whitespace-pre text-center mt-3",children:_}),(0,i.jsx)("span",{className:"jsx-1bf3eadf0c03eb16 text-center whitespace-pre mt-2",children:Q}),(0,i.jsx)("a",{href:"https://play.google.com/store/apps/details?id=fi.supersaa&hl=fi&referrer=utm_source=supersaafi&utm_campaign=supersaa_app_page&utm_medium=referral",className:"jsx-1bf3eadf0c03eb16 mt-3 button-30 p-3 bg-black text-text-white navbar-button-text",children:"Android-sovellus"}),(0,i.jsx)("a",{href:"https://apps.apple.com/app/apple-store/id657765123?pt=350676&ct=supersaa_app_page&mt=8",className:"jsx-1bf3eadf0c03eb16 mt-3 button-30 p-3 bg-black text-text-white navbar-button-text",children:"iOS-sovellus"})]}),(0,i.jsx)(x.default,{id:"1bf3eadf0c03eb16",children:".app-download-promo.jsx-1bf3eadf0c03eb16{background-image:url(/supersaa/assets/welcome-bg-mobile.svg);background-position:bottom;background-repeat:no-repeat}"})]}),K=({weatherSymbol:e,weatherSymbolText:t,size:s})=>{let n=t=>e?`/supersaa/assets/v1/ic_weather_${t??""}${e.replace(/-/g,"_")}.svg`:"/supersaa/assets/v1/empty.svg",r=t??"";switch(s){case"small":return(0,i.jsx)(G.default,{src:n(),width:35,height:35,alt:r,title:r});case"medium":return(0,i.jsx)(G.default,{src:n(),width:56,height:56,alt:r,title:r});case"large":return(0,i.jsx)(G.default,{src:n("illustrative_"),width:120,height:120,alt:r,title:r});default:return o.logger.error(`Unknown symbol size ${s}`),null}},Y=e=>(0,i.jsx)("div",{className:"pr-2 my-auto",children:(0,i.jsx)(K,{...e})}),Z=({temperature:e,className:t})=>{let s=null!==e?Math.round(e):null;return null===s?(0,i.jsx)(V,{tempString:"â",className:`${t} missing-value`}):s<0?(0,i.jsx)(V,{tempString:`â${Math.abs(s)}\xb0`,className:t}):s>0?(0,i.jsx)(V,{tempString:`+${s}\xb0`,className:t}):(0,i.jsx)(V,{tempString:"0°",className:t})},V=({className:e,tempString:t})=>(0,i.jsx)("div",{className:e,children:t}),J=({fillColor:e})=>(0,i.jsx)("svg",{width:"29px",height:"18px",viewBox:"0 0 29 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,i.jsx)("g",{id:"Weather",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,i.jsx)("g",{id:"Weather/daily/Sunrise-sunset/mobile-pos",transform:"translate(-34.000000, 0.000000)",children:(0,i.jsxs)("g",{id:"Sun-icon",transform:"translate(35.519231, 1.000000)",children:[(0,i.jsx)("path",{d:"M13.0108276,5.82815557 C8.94108486,5.82815557 5.62264736,9.07932745 5.46810889,13.1493852 C5.46258966,13.3109341 5.59574111,13.4460224 5.75510889,13.4460224 L20.2665464,13.4460224 C20.4259142,13.4460224 20.5597555,13.3109341 20.5535464,13.1493852 C20.3990079,9.07932745 17.0805704,5.82815557 13.0108276,5.82815557",id:"Fill-1",fill:e??"#191919"}),(0,i.jsx)("line",{x1:"13.0108276",y1:"3.68066916",x2:"13.0108276",y2:"-0.000139266304",id:"Stroke-5",stroke:e??"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("line",{x1:"6.75181298",y1:"5.5738553",x2:"4.17364231",y2:"2.9716644",id:"Stroke-7",stroke:e??"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("line",{x1:"20.039913",y1:"5.5738553",x2:"22.6180837",y2:"2.9716644",id:"Stroke-9",stroke:e??"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("line",{x1:"25.9821928",y1:"10.4740099",x2:"22.3353611",y2:"10.4740099",id:"Stroke-11",stroke:e??"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("line",{x1:"3.64655577",y1:"10.4740099",x2:"-0.000275961538",y2:"10.4740099",id:"Stroke-13",stroke:e??"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("line",{x1:"0.480769231",y1:"15.9068323",x2:"24.9807692",y2:"15.9068323",id:"Line",stroke:e??"#191919",strokeWidth:"1.5",strokeLinecap:"round"})]})})})}),X=({today:e,isNight:t})=>e.sunrise||e.sunset?(0,i.jsxs)("div",{className:(0,n.default)("weather-ui-text-70","flex","flex-row","pt-2",{"text-text-white":t}),children:[e.sunrise&&(0,i.jsx)("time",{className:"my-auto",children:e.sunriseText}),(0,i.jsx)("span",{role:"img","aria-label":"Auringonnousu ja -lasku",className:"my-auto px-2",children:(0,i.jsx)(J,{fillColor:t?"#FFFFFF":"#191919"})}),e.sunset&&(0,i.jsx)("time",{className:"my-auto",children:e.sunsetText})]}):null,ee=({weatherOverview:e,locationData:t,isWallpaperAd:s})=>{let r=e.forecasts[0];if(void 0===r)throw Error("No current time forecast available");let l=e.today?.theme==="night",a=`T\xe4n\xe4\xe4n ${(0,U.getDayOfWeek)(r.time,t.timezone)}na klo `;return(0,i.jsxs)("article",{className:"flex lg:flex-row flex-col lg:w-wide md:pt-6 pt-2 pb-4 lg:px-0 sm:px-8 px-2",children:[(0,i.jsxs)("div",{className:(0,n.default)("flex","flex-col","lg:w-main",{"px-4":s}),children:[(0,i.jsxs)("section",{className:"flex flex-col",children:[(0,i.jsxs)("h2",{className:(0,n.default)("section-heading-20",{"text-text-white":l}),children:[a,(0,i.jsx)("time",{children:(0,U.formatToHours)(r.time,t.timezone)})]}),e.today&&(0,i.jsx)(X,{today:e.today,timezone:t.timezone,isNight:l})]}),(0,i.jsxs)("section",{className:"flex xs:flex-row flex-col lg:justify-between justify-around",children:[(0,i.jsx)(et,{provider:"Ilmatieteen laitos",isNight:l,forecast:r.fmi,uvIndex:e.observations?.uvIndex}),(0,i.jsx)(et,{provider:"Foreca",isNight:l,forecast:r.foreca})]})]}),(0,i.jsx)("aside",{className:(0,n.default)("lg:block","hidden","w-right",{"mx-4":s},{"ml-8":!s}),children:(0,i.jsx)(q,{})})]})},et=({provider:e,isNight:t,forecast:s,uvIndex:r})=>{let l=!!s?.error,a=Object.keys(s??{}).length>0;if(l||void 0===s||!a)return(0,i.jsxs)("article",{className:(0,n.default)("lg:w-64 sm:w-52 w-full pt-4",{"text-text-white":t}),children:[(0,i.jsx)("div",{className:(0,n.default)("weather-ui-text-70","mb-4","uppercase","break-words",{"text-text-white":t}),children:e}),(0,i.jsx)("span",{className:(0,n.default)("ui-text-40",{"text-text-white":t}),children:"Tietoa ei saatavilla"})]});let{weatherSymbol:o,weatherSymbolText:d}=s;return(0,i.jsxs)("article",{className:(0,n.default)("lg:w-64 sm:w-52 w-full flex flex-row xs:flex-col mb-4",{"text-text-white":t}),children:[(0,i.jsxs)("div",{className:"flex flex-row items-center",children:[(0,i.jsx)("div",{className:"p-2",children:void 0!==o&&(0,i.jsx)(Y,{size:"large",weatherSymbol:o,weatherSymbolText:d})}),(0,i.jsx)("div",{className:"hidden lg:flex flex-row",children:(0,i.jsx)(ei,{forecast:s,isNight:t})})]}),(0,i.jsxs)("div",{className:"flex flex-col ml-3 xs:ml-0 w-2/3 xs:w-auto",children:[(0,i.jsx)("div",{className:"flex flex-row lg:hidden",children:(0,i.jsx)(ei,{forecast:s,isNight:t})}),(0,i.jsx)("div",{className:(0,n.default)("weather-ui-text-70","mb-4","uppercase","break-words",{"text-text-white":t}),children:e}),(0,i.jsx)("div",{className:"flex flex-col",children:(0,i.jsx)(es,{forecast:s,isNight:t,uvIndex:r})})]})]})},ei=({forecast:{temperature:e,windSpeed:t,windDirection:s},isNight:r})=>(0,i.jsxs)(i.Fragment,{children:[void 0!==e&&(0,i.jsx)(Z,{temperature:e,className:(0,n.default)("temperature-10","my-auto",{"text-text-white":r})}),void 0!==t&&(0,i.jsxs)("div",{className:"lg:hidden flex flex-row my-auto",children:[(0,i.jsx)(B,{fillColor:r?"#FFFFFF":void 0,windDirection:s,windSpeed:t}),(0,i.jsx)("span",{className:(0,n.default)("my-auto pl-1",{"text-text-white":r}),children:"m/s"})]})]}),es=({forecast:{feelsLikeTemp:e,probabilityOfRain:t,precipitation:s,windSpeed:r,windDirection:l},isNight:a,uvIndex:o})=>(0,i.jsxs)(i.Fragment,{children:[void 0!==e&&(0,i.jsxs)("div",{className:"flex flex-row mb-1",children:[(0,i.jsx)("span",{className:(0,n.default)("weather-ui-text-80","my-auto","w-2/3",{"text-text-white":a}),children:"Tuntuu kuin"}),(0,i.jsx)(Z,{temperature:e,className:(0,n.default)("weather-ui-text-70","my-auto",{"text-text-white":a})})]}),void 0!==t&&(0,i.jsxs)("div",{className:"flex flex-row mb-1",children:[(0,i.jsx)("span",{"aria-hidden":"true",className:(0,n.default)("weather-ui-text-80","w-2/3",{"text-text-white":a}),children:"Sateen riski"}),(0,i.jsxs)("div",{className:"flex flex-row text-bold",children:[(0,i.jsx)("span",{role:"img","aria-label":`Sateen todenn\xe4k\xf6isyys ${t}%`,className:"my-auto pr-1",children:(0,i.jsx)(W.default,{fillColor:a?"#FFFFFF":"#191919"})}),(0,i.jsx)("span",{"aria-hidden":"true",className:(0,n.default)("weather-ui-text-70","my-auto",{"text-text-white":a}),children:`${t??"â"}%`})]})]}),void 0!==s&&(0,i.jsxs)("div",{className:"flex flex-row mb-1",children:[(0,i.jsx)("span",{className:(0,n.default)("weather-ui-text-80","my-auto","w-2/3",{"text-text-white":a}),children:"Sademäärä"}),(0,i.jsx)("span",{className:(0,n.default)("weather-ui-text-70 my-auto",{"text-text-white":a}),children:(0,P.formatToDecimal)(s,1,!0)})]}),void 0!==r&&(0,i.jsxs)("div",{className:"lg:flex hidden flex-row -mt-2",children:[(0,i.jsx)("span",{className:(0,n.default)("weather-ui-text-80","my-auto","w-2/3",{"text-text-white":a}),children:"Tuuli"}),(0,i.jsxs)("div",{className:"flex flex-row pt-1",children:[(0,i.jsx)(B,{fillColor:a?"#FFFFFF":void 0,windDirection:l,windSpeed:r}),(0,i.jsx)("span",{className:(0,n.default)("weather-ui-text-70","my-auto","pl-1",{"text-text-white":a}),children:"m/s"})]})]}),null!=o&&(0,i.jsxs)("div",{className:"flex flex-row mb-1",children:[(0,i.jsx)("span",{className:(0,n.default)("weather-ui-text-80","my-auto","w-2/3",{"text-text-white":a}),children:"UV-indeksi"}),(0,i.jsx)("span",{className:(0,n.default)("weather-ui-text-70","my-auto",{"text-text-white":a}),children:o})]})]}
26),en="numeric",er="ascii",el="alpha",ea="asciinumeric",eo="alphanumeric",ed="domain",ec="emoji",eu="whitespace";function eh(e,t,i){for(let s in t[en]&&(t[ea]=!0,t[eo]=!0),t[er]&&(t[ea]=!0,t[el]=!0),t[ea]&&(t[eo]=!0),t[el]&&(t[eo]=!0),t[eo]&&(t[ed]=!0),t[ec]&&(t[ed]=!0),t){let t=(s in i||(i[s]=[]),i[s]);0>t.indexOf(e)&&t.push(e)}}function em(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}em.groups={},em.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let i=this.jr[t][0],s=this.jr[t][1];if(s&&i.test(e))return s}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,i,s){for(let n=0;n<e.length;n++)this.tt(e[n],t,i,s)},tr(e,t,i,s){let n;return s=s||em.groups,t&&t.j?n=t:(n=new em(t),i&&s&&eh(t,i,s)),this.jr.push([e,n]),n},ts(e,t,i,s){let n=this,r=e.length;if(!r)return n;for(let t=0;t<r-1;t++)n=n.tt(e[t]);return n.tt(e[r-1],t,i,s)},tt(e,t,i,s){if(s=s||em.groups,t&&t.j)return this.j[e]=t,t;let n,r=this.go(e);return r?(Object.assign((n=new em).j,r.j),n.jr.push.apply(n.jr,r.jr),n.jd=r.jd,n.t=r.t):n=new em,t&&(s&&(n.t&&"string"==typeof n.t?eh(t,Object.assign(function(e,t){let i={};for(let s in t)t[s].indexOf(e)>=0&&(i[s]=!0);return i}(n.t,s),i),s):i&&eh(t,i,s)),n.t=t),this.j[e]=n,n}};let ep=(e,t,i,s,n)=>e.ta(t,i,s,n),ef=(e,t,i,s,n)=>e.tr(t,i,s,n),eg=(e,t,i,s,n)=>e.ts(t,i,s,n),ex=(e,t,i,s,n)=>e.tt(t,i,s,n),eb="WORD",ey="UWORD",ew="ASCIINUMERICAL",ev="ALPHANUMERICAL",ej="LOCALHOST",ek="UTLD",eN="SCHEME",ez="SLASH_SCHEME",eT="OPENBRACE",eE="CLOSEBRACE",eR="OPENBRACKET",eL="CLOSEBRACKET",eS="OPENPAREN",eC="CLOSEPAREN",eO="OPENANGLEBRACKET",eA="CLOSEANGLEBRACKET",eI="FULLWIDTHLEFTPAREN",e$="FULLWIDTHRIGHTPAREN",eH="LEFTCORNERBRACKET",eM="RIGHTCORNERBRACKET",eF="LEFTWHITECORNERBRACKET",eD="RIGHTWHITECORNERBRACKET",eW="FULLWIDTHLESSTHAN",eP="FULLWIDTHGREATERTHAN",eB="AMPERSAND",eU="APOSTROPHE",eG="ASTERISK",e_="BACKSLASH",eQ="BACKTICK",eq="CARET",eK="COLON",eY="COMMA",eZ="DOLLAR",eV="EQUALS",eJ="EXCLAMATION",eX="HYPHEN",e0="PERCENT",e1="PIPE",e2="PLUS",e3="POUND",e4="QUERY",e5="QUOTE",e7="FULLWIDTHMIDDLEDOT",e9="SEMI",e6="SLASH",e8="TILDE",te="UNDERSCORE",tt="EMOJI";var ti=Object.freeze({__proto__:null,ALPHANUMERICAL:ev,AMPERSAND:eB,APOSTROPHE:eU,ASCIINUMERICAL:ew,ASTERISK:eG,AT:"AT",BACKSLASH:e_,BACKTICK:eQ,CARET:eq,CLOSEANGLEBRACKET:eA,CLOSEBRACE:eE,CLOSEBRACKET:eL,CLOSEPAREN:eC,COLON:eK,COMMA:eY,DOLLAR:eZ,DOT:"DOT",EMOJI:tt,EQUALS:eV,EXCLAMATION:eJ,FULLWIDTHGREATERTHAN:eP,FULLWIDTHLEFTPAREN:eI,FULLWIDTHLESSTHAN:eW,FULLWIDTHMIDDLEDOT:e7,FULLWIDTHRIGHTPAREN:e$,HYPHEN:eX,LEFTCORNERBRACKET:eH,LEFTWHITECORNERBRACKET:eF,LOCALHOST:ej,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:eO,OPENBRACE:eT,OPENBRACKET:eR,OPENPAREN:eS,PERCENT:e0,PIPE:e1,PLUS:e2,POUND:e3,QUERY:e4,QUOTE:e5,RIGHTCORNERBRACKET:eM,RIGHTWHITECORNERBRACKET:eD,SCHEME:eN,SEMI:e9,SLASH:e6,SLASH_SCHEME:ez,SYM:"SYM",TILDE:e8,TLD:"TLD",UNDERSCORE:te,UTLD:ek,UWORD:ey,WORD:eb,WS:"WS"});let ts=/[a-z]/,tn=/\p{L}/u,tr=/\p{Emoji}/u,tl=/\d/,ta=/\s/,to=null,td=null;function tc(e,t){let i=function(e){let t=[],i=e.length,s=0;for(;s<i;){let n,r=e.charCodeAt(s),l=r<55296||r>56319||s+1===i||(n=e.charCodeAt(s+1))<56320||n>57343?e[s]:e.slice(s,s+2);t.push(l),s+=l.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),s=i.length,n=[],r=0,l=0;for(;l<s;){let a=e,o=null,d=0,c=null,u=-1,h=-1;for(;l<s&&(o=a.go(i[l]));)(a=o).accepts()?(u=0,h=0,c=a):u>=0&&(u+=i[l].length,h++),d+=i[l].length,r+=i[l].length,l++;r-=u,l-=h,d-=u,n.push({t:c.t,v:t.slice(r-d,r),s:r-d,e:r})}return n}function tu(e,t,i,s,n){let r,l=t.length;for(let i=0;i<l-1;i++){let l=t[i];e.j[l]?r=e.j[l]:((r=new em(s)).jr=n.slice(),e.j[l]=r),e=r}return(r=new em(i)).jr=n.slice(),e.j[t[l-1]]=r,r}function th(e){let t=[],i=[],s=0;for(;s<e.length;){let n=0;for(;"0123456789".indexOf(e[s+n])>=0;)n++;if(n>0){t.push(i.join(""));for(let t=parseInt(e.substring(s,s+n),10);t>0;t--)i.pop();s+=n}else i.push(e[s]),s++}return t}let tm={defaultProtocol:"http",events:null,format:tf,formatHref:tf,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function tp(e,t=null){let i=Object.assign({},tm);e&&(i=Object.assign(i,e instanceof tp?e.o:e));let s=i.ignoreTags,n=[];for(let e=0;e<s.length;e++)n.push(s[e].toUpperCase());this.o=i,t&&(this.defaultRender=t),this.ignoreTags=n}function tf(e){return e}function tg(e,t){this.t="token",this.v=e,this.tk=t}function tx(e,t){class i extends tg{constructor(t,i){super(t,i),this.t=e}}
26for(let e in t)i.prototype[e]=t[e];return i.t=e,i}tp.prototype={o:tm,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,i){let s=null!=t,n=this.o[e];return n&&("object"==typeof n?"function"==typeof(n=i.t in n?n[i.t]:tm[e])&&s&&(n=n(t,i)):"function"==typeof n&&s&&(n=n(t,i.t,i))),n},getObj(e,t,i){let s=this.o[e];return"function"==typeof s&&null!=t&&(s=s(t,i.t,i)),s},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},tg.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),i=e.get("truncate",t,this),s=e.get("format",t,this);return i&&s.length>i?s.substring(0,i)+"â¦":s},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=tm.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",t,this),s=e.get("tagName",t,this),n=this.toFormattedString(e),r={},l=e.get("className",t,this),a=e.get("target",t,this),o=e.get("rel",t,this),d=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return r.href=i,l&&(r.class=l),a&&(r.target=a),o&&(r.rel=o),d&&Object.assign(r,d),{tagName:s,attributes:r,content:n,eventListeners:c}}};let tb=tx("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),ty=tx("text"),tw=tx("nl"),tv=tx("url",{isLink:!0,toHref(e=tm.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==ej&&e[1].t===eK}}),tj=e=>new em(e);function tk(e,t,i){let s=i[0].s,n=i[i.length-1].e;return new e(t.slice(s,n),i)}let tN={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function tz(e){return tN.initialized||function(){tN.scanner=function(e=[]){let t={};em.groups=t;let i=new em;null==to&&(to=th("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
26ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==td&&(td=th("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
26ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),ex(i,"'",eU),ex(i,"{",eT),ex(i,"}",eE),ex(i,"[",eR),ex(i,"]",eL),ex(i,"(",eS),ex(i,")",eC),ex(i,"<",eO),ex(i,">",eA),ex(i,"ï¼",eI),ex(i,"ï¼",e$),ex(i,"ã",eH),ex(i,"ã",eM),ex(i,"ã",eF),ex(i,"ã",eD),ex(i,"ï¼",eW),ex(i,"ï¼",eP),ex(i,"&",eB),ex(i,"*",eG),ex(i,"@","AT"),ex(i,"`",eQ),ex(i,"^",eq),ex(i,":",eK),ex(i,",",eY),ex(i,"$",eZ),ex(i,".","DOT"),ex(i,"=",eV),ex(i,"!",eJ),ex(i,"-",eX),ex(i,"%",e0),ex(i,"|",e1),ex(i,"+",e2),ex(i,"#",e3),ex(i,"?",e4),ex(i,'"',e5),ex(i,"/",e6),ex(i,";",e9),ex(i,"~",e8),ex(i,"_",te),ex(i,"\\",e_),ex(i,"ã»",e7);let s=ef(i,tl,"NUM",{[en]:!0});ef(s,tl,s);let n=ef(s,ts,ew,{[ea]:!0}),r=ef(s,tn,ev,{[eo]:!0}),l=ef(i,ts,eb,{[er]:!0});ef(l,tl,n),ef(l,ts,l),ef(n,tl,n),ef(n,ts,n);let a=ef(i,tn,ey,{[el]:!0});ef(a,ts),ef(a,tl,r),ef(a,tn,a),ef(r,tl,r),ef(r,ts),ef(r,tn,r);let o=ex(i,"\n","NL",{[eu]:!0}),d=ex(i,"\r","WS",{[eu]:!0}),c=ef(i,ta,"WS",{[eu]:!0});ex(i,"",c),ex(d,"\n",o),ex(d,"",c),ef(d,ta,c),ex(c,"\r"),ex(c,"\n"),ef(c,ta,c),ex(c,"",c);let u=ef(i,tr,tt,{[ec]:!0});ex(u,"#"),ef(u,tr,u),ex(u,"ï¸",u);let h=ex(u,"â");ex(h,"#"),ef(h,tr,u);let m=[[ts,l],[tl,n]],p=[[ts,null],[tn,a],[tl,r]];for(let e=0;e<to.length;e++)tu(i,to[e],"TLD",eb,m);for(let e=0;e<td.length;e++)tu(i,td[e],ek,ey,p);eh("TLD",{tld:!0,ascii:!0},t),eh(ek,{utld:!0,alpha:!0},t),tu(i,"file",eN,eb,m),tu(i,"mailto",eN,eb,m),tu(i,"http",ez,eb,m),tu(i,"https",ez,eb,m),tu(i,"ftp",ez,eb,m),tu(i,"ftps",ez,eb,m),eh(eN,{scheme:!0,ascii:!0},t),eh(ez,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let s=e[t][0],n=e[t][1]?{scheme:!0}:{slashscheme:!0};s.indexOf("-")>=0?n[ed]=!0:ts.test(s)?tl.test(s)?n[ea]=!0:n[er]=!0:n[en]=!0,eg(i,s,s,n)}return eg(i,"localhost",ej,{ascii:!0}),i.jd=new em("SYM"),{start:i,tokens:Object.assign({groups:t},ti)}}(tN.customSchemes);for(let e=0;e<tN.tokenQueue.length;e++)tN.tokenQueue[e][1]({scanner:tN.scanner});tN.parser=function({groups:e}){let t=e.domain.concat([eB,eG,"AT",e_,eQ,eq,eZ,eV,eX,"NUM",e0,e1,e2,e3,e6,"SYM",e8,te]),i=[eU,eK,eY,"DOT",eJ,e0,e4,e5,e9,eO,eA,eT,eE,eL,eR,eS,eC,eI,e$,eH,eM,eF,eD,eW,eP],s=[eB,eU,eG,e_,eQ,eq,eZ,eV,eX,eT,eE,e0,e1,e2,e3,e4,e6,"SYM",e8,te],n=tj(),r=ex(n,e8);ep(r,s,r),ep(r,e.domain,r);let l=tj(),a=tj(),o=tj();ep(n,e.domain,l),ep(n,e.scheme,a),ep(n,e.slashscheme,o),ep(l,s,r),ep(l,e.domain,l);let d=ex(l,"AT");ex(r,"AT",d),ex(a,"AT",d),ex(o,"AT",d);let c=ex(r,"DOT");ep(c,s,r),ep(c,e.domain,r);let u=tj();ep(d,e.domain,u),ep(u,e.domain,u);let h=ex(u,"DOT");ep(h,e.domain,u);let m=tj(tb);ep(h,e.tld,m),ep(h,e.utld,m),ex(d,ej,m);let p=ex(u,eX);ex(p,eX,p),ep(p,e.domain,u),ep(m,e.domain,u),ex(m,"DOT",h),ex(m,eX,p);let f=ex(l,eX),g=ex(l,"DOT");ex(f,eX,f),ep(f,e.domain,l),ep(g,s,r),ep(g,e.domain,l);let x=tj(tv);ep(g,e.tld,x),ep(g,e.utld,x),ep(x,e.domain,l),ep(x,s,r),ex(x,"DOT",g),ex(x,eX,f),ex(x,"AT",d);let b=ex(x,eK),y=tj(tv);ep(b,e.numeric,y);let w=tj(tv),v=tj();ep(w,t,w),ep(w,i,v),ep(v,t,w),ep(v,i,v),ex(x,e6,w),ex(y,e6,w);let j=ex(a,eK),k=ex(o,eK),N=ex(k,e6),z=ex(N,e6);ep(a,e.domain,l),ex(a,"DOT",g),ex(a,eX,f),ep(o,e.domain,l),ex(o,"DOT",g),ex(o,eX,f),ep(j,e.domain,w),ex(j,e6,w),ex(j,e4,w),ep(z,e.domain,w),ep(z,t,w),ex(z,e6,w);let T=[[eT,eE],[eR,eL],[eS,eC],[eO,eA],[eI,e$],[eH,eM],[eF,eD],[eW,eP]];for(let e=0;e<T.length;e++){let[s,n]=T[e],r=ex(w,s);ex(v,s,r);let l=tj(tv);ep(r,t,l);let a=tj();ep(r,i,a),ex(r,n,w),ep(l,t,l),ep(l,i,a),ep(a,t,l),ep(a,i,a),ex(l,n,w),ex(a,n,w)}return ex(n,ej,x),ex(n,"NL",tw),{start:n,tokens:ti}}(tN.scanner.tokens);for(let e=0;e<tN.pluginQueue.length;e++)tN.pluginQueue[e][1]({scanner:tN.scanner,parser:tN.parser});tN.initialized=!0}(),function(e,t,i){let s=i.length,n=0,r=[],l=[];for(;n<s;){let a=e,o=null,d=null,c=0,u=null,h=-1;for(;n<s&&!(o=a.go(i[n].t));)l.push(i[n++]);for(;n<s&&(d=o||a.go(i[n].t));)o=null,(a=d).accepts()?(h=0,u=a):h>=0&&h++,n++,c++;if(h<0)(n-=c)<s&&(l.push(i[n]),n++);else{l.length>0&&(r.push(tk(ty,t,l)),l=[]),n-=h,c-=h;let e=u.t,s=i.slice(n-c,n);r.push(tk(e,t,s))}}return l.length>0&&r.push(tk(ty,t,l)),r}(tN.parser.start,e,tc(tN.scanner.start,e))}tz.scan=tc;let tT=e=>{let t=0,i={key:"__linkify-wrapper"};for(let t in e)"options"!==t&&"as"!==t&&"tagName"!==t&&"children"!==t&&(i[t]=e[t]);
26let n=new tp(e.options,({tagName:e,attributes:i,content:n})=>(i.key=`__linkify-lnk-${t++}`,i.class&&(i.className=i.class,delete i.class),s.createElement(e,i,n))),r=e.as||e.tagName||s.Fragment||"span",l=e.children;return function e(t,i,n){if(0===s.Children.count(t.props.children))return t;let r=[];s.Children.forEach(t.props.children,t=>{"string"==typeof t?r.push.apply(r,function(e,t,i){let n=tz(e),r=[];for(let e=0;e<n.length;e++){let l=n[e];if("nl"===l.t&&t.get("nl2br")){let e=`__linkify-el-${i.elementId++}`;r.push(s.createElement("br",{key:e}))}else if(l.isLink&&t.check(l)){let e=t.render(l);if(!("key"in e.props)){let t=Object.assign({key:`__linkify-el-${i.elementId++}`},e.props);e=s.cloneElement(e,t)}r.push(e)}else r.push(l.toString())}return r}(t,i,n)):s.isValidElement(t)?"string"==typeof t.type&&i.ignoreTags.indexOf(t.type.toUpperCase())>=0?r.push(t):r.push(e(t,i,n)):r.push(t)});let l=Object.assign({key:`__linkify-el-${n.elementId++}`},t.props);return s.cloneElement(t,l,r)}(s.createElement(r,i,l),n,{elementId:0})},tE=({fillColor:e})=>(0,i.jsx)("svg",{width:"32px",height:"30px",viewBox:"0 0 22 22",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,i.jsx)("g",{id:"Icons",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,i.jsx)("g",{id:"White-Label-Icons",transform:"translate(-747.000000, -974.000000)",fill:e||"#191919",fillRule:"nonzero",children:(0,i.jsx)("g",{id:"Group-12-Copy",transform:"translate(688.000000, 925.000000)",children:(0,i.jsx)("g",{id:"notice",transform:"translate(58.000000, 48.000000)",children:(0,i.jsx)("path",{d:"M12,1 C18.0751322,1 23,5.92486775 23,12 C23,18.0751322 18.0751322,23 12,23 C5.92486775,23 1,18.0751322 1,12 C1,5.92486775 5.92486775,1 12,1 Z M12,3 C7.02943725,3 3,7.02943725 3,12 C3,16.9705627 7.02943725,21 12,21 C16.9705627,21 21,16.9705627 21,12 C21,7.02943725 16.9705627,3 12,3 Z M12,15.5 C12.5522847,15.5 13,15.9477153 13,16.5 C13,17.0522847 12.5522847,17.5 12,17.5 C11.4477153,17.5 11,17.0522847 11,16.5 C11,15.9477153 11.4477153,15.5 12,15.5 Z M12,6.5 C12.5128358,6.5 12.9355072,6.83778517 12.9932723,7.27295652 L13,7.375 L13,12.625 C13,13.1082492 12.5522847,13.5 12,13.5 C11.4871642,13.5 11.0644928,13.1622148 11.0067277,12.7270435 L11,12.625 L11,7.375 C11,6.89175084 11.4477153,6.5 12,6.5 Z"})})})})})}),tR=({fillColor:e})=>(0,i.jsx)("svg",{width:"32px",height:"30px",viewBox:"0 0 24 22",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,i.jsx)("g",{id:"Icons",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,i.jsx)("g",{id:"White-Label-Icons",transform:"translate(-188.000000, -974.000000)",fill:e||"#191919",fillRule:"nonzero",children:(0,i.jsx)("g",{id:"Group-9-Copy-2",transform:"translate(128.000000, 925.000000)",children:(0,i.jsx)("g",{id:"alert",transform:"translate(60.000000, 48.000000)",children:(0,i.jsx)("path",{d:"M11.1237841,1.51808125 C11.4826033,0.865682639 12.387894,0.829438272 12.8074323,1.40934815 L12.8762159,1.51808125 L23.8762159,21.5180813 C24.2244374,22.1512112 23.8066975,22.9188259 23.1119309,22.9940046 L23,23 L1,23 C0.277427023,23 -0.193852548,22.2640418 0.0750958004,21.6190462 L0.123784091,21.5180813 L11.1237841,1.51808125 Z M12,4.075 L2.691,21 L21.308,21 L12,4.075 Z M12,17.5 C12.5522847,17.5 13,17.9477153 13,18.5 C13,19.0522847 12.5522847,19.5 12,19.5 C11.4477153,19.5 11,19.0522847 11,18.5 C11,17.9477153 11.4477153,17.5 12,17.5 Z M12,8.5 C12.5128358,8.5 12.9355072,8.83778517 12.9932723,9.27295652 L13,9.375 L13,14.625 C13,15.1082492 12.5522847,15.5 12,15.5 C11.4871642,15.5 11.0644928,15.1622148 11.0067277,14.7270435 L11,14.625 L11,9.375 C11,8.89175084 11.4477153,8.5 12,8.5 Z"})})})})})}),tL={red:0,orange:1,yellow:2};var tS=e.i(98125),tC=e.i(84002);let tO=({buttonText:e,className:t,isExpanded:s,showMoreButtonHandler:r,fillColor:l,label:a,ref:o})=>(0,i.jsxs)("button",{"aria-label":a,className:(0,n.default)("flex","flex-row","show-more-button-text",t),onClick:r,"aria-expanded":s,ref:o,"data-testid":`show-${s?"less":"more"}-button`,children:[void 0!==e?(0,i.jsx)("span",{"aria-hidden":!0,
26className:"pr-2 my-auto",children:e}):null,(0,i.jsx)("div",{className:(0,n.default)({"transform rotate-180":s}),children:(0,i.jsx)(tC.default,{fillColor:l})})]}),tA=({warnings:e,locationData:t})=>{let s=e.sort((e,t)=>tL[e.significance]-tL[t.significance])[0];if(!s)return null;let n=e.sort(tM);return(0,i.jsxs)("section",{className:"flex flex-col mb-4",children:[(0,i.jsx)("h2",{className:"sr-only",children:"Varoitukset"}),(0,i.jsx)(tI,{highestSeverity:s,alertAmount:e.length,children:n.map((s,n)=>(0,i.jsx)(t$,{alertAmount:e.length,warning:s,locationData:t},n))})]})},tI=({highestSeverity:e,alertAmount:t,children:r})=>{let l=(0,s.useRef)(null),[a,o]=(0,s.useState)(!1),d=()=>{a?l.current&&l.current.focus():(0,tS.sendUIActionAnalyticsEvent)("show more","alerts"),o(!a)},{className:c,color:u}=tH(e.significance);return(0,i.jsx)("div",{className:"w-full bg-default border-grey border-b",children:(0,i.jsxs)("div",{className:"border-t border-r border-grey",children:[(0,i.jsxs)("div",{className:(0,n.default)("flex flex-row h-full border-l-8 py-4 cursor-pointer",c),onClick:d,children:[(0,i.jsx)("span",{className:"sm:ml-6 sm:mr-3 mx-2",children:"yellow"===e.significance?(0,i.jsx)(tE,{fillColor:u}):(0,i.jsx)(tR,{fillColor:u})}),(0,i.jsx)("div",{className:(0,n.default)("mt-1.5 text-bold mr-3",{truncate:!a}),children:1===t?e.description:t+" varoitusta tälle päivälle"}),(0,i.jsx)(tO,{ref:l,isExpanded:a,showMoreButtonHandler:d,className:"ml-auto mr-3 mt-1 h-6",fillColor:"#191919",label:"Näytä kaikki varoitukset"})]}),(0,i.jsx)("div",{className:(0,n.default)({hidden:!a}),children:r})]})})},t$=({warning:e,alertAmount:t})=>{let{className:s,color:r}=tH(e.significance),l=1===t;return(0,i.jsx)("div",{className:(0,n.default)("w-full bg-default",{"border-divider border-t":!l}),children:(0,i.jsxs)("div",{className:(0,n.default)("flex flex-row h-full border-l-8",l?"pb-4":"py-4",s),children:[(0,i.jsx)("span",{className:(0,n.default)("sm:ml-6 sm:mr-3 mx-2",{invisible:l}),children:"yellow"===e.significance?(0,i.jsx)(tE,{fillColor:r}):(0,i.jsx)(tR,{fillColor:r})}),(0,i.jsxs)("div",{className:"flex flex-col my-auto pr-3 word-wrap",children:[!l&&(0,i.jsx)("span",{className:"text-bold mb-1",children:e.description}),e.warningText&&(0,i.jsx)("span",{className:"whitespace-pre-line break-words",children:(0,i.jsx)(tT,{options:{attributes:{style:{outline:"revert",boxShadow:"revert",wordBreak:"break-all"}},className:"text-text-10 leading-loose border-b border-black border-solid no-underline",format:function(e,t){return"url"===t&&/https?:\/\//.exec(e)?e.split("://")[1]:e}},children:e.warningText})})]})]})})},tH=e=>{switch(e){case"yellow":return{className:"border-yellow",color:"#FFEC47"};case"orange":return{className:"border-orange",color:"#F36F21"};case"red":return{className:"border-red",color:"#CD2128"};default:return o.logger.error(`Unknown warning significance code: ${e}.`),{className:"border-yellow",color:"#FFEC47"}}},tM=(e,t)=>e.validFrom.localeCompare(t.validFrom),tF=({pollen:e,locationData:t})=>(0,i.jsx)("div",{className:"flex px-3 pb-6 bg-default border-divider border-b",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(tD,{pollen:e,isObservation:!0,locationData:t}),(0,i.jsx)(tD,{pollen:e,isObservation:!1,locationData:t})]})}),tD=({pollen:e,isObservation:t,locationData:s})=>{let{allergens:n,dateString:r}=tW(e,t,s.timezone);return(0,i.jsxs)("div",{className:"mt-5",children:[(0,i.jsx)("h3",{className:"text-bold",children:r}),(0,i.jsx)("div",{className:"flex flex-row flex-wrap pt-6",children:n?n.map(({displayName:e,value:t,description:s,maxValue:n})=>(0,i.jsxs)("div",{className:"flex flex-row pb-2",children:[(0,i.jsx)("span",{className:"pr-4",children:`${e}:`}),(0,i.jsx)("span",{className:"sr-only",children:s}),(0,i.jsx)("div",{"aria-hidden":"true",className:"flex flex-row w-[68px]",children:tP(t,n).map((e,t)=>(0,i.jsx)(tB,{dot:e},t))})]},e)):(0,i.jsx)("span",{children:"Ei merkittävää määrää siitepölyä."})})]})},tW=(e,t,i)=>{if(t)return e.lastObservation&&Array.isArray(e.lastObservation.allergens)&&0!==e.lastObservation.allergens.length?{allergens:e.lastOb
26servation.allergens,dateString:`Tilanne ${(0,U.formatToDateWithoutYearOrNow)(e.lastObservation.date,i)}`}:{allergens:void 0,dateString:"Tilanne nyt"};{if(!Array.isArray(e.forecasts)||0===e.forecasts.length||!e.forecasts[0])return{allergens:void 0,dateString:"Huomisen ennuste"};let t=e.forecasts[0];return{allergens:Array.isArray(t.allergens)&&0!==t.allergens.length?t.allergens:void 0,dateString:t.date?`Ennuste ${(0,U.formatToDateWithoutYear)(t.date,i)}`:"Huomisen ennuste"}}},tP=(e,t)=>{let i=Math.min(e,t);return Array.from({length:i},()=>"full").concat(t-i>0?Array.from({length:t-i},()=>"inactive"):[])},tB=({dot:e})=>(0,i.jsx)("div",{className:"pr-1 my-auto",children:(0,i.jsx)("span",{className:(0,n.default)("inline-block","h-2","m-auto",{"w-2 rounded-sm bg-weather-item-active":"full"===e},{"w-2 rounded-sm bg-weather-item-off":"inactive"===e})})}),tU=(0,f.default)(()=>e.A(14585).then(e=>e.PrecipitationBar),{loadableGenerated:{modules:[66240]},ssr:!1}),tG=({hourlyForecasts:e,locationData:t,adPosition:n,shouldQueueAdRendering:r,removeSelfOnCloseCallback:l})=>{let a=(0,s.useRef)(null),[o,d]=(0,s.useState)(8),[u,h]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{o===e.length&&a.current&&a.current.focus()},[e.length,o]),u)return null;let m=o===e.length;return(0,i.jsx)(i.Fragment,{children:e.length>0?(0,i.jsxs)(i.Fragment,{children:[e.slice(0,o).map((e,s)=>(0,i.jsx)(t_,{forwardRef:8===s?a:void 0,forecast:e,timezone:t.timezone},s)),(0,i.jsx)("tr",{children:(0,i.jsx)("td",{className:"text-center",colSpan:4,children:(0,i.jsx)(tO,{className:"py-4 mx-auto",buttonText:m?"NÃYTà VÃHEMMÃN":"NÃYTà LISÃÃ",isExpanded:m,showMoreButtonHandler:()=>{m&&void 0!==l?(h(!0),l()):m||(0,tS.sendUIActionAnalyticsEvent)("show more","today's weather"),d(m?8:e.length)}})})}),n&&m&&(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:4,children:(0,i.jsx)(c,{position:n,shouldQueueAdRendering:r})})})]}):(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:4,className:"p-4",children:"Ennusteita ei löytynyt."})})})},t_=({forecast:{time:e,fmi:t,foreca:s},timezone:r,forwardRef:l})=>(0,i.jsxs)("tr",{tabIndex:l?-1:void 0,ref:l,className:(0,n.default)("border-b","border-separator"),children:[(0,i.jsx)("td",{className:"py-2 pl-4 pr-1 w-1/6",children:(0,i.jsx)("time",{children:(0,U.formatToHours)(e,r)})}),(0,i.jsx)("td",{className:"py-2 px-1 w-5/12",children:(0,i.jsx)(tQ,{forecast:t})}),(0,i.jsx)("td",{className:"py-2 pl-1 pr-4 w-5/12",children:(0,i.jsx)(tQ,{forecast:s})})]}),tQ=({forecast:e})=>{let t=!!e?.error,s=Object.keys(e??{}).length>0;if(t||void 0===e||!s)return(0,i.jsx)("span",{children:"â"});let{weatherSymbol:n,weatherSymbolText:r,temperature:l,windDirection:a,windSpeed:o,probabilityOfRain:d,precipitation:c}=e;return(0,i.jsxs)("div",{className:"flex flex-col sm:flex-row gap-y-1",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)(Y,{size:"small",weatherSymbol:n,weatherSymbolText:r}),void 0!==l&&(0,i.jsx)(Z,{temperature:l,className:"temperature-20 w-11 md:w-14"}),void 0!==o&&(0,i.jsx)("div",{className:"pl-1 text-small",children:(0,i.jsx)(B,{windDirection:a,windSpeed:o})})]}),(void 0!==d||void 0!==c)&&(0,i.jsx)(tU,{probabilityOfRain:d,precipitation:c,isHourlyForecast:!0,className:"sm:pl-2"})]})},tq=(0,f.default)(()=>e.A(14585).then(e=>e.PrecipitationBar),{loadableGenerated:{modules:[66240]},ssr:!1}),tK=({dailyForecasts:e,hourlyForecasts:t,locationData:s,shouldQueueAdRendering:n})=>{let r=e=>{let i=(0,U.formatToDateWithoutYear)(e,s.timezone);return t.filter(e=>(0,U.formatToDateWithoutYear)(e.time,s.timezone)===i)},l=e.slice(0,4),a=e.slice(4),o=e.length>=4;return(0,i.jsxs)("table",{className:"table-fixed bg-default mb-4 border-b border-divider",children:[(0,i.jsx)("caption",{className:"sr-only",children:(0,i.jsx)("h2",{children:"Viikon sääennuste"})}),(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{className:"bg-grey border-separator border-b text-left",children:[(0,i.jsxs)("th",{scope:"col",className:"w-1/6 pl-4 pr-1 py-2",children:[(0,i.jsxs)("div",{"aria-hidden":"true",children:[(0,i.jsx)("span",{className:"sm:hidden text-separator-highlight",children:"Vko"}),(0,i.jsx)("span",{className:"hidden sm:block text-separator-highlight",children:"Viikko"})]}),(0,i.jsx)("span",{className:"sr-only",children:"Päivämäärä"})]}),(0,i.jsx)("th",{scope:"col",className:"py-2 px-1 w-5/12",children:(0,i.jsx)("span",{className:"uppercase text-bold-small",children:"Ilmatieteen laitos"})}),(0,i.jsx)("th",{scope:"col",className:"py-2 pl-1 pr-4 w-5/12",children:(0,i.jsx)("span",{className:"uppercase text-bold-small",children:"Foreca"})}),(0,i.jsx)("th",{scope:"col",className:"p-0",children:(0,i.jsx)("span",{className:"sr-only",children:"Tuntikohtainen ennu
26ste"})})]})}),(0,i.jsx)("tbody",{"data-testid":"daily-forecast-table-body",children:e.length>0?(0,i.jsxs)(i.Fragment,{children:[l.map((e,t)=>(0,i.jsx)(tY,{adPosition:tV(t),dailyForecast:e,hourlyForecasts:r(e.time),locationData:s,shouldQueueAdRendering:n},(0,U.formatToDateWithoutYear)(e.time,s.timezone))),o&&(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:4,children:(0,i.jsx)(c,{position:"mobimiddle05",shouldQueueAdRendering:n})})},"mobimiddle05-ad"),a.map((e,t)=>(0,i.jsx)(tY,{adPosition:tV(t+4),dailyForecast:e,hourlyForecasts:r(e.time),locationData:s,shouldQueueAdRendering:n},(0,U.formatToDateWithoutYear)(e.time,s.timezone)))]}):(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{}),(0,i.jsx)("td",{className:"p-4",children:"Ennusteita ei löytynyt."}),(0,i.jsx)("td",{className:"p-4",children:"Ennusteita ei löytynyt."})]})})]})},tY=({adPosition:e,dailyForecast:{time:t,fmi:r,foreca:l},hourlyForecasts:a,locationData:o,shouldQueueAdRendering:d})=>{let c=(0,s.useRef)(null),[u,h]=(0,s.useState)(!1),m=()=>{u?c.current&&c.current.focus():(0,tS.sendUIActionAnalyticsEvent)("show more","weekday"),h(!u)},p=(0,U.formatToDateWithoutYear)(t,o.timezone);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("tr",{className:(0,n.default)("cursor-pointer border-divider",{"border-b":!u}),onClick:m,children:[(0,i.jsx)("td",{className:"py-2 pl-4",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)("span",{className:"text-bold uppercase",children:(0,U.getDayOfWeekShorthand)(t,o.timezone)}),(0,i.jsx)("time",{children:p})]})}),(0,i.jsx)(tZ,{forecast:r}),(0,i.jsx)(tZ,{forecast:l}),(0,i.jsx)("td",{className:"relative xs:float-right xs:right-8\n xs:top-12 sm:top-8 xs:w-0 xs:h-0 xs:p-0 px-2",children:a.length>0&&(0,i.jsx)(tO,{isExpanded:u,showMoreButtonHandler:m,label:"Näytä lisää ennusteita"})})]}),u&&(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:4,className:"p-0 border-divider border-b",children:(0,i.jsxs)("table",{className:"w-full mx-auto",children:[(0,i.jsx)("caption",{className:"sr-only",children:"Tuntikohtainen ennuste"}),(0,i.jsx)("thead",{className:"sr-only",children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{scope:"col",children:"Kellonaika"}),(0,i.jsx)("th",{scope:"col",children:"Ilmatieteen laitos"}),(0,i.jsx)("th",{scope:"col",children:"Foreca"})]})}),(0,i.jsx)("tbody",{children:(0,i.jsx)(tG,{hourlyForecasts:a,locationData:o,removeSelfOnCloseCallback:m,adPosition:e,shouldQueueAdRendering:d})})]})})})]})},tZ=({forecast:e})=>{let t=!!e?.error,s=Object.keys(e??{}).length>0;if(t||void 0===e||!s)return(0,i.jsx)("td",{className:"py-2 px-1",children:"â"});let{maxTemp:n,minTemp:r,weatherSymbol:l,weatherSymbolText:a,windDirection:o,windSpeed:d,probabilityOfRain:c,precipitation:u}=e;return(0,i.jsx)("td",{className:"py-4 px-1",children:(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(Y,{size:"medium",weatherSymbol:l,weatherSymbolText:a}),(void 0!==c||void 0!==u)&&(0,i.jsx)(tq,{className:"sm:hidden mt-1",probabilityOfRain:c,precipitation:u})]}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"sm:flex sm:space-x-2 sm:pb-1",children:[void 0!==n&&(0,i.jsx)(Z,{temperature:n,className:"temperature-20 self-center w-11 md:w-14"}),void 0!==r&&(0,i.jsx)(Z,{temperature:r,className:"temperature-30 self-center w-11 md:w-14"}),void 0!==d&&(0,i.jsx)("div",{className:"text-small",children:(0,i.jsx)(B,{windDirection:o,windSpeed:d})})]}),(void 0!==c||void 0!==u)&&(0,i.jsx)(tq,{className:"hidden sm:flex",probabilityOfRain:c,precipitation:u})]})]})})},tV=e=>{if(3!==e)return`mobimiddle0${e+2}`},tJ=({weatherOverview:e,locationData:t,shouldQueueAdRendering:s})=>{let[,...n]=e.forecasts;return(0,i.jsxs)("table",{className:"table-fixed bg-default sm:mb-4 border-b border-divider",children:[(0,i.jsx)("caption",{className:"sr-only",children:(0,i.jsx)("h2",{children:"Tuntikohtainen ennuste"})}),(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{className:"bg-grey border-separator border-b text-left",children:[(0,i.jsxs)("th",{scope:"col",className:"w-1/6 pl-4 pr-1 py-2",children:[(0,i.jsx)("div",{"aria-hidden":"true",children:(0,i.jsx)("span",{className:"text-separator-highlight",children:"24t"})}),(0,i.jsx)("span",{className:"sr-only",children:"Kellonaika"})]}),(0,i.jsx)("th",{scope:"col",className:"py-2 px-1",children:(0,i.jsx)("span",{className:"uppercase text-bold-small",children:"Ilmatieteen laitos"})}),(0,i.jsx)("th",{scope:"col",className:"pl-1 pr-4 py-2",children:(0,i.jsx)("span",{className:"uppercase text-bold-small",children:"Foreca"})})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsx)(tG,{hourlyForecasts:n,locationData:t,shouldQueueAdRendering:s}),(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:4,children:(0,i.jsx)(c,{position:"mobimiddle01",shouldQueueAdRendering:s})})})]})]})},tX=(0,f.default)(()=>e.A(28021).then(e=>e.PrecipitationChart),{loadableGenerated:{modules:[2300]},ssr:!1}),t0=({weatherOverview:e,hourlyForecasts:t,dailyForecasts:r,locationData:l,shouldQueueAdRendering:a,isWallpaperAd:o})=>{let d=(0,s.useMemo)(()=>({background:e.today?.theme==="night"?"linear-gradient(-180deg, rgb(13, 105, 140) 0%, rgb(29, 63, 92) 100%)":"linear-gradient(-180deg, rgb(170, 218, 233) 0%, rgb(225, 238, 242) 100%)"}),[e.today]),u=(0,s.useMemo)(()=>({background:"transparent"}),[]),h=o?u:d,m=o?d:u;return(0,i.jsxs)("article",{className:"relative",children:[(0,i.jsx)("div",{style:h,className:(0,n.default)("flex","justify-center","border-divider","border-b","sm:border-0",{"py-4 mb-4":!o}),children:(0,i.jsxs)("div",{className:"flex items-center w-full sm:w-main lg:w-wide xl:w-wider",children:[(0,i.jsx)("div",{style:m,className:(0,n.default)({"bg-light-grey pb-4":o},"w-full","xl:w-auto"),children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex flex-col lg:w-wide md:w-main",children:[(0,i.jsx)(ee,{weatherOverview:e,locationData:l,isWallpaperAd:o}),e.warnings.length>0&&(0,i.jsx)("div",{className:"md:hidden block w-full sm:w-main px-2",children:(0,i.jsx)(tA,{warnings:e.warnings,locationData:l})})]}),(0,i.jsx)("div",{className:"max-w-wide",children:(0,i.jsx)(g,{position:"top",shouldQueueAdRendering:a})}),(0,i.jsx)(c,{position:"mobicontentfeedhigh",shouldQueueAdRendering:a})]})}),(0,i.jsx)("div",{className:(0,n.default)("hidden","justify-end","self-start","sticky","top-4","xl:flex","bg-none"),children:(0,i.jsx)(g,{position:"side01",shouldQueueAdRendering:a,className:"top-4 ml-4"})})]})}),(0,i.jsxs)("div",{className:"flex flex-row xl:w-wider lg:w-wide sm:w-main mx-auto",children:[(0,i.jsxs)("section",{className:(0,n.default)("flex","flex-col","lg:w-main","w-full","bg-light-grey",{"pt-4 pr-2 pl-4":o}),children:[e.warnings.length>0&&(0,i.jsx)("div",{className:"md:block hidden",children:(0,i.jsx)(tA,{warnings:e.warnings,locationData:l})}),(0,i.jsx)(tJ,{weatherOverview:e,locationData:l,shouldQueueAdRendering:a}),(0,i.jsx)(tK,{dailyForecasts:r,hourlyForecasts:t,locationData:l,shouldQueueAdRendering:a}),(0,i.jsx)(tX,{forecasts:e.forecasts,locationData:l}),e.pollen&&(0,i.jsxs)("article",{className:"w-full mb-4",children:[(0,i.jsx)("div",{className:"flex flex-row text-bold-small h-10 bg-grey border-separator border-b px-4",children:(0,i.jsx)("div",{className:"my-auto sm:w-20 w-16 text-separator-highlight",children:(0,i.jsx)("h2",{children:"Siitepöly"})})}),(0,i.jsx)(tF,{pollen:e.pollen,locationData:l})]}),(0,i.jsx)(c,{position:"contentfeedlow",shouldQueueAdRendering:a}),(0,i.jsx)(F,{src:"https://www.is.fi/promo/?source=supersaa.fi&content=promobox",className:"mb-4 lg:hidden",title:"Ilta-Sanomien uutisotsikot",height:600}),(0,i.jsx)(F,{src:"https://ap-cdn.sanomagames.com/iltapulu-widget/index.html?ref=is-ohjelmaopas",className:"mb-4",title:"Iltapulu",height:385})]}),(0,i.jsx)("div",{className:(0,n.default)("bg-light-grey",{"pt-4":o}),children:(0,i.jsxs)("aside",{className:(0,n.default)("lg:block","hidden","w-right",{"mx-4":o},{"ml-8":!o}),children:[(0,i.jsx)(g,{position:"rectangle2-1",shouldQueueAdRendering:a}),(0,i.jsx)(F,{src:"https://www.is.fi/promo/?source=supersaa.fi&content=promobox",className:"mb-4",title:"Ilta-Sanomien uutisotsikot",height:600}),(0,i.jsx)(g,{position:"rectangle2-2",shouldQueueAdRendering:a}),(0,i.jsx)(g,{position:"rectangle2-3",shouldQueueAdRendering:a})]})})]})]})},t1=({weatherOverview:e,hourlyForecasts:t,dailyForecasts:n,locationData:r,shouldQueueAdRendering:l})=>
26{let[a,o]=(0,s.useState)(!1),d=function(e){e.forEach(e=>{e.target.classList.contains("supersaa-wallpaper-ad")&&o(!0)})};return((0,s.useEffect)(()=>{let e=document.body,t=new MutationObserver(d);return t.observe(e,{attributes:!0}),()=>{t.disconnect()}}),e.forecasts.length>0||t.length>0||n.length>0)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{}),(0,i.jsx)(p,{isWallpaperAd:a}),(0,i.jsx)(t0,{weatherOverview:e,hourlyForecasts:t,dailyForecasts:n,locationData:r,shouldQueueAdRendering:l,isWallpaperAd:a})]}):(0,i.jsx)("div",{children:"Ennusteita ei löytynyt..."})};var t2=e.i(4403),t3=e.i(30983),t4=e.i(9342);e.s(["__N_SSP",0,!0,"default",0,({weatherOverview:e,hourlyForecasts:t,dailyForecasts:s,locationData:n,isFirstPageLoad:r,error:l})=>{let a=(0,t2.useUtagView)("ForecastPage",n);return((0,t3.useVirtualPageviewAnalytics)({analyticsMetadata:e?.analyticsMetadata,isFirstPageLoad:r}),l)?(0,i.jsx)(t4.default,{}):(0,i.jsx)(t1,{weatherOverview:e,hourlyForecasts:t,dailyForecasts:s,locationData:n,shouldQueueAdRendering:r||a})}],43181)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.