'),Zv=Ze('
<!>
'),tm=Ze('
<!>
'),em=Ze('
<!> <!> <!> <!>
');function nm(t,e){_e(e,!0);const n=Vn(e,"wasInView",3,!1),r=Tt((()=>e.headerSnippets)),i=Tt((()=>{let{search:t,infoCard:e,button:n}=de(r);return[t,e,n]})),s=Tt((()=>de(i)[0])),a=Tt((()=>de(i)[1])),o=Tt((()=>de(i)[2]));var l=em(),c=Oe(l);Ue(c,(()=>e.hasData),(t=>{var n=Qv();sn(Oe(n),(()=>function(t,e=[]){if(!e.length)return t;let n=t;return e.forEach((t=>{const e=new RegExp(t.substr,"gi");n=n.replace(e,`$& `)})),n}(e.data.text||"",e.data.parties))),rn(t,n)}),(t=>{var e=Jv(),n=Oe(e);Oe(n).nodeValue=Ve("Lorem ipsum dolor sit amet, consetetur"),rn(t,e)}));var u=Ae(Ae(c,!0));Ue(u,(()=>de(s)),(t=>{var e=Zv();an((()=>de(s)),Oe(e)),rn(t,e)}));var h=Ae(Ae(u,!0));Ue(h,(()=>de(o)),(t=>{var e=tm();an((()=>de(o)),Oe(e)),rn(t,e)})),Ue(Ae(Ae(h,!0)),(()=>de(a)),(t=>{var e=nn();an((()=>de(a)),Pe(e)),rn(t,e)})),st((()=>{fn(l,"was-in-view",n()),fn(l,"article","article"===Wd.type)})),rn(t,l),xe()}var rm=Ze('
<!>
');function im(t,e){_e(e,!0);let n=Vn(e,"sources",3,void 0),r=Vn(e,"small",3,!1);var i=nn();Ue(Pe(i),(()=>n()&&!/^\s+$/.test(n())),(t=>{var e=rm(),i=Oe(e);sn(Ae(Ae(Oe(i),!0)),n),st((()=>fn(e,"small",r()))),rn(t,e)})),rn(t,i),xe()}var sm=Ze('
<!>
');function am(t,e){_e(e,!0);let n=Vn(e,"status",3,void 0),r=Vn(e,"small",3,!1);var i=nn();Ue(Pe(i),(()=>n()&&!/^\s+$/.test(n())),(t=>{var e=sm();sn(Oe(e),n),st((()=>fn(e,"small",r()))),rn(t,e)})),rn(t,i),xe()}var om=Ze('
<!> <!>
');const lm=3e3;const cm=function(){let t=G(gt([]));const e=Tt((()=>de(t).filter((t=>t.isUpdating)).length));return{get cards(){return de(t)},set cards(e){X(t,gt(e))},get leftDotsOutOfView(){return 0===de(t).length?0:de(t).filter((t=>"left"===t.naviDotInView&&!0===t.isUpdating)).length},get rightDotsOutOfView(){return 0===de(t).length?0:de(t).filter((t=>"right"===t.naviDotInView&&!0===t.isUpdating)).length},get isUpdatingCards(){return de(e)},setCardInView:(e,n)=>{de(t)[e]&&(de(t)[e].cardInView=n)},setNaviDotInView:(e,n)=>{de(t)[e]&&(de(t)[e].naviDotInView=n)},setCard:(e,n,r)=>{de(t)[e]?de(t)[e].hash!==n&&(de(t)[e].hash=n,de(t)[e].isUpdating=!0):de(t)[e]=function(t){let e=G(gt(t.id)),n=G(gt(t.hash)),r=G(gt(t.navi)),i=G(!1),s=G(!1),a=G(null),o=G(null),l=G(null),c=G(!1);return{get id(){return de(e)},set id(t){X(e,gt(t))},get hash(){return de(n)},set hash(t){X(n,gt(t))},get navi(){return de(r)},set navi(t){X(r,gt(t))},get isUpdating(){return de(i)},set isUpdating(t){X(i,gt(t))},get isNaviAnimation(){return de(s)},set isNaviAnimation(t){X(s,gt(t))},get elementTarget(){return de(a)},set elementTarget(t){X(a,gt(t))},get naviDotInView(){return de(o)},set naviDotInView(t){X(o,gt(t))},get cardInView(){return de(l)},set cardInView(t){X(l,gt(t))},get isCardAnimation(){return de(c)},set isCardAnimation(t){X(c,gt(t))}}}({id:e,hash:n,navi:r})},setNaviAnimation:()=>{de(t).forEach((t=>{t.isUpdating&&(t.isNaviAnimation=!0)})),setTimeout((()=>{de(t).forEach((t=>{t.isUpdating&&(t.isNaviAnimation=!1)}))}),lm)},setIsCardAnimation:e=>{setTimeout((()=>{de(t)[e].isCardAnimation=!0,setTimeout((()=>{de(t)[e].isCardAnimation=!1,de(t)[e].isUpdating=!1}),3e3)}),lm)}}}();function um(t){let e=G(gt(t)),n=G(!1);return{get value(){return de(e)},set value(t){de(e)!==t&&(X(e,gt(t)),X(n,!0),setTimeout((()=>{X(n,!1)}),lm))},get showLiveUpdate(){return de(n)},set showLiveUpdate(t){X(n,gt(t))}}}!function(){let t=G(gt({}))}();var hm=Ze('
');function dm(t,e){_e(e,!0);let n=Vn(e,"header",15,(()=>gt({}))),r=Vn(e,"children",3,void 0),i=Vn(e,"footer",11,(()=>({})));const s=function(t="header"){let e=G(void 0),n=G(void 0),r=G(void 0);const i={get search(){return de(e)},set search(t){X(e,gt(t))},get infoCard(){return de(n)},set infoCard(t){X(n,gt(t))},get button(){return de(r)},set button(t){X(r,gt(t))}};return ye(t,{headerSnippets:i}),i}(),a=function(t="card"){let e=G(void 0);const n={get isInView(){return de(e)},set isInView(t){X(e,gt(t))}};return ye(t,{data:n}),n}();let o=G(!1),l=G(!1),c=Tt((()=>e.hasData?"":"placeholder-card")),u=Tt((()=>{const t=-1*((_f.headerHeight??0)+(_f.device.isApp?95:35));return isNaN(t)?0:t}));"article"===Wd.type&&n(gt({text:Wd.headline||""}));const h=Tt((()=>cm.cards.find((t=>t?.id===e.id))?.isUpdating)),d=Tt((()=>cm.cards.find((t=>t?.id===e.id))?.cardInView));nt((()=>{e.hash&&void 0!==e.hash&&Wd.liveUpdate&&cm.setCard(e.id,e.hash,e.navi)})),nt((()=>{Wd.liveUpdate&&cm.setCardInView(e.id,de(o))})),nt((()=>{de(h)&&de(d)&&Wd.liveUpdate&&cm.setIsCardAnimation(e.id)}));var f=hm(),p=Oe(f),g=Oe(p);nm(Oe(g),{get data(){return n()},headerSnippets:s,get wasInView(){return de(l)},get hasData(){return e.hasData}});var v=Ae(Ae(g,!0));an(r,Oe(v));var m=Ae(Ae(p,!0));!function(t,e){_e(e,!0);var n=nn();Ue(Pe(n),(()=>e.hasData),(t=>{var n=om();pn(n,"column-gap","8px");var r=Oe(n);im(r,{get sources(){return e.data.sources}}),am(Ae(Ae(r,!0)),{get status(){return e.data.status}}),rn(t,n)})),rn(t,n),xe()}(Oe(m),{get data(){return i()},get hasData(){return e.hasData}}),st((()=>{hn(f,"id",`card-${Ve(e.id)}`),dn(p,`header-and-body-wrapper ${Ve(de(c))} svelte-ekepll`),fn(p,"article","article"===Wd.type),fn(v,"article","article"===Wd.type),fn(m,"article","article"===Wd.type)})),ln(f,((t,e)=>Xv(t,e)),(()=>({rootMargin:`${de(u)}px`,threshold:0}))),$e("inview_enter",f,(function(){X(o,gt(a.isInView=X(l,!0))),Ff.addId(e.id),Hf.activeCardId=Ff.firstId}),!1),$e("inview_leave",f,(function(){X(o,gt(a.isInView=!1)),Ff.removeId(e.id),Hf.activeCardId=Ff.firstId}),!1),rn(t,f),xe()}const fm=window.SARAs_data||[],pm=function(t){fm.push(t)};function gm(t){t&&t.element_name&&t.element_text&&Wd.embedded_id&&function(t){const e={event:{info:{action:"component_click",name:"infographic - engage"},attributes:{component_name:"infographic",component_type:"engagement",source:"tia|webview|infographic-tools|v0",title:"Wahl-Tool",element_name:t.element_name,element_text:t.element_text,embedded_id:Wd.embedded_id}}};pm(e)}(t)}const vm=function(){let t=G(18),e=G(66),n=G(0),r=G(0),i=G(!1),s=G(!1),a=Tt((()=>de(t)+" / "+de(t)/de(n))),o=Tt((()=>de(c))),l=Tt((()=>{if(Bf?.config?.cards[0]?.primaryButton&&Bf?.config?.cards[0]?.primaryButton.url||Bf?.config?.cards[0]?.secondaryButton&&Bf?.config?.cards[0]?.secondaryButton.url){let t=Bf?.config?.cards[0]?.primaryButton?.url.split("/a-")[1];return t||(t=Bf?.config?.cards[0]?.primaryButton?.url.split("-a-")[1]),t||(t=Bf?.config?.cards[0]?.primaryButton?.url.split("a-")[1]),!(location.href.indexOf(t)>=0&&!Bf?.config?.cards[0]?.secondaryButton?.url)}return!1}));const c=Tt((()=>Wd.widgetTabHeight?Wd.widgetTabHeight:de(t)<18?Math.round(2.5*de(t))-1:de(t)<20?44:40));let u=G(gt([{chartHeight:0,textHeight:0,type:null,index:0,cardHeight:0},{chartHeight:0,textHeight:0,type:null,index:1,cardHeight:0},{chartHeight:0,textHeight:0,type:null,index:2,cardHeight:0}])),h=Tt((()=>{let t=0;return de(u).map(((e,n)=>{e.index===Wd.widgetHeightIndex&&(t=Math.max(t,e.chartHeight))})),t})),d=Tt((()=>{let t=0;return de(u).map(((e,n)=>{t=Math.max(t,e.textHeight)})),t})),f=Tt((()=>{let t=Bf?.cards[0]?.elements[2]?.hasData,e=t?0:Wd.widgetNoEuDataMinus||0,n=Wd.widgetMobileMaxCardHeightMinus||0;if(Wd.isDual){const t=Wd.widgetHeightByActiveIndex?de(r):Wd.widgetHeightIndex;return de(u)[t].cardHeight-100-n}return de(h)+de(d)+de(c)-(e+n)})),p=Tt((()=>{let e=5;return de(t)<16&&(e=40),16===de(t)&&(e=0),de(t)>18&&(e=30),de(t)>24&&(e=42),Wd.widgetMaxHeightPlus&&(e=Wd.widgetMaxHeightPlus),e})),g=Tt((()=>Wd.isDual?de(l)?de(f)+3*de(c)+de(p)-30:de(f)+3*de(c)+de(p)-50:de(f)+3*de(c)+de(p)));return{get width(){return de(n)},set width(t){X(n,gt(t))},get isTwoThirds(){return de(n)<830&&de(n)>=580&&!de(i)},get isVertical(){return Wd.isDual?de(n)<624:de(n)<580},get dimensions(){return de(u)},set dimensions(t){X(u,gt(t))},get maxChartHeight(){return de(h)},get maxTextHeight(){return de(d)},get maxCardHeight(){return de(f)},get maxWidgetHeight(){return de(g)},get activeIndex(){return de(r)},set activeIndex(t){X(r,gt(t))},set titleHeight(e){X(t,gt(e))},get titleHeight(){return de(t)},get debugString(){return""},get titleWidth(){return de(e)},set titleWidth(t){X(e,gt(t))},get titleWidthRatio(){return de(a)},get widgetTabHeight(){return de(o)},get maxWidgetHeightPlus(){return de(p)},set twoCards(t){X(i,gt(t))},get twoCards(){return de(i)},get checkBoxClicked(){return de(s)},set checkBoxClicked(t){X(s,gt(t))},get isButton(){return de(l)}}}();var mm=Ze(''),ym=Ze('
'),bm=Ze('
'),wm=Ze(''),_m=Ze('
'),xm=Ze('
'),km=(t,e,n,r)=>{de(e).select=n(),r({element_name:"forecasts-switch",element_text:"button"})},Sm=Ze(''),Tm=Ze('
'),Cm=Ze('
');function Mm(t,e){_e(e,!0);const n=Vn(e,"largeFont",3,!1),r={vertical:3,horizontal:n()?8:5};let i=Tt((()=>Bf.forecastsSelector));const s=t=>t?.getBoundingClientRect().width;let a=gt([]),o=Tt((()=>{if(de(l),Wd.isWidget){if(0===e.electionIndex){if(!Vf.options||a.length!==Vf.options.length)return;return s(a[Vf.selectedIndex])}if(!zf.options||a.length!==zf.options.length)return;return s(a[zf.selectedIndex])}if(de(i).options&&a.length===de(i).options.length)return s(a[de(i).selectedIndex])})),l=G(!1),c=Tt((()=>{if(de(l),!de(o))return;let t;return Wd.isWidget?0===e.electionIndex?(t=a.map((t=>s(t))).slice(0,Vf.selectedIndex).reduce(((t,e)=>t+e),0),t+Vf.selectedIndex*r.horizontal*2):(t=a.map((t=>s(t))).slice(0,zf.selectedIndex).reduce(((t,e)=>t+e),0),t+zf.selectedIndex*r.horizontal*2):(t=a.map((t=>s(t))).slice(0,de(i).selectedIndex).reduce(((t,e)=>t+e),0),t+de(i).selectedIndex*r.horizontal*2-1)}));setTimeout((()=>{X(l,!0)}),3);var u=nn();Ue(Pe(u),(()=>Wd.isWidget),(t=>{var i=nn();Ue(Pe(i),(()=>0===e.electionIndex),(t=>{var e=nn();Ue(Pe(e),(()=>Vf?.options&&Vf.options.length>1),(t=>{var e=bm(),i=Oe(e);Ye(i,65,(()=>Vf.options),We,((t,e,n)=>{let r=()=>Te(Te(e)).id;var i=mm();i.__change=()=>{Wd.isDual&&(vm.noAnimation=!0,setTimeout((()=>{vm.noAnimation=!1}),202)),Vf.select=r()},st((()=>{hn(i,"id",`forecasts-switch-input-${Ve(Bf?.data?.hash)}-${Ve(r())}`),un(i,r()===Vf.selected)})),rn(t,i)}));var s=Ae(Ae(i,!0));Ye(s,73,(()=>Vf.options),We,((t,e,n)=>{let r=()=>Te(Te(e)).id;var i=ym(),s=Oe(i);$n(s,((t,e)=>a[e]=t),(t=>a?.[t]),(()=>[Te(Te(e)).index]));var o=Oe(s);st((()=>{hn(s,"for",`forecasts-switch-input-${Ve(Bf?.data?.hash)}-${Ve(r())}`),fn(s,"checked",r()===Vf.selected),Fe(o,Te(Te(e)).label)})),rn(t,i)})),st((()=>{fn(e,"largeFont",n()),fn(s,"no-translate-x",void 0===de(c)),pn(s,"--translate-x",`${Ve(de(c))}px`),pn(s,"--active-label-width",`${Ve(de(o)+2*r.horizontal)}px`),pn(s,"--border-padding-vertical",`${Ve(r.vertical)}px`),pn(s,"--border-padding-horizontal",`${Ve(r.horizontal)}px`)})),rn(t,e)})),rn(t,e)}),(t=>{var e=nn();Ue(Pe(e),(()=>zf.options&&zf.options.length>1),(t=>{var e=xm(),i=Oe(e);Ye(i,65,(()=>zf.options),We,((t,e,n)=>{let r=()=>Te(Te(e)).id;var i=wm();i.__change=()=>{zf.select=r()},st((()=>{hn(i,"id",`forecasts-switch-input-${Ve(Bf?.data?.hash)}-${Ve(r())}`),un(i,r()===zf.selected)})),rn(t,i)}));var s=Ae(Ae(i,!0));Ye(s,73,(()=>zf.options),We,((t,e,n)=>{let r=()=>Te(Te(e)).id;var i=_m(),s=Oe(i);$n(s,((t,e)=>a[e]=t),(t=>a?.[t]),(()=>[Te(Te(e)).index]));var o=Oe(s);st((()=>{hn(s,"for",`forecasts-switch-input-${Ve(Bf?.data?.hash)}-${Ve(r())}`),fn(s,"checked",r()===zf.selected),Fe(o,Te(Te(e)).label)})),rn(t,i)})),st((()=>{fn(e,"largeFont",n()),fn(s,"no-translate-x",void 0===de(c)),pn(s,"--translate-x",`${Ve(de(c))}px`),pn(s,"--active-label-width",`${Ve(de(o)+2*r.horizontal)}px`),pn(s,"--border-padding-vertical",`${Ve(r.vertical)}px`),pn(s,"--border-padding-horizontal",`${Ve(r.horizontal)}px`)})),rn(t,e)}),null,!0),rn(t,e)})),rn(t,i)}),(t=>{var e=nn();Ue(Pe(e),(()=>de(i).options&&de(i).options.length>1),(t=>{var e=Cm(),s=Oe(e);Ye(s,65,(()=>de(i).options),We,((t,e,n)=>{let r=()=>Te(Te(e)).id;var s=Sm();s.__change=[km,i,r,gm],st((()=>{hn(s,"id",`forecasts-switch-input-${Ve(Bf?.data?.hash)}-${Ve(r())}`),un(s,r()===de(i).selected)})),rn(t,s)}));var l=Ae(Ae(s,!0));Ye(l,73,(()=>de(i).options),We,((t,e,n)=>{let r=()=>Te(Te(e)).id;var s=Tm(),o=Oe(s);$n(o,((t,e)=>a[e]=t),(t=>a?.[t]),(()=>[Te(Te(e)).index]));var l=Oe(o);st((()=>{hn(o,"for",`forecasts-switch-input-${Ve(Bf?.data?.hash)}-${Ve(r())}`),fn(o,"checked",r()===de(i).selected),Fe(l,Te(Te(e)).label)})),rn(t,s)})),st((()=>{fn(e,"largeFont",n()),fn(l,"no-translate-x",void 0===de(c)),pn(l,"--translate-x",`${Ve(de(c))}px`),pn(l,"--active-label-width",`${Ve(de(o)+2*r.horizontal)}px`),pn(l,"--border-padding-vertical",`${Ve(r.vertical)}px`),pn(l,"--border-padding-horizontal",`${Ve(r.horizontal)}px`)})),rn(t,e)}),null,!0),rn(t,e)})),rn(t,u),xe()}Ie(["change"]);const Rm=(t,e)=>{Object.entries(e).forEach((([e,n])=>{void 0!==n&&t.style.setProperty(`--${e}`,n)}))},Em=(t,e)=>(Rm(t,e),{update(e){Rm(t,e)}});var Om=Ze('
');var Pm=Ze('
');var Am=Ze('
'),$m=Ze('
'),Im=Ze("
"),Dm=Ze('
');function Nm(t,e){_e(e,!0);let n=Vn(e,"height",3,0),r=Vn(e,"value",3,!1),i=Vn(e,"text",3,!1),s=Vn(e,"diffValue",3,!1),a=Vn(e,"color",3,"#e3adf0"),o=Vn(e,"previousResult",3,!1),l=Vn(e,"width",3,"28px"),c=Vn(e,"year",3,!1),u=Vn(e,"bordered",3,!1),h=Vn(e,"shadowedVotes",3,!1),d=Vn(e,"yearExceedColumn",7),f=Vn(e,"maxBarHeight",7),p=Vn(e,"isCardAnimation",3,!1),g=Vn(e,"forbidAnimation",3,!0),v=Vn(e,"noPreviousResult",3,!1);const m=t=>`#${Number(t[0]).toString(16).padStart(2,"0")}${Number(t[1]).toString(16).padStart(2,"0")}${Number(t[2]).toString(16).padStart(2,"0")}`,y=t=>[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16)],b=(t,e,n)=>{let r=y(t),i=y(n);return r.map(((t,n)=>Math.round(e*t+(1-e)*i[n])))},w=Tt((()=>_f.darkMode?"#1f1e1c":"#ffffff")),_=Tt((()=>_f.darkMode?.5:.4)),x=Tt((()=>(_f.darkMode,.6)));let k=Tt((()=>({height:"calc("+n()+"% - 0px)",width:l(),color:a(),colorFlatBar:m(b(a(),de(_),de(w))),colorFlatTypo:m(b(a(),de(x),de(w)))}))),S=G(0);const T=Tt((()=>{if(!c())return{yearFitsNotInColumn:!0,enoughSpaceToShowYearAbove:!0,linkLineHeight:0,showYearAbove:!1,yearAboveColor:"",yearInsideColor:""};const t=(o(),f()-70),e=gt(_f.darkMode?"white":"black");return{yearFitsNotInColumn:!0,enoughSpaceToShowYearAbove:!0,linkLineHeight:t,showYearAbove:!0,yearAboveColor:gt(o()?de(k).rgbaColor40:a()),yearInsideColor:gt(o()?e:Vv(a()))}}));nt((()=>!o()&&d(de(T).yearFitsNotInColumn))),nt((()=>{(!f()||f()
{var e=$m(),n=Oe(e),r=Oe(n);Ue(Ae(Ae(n,!0)),(()=>!0),(t=>{var e=Am();st((()=>fn(e,"previousResult",o()))),rn(t,e)})),st((()=>{fn(n,"previousResult",o()),Fe(r,c())})),rn(t,e)}));var $=Ae(Ae(P,!0)),I=Oe($);Ue(I,i,(t=>{var e=Im(),n=Oe(e);st((()=>{dn(e,`text ${Ve(i())} svelte-1ky3xus`),Fe(n,i())})),rn(t,e)}));var D=Ae(Ae(I,!0));!function(t,e){_e(e,!0);const n=Vn(e,"votes",3,!1),r=Vn(e,"shadowed",3,!1),i=Vn(e,"isCardAnimation",3,!1);Vn(e,"forbidAnimation",3,!0);const s=um(n());nt((()=>{i()&&(s.value=n())}));var a=nn();Ue(Pe(a),n,(t=>{var e=Om(),i=Oe(e);st((()=>{fn(e,"shadowed",r()),fn(e,"liveUpdate",s.showLiveUpdate),Fe(i,n())})),rn(t,e)})),rn(t,a),xe()}(D,{get votes(){return r()},get shadowed(){return h()},get isCardAnimation(){return p()},get forbidAnimation(){return g()}}),Ue(Ae(Ae(D,!0)),s,(t=>{var e=nn();!function(t,e){_e(e,!0);const n=Vn(e,"diffValue",3,!1),r=Vn(e,"isCardAnimation",3,!1);Vn(e,"forbidAnimation",3,!0);const i=um(n());nt((()=>{r()&&(i.value=n())}));var s=Pm(),a=Oe(s),o=Oe(a);st((()=>{fn(a,"liveUpdate",i.showLiveUpdate),Fe(o,n())})),rn(t,s),xe()}(Pe(e),{get diffValue(){return s()},get isCardAnimation(){return p()},get forbidAnimation(){return g()}}),rn(t,e)})),st((()=>{fn(C,"previousResult",o()),Fe(R,d()?"yes":"no"),Fe(O,f()),fn(A,"previousResult",o()),fn(A,"bordered",u()),fn($,"noPreviousResult",v())})),ln(C,((t,e)=>Em(t,e)),(()=>de(k))),Pn(A,"clientHeight",(t=>X(S,t))),rn(t,C),xe()}var Lm=Ze('');function Hm(t,e){_e(e,!0);const n=Vn(e,"width",3,"56px"),r=Vn(e,"marginPreviousResult",3,"-6px"),i=Vn(e,"noPreviousResult",3,!1),s=Vn(e,"groupMargin",3,"0"),a=Vn(e,"children",3,void 0);let o=Tt((()=>({width:n(),marginPreviousResult:r(),noPreviousResult:i(),groupMargin:s()})));var l=Lm(),c=Oe(l);an(a,Oe(c)),st((()=>fn(l,"noPreviousResult",i()))),ln(l,((t,e)=>Em(t,e)),(()=>de(o))),rn(t,l),xe()}var Fm=Ze("<!> <!>",1),Vm=Ze(''),zm=Ze("<!> <!>",1),jm=Ze('<!>
');function Um(t,e){_e(e,!0);let n=Vn(e,"currentYear",3,""),r=Vn(e,"previousYear",3,""),i=Vn(e,"resultType",3,""),s=Vn(e,"scrollLeft",3,0),a=Vn(e,"showLeftShadow",7,!1),o=Vn(e,"showRightShadow",7,!1),l=Vn(e,"noTopPadding",3,!1),c=Vn(e,"isCardAnimation",3,!1),u=Vn(e,"forbidAnimation",3,!0),h=Vn(e,"hideOthersIfNotEnoughSpace",3,!1),d=G(null),f=G(0),p=G(0),g=gt([]),v=gt([]),m=gt([]),y=gt([]);nt((()=>{e.results,de(f),a(s()>0);const t=de(d)?.scrollWidth-de(d)?.clientWidth;o(s()Wd.widthHideOthers?Wd.widthHideOthers:e.widthHideOthers?e.widthHideOthers:300));var w=jm();$n(w,(t=>X(d,gt(t))),(()=>de(d))),Ue(Oe(w),(()=>"double"===i()),(t=>{var i=nn();Ye(Pe(i),65,(()=>e.results),We,((t,i,s)=>{var a=nn();Ye(Pe(a),71,(()=>Te(i).$results),((t,e)=>Te(t).partyId+Te(e)),((t,i,a)=>{var o=nn(),l=Pe(o),h=Tt((()=>!Te(i).$previousHeightPercentage)),d=Tt((()=>1===Te(a)?e.css.groupMargin:"0"));Hm(l,{get width(){return e.css.columnWidth},get marginPreviousResult(){return e.css.marginPreviousResult},get noPreviousResult(){return de(h)},get groupMargin(){return de(d)},children:(t,o)=>{var l=Fm(),h=Pe(l);Ue(h,(()=>Te(i).$previousHeightPercentage),(t=>{var n=nn(),o=Pe(n),l=Tt((()=>0===Te(s)&&0===Te(a)&&r())),h=Tt((()=>1===Te(a)));Nm(o,{get height(){return Te(i).$previousHeightPercentage},get width(){return e.css.columnWidth},previousResult:!0,get year(){return de(l)},get color(){return Te(i).$meta.$color},get bordered(){return de(h)},get yearExceedColumn(){return m[Te(s)]},set yearExceedColumn(t){m[Te(s)]=t},get maxBarHeight(){return y[Te(s)]},set maxBarHeight(t){y[Te(s)]=t},id:Te(s),get isCardAnimation(){return c()},get forbidAnimation(){return u()}}),rn(t,n)}));var d=Ae(Ae(h,!0)),f=Tt((()=>Te(i).$diffValue?.str)),p=Tt((()=>0===Te(s)&&0===Te(a)&&n())),b=Tt((()=>1===Te(a)));Nm(d,{get height(){return Te(i).$heightPercentage},get width(){return e.css.columnWidth},get value(){return Te(i).$shareValue.str},get diffValue(){return de(f)},get text(){return Te(i).$meta.abbr},get year(){return de(p)},get color(){return Te(i).$meta.$color},get bordered(){return de(b)},shadowedVotes:!0,get yearExceedColumn(){return g[Te(s)]},set yearExceedColumn(t){g[Te(s)]=t},get maxBarHeight(){return v[Te(s)]},set maxBarHeight(t){v[Te(s)]=t},id:Te(s),get isCardAnimation(){return c()},get forbidAnimation(){return u()}}),rn(t,l)},$$slots:{default:!0}}),rn(t,o)})),rn(t,a)})),rn(t,i)}),(t=>{var i=nn();Ye(Pe(i),71,(()=>e.results),((t,e)=>Te(t).partyId),((t,i,s)=>{var a=nn();Ue(Pe(a),(()=>((t,n)=>{let r=!0;return h()&&de(f)7&&t.$meta.id===e.partyIdForOthers&&(r=!1),r})(Te(i),Te(s))),(t=>{var a=nn(),o=Pe(a),l=Tt((()=>!Te(i).$previousHeightPercentage));Hm(o,{get width(){return e.css.columnWidth},get marginPreviousResult(){return e.css.marginPreviousResult},get noPreviousResult(){return de(l)},children:(t,a)=>{var o=zm(),l=Pe(o);Ue(l,(()=>Te(i).$previousHeightPercentage),(t=>{var n=nn(),a=Pe(n),o=Tt((()=>0===Te(s)&&r()));Nm(a,{get height(){return Te(i).$previousHeightPercentage},get width(){return e.css.columnWidth},previousResult:!0,get year(){return de(o)},get color(){return Te(i).$meta.$color},get yearExceedColumn(){return m[Te(s)]},set yearExceedColumn(t){m[Te(s)]=t},get maxBarHeight(){return y[Te(s)]},set maxBarHeight(t){y[Te(s)]=t},get id(){return Te(s)},get isCardAnimation(){return c()},get forbidAnimation(){return u()}}),rn(t,n)}),(t=>{rn(t,Vm())}));var h=Ae(Ae(l,!0)),d=Tt((()=>Te(i).$diffValue?.str)),f=Tt((()=>0===Te(s)&&n())),p=Tt((()=>!Te(i).$previousHeightPercentage));Nm(h,{get height(){return Te(i).$heightPercentage},get width(){return e.css.columnWidth},get value(){return Te(i).$shareValue.str},get diffValue(){return de(d)},get text(){return Te(i).$meta.abbr},get year(){return de(f)},get color(){return Te(i).$meta.$color},get yearExceedColumn(){return g[Te(s)]},set yearExceedColumn(t){g[Te(s)]=t},get maxBarHeight(){return v[Te(s)]},set maxBarHeight(t){v[Te(s)]=t},get id(){return Te(s)},get isCardAnimation(){return c()},get forbidAnimation(){return u()},get noPreviousResult(){return de(p)}}),rn(t,o)},$$slots:{default:!0}}),rn(t,a)})),rn(t,a)})),rn(t,i)})),st((()=>fn(w,"no-top-padding",l()))),ln(w,((t,e)=>Em(t,e)),(()=>e.css)),Pn(w,"clientWidth",(t=>X(f,t))),Pn(w,"clientHeight",(t=>X(p,t))),rn(t,w),xe()}const Bm=t=>t;function qm(t){const e=t-1;return e*e*e+1}function Wm(t,{delay:e=0,duration:n=400,easing:r=Bm}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:r,css:t=>"opacity: "+t*i}}function Ym(t,{delay:e=0,duration:n=400,easing:r=qm,axis:i="y"}={}){const s=getComputedStyle(t),a=+s.opacity,o="y"===i?"height":"width",l=parseFloat(s[o]),c="y"===i?["top","bottom"]:["left","right"],u=c.map((t=>`${t[0].toUpperCase()}${t.slice(1)}`)),h=parseFloat(s[`padding${u[0]}`]),d=parseFloat(s[`padding${u[1]}`]),f=parseFloat(s[`margin${u[0]}`]),p=parseFloat(s[`margin${u[1]}`]),g=parseFloat(s[`border${u[0]}Width`]),v=parseFloat(s[`border${u[1]}Width`]);return{delay:e,duration:n,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*a};${o}: ${t*l}px;padding-${c[0]}: ${t*h}px;padding-${c[1]}: ${t*d}px;margin-${c[0]}: ${t*f}px;margin-${c[1]}: ${t*p}px;border-${c[0]}-width: ${t*g}px;border-${c[1]}-width: ${t*v}px;`}}function Gm(t,e){for(const n in e)t[n]=e[n];return t}function Km({fallback:t,...e}){const n=new Map,r=new Map;function i(n,r,i){return(s,a)=>(n.set(a.key,s),()=>{if(r.has(a.key)){const t=r.get(a.key);return r.delete(a.key),function(t,n,r){const{delay:i=0,duration:s=(t=>30*Math.sqrt(t)),easing:a=qm}=Gm(Gm({},e),r),o=t.getBoundingClientRect(),l=n.getBoundingClientRect(),c=o.left-l.left,u=o.top-l.top,h=o.width/l.width,d=o.height/l.height,f=Math.sqrt(c*c+u*u),p=getComputedStyle(n),g="none"===p.transform?"":p.transform,v=+p.opacity;return{delay:i,duration:"function"==typeof s?s(f):s,easing:a,css:(t,e)=>`\n\t\t\t opacity: ${t*v};\n\t\t\t transform-origin: top left;\n\t\t\t transform: ${g} translate(${e*c}px,${e*u}px) scale(${t+(1-t)*h}, ${t+(1-t)*d});\n\t\t `}}(t,s,a)}return n.delete(a.key),t&&t(s,a,i)})}return[i(r,n,!1),i(n,r,!0)]}function Xm(t={}){const{cursor:e=!0,enabled:n=!0,axis:r="x",event:i="pointer"}=t;return{enabled:n,axes:{x:"x"===r||"both"===r,y:"y"===r||"both"===r},events:"pointer"===i?{down:"pointerdown",up:"pointerup",move:"pointermove",leave:"pointerleave"}:{down:"mousedown",up:"mouseup",move:"mousemove",leave:"mouseleave"},cursor:e}}function Qm(t,e={}){let n,r,i,s,a=!1,{enabled:o,axes:l,events:c,cursor:u}=Xm(e);function h(){const e=new CustomEvent("dragging",{bubbles:!0,cancelable:!0});t.dispatchEvent(e)}function d(e){m(!0),a=!0,n=e.pageX-t.offsetLeft,i=t.scrollLeft,r=e.pageY-t.offsetTop,s=t.scrollTop}function f(){m(),a=!1,t.style.setProperty("scroll-behavior","smooth"),function(){const e=new CustomEvent("draggingend",{bubbles:!0,cancelable:!0});t.dispatchEvent(e)}()}function p(e){if(a){if(e.preventDefault(),t.style.setProperty("scroll-behavior","auto"),l.x){const r=e.pageX-t.offsetLeft-n;t.scrollLeft=i-r,Math.abs(r)>0&&h()}if(l.y){const n=e.pageY-t.offsetTop-r;t.scrollTop=s-n,Math.abs(n)>0&&h()}}}function g(){t&&(t.addEventListener(c.down,d),t.addEventListener(c.leave,f),t.addEventListener(c.up,f),t.addEventListener(c.move,p))}function v(){t&&(t.removeEventListener(c.down,d),t.removeEventListener(c.leave,f),t.removeEventListener(c.up,f),t.removeEventListener(c.move,p))}function m(e=!1){t&&(u?t.style.cursor=e?"grabbing":"grab":t.style.removeProperty("cursor"))}return o&&(m(),g()),{update(t={}){v(),({enabled:o,axes:l,events:c,cursor:u}=Xm(t)),m(),g()},destroy(){v()}}}var Jm=tn('');function Zm(t,e){const n=Vn(e,"type",3,"dark"),r=Vn(e,"direction",3,"bottom"),i=Tt((()=>"bottom"===r()?"rotate(180deg)":"top"===r()?"rotate(0deg)":"left"===r()?"rotate(-90deg)":"right"===r()?"rotate(90deg)":"rotate(180deg)"));var s=Jm(),a=Oe(s);st((()=>{pn(s,"transform",de(i)),fn(a,"light","light"===n())})),rn(t,s)}function ty(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ey(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var ny,ry,iy,sy,ay,oy,ly,cy,uy,hy,dy,fy={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},py={duration:.5,overwrite:!1,delay:0},gy=1e8,vy=1e-8,my=2*Math.PI,yy=my/4,by=0,wy=Math.sqrt,_y=Math.cos,xy=Math.sin,ky=function(t){return"string"==typeof t},Sy=function(t){return"function"==typeof t},Ty=function(t){return"number"==typeof t},Cy=function(t){return void 0===t},My=function(t){return"object"==typeof t},Ry=function(t){return!1!==t},Ey=function(){return"undefined"!=typeof window},Oy=function(t){return Sy(t)||ky(t)},Py="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Ay=Array.isArray,$y=/(?:-?\.?\d|\.)+/gi,Iy=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Dy=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ny=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ly=/[+-]=-?[.\d]+/,Hy=/[^,'"\[\]\s]+/gi,Fy=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Vy={},zy={},jy=function(t){return(zy=vb(t,Vy))&&v_},Uy=function(t,e){return!e&&void 0},By=function(t,e){return t&&(Vy[t]=e)&&zy&&(zy[t]=e)||Vy},qy=function(){return 0},Wy={suppressEvents:!0,isStart:!0,kill:!1},Yy={suppressEvents:!0,kill:!1},Gy={suppressEvents:!0},Ky={},Xy=[],Qy={},Jy={},Zy={},tb=30,eb=[],nb="",rb=function(t){var e,n,r=t[0];if(My(r)||Sy(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=eb.length;n--&&!eb[n].targetTest(r););e=eb[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Ow(t[n],e)))||t.splice(n,1);return t},ib=function(t){return t._gsap||rb(Yb(t))[0]._gsap},sb=function(t,e,n){return(n=t[e])&&Sy(n)?t[e]():Cy(n)&&t.getAttribute&&t.getAttribute(e)||n},ab=function(t,e){return(t=t.split(",")).forEach(e)||t},ob=function(t){return Math.round(1e5*t)/1e5||0},lb=function(t){return Math.round(1e7*t)/1e7||0},cb=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},ub=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++rs;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t,e},_b=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,s=e._next;i?i._next=s:t[n]===e&&(t[n]=s),s?s._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},xb=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},kb=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Sb=function(t,e,n,r){return t._startAt&&(ry?t._startAt.revert(Yy):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Tb=function t(e){return!e||e._ts&&t(e.parent)},Cb=function(t){return t._repeat?Mb(t._tTime,t=t.duration()+t._rDelay)*t:0},Mb=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Rb=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Eb=function(t){return t._end=lb(t._start+(t._tDur/Math.abs(t._ts||t._rts||vy)||0))},Ob=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=lb(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Eb(t),n._dirty||kb(n,t)),t},Pb=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._startvy)&&e.render(n,!0)),kb(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-vy}},Ab=function(t,e,n,r){return e.parent&&xb(e),e._start=lb((Ty(n)?n:n||t!==sy?Vb(t,n,e):t._time)+e._delay),e._end=lb(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),wb(t,e,"_first","_last",t._sort?"_start":0),Nb(e)||(t._recent=e),r||Pb(t,e),t._ts<0&&Ob(t,t._tTime),t},$b=function(t,e){return Vy.ScrollTrigger?Vy.ScrollTrigger.create(e,t):void 0},Ib=function(t,e,n,r,i){return Hw(t,e,i),t._initted?!n&&t._pt&&!ry&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&uy!==mw.frame?(Xy.push(t),t._lazy=[i,r],1):void 0:1},Db=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Nb=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Lb=function(t,e,n,r){var i=t._repeat,s=lb(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:lb(s*(i+1)+t._rDelay*i):s,a>0&&!r&&Ob(t,t._tTime=t._tDur*a),t.parent&&Eb(t),n||kb(t.parent,t),t},Hb=function(t){return t instanceof Aw?kb(t):Lb(t,t._dur)},Fb={_start:0,endTime:qy,totalDuration:qy},Vb=function t(e,n,r){var i,s,a,o=e.labels,l=e._recent||Fb,c=e.duration()>=gy?l.endTime(!1):e._dur;return ky(n)&&(isNaN(n)||n in o)?(s=n.charAt(0),a="%"===n.substr(-1),i=n.indexOf("="),"<"===s||">"===s?(i>=0&&(n=n.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(i<0?l:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=c),o[n]):(s=parseFloat(n.charAt(i-1)+n.substr(i+1)),a&&r&&(s=s/100*(Ay(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+s:c+s)):null==n?c:+n},zb=function(t,e,n){var r,i,s=Ty(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=n,t){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Ry(i.vars.inherit)&&i.parent;o.immediateRender=Ry(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new Uw(e[0],o,e[a+1])},jb=function(t,e){return t||0===t?e(t):e},Ub=function(t,e,n){return ne?e:n},Bb=function(t,e){return ky(t)&&(e=Fy.exec(t))?e[1]:""},qb=[].slice,Wb=function(t,e){return t&&My(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&My(t[0]))&&!t.nodeType&&t!==ay},Yb=function(t,e,n){return iy&&!e&&iy.selector?iy.selector(t):!ky(t)||n||!oy&&yw()?Ay(t)?function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return ky(t)&&!e||Wb(t,1)?(r=n).push.apply(r,Yb(t)):n.push(t)}))||n}(t,n):Wb(t)?qb.call(t,0):t?[t]:[]:qb.call((e||ly).querySelectorAll(t),0)},Gb=function(t){return t=Yb(t)[0]||Uy()||{},function(e){var n=t.current||t.nativeElement||t;return Yb(e,n.querySelectorAll?n:n===t?Uy()||ly.createElement("div"):t)}},Kb=function(t){return t.sort((function(){return.5-Math.random()}))},Xb=function(t){if(Sy(t))return t;var e=My(t)?t:{each:t},n=Tw(e.ease),r=e.from||0,i=parseFloat(e.base)||0,s={},a=r>0&&r<1,o=isNaN(r)||a,l=e.axis,c=r,u=r;return ky(r)?c=u={center:.5,edges:.5,end:1}[r]||0:!a&&o&&(c=r[0],u=r[1]),function(t,a,h){var d,f,p,g,v,m,y,b,w,_=(h||e).length,x=s[_];if(!x){if(!(w="auto"===e.grid?0:(e.grid||[1,gy])[1])){for(y=-gy;y<(y=h[w++].getBoundingClientRect().left)&&w<_;);w<_&&w--}for(x=s[_]=[],d=o?Math.min(w,_)*c-.5:r%w,f=w===gy?0:o?_*u/w-.5:r/w|0,y=0,b=gy,m=0;m<_;m++)p=m%w-d,g=f-(m/w|0),x[m]=v=l?Math.abs("y"===l?g:p):wy(p*p+g*g),v>y&&(y=v),v_?_-1:l?"y"===l?_/w:w:Math.max(w,_/w))||0)*("edges"===r?-1:1),x.b=_<0?i-_:i,x.u=Bb(e.amount||e.each)||0,n=n&&_<0?kw(n):n}return _=(x[t]-x.min)/x.max||0,lb(x.b+(n?n(_):_)*x.v)+x.u}},Qb=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=lb(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Ty(n)?0:Bb(n))}},Jb=function(t,e){var n,r,i=Ay(t);return!i&&My(t)&&(n=i=t.radius||gy,t.values?(t=Yb(t.values),(r=!Ty(t[0]))&&(n*=n)):t=Qb(t.increment)),jb(e,i?Sy(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,s,a=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),l=gy,c=0,u=t.length;u--;)(i=r?(i=t[u].x-a)*i+(s=t[u].y-o)*s:Math.abs(t[u]-a))(i=Math.abs(i))&&(s=r,o=i);return s},iw=function(t,e,n){var r,i,s,a=t.vars,o=a[e],l=iy,c=t._ctx;if(o)return r=a[e+"Params"],i=a.callbackScope||t,n&&Xy.length&&hb(),c&&(iy=c),s=r?o.apply(i,r):o.call(i),iy=l,s},sw=function(t){return xb(t),t.scrollTrigger&&t.scrollTrigger.kill(!!ry),t.progress()<1&&iw(t,"onInterrupt"),t},aw=[],ow=function(t){if(t)if(t=!t.name&&t.default||t,Ey()||t.headless){var e=t.name,n=Sy(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:qy,render:Jw,add:Nw,kill:t_,modifier:Zw,rawVars:0},s={targetTest:0,get:0,getSetter:Gw,aliases:{},register:0};if(yw(),t!==r){if(Jy[e])return;gb(r,gb(yb(t,i),s)),vb(r.prototype,vb(i,yb(t,s))),Jy[r.prop=e]=r,t.targetTest&&(eb.push(r),Ky[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}By(e,r),t.register&&t.register(v_,r,r_)}else aw.push(t)},lw=255,cw={aqua:[0,lw,lw],lime:[0,lw,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,lw],navy:[0,0,128],white:[lw,lw,lw],olive:[128,128,0],yellow:[lw,lw,0],orange:[lw,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[lw,0,0],pink:[lw,192,203],cyan:[0,lw,lw],transparent:[lw,lw,lw,0]},uw=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*lw+.5|0},hw=function(t,e,n){var r,i,s,a,o,l,c,u,h,d,f=t?Ty(t)?[t>>16,t>>8&lw,t&lw]:0:cw.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),cw[t])f=cw[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+r+r+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&lw,f&lw,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&lw,t&lw]}else if("hsl"===t.substr(0,3))if(f=d=t.match($y),e){if(~t.indexOf("="))return f=t.match(Iy),n&&f.length<4&&(f[3]=1),f}else a=+f[0]%360/360,o=+f[1]/100,r=2*(l=+f[2]/100)-(i=l<=.5?l*(o+1):l+o-l*o),f.length>3&&(f[3]*=1),f[0]=uw(a+1/3,r,i),f[1]=uw(a,r,i),f[2]=uw(a-1/3,r,i);else f=t.match($y)||cw.transparent;f=f.map(Number)}return e&&!d&&(r=f[0]/lw,i=f[1]/lw,s=f[2]/lw,l=((c=Math.max(r,i,s))+(u=Math.min(r,i,s)))/2,c===u?a=o=0:(h=c-u,o=l>.5?h/(2-c-u):h/(c+u),a=c===r?(i-s)/h+(io||b<0)&&(c+=b-l),((g=(m=(u+=b)-c)-d)>0||w)&&(y=++r.frame,i=m-1e3*r.time,r.time=m/=1e3,d+=g+(g>=h?4:h-g),v=1),w||(t=e(n)),v)for(s=0;s=e&&s--},_listeners:f}}(),yw=function(){return!dy&&mw.wake()},bw={},ww=/^[\d.\-M][\d.\-,\s]/,_w=/["']/g,xw=function(t){for(var e,n,r,i={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,l=s.length;o1&&n.config?n.config.apply(null,~t.indexOf("{")?[xw(e[1])]:function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),a=s/my*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*xy((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Mw(o);return s=my/s,l.config=function(n,r){return t(e,n,r)},l},Ew=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Mw(r);return i.config=function(n){return t(e,n)},i};ab("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Cw(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),bw.Linear.easeNone=bw.none=bw.Linear.easeIn,Cw("Elastic",Rw("in"),Rw("out"),Rw()),function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(s){return s0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Lb(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(yw(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ob(this,t),!n._dp||n.parent||Pb(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&Ab(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===vy||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),db(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Cb(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Cb(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Mb(this._tTime,n)+1:1},e.timeScale=function(t,e){if(!arguments.length)return this._rts===-vy?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?Rb(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-vy?0:this._rts,this.totalTime(Ub(-Math.abs(this._delay),this._tDur,n),!1!==e),Eb(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(yw(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==vy&&(this._tTime-=vy)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Ab(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Ry(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Rb(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=Gy);var e=ry;return ry=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),ry=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Hb(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Hb(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Vb(this,t),Ry(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Ry(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-vy:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-vy,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Sy(t)?t:pb,i=function(){var t=e.then;e.then=null,Sy(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){sw(this)},t}();gb(Pw.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-vy,_prom:0,_ps:!1,_rts:1});var Aw=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=Ry(e.sortChildren),sy&&Ab(e.parent||sy,ty(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&$b(ty(r),e.scrollTrigger),r}ey(e,t);var n=e.prototype;return n.to=function(t,e,n){return zb(0,arguments,this),this},n.from=function(t,e,n){return zb(1,arguments,this),this},n.fromTo=function(t,e,n,r){return zb(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,bb(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Uw(t,e,Vb(this,n),1),this},n.call=function(t,e,n){return Ab(this,Uw.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,s,a){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=s,n.onCompleteParams=a,n.parent=this,new Uw(t,n,Vb(this,i)),this},n.staggerFrom=function(t,e,n,r,i,s,a){return n.runBackwards=1,bb(n).immediateRender=Ry(n.immediateRender),this.staggerTo(t,e,n,r,i,s,a)},n.staggerFromTo=function(t,e,n,r,i,s,a,o){return r.startAt=n,bb(r).immediateRender=Ry(r.immediateRender),this.staggerTo(t,e,r,i,s,a,o)},n.render=function(t,e,n){var r,i,s,a,o,l,c,u,h,d,f,p,g=this._time,v=this._dirty?this.totalDuration():this._tDur,m=this._dur,y=t<=0?0:lb(t),b=this._zTime<0!=t<0&&(this._initted||!m);if(this!==sy&&y>v&&t>=0&&(y=v),y!==this._tTime||n||b){if(g!==this._time&&m&&(y+=this._time-g,t+=this._time-g),r=y,h=this._start,l=!(u=this._ts),b&&(m||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,o=m+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,n);if(r=lb(y%o),y===v?(a=this._repeat,r=m):((a=~~(y/o))&&a===y/o&&(r=m,a--),r>m&&(r=m)),d=Mb(this._tTime,o),!g&&this._tTime&&d!==a&&this._tTime-d*o-this._dur<=0&&(d=a),f&&1&a&&(r=m-r,p=1),a!==d&&!this._lock){var w=f&&1&d,_=w===(f&&1&a);if(ae)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start=g&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||r>=i._start)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){c=0,s&&(y+=this._zTime=-vy);break}}i=s}else{i=this._last;for(var x=t<0?t:r;i;){if(s=i._prev,(i._act||x<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(x-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(x-i._start)*i._ts,e,n||ry&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!l){c=0,s&&(y+=this._zTime=x?-vy:vy);break}}i=s}}if(c&&!e&&(this.pause(),c.render(r>=g?0:-vy)._zTime=r>=g?1:-1,this._ts))return this._start=h,Eb(this),this.render(t,e,n);this._onUpdate&&!e&&iw(this,"onUpdate",!0),(y===v&&this._tTime>=this.totalDuration()||!y&&g)&&(h!==this._start&&Math.abs(u)===Math.abs(this._ts)||this._lock||((t||!m)&&(y===v&&this._ts>0||!y&&this._ts<0)&&xb(this,1),e||t<0&&!g||!y&&!g&&v||(iw(this,y===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(Ty(e)||(e=Vb(this,e,t)),!(t instanceof Pw)){if(Ay(t))return t.forEach((function(t){return n.add(t,e)})),this;if(ky(t))return this.addLabel(t,e);if(!Sy(t))return this;t=Uw.delayedCall(0,t)}return this!==t?Ab(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-gy);for(var i=[],s=this._first;s;)s._start>=r&&(s instanceof Uw?e&&i.push(s):(n&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,n)))),s=s._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return ky(t)?this.removeLabel(t):Sy(t)?this.killTweensOf(t):(_b(this,t),t===this._recent&&(this._recent=this._last),kb(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=lb(mw.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=Vb(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=Uw.delayedCall(0,e||qy,n);return r.data="isPause",this._hasPause=1,Ab(this,r,Vb(this,t))},n.removePause=function(t){var e=this._first;for(t=Vb(this,t);e;)e._start===t&&"isPause"===e.data&&xb(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)$w!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=Yb(t),s=this._first,a=Ty(e);s;)s instanceof Uw?ub(s._targets,i)&&(a?(!$w||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&r.push(s):(n=s.getTweensOf(i,e)).length&&r.push.apply(r,n),s=s._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=Vb(r,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,c=s.immediateRender,u=Uw.to(r,gb({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale())||vy,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale());u._dur!==t&&Lb(u,t,0,1).render(u._time,!0,!0),n=1}o&&o.apply(u,l||[])}},e));return c?u.render(0):u},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,gb({startAt:{time:Vb(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),rw(this,Vb(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),rw(this,Vb(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+vy)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,s=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in s)s[r]>=n&&(s[r]+=t);return kb(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),kb(this)},n.totalDuration=function(t){var e,n,r,i=0,s=this,a=s._last,o=gy;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(r=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(n=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Ab(s,a,n-a._delay,1)._lock=0):o=n,n<0&&a._ts&&(i-=n,(!r&&!s._dp||r&&r.smoothChildTiming)&&(s._start+=n/s._ts,s._time-=n,s._tTime-=n),s.shiftChildren(-n,!1,-1/0),o=0),a._end>i&&a._ts&&(i=a._end),a=e;Lb(s,s===sy&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(sy._ts&&(db(sy,Rb(t,sy)),uy=mw.frame),mw.frame>=tb){tb+=fy.autoSleep||120;var e=sy._first;if((!e||!e._ts)&&fy.autoSleep&&mw._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||mw.sleep()}}},e}(Pw);gb(Aw.prototype,{_lock:0,_hasPause:0,_forcing:0});var $w,Iw,Dw=function(t,e,n,r,i,s,a){var o,l,c,u,h,d,f,p,g=new r_(this._pt,t,e,0,1,Qw,null,i),v=0,m=0;for(g.b=n,g.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=ew(r)),s&&(s(p=[n,r],t,e),n=p[0],r=p[1]),l=n.match(Ny)||[];o=Ny.exec(r);)u=o[0],h=r.substring(v,o.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),u!==l[m++]&&(d=parseFloat(l[m-1])||0,g._pt={_next:g._pt,p:h||1===m?h:",",s:d,c:"="===u.charAt(1)?cb(d,u)-d:parseFloat(u)-d,m:c&&c<4?Math.round:0},v=Ny.lastIndex);return g.c=v")})),a.duration();else{for(u in l={},w)"ease"===u||"easeEach"===u||Fw(u,w[u],l,w.easeEach);for(u in l)for(C=l[u].sort((function(t,e){return t.t-e.t})),E=0,o=0;of-vy&&!g?f:tp&&(r=p)),(l=this._yoyo&&1&s)&&(h=this._yEase,r=p-r),o=Mb(this._tTime,a),r===d&&!n&&this._initted&&s===o)return this._tTime=v,this;s!==o&&(u&&this._yEase&&Sw(u,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==a&&this._initted&&(this._lock=n=1,this.render(lb(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(Ib(this,g?t:r,n,e,v))return this._tTime=0,this;if(!(d===this._time||n&&this.vars.repeatRefresh&&s!==o))return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=v,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(h||this._ease)(r/p),this._from&&(this.ratio=c=1-c),r&&!d&&!e&&!s&&(iw(this,"onStart"),this._tTime!==v))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;u&&u.render(t<0?t:u._dur*u._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&Sb(this,t,0,n),iw(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&iw(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(g&&!this._onUpdate&&Sb(this,t,0,!0),(t||!p)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&xb(this,1),e||g&&!d||!(v||d||l)||(iw(this,v===f?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom()))}}else!function(t,e,n,r){var i,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&Db(t)&&(t._initted||!Nb(t))||(t._ts<0||t._dp._ts<0)&&!Nb(t))?0:1,c=t._rDelay,u=0;if(c&&t._repeat&&(u=Ub(0,t._tDur,e),s=Mb(u,c),t._yoyo&&1&s&&(l=1-l),s!==Mb(t._tTime,c)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||ry||r||t._zTime===vy||!e&&t._zTime){if(!t._initted&&Ib(t,e,r,n,u))return;for(a=t._zTime,t._zTime=e||(n?vy:0),n||(n=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=u,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Sb(t,e,0,!0),t._onUpdate&&!n&&iw(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&iw(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&xb(t,1),n||ry||(iw(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r,i){dy||mw.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Hw(this,s),function(t,e,n,r,i,s,a,o){var l,c,u,h,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],u=t._ptLookup,h=t._targets.length;h--;){if((l=u[h][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return Iw=1,t.vars[e]="+=0",Hw(t,a),Iw=0,o?Uy():1;d.push(l)}for(h=d.length;h--;)(l=(c=d[h])._pt||c).s=!r&&0!==r||i?l.s+(r||0)+s*l.c:r,l.c=n-l.s,c.e&&(c.e=ob(n)+Bb(c.e)),c.b&&(c.b=l.s+Bb(c.b))}(this,t,e,n,r,this._ease(s/this._dur),s,i)?this.resetTo(t,e,n,r,1):(Ob(this,0),this.parent||wb(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?sw(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,$w&&!0!==$w.vars.overwrite)._first||sw(this),this.parent&&n!==this.timeline.totalDuration()&&Lb(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,s,a,o,l,c,u=this._targets,h=t?Yb(t):u,d=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(u,h))return"all"===e&&(this._pt=0),sw(this);for(r=this._op=this._op||[],"all"!==e&&(ky(e)&&(o={},ab(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,s,a=t[0]?ib(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(r in n=vb({},e),o)if(r in n)for(i=(s=o[r].split(",")).length;i--;)n[s[i]]=n[r];return n}(u,e)),c=u.length;c--;)if(~h.indexOf(u[c]))for(o in i=d[c],"all"===e?(r[c]=e,a=i,s={}):(s=r[c]=r[c]||{},a=e),a)(l=i&&i[o])&&("kill"in l.d&&!0!==l.d.kill(o)||_b(this,l,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&f&&sw(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return zb(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return zb(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return sy.killTweensOf(t,e,n)},e}(Pw);gb(Uw.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ab("staggerTo,staggerFrom,staggerFromTo",(function(t){Uw[t]=function(){var e=new Aw,n=qb.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var Bw=function(t,e,n){return t[e]=n},qw=function(t,e,n){return t[e](n)},Ww=function(t,e,n,r){return t[e](r.fp,n)},Yw=function(t,e,n){return t.setAttribute(e,n)},Gw=function(t,e){return Sy(t[e])?qw:Cy(t[e])&&t.setAttribute?Yw:Bw},Kw=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Xw=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Qw=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Jw=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Zw=function(t,e,n,r){for(var i,s=this._pt;s;)i=s._next,s.p===r&&s.modifier(t,e,n),s=i},t_=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?_b(this,r,"_pt"):r.dep||(e=1),r=n;return!e},e_=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},n_=function(t){for(var e,n,r,i,s=t._pt;s;){for(e=s._next,n=r;n&&n.pr>s.pr;)n=n._next;(s._prev=n?n._prev:i)?s._prev._next=s:r=s,(s._next=n)?n._prev=s:i=s,s=e}t._pt=r},r_=function(){function t(t,e,n,r,i,s,a,o,l){this.t=e,this.s=r,this.c=i,this.p=n,this.r=s||Kw,this.d=a||this,this.set=o||Bw,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=e_,this.m=t,this.mt=n,this.tween=e},t}();ab(nb+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return Ky[t]=1})),Vy.TweenMax=Vy.TweenLite=Uw,Vy.TimelineLite=Vy.TimelineMax=Aw,sy=new Aw({sortChildren:!1,defaults:py,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),fy.stringFilter=vw;var i_=[],s_={},a_=[],o_=0,l_=0,c_=function(t){return(s_[t]||a_).map((function(t){return t()}))},u_=function(){var t=Date.now(),e=[];t-o_>2&&(c_("matchMediaInit"),i_.forEach((function(t){var n,r,i,s,a=t.queries,o=t.conditions;for(r in a)(n=ay.matchMedia(a[r]).matches)&&(i=1),n!==o[r]&&(o[r]=n,s=1);s&&(t.revert(),i&&e.push(t))})),c_("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),o_=t,c_("matchMedia"))},h_=function(){function t(t,e){this.selector=e&&Gb(e),this.data=[],this._r=[],this.isReverted=!1,this.id=l_++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Sy(t)&&(n=e,e=t,t=Sy);var r=this,i=function(){var t,i=iy,s=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=Gb(n)),iy=r,t=e.apply(r,arguments),Sy(t)&&r._r.push(t),iy=i,r.selector=s,r.isReverted=!1,t};return r.last=i,t===Sy?i(r,(function(t){return r.add(null,t)})):t?r[t]=i:i},e.ignore=function(t){var e=iy;iy=null,t(this),iy=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof Uw&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t?function(){for(var e,r=n.getTweens(),i=n.data.length;i--;)"isFlip"===(e=n.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})));for(r.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=n.data.length;i--;)(e=n.data[i])instanceof Aw?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Uw)&&e.revert&&e.revert(t);n._r.forEach((function(e){return e(t,n)})),n.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var r=i_.length;r--;)i_[r].id===this.id&&i_.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),d_=function(){function t(t){this.contexts=[],this.scope=t,iy&&iy.data.push(this)}var e=t.prototype;return e.add=function(t,e,n){My(t)||(t={matches:t});var r,i,s,a=new h_(0,n||this.scope),o=a.conditions={};for(i in iy&&!a.selector&&(a.selector=iy.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(r=ay.matchMedia(t[i]))&&(i_.indexOf(a)<0&&i_.push(a),(o[i]=r.matches)&&(s=1),r.addListener?r.addListener(u_):r.addEventListener("change",u_));return s&&e(a,(function(t){return a.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),f_={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n1){var r=t.map((function(t){return v_.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var s=Jy[e],a=ib(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var r=new s;hy._pt=0,r.init(t,n?e+n:e,hy,0,[t]),r.render(1,r),hy._pt&&Jw(1,hy)}:a.set(t,o);return s?l:function(e){return l(t,o,n?e+n:e,a,1)}},quickTo:function(t,e,n){var r,i=v_.to(t,vb(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),s=function(t,n,r){return i.resetTo(e,t,n,r)};return s.tween=i,s},isTweening:function(t){return sy.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Tw(t.ease,py.ease)),mb(py,t||{})},config:function(t){return mb(fy,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!Jy[t]&&!Vy[t]&&Uy()})),Zy[e]=function(t,e,r){return n(Yb(t),gb(e||{},i),r)},s&&(Aw.prototype[e]=function(t,n,r){return this.add(Zy[e](t,My(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){bw[t]=Tw(e)},parseEase:function(t,e){return arguments.length?Tw(t,e):bw},getById:function(t){return sy.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Aw(t);for(i.smoothChildTiming=Ry(t.smoothChildTiming),sy.remove(i),i._dp=0,i._time=i._tTime=sy._time,n=sy._first;n;)r=n._next,!e&&!n._dur&&n instanceof Uw&&n.vars.onComplete===n._targets[0]||Ab(i,n,n._start-n._delay),n=r;return Ab(sy,i,0),i},context:function(t,e){return t?new h_(t,e):iy},matchMedia:function(t){return new d_(t)},matchMediaRefresh:function(){return i_.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||u_()},addEventListener:function(t,e){var n=s_[t]||(s_[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=s_[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return Ay(e)?tw(e,t(0,e.length),n):jb(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,s=2*i;return Ay(e)?tw(e,t(0,e.length-1),n):jb(r,(function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)}))},distribute:Xb,random:Zb,snap:Jb,normalize:function(t,e,n){return nw(t,e,0,1,n)},getUnit:Bb,clamp:function(t,e,n){return jb(n,(function(n){return Ub(t,e,n)}))},splitColor:hw,toArray:Yb,selector:Gb,mapRange:nw,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Y_,n,"")),e=W_}(s||n)&&this.props.push(e,n,s[e])},K_=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},X_=function(){var t,e,n=this.props,r=this.target,i=r.style,s=r._gsap;for(t=0;t=0?tx[i]:"")+t},nx=function(){"undefined"!=typeof window&&window.document&&(m_=window,y_=m_.document,b_=y_.documentElement,__=J_("div")||{style:{}},J_("div"),W_=ex(W_),Y_=W_+"Origin",__.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",S_=!!ex("perspective"),k_=v_.core.reverting,w_=1)},rx=function t(e){var n,r=J_("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,s=this.nextSibling,a=this.style.cssText;if(b_.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(Js){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(s?i.insertBefore(this,s):i.appendChild(this)),b_.removeChild(r),this.style.cssText=a,n},ix=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},sx=function(t){var e;try{e=t.getBBox()}catch(Js){e=rx.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===rx||(e=rx.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+ix(t,["x","cx","x1"])||0,y:+ix(t,["y","cy","y1"])||0,width:0,height:0}},ax=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!sx(t))},ox=function(t,e){if(e){var n,r=t.style;e in T_&&e!==Y_&&(e=W_),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(O_,"-$1").toLowerCase())):r.removeAttribute(e)}},lx=function(t,e,n,r,i,s){var a=new r_(t._pt,e,n,0,1,s?F_:H_);return t._pt=a,a.b=r,a.e=i,t._props.push(n),a},cx={deg:1,rad:1,turn:1},ux={grid:1,flex:1},hx=function t(e,n,r,i){var s,a,o,l,c=parseFloat(r)||0,u=(r+"").trim().substr((c+"").length)||"px",h=__.style,d=P_.test(n),f="svg"===e.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),g=100,v="px"===i,m="%"===i;if(i===u||!c||cx[i]||cx[u])return c;if("px"!==u&&!v&&(c=t(e,n,r,"px")),l=e.getCTM&&ax(e),(m||"%"===u)&&(T_[n]||~n.indexOf("adius")))return s=l?e.getBBox()[d?"width":"height"]:e[p],ob(m?c/s*g:c/100*s);if(h[d?"width":"height"]=g+(v?u:i),a=~n.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==y_&&a.appendChild||(a=y_.body),(o=a._gsap)&&m&&o.width&&d&&o.time===mw.time&&!o.uncache)return ob(c/o.width*g);if(!m||"height"!==n&&"width"!==n)(m||"%"===u)&&!ux[Z_(a,"display")]&&(h.position=Z_(e,"position")),a===e&&(h.position="static"),a.appendChild(__),s=__[p],a.removeChild(__),h.position="absolute";else{var y=e.style[n];e.style[n]=g+i,s=e[p],y?e.style[n]=y:ox(e,n)}return d&&m&&((o=ib(a)).time=mw.time,o.width=a[p]),ob(v?s*c/g:s&&c?g/s*c:0)},dx=function(t,e,n,r){var i;return w_||nx(),e in $_&&"transform"!==e&&~(e=$_[e]).indexOf(",")&&(e=e.split(",")[0]),T_[e]&&"transform"!==e?(i=Sx(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Tx(Z_(t,Y_))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=mx[e]&&mx[e](t,e,n)||Z_(t,e)||sb(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?hx(t,e,i,n)+n:i},fx=function(t,e,n,r){if(!n||"none"===n){var i=ex(e,t,1),s=i&&Z_(t,i,1);s&&s!==n?(e=i,n=s):"borderColor"===e&&(n=Z_(t,"borderTopColor"))}var a,o,l,c,u,h,d,f,p,g,v,m=new r_(this._pt,t.style,e,0,1,Qw),y=0,b=0;if(m.b=n,m.e=r,n+="","auto"===(r+="")&&(h=t.style[e],t.style[e]=r,r=Z_(t,e)||r,h?t.style[e]=h:ox(t,e)),vw(a=[n,r]),r=a[1],l=(n=a[0]).match(Dy)||[],(r.match(Dy)||[]).length){for(;o=Dy.exec(r);)d=o[0],p=r.substring(y,o.index),u?u=(u+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(u=1),d!==(h=l[b++]||"")&&(c=parseFloat(h)||0,v=h.substr((c+"").length),"="===d.charAt(1)&&(d=cb(c,d)+v),f=parseFloat(d),g=d.substr((f+"").length),y=Dy.lastIndex-g.length,g||(g=g||fy.units[e]||v,y===r.length&&(r+=g,m.e+=g)),v!==g&&(c=hx(t,e,h,g)||0),m._pt={_next:m._pt,p:p||1===b?p:",",s:c,c:f-c,m:u&&u<4||"zIndex"===e?Math.round:0});m.c=y-1;)n=o[i],T_[n]&&(r=1,n="transformOrigin"===n?Y_:W_),ox(s,n);r&&(ox(s,W_),l&&(l.svg&&s.removeAttribute("transform"),Sx(s,1),l.uncache=1,K_(a)))}},mx={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var s=t._pt=new r_(t._pt,e,n,0,0,vx);return s.u=r,s.pr=-10,s.tween=i,t._props.push(n),1}}},yx=[1,0,0,1,0,0],bx={},wx=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},_x=function(t){var e=Z_(t,W_);return wx(e)?yx:e.substr(7).match(Iy).map(ob)},xx=function(t,e){var n,r,i,s,a=t._gsap||ib(t),o=t.style,l=_x(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?yx:l:(l!==yx||t.offsetParent||t===b_||a.svg||(i=o.display,o.display="block",(n=t.parentNode)&&t.offsetParent||(s=1,r=t.nextElementSibling,b_.appendChild(t)),l=_x(t),i?o.display=i:ox(t,"display"),s&&(r?n.insertBefore(t,r):n?n.appendChild(t):b_.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},kx=function(t,e,n,r,i,s){var a,o,l,c=t._gsap,u=i||xx(t,!0),h=c.xOrigin||0,d=c.yOrigin||0,f=c.xOffset||0,p=c.yOffset||0,g=u[0],v=u[1],m=u[2],y=u[3],b=u[4],w=u[5],_=e.split(" "),x=parseFloat(_[0])||0,k=parseFloat(_[1])||0;n?u!==yx&&(o=g*y-v*m)&&(l=x*(-v/o)+k*(g/o)-(g*w-v*b)/o,x=x*(y/o)+k*(-m/o)+(m*w-y*b)/o,k=l):(x=(a=sx(t)).x+(~_[0].indexOf("%")?x/100*a.width:x),k=a.y+(~(_[1]||_[0]).indexOf("%")?k/100*a.height:k)),r||!1!==r&&c.smooth?(b=x-h,w=k-d,c.xOffset=f+(b*g+w*m)-b,c.yOffset=p+(b*v+w*y)-w):c.xOffset=c.yOffset=0,c.xOrigin=x,c.yOrigin=k,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[Y_]="0px 0px",s&&(lx(s,c,"xOrigin",h,x),lx(s,c,"yOrigin",d,k),lx(s,c,"xOffset",f,c.xOffset),lx(s,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",x+" "+k)},Sx=function(t,e){var n=t._gsap||new Ow(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,s,a,o,l,c,u,h,d,f,p,g,v,m,y,b,w,_,x,k,S,T,C,M,R,E,O,P,A,$,I,D=t.style,N=n.scaleX<0,L="px",H="deg",F=getComputedStyle(t),V=Z_(t,Y_)||"0";return r=i=s=l=c=u=h=d=f=0,a=o=1,n.svg=!(!t.getCTM||!ax(t)),F.translate&&("none"===F.translate&&"none"===F.scale&&"none"===F.rotate||(D[W_]=("none"!==F.translate?"translate3d("+(F.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==F.rotate?"rotate("+F.rotate+") ":"")+("none"!==F.scale?"scale("+F.scale.split(" ").join(",")+") ":"")+("none"!==F[W_]?F[W_]:"")),D.scale=D.rotate=D.translate="none"),v=xx(t,n.svg),n.svg&&(n.uncache?(M=t.getBBox(),V=n.xOrigin-M.x+"px "+(n.yOrigin-M.y)+"px",C=""):C=!e&&t.getAttribute("data-svg-origin"),kx(t,C||V,!!C||n.originIsAbsolute,!1!==n.smooth,v)),p=n.xOrigin||0,g=n.yOrigin||0,v!==yx&&(w=v[0],_=v[1],x=v[2],k=v[3],r=S=v[4],i=T=v[5],6===v.length?(a=Math.sqrt(w*w+_*_),o=Math.sqrt(k*k+x*x),l=w||_?R_(_,w)*C_:0,(h=x||k?R_(x,k)*C_+l:0)&&(o*=Math.abs(Math.cos(h*M_))),n.svg&&(r-=p-(p*w+g*x),i-=g-(p*_+g*k))):(I=v[6],A=v[7],E=v[8],O=v[9],P=v[10],$=v[11],r=v[12],i=v[13],s=v[14],c=(m=R_(I,P))*C_,m&&(C=S*(y=Math.cos(-m))+E*(b=Math.sin(-m)),M=T*y+O*b,R=I*y+P*b,E=S*-b+E*y,O=T*-b+O*y,P=I*-b+P*y,$=A*-b+$*y,S=C,T=M,I=R),u=(m=R_(-x,P))*C_,m&&(y=Math.cos(-m),$=k*(b=Math.sin(-m))+$*y,w=C=w*y-E*b,_=M=_*y-O*b,x=R=x*y-P*b),l=(m=R_(_,w))*C_,m&&(C=w*(y=Math.cos(m))+_*(b=Math.sin(m)),M=S*y+T*b,_=_*y-w*b,T=T*y-S*b,w=C,S=M),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),a=ob(Math.sqrt(w*w+_*_+x*x)),o=ob(Math.sqrt(T*T+I*I)),m=R_(S,T),h=Math.abs(m)>2e-4?m*C_:0,f=$?1/($<0?-$:$):0),n.svg&&(C=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!wx(Z_(t,W_)),C&&t.setAttribute("transform",C))),Math.abs(h)>90&&Math.abs(h)<270&&(N?(a*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+L,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+L,n.z=s+L,n.scaleX=ob(a),n.scaleY=ob(o),n.rotation=ob(l)+H,n.rotationX=ob(c)+H,n.rotationY=ob(u)+H,n.skewX=h+H,n.skewY=d+H,n.transformPerspective=f+L,(n.zOrigin=parseFloat(V.split(" ")[2])||!e&&n.zOrigin||0)&&(D[Y_]=Tx(V)),n.xOffset=n.yOffset=0,n.force3D=fy.force3D,n.renderTransform=n.svg?Ax:S_?Px:Mx,n.uncache=0,n},Tx=function(t){return(t=t.split(" "))[0]+" "+t[1]},Cx=function(t,e,n){var r=Bb(e);return ob(parseFloat(e)+parseFloat(hx(t,"x",n+"px",r)))+r},Mx=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Px(t,e)},Rx="0deg",Ex="0px",Ox=") ",Px=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,s=n.x,a=n.y,o=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,h=n.skewX,d=n.skewY,f=n.scaleX,p=n.scaleY,g=n.transformPerspective,v=n.force3D,m=n.target,y=n.zOrigin,b="",w="auto"===v&&t&&1!==t||!0===v;if(y&&(u!==Rx||c!==Rx)){var _,x=parseFloat(c)*M_,k=Math.sin(x),S=Math.cos(x);x=parseFloat(u)*M_,_=Math.cos(x),s=Cx(m,s,k*_*-y),a=Cx(m,a,-Math.sin(x)*-y),o=Cx(m,o,S*_*-y+y)}g!==Ex&&(b+="perspective("+g+Ox),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(w||s!==Ex||a!==Ex||o!==Ex)&&(b+=o!==Ex||w?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Ox),l!==Rx&&(b+="rotate("+l+Ox),c!==Rx&&(b+="rotateY("+c+Ox),u!==Rx&&(b+="rotateX("+u+Ox),h===Rx&&d===Rx||(b+="skew("+h+", "+d+Ox),1===f&&1===p||(b+="scale("+f+", "+p+Ox),m.style[W_]=b||"translate(0, 0)"},Ax=function(t,e){var n,r,i,s,a,o=e||this,l=o.xPercent,c=o.yPercent,u=o.x,h=o.y,d=o.rotation,f=o.skewX,p=o.skewY,g=o.scaleX,v=o.scaleY,m=o.target,y=o.xOrigin,b=o.yOrigin,w=o.xOffset,_=o.yOffset,x=o.forceCSS,k=parseFloat(u),S=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),d+=p),d||f?(d*=M_,f*=M_,n=Math.cos(d)*g,r=Math.sin(d)*g,i=Math.sin(d-f)*-v,s=Math.cos(d-f)*v,f&&(p*=M_,a=Math.tan(f-p),i*=a=Math.sqrt(1+a*a),s*=a,p&&(a=Math.tan(p),n*=a=Math.sqrt(1+a*a),r*=a)),n=ob(n),r=ob(r),i=ob(i),s=ob(s)):(n=g,s=v,r=i=0),(k&&!~(u+"").indexOf("px")||S&&!~(h+"").indexOf("px"))&&(k=hx(m,"x",u,"px"),S=hx(m,"y",h,"px")),(y||b||w||_)&&(k=ob(k+y-(y*n+b*i)+w),S=ob(S+b-(y*r+b*s)+_)),(l||c)&&(a=m.getBBox(),k=ob(k+l/100*a.width),S=ob(S+c/100*a.height)),a="matrix("+n+","+r+","+i+","+s+","+k+","+S+")",m.setAttribute("transform",a),x&&(m.style[W_]=a)},$x=function(t,e,n,r,i){var s,a,o=360,l=ky(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?C_:1)-r,u=r+c+"deg";return l&&("short"===(s=i.split("_")[1])&&(c%=o)!==c%180&&(c+=c<0?o:-o),"cw"===s&&c<0?c=(c+o*E_)%o-~~(c/o)*o:"ccw"===s&&c>0&&(c=(c-o*E_)%o-~~(c/o)*o)),t._pt=a=new r_(t._pt,e,n,r,c,D_),a.e=u,a.u="deg",t._props.push(n),a},Ix=function(t,e){for(var n in e)t[n]=e[n];return t},Dx=function(t,e,n){var r,i,s,a,o,l,c,u=Ix({},n._gsap),h=n.style;for(i in u.svg?(s=n.getAttribute("transform"),n.setAttribute("transform",""),h[W_]=e,r=Sx(n,1),ox(n,W_),n.setAttribute("transform",s)):(s=getComputedStyle(n)[W_],h[W_]=e,r=Sx(n,1),h[W_]=s),T_)(s=u[i])!==(a=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=Bb(s)!==(c=Bb(a))?hx(n,i,s,c):parseFloat(s),l=parseFloat(a),t._pt=new r_(t._pt,r,i,o,l-o,I_),t._pt.u=c||0,t._props.push(i));Ix(r,u)};ab("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",s="Left",a=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map((function(n){return e<2?t+n:"border"+n+t}));mx[e>1?"border"+t:t]=function(t,e,n,r,i){var s,o;if(arguments.length<4)return s=a.map((function(e){return dx(t,e,n)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(r+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,i)}}));var Nx={name:"css",register:nx,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var s,a,o,l,c,u,h,d,f,p,g,v,m,y,b,w,_=this._props,x=t.style,k=n.vars.startAt;for(h in w_||nx(),this.styles=this.styles||Q_(t),w=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(a=e[h],!Jy[h]||!Lw(h,e,n,r,t,i)))if(c=typeof a,u=mx[h],"function"===c&&(c=typeof(a=a.call(n,r,t,i))),"string"===c&&~a.indexOf("random(")&&(a=ew(a)),u)u(this,t,h,a,n)&&(b=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",pw.lastIndex=0,pw.test(s)||(d=Bb(s),f=Bb(a)),f?d!==f&&(s=hx(t,h,s,f)+f):d&&(a+=d),this.add(x,"setProperty",s,a,r,i,0,0,h),_.push(h),w.push(h,0,x[h]);else if("undefined"!==c){if(k&&h in k?(s="function"==typeof k[h]?k[h].call(n,r,t,i):k[h],ky(s)&&~s.indexOf("random(")&&(s=ew(s)),Bb(s+"")||"auto"===s||(s+=fy.units[h]||Bb(dx(t,h))||""),"="===(s+"").charAt(1)&&(s=dx(t,h))):s=dx(t,h),l=parseFloat(s),(p="string"===c&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),h in $_&&("autoAlpha"===h&&(1===l&&"hidden"===dx(t,"visibility")&&o&&(l=0),w.push("visibility",0,x.visibility),lx(this,x,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=$_[h]).indexOf(",")&&(h=h.split(",")[0])),g=h in T_)if(this.styles.save(h),v||((m=t._gsap).renderTransform&&!e.parseTransform||Sx(t,e.parseTransform),y=!1!==e.smoothOrigin&&m.smooth,(v=this._pt=new r_(this._pt,x,W_,0,1,m.renderTransform,m,0,-1)).dep=1),"scale"===h)this._pt=new r_(this._pt,m,"scaleY",m.scaleY,(p?cb(m.scaleY,p+o):o)-m.scaleY||0,I_),this._pt.u=0,_.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(Y_,0,x[Y_]),a=gx(a),m.svg?kx(t,a,0,y,0,this):((f=parseFloat(a.split(" ")[2])||0)!==m.zOrigin&&lx(this,m,"zOrigin",m.zOrigin,f),lx(this,x,h,Tx(s),Tx(a)));continue}if("svgOrigin"===h){kx(t,a,1,y,0,this);continue}if(h in bx){$x(this,m,h,l,p?cb(l,p+a):a);continue}if("smoothOrigin"===h){lx(this,m,"smooth",m.smooth,a);continue}if("force3D"===h){m[h]=a;continue}if("transform"===h){Dx(this,a,t);continue}}else h in x||(h=ex(h)||h);if(g||(o||0===o)&&(l||0===l)&&!A_.test(a)&&h in x)o||(o=0),(d=(s+"").substr((l+"").length))!==(f=Bb(a)||(h in fy.units?fy.units[h]:d))&&(l=hx(t,h,s,f)),this._pt=new r_(this._pt,g?m:x,h,l,(p?cb(l,p+o):o)-l,g||"px"!==f&&"zIndex"!==h||!1===e.autoRound?I_:L_),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=s,this._pt.r=N_);else if(h in x)fx.call(this,t,h,s,p?p+a:a);else if(h in t)this.add(t,h,s||t[h],p?p+a:a,r,i);else if("parseTransform"!==h)continue;g||(h in x?w.push(h,0,x[h]):w.push(h,1,s||t[h])),_.push(h)}b&&n_(this)},render:function(t,e){if(e.tween._time||!k_())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:dx,aliases:$_,getSetter:function(t,e,n){var r=$_[e];return r&&r.indexOf(",")<0&&(e=r),e in T_&&e!==Y_&&(t._gsap.x||dx(t,"x"))?n&&x_===n?"scale"===e?U_:j_:(x_=n||{})&&("scale"===e?B_:q_):t.style&&!Cy(t.style[e])?V_:~e.indexOf("-")?z_:Gw(t,e)},core:{_removeProperty:ox,_getMatrix:xx}};v_.utils.checkPrefix=ex,v_.core.getStyleSaver=Q_,function(t,e,n,r){var i=ab(t+","+e+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){T_[t]=1}));ab(e,(function(t){fy.units[t]="deg",bx[t]=1})),$_[i[13]]=t+","+e,ab("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");$_[e[1]]=i[e[0]]}))}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY"),ab("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){fy.units[t]="px"})),v_.registerPlugin(Nx);var Lx=v_.registerPlugin(Nx)||v_;Lx.core.Tween;var Hx,Fx,Vx,zx,jx,Ux,Bx,qx,Wx=function(){return"undefined"!=typeof window},Yx=function(){return Hx||Wx()&&(Hx=window.gsap)&&Hx.registerPlugin&&Hx},Gx=function(t){return"string"==typeof t},Kx=function(t){return"function"==typeof t},Xx=function(t,e){var n="x"===e?"Width":"Height",r="scroll"+n,i="client"+n;return t===Vx||t===zx||t===jx?Math.max(zx[r],jx[r])-(Vx["inner"+n]||zx[i]||jx[i]):t[r]-t["offset"+n]},Qx=function(t,e){var n="scroll"+("x"===e?"Left":"Top");return t===Vx&&(null!=t.pageXOffset?n="page"+e.toUpperCase()+"Offset":t=null!=zx[n]?zx:jx),function(){return t[n]}},Jx=function(t,e){if(!(t=Ux(t)[0])||!t.getBoundingClientRect)return{x:0,y:0};var n=t.getBoundingClientRect(),r=!e||e===Vx||e===jx,i=r?{top:zx.clientTop-(Vx.pageYOffset||zx.scrollTop||jx.scrollTop||0),left:zx.clientLeft-(Vx.pageXOffset||zx.scrollLeft||jx.scrollLeft||0)}:e.getBoundingClientRect(),s={x:n.left-i.left,y:n.top-i.top};return!r&&e&&(s.x+=Qx(e,"x")(),s.y+=Qx(e,"y")()),s},Zx=function(t,e,n,r,i){return isNaN(t)||"object"==typeof t?Gx(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+r-i:"max"===t?Xx(e,n)-i:Math.min(Xx(e,n),Jx(t,e)[n]-i):parseFloat(t)-i},tk=function(){Hx=Yx(),Wx()&&Hx&&"undefined"!=typeof document&&document.body&&(Vx=window,jx=document.body,zx=document.documentElement,Ux=Hx.utils.toArray,Hx.config({autoKillThreshold:7}),Bx=Hx.config(),Fx=1)},ek={version:"3.12.5",name:"scrollTo",rawVars:1,register:function(t){Hx=t,tk()},init:function(t,e,n,r,i){Fx||tk();var s=this,a=Hx.getProperty(t,"scrollSnapType");s.isWin=t===Vx,s.target=t,s.tween=n,e=function(t,e,n,r){if(Kx(t)&&(t=t(e,n,r)),"object"!=typeof t)return Gx(t)&&"max"!==t&&"="!==t.charAt(1)?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var i,s={};for(i in t)s[i]="onAutoKill"!==i&&Kx(t[i])?t[i](e,n,r):t[i];return s}(e,r,t,i),s.vars=e,s.autoKill=!!e.autoKill,s.getX=Qx(t,"x"),s.getY=Qx(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),qx||(qx=Hx.core.globals().ScrollTrigger),"smooth"===Hx.getProperty(t,"scrollBehavior")&&Hx.set(t,{scrollBehavior:"auto"}),a&&"none"!==a&&(s.snap=1,s.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),null!=e.x?(s.add(s,"x",s.x,Zx(e.x,t,"x",s.x,e.offsetX||0),r,i),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,Zx(e.y,t,"y",s.y,e.offsetY||0),r,i),s._props.push("scrollTo_y")):s.skipY=1},render:function(t,e){for(var n,r,i,s,a,o=e._pt,l=e.target,c=e.tween,u=e.autoKill,h=e.xPrev,d=e.yPrev,f=e.isWin,p=e.snap,g=e.snapInline;o;)o.r(t,o.d),o=o._next;n=f||!e.skipX?e.getX():h,i=(r=f||!e.skipY?e.getY():d)-d,s=n-h,a=Bx.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),u&&(!e.skipX&&(s>a||s<-a)&&na||i<-a)&&r-1&&this._props.splice(n,1),!this._props.length}};ek.max=Xx,ek.getOffset=Jx,ek.buildGetter=Qx,Yx()&&Hx.registerPlugin(ek);var nk=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,rk=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,ik=Math.PI/180,sk=Math.sin,ak=Math.cos,ok=Math.abs,lk=Math.sqrt,ck=1e5,uk=function(t){return Math.round(t*ck)/ck||0};function hk(t,e,n,r,i,s,a,o,l){if(t!==o||e!==l){n=ok(n),r=ok(r);var c=i%360*ik,u=ak(c),h=sk(c),d=Math.PI,f=2*d,p=(t-o)/2,g=(e-l)/2,v=u*p+h*g,m=-h*p+u*g,y=v*v,b=m*m,w=y/(n*n)+b/(r*r);w>1&&(n=lk(w)*n,r=lk(w)*r);var _=n*n,x=r*r,k=(_*x-_*b-x*y)/(_*b+x*y);k<0&&(k=0);var S=(s===a?-1:1)*lk(k),T=S*(n*m/r),C=S*(-r*v/n),M=(t+o)/2+(u*T-h*C),R=(e+l)/2+(h*T+u*C),E=(v-T)/n,O=(m-C)/r,P=(-v-T)/n,A=(-m-C)/r,$=E*E+O*O,I=(O<0?-1:1)*Math.acos(E/lk($)),D=(E*A-O*P<0?-1:1)*Math.acos((E*P+O*A)/lk($*(P*P+A*A)));isNaN(D)&&(D=d),!a&&D>0?D-=f:a&&D<0&&(D+=f),I%=f,D%=f;var N,L=Math.ceil(ok(D)/(f/4)),H=[],F=D/L,V=4/3*sk(F/2)/(1+ak(F/2)),z=u*n,j=h*n,U=h*-r,B=u*r;for(N=0;Nc*(T*T+C*C)&&(d=u.length,t(e,n,f,p,b,w,k,S,c,u,h),t(k,S,_,x,m,y,o,l,c,u,h+1+(u.length-d))),u},wk=function(){function t(t,e,n){fk||gk(),this.id=t,this.setData(e,n)}var e=t.prototype;return e.setData=function(t,e){e=e||{};var n,r,i,s,a,o,l,c,u,h=(t=t||"0,0,1,1").match(mk),d=1,f=[],p=[],g=e.precision||1,v=g<=1;if(this.data=t,(yk.test(t)||~t.indexOf("M")&&t.indexOf("C")<0)&&(h=function(t){var e,n,r,i,s,a,o,l,c,u,h,d,f,p,g,v=(t+"").replace(rk,(function(t){var e=+t;return e<1e-4&&e>-1e-4?0:e})).match(nk)||[],m=[],y=0,b=0,w=2/3,_=v.length,x=0,k=function(t,e,n,r){u=(n-t)/3,h=(r-e)/3,o.push(t+u,e+h,n-u,r-h,n,r)};if(!t||!isNaN(v[0])||isNaN(v[1]))return m;for(e=0;e<_;e++)if(f=s,isNaN(v[e])?a=(s=v[e].toUpperCase())!==v[e]:e--,r=+v[e+1],i=+v[e+2],a&&(r+=y,i+=b),e||(l=r,c=i),"M"===s)o&&(o.length<8?m.length-=1:x+=o.length),y=l=r,b=c=i,o=[r,i],m.push(o),e+=2,s="L";else if("C"===s)o||(o=[0,0]),a||(y=b=0),o.push(r,i,y+1*v[e+3],b+1*v[e+4],y+=1*v[e+5],b+=1*v[e+6]),e+=6;else if("S"===s)u=y,h=b,"C"!==f&&"S"!==f||(u+=y-o[o.length-4],h+=b-o[o.length-3]),a||(y=b=0),o.push(u,h,r,i,y+=1*v[e+3],b+=1*v[e+4]),e+=4;else if("Q"===s)u=y+(r-y)*w,h=b+(i-b)*w,a||(y=b=0),y+=1*v[e+3],b+=1*v[e+4],o.push(u,h,y+(r-y)*w,b+(i-b)*w,y,b),e+=4;else if("T"===s)u=y-o[o.length-4],h=b-o[o.length-3],o.push(y+u,b+h,r+(y+1.5*u-r)*w,i+(b+1.5*h-i)*w,y=r,b=i),e+=2;else if("H"===s)k(y,b,y=r,b),e+=1;else if("V"===s)k(y,b,y,b=r+(a?b-y:0)),e+=1;else if("L"===s||"Z"===s)"Z"===s&&(r=l,i=c,o.closed=!0),("L"===s||ok(y-r)>.5||ok(b-i)>.5)&&(k(y,b,r,i),"L"===s&&(e+=2)),y=r,b=i;else if("A"===s){if(p=v[e+4],g=v[e+5],u=v[e+6],h=v[e+7],n=7,p.length>1&&(p.length<3?(h=u,u=g,n--):(h=g,u=p.substr(2),n-=2),g=p.charAt(1),p=p.charAt(0)),d=hk(y,b,+v[e+1],+v[e+2],+v[e+3],+p,+g,(a?y:0)+1*u,(a?b:0)+1*h),e+=n,d)for(n=0;nc.x||c.y!==l.y&&c.x===l.x||l===c)&&l.x<=1?(c.cx=l.x-c.x,c.cy=l.y-c.y,c.n=l,c.nx=l.x,v&&s>1&&Math.abs(c.cy/c.cx-f[s-2].cy/f[s-2].cx)>2&&(v=0),c.cx-1;)for(l=(o=t[d]).length,c=0;cu||s===c-1)&&(r.push(h,d),i=(l-d)/(o-h)),h=o,d=l;r="M"+r.join(",")}return m&&m.setAttribute("d",r),r},t}();pk()&&dk.registerPlugin(wk),wk.version="3.12.5";var _k=(t,e)=>e("left"),xk=Ze(''),kk=Ze('<!>
'),Sk=(t,e)=>e("right"),Tk=Ze(''),Ck=Ze('<!>
'),Mk=Ze('');function Rk(t,e){_e(e,!0);let n=Vn(e,"scrollLeft",7,0),r=Vn(e,"showLeftShadow",7),i=Vn(e,"showRightShadow",7);Lx.registerPlugin(ek,wk);const s=Tt((()=>!_f.device.isTouch));let a,o,l=!0,c=G(null),u=G(!0),h=G(!1),d=G(0),f=G(!1),p=0;const g=t=>{v();const e=de(c);if(e){const n=e.scrollLeft;"left"===t?e.scrollLeft=n-80:"right"===t&&(e.scrollLeft=n+80)}},v=()=>{l&&(Lx.killTweensOf(de(c)),l=!1,m(),y())},m=()=>{de(c)?de(c).classList.add("smooth"):setTimeout(m,303)};const y=()=>{if(Wd.noPreventScroll)return;de(c).scrollWidth-de(c).getBoundingClientRect().width<27?(X(f,!0),r(!1),i(!1),X(h,!0)):(X(f,!1),X(h,!1))};let b;nt((()=>{if(!Wd.noPreventScroll){let t=!1;e.results?.timestamp!==b&&(b=e.results?.timestamp,t=!0),a===r()&&o===i()||(a=r(),o=i(),t=!0),de(d)!==p&&(p=de(d),t=!0),t&&!de(f)&&y(),X(f,!1)}}));var w=Mk(),_=Oe(w);Ue(_,(()=>r()&&!de(h)),(t=>{var e=kk();Sn(3,e,(()=>Wm)),Ue(Oe(e),(()=>de(s)),(t=>{var e=xk();e.__click=[_k,g],Zm(Oe(e),{type:"dark",direction:"left"}),rn(t,e)})),rn(t,e)}));var x=Ae(Ae(_,!0));$n(x,(t=>X(c,gt(t))),(()=>de(c))),x.__touchstart=v,x.__click=v,an((()=>e.children),Oe(x)),Ue(Ae(Ae(x,!0)),(()=>i()&&!de(h)),(t=>{var e=Ck();Sn(3,e,(()=>Wm)),Ue(Oe(e),(()=>de(s)),(t=>{var e=Tk();e.__click=[Sk,g],Zm(Oe(e),{type:"dark",direction:"right"}),rn(t,e)})),rn(t,e)})),st((()=>{fn(w,"showLeftShadow",r()),fn(w,"showRightShadow",i()),fn(x,"overflowX",r()||i()),fn(x,"noScroll",de(h))})),ln(w,((t,e)=>Xv(t,e)),(()=>({rootMargin:`-${_f.headerHeight??0}px`,threshold:0}))),$e("inview_enter",w,(function(){if(l){const t=de(c).scrollWidth-de(c).getBoundingClientRect().width;if(t>33){let e=Lx.timeline();e.to(de(c),{duration:.4,ease:"power1.inOut",scrollTo:{x:t}}),e.to(de(c),{duration:.9,ease:wk.create("custom","M0,0 C0.11,0.494 0.377,0.98 0.469,1 0.523,1.012 0.636,0.945 0.754,0.941 0.832,0.938 0.9,1 1,1 "),onComplete:v,scrollTo:{x:0}})}else v()}}),!1),Pn(x,"clientWidth",(t=>X(d,t))),ln(x,((t,e)=>Qm(t,e)),(()=>({axis:"x",event:"mouse",cursor:!1}))),$e("scroll",x,(()=>{n(de(c)?.scrollLeft||0)}),!1),$e("dragging",x,(()=>X(u,!1)),!1),$e("draggingend",x,(()=>X(u,!0)),!1),rn(t,w),xe()}Ie(["click","touchstart"]);var Ek=Ze('<!>
');function Ok(t,e){var n=Ek();sn(Oe(n),(()=>e.noteStr)),rn(t,n)}var Pk=Ze('');const Ak=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=Vn(e,"columnHeight",3,120),r=Ln(e,["results","subline","useReturningResults","columnHeight","noteStr","data"]);const i=Tt((()=>e.data.config.settings));let s=Tt((()=>e.results?.listVotes)),a=G(0),o=Tt((()=>de(a)<400)),l=Tt((()=>({listVotesHeight:n()+"px",columnHeight:n()+"px",marginParty:de(o)?"12px":"16px",marginPreviousResult:de(o)?"-3px":"-6px",columnWidth:de(o)?"22px":"28px"}))),c=G(0),u=G(!1),h=G(!1),d=Tt((()=>cm.cards.find((t=>t?.navi===r.navi))?.isCardAnimation));var f=Pk(),p=Oe(f),g=Oe(p);sn(Oe(g),(()=>e.subline?.replace(/\{partyVotes\}/g,Iv("cardVariables","partyVotes")).replace(/\{resultType\}/g,Iv("resultTypes",e.results?.type)))),Ue(Ae(Ae(g,!0)),(()=>!e.useReturningResults),(t=>{var e=nn();Mm(Pe(e),{}),rn(t,e)}));var v=Oe(Ae(Ae(p,!0)));Rk(v,{get scrollLeft(){return de(c)},set scrollLeft(t){X(c,gt(t))},get showLeftShadow(){return de(u)},get showRightShadow(){return de(h)},children:(t,e)=>{var n=nn(),r=Pe(n),a=Tt((()=>de(s)?.results)),o=Tt((()=>!Wd.liveUpdate));Um(r,{get results(){return de(a)},get css(){return de(l)},get scrollLeft(){return de(c)},get currentYear(){return de(i).$dateCurrentYear},get previousYear(){return de(i).$datePreviousYear},get showLeftShadow(){return de(u)},set showLeftShadow(t){X(u,gt(t))},get showRightShadow(){return de(h)},set showRightShadow(t){X(h,gt(t))},get isCardAnimation(){return de(d)},get forbidAnimation(){return de(o)}}),rn(t,n)},$$slots:{default:!0}}),Ue(Ae(Ae(v,!0)),(()=>e.noteStr),(t=>{var n=nn();Ok(Pe(n),{get noteStr(){return e.noteStr}}),rn(t,n)})),Pn(f,"clientWidth",(t=>X(a,t))),rn(t,f),xe()}},Symbol.toStringTag,{value:"Module"}));function $k({coalitionConfig:t,results:e,parties:n,totalSeats:r,threshold:i,dimensionScale:s=Gd({max:r})}){if(!t||!e)return;const{parties:a}=t,o=a.map((t=>{const r=n.find((e=>e.id===t)),i=e.find((e=>e.partyId===t)),a=s(i?.currentSeats||0).toFixed(2);return{...r,...i,widthPercentage:a,isNotInCoalition:0===i?.currentSeats}})),l=function(t,e){let n=0;if(void 0===e)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}(o,(t=>t.currentSeats));return{...t,parties:o,currentSeats:l,isMajority:l>=i,isPartyMissing:o.some((t=>t.isNotInCoalition))}}var Ik=tn('');var Dk=tn('');var Nk=Ze(''),Lk=Ze('');var Hk=Ze('');function Fk(t,e){_e(e,!0);const n=um(e.currentSeats);nt((()=>{e.isCardAnimation&&(n.value=e.currentSeats)}));var r=Hk(),i=Oe(r),s=Oe(i),a=Oe(s);Ue(a,(()=>e.isMajority&&!e.isPartyMissing),(t=>{var e=nn();!function(t){rn(t,Ik())}(Pe(e)),rn(t,e)}),(t=>{var e=nn();!function(t){rn(t,Dk())}(Pe(e)),rn(t,e)}));var o=Ae(Ae(a,!0)),l=Oe(o),c=Ae(Ae(o,!0)),u=Oe(c),h=Ae(Ae(s,!0)),d=Oe(h);!function(t,e){var n=Lk();Ye(Oe(n),73,(()=>e.parties),We,((t,e,n)=>{var r=nn();Ue(Pe(r),(()=>Te(e).$meta),(t=>{var n=Nk();st((()=>{pn(n,"width",`${Ve(Te(e).widthPercentage)}%`),pn(n,"background",Te(e).$meta.$color)})),rn(t,n)})),rn(t,r)})),rn(t,n)}(Oe(Ae(Ae(i,!0))),{get parties(){return e.parties}}),st((()=>{fn(r,"smallFont",vm.isVertical),Fe(l,e.name),fn(c,"hide",!e.isIncumbent),Fe(u,e.incumbentStr),fn(h,"is-bold",e.isMajority&&!e.isPartyMissing),fn(h,"liveUpdate",n.showLiveUpdate),Fe(d,e.currentSeats)})),rn(t,r),xe()}var Vk=Ze('<!>
');function zk(t,e){var n=Vk();sn(Oe(n),(()=>e.addInfo)),rn(t,n)}var jk=Ze('<!>
'),Uk=Ze('');const Bk=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=Ln(e,["coalitions","results","parties","subline","incumbentStr"]);const r=Tt((()=>e.results.listVotes)),i=Tt((()=>de(r)?.additionalInformation?.$totalSeats)),s=Tt((()=>de(r)?.additionalInformation?.$threshold)),a=Tt((()=>{if(e.coalitions&&de(r)&&e.parties&&de(i))return e.coalitions.map((t=>$k({coalitionConfig:t,results:de(r).results,parties:e.parties,totalSeats:de(i),threshold:de(s)}))).sort(((t,e)=>t.currentSeats>e.currentSeats?-1:1))}));let o=Tt((()=>cm.cards.find((t=>t?.navi===n.navi))?.isCardAnimation)),l=Tt((()=>Wd.addInfoCoalitions));var c=Uk(),u=Oe(c);sn(Oe(u),(()=>e.subline.replace(/\{majoritySeats\}/g,de(s))));var h=Oe(Ae(Ae(u,!0)));Ye(h,65,(()=>de(a)),We,((t,n,r)=>{var i=jk();Fk(Oe(i),Fn((()=>Te(n)),{get incumbentStr(){return e.incumbentStr},get isCardAnimation(){return de(o)}})),rn(t,i)})),Ue(Ae(Ae(h,!0)),(()=>de(l)&&""!==de(l)),(t=>{var e=nn();zk(Pe(e),{get addInfo(){return de(l)}}),rn(t,e)})),rn(t,c),xe()}},Symbol.toStringTag,{value:"Module"}));var qk=Ze(' '),Wk=Ze(' '),Yk=Ze('');function Gk(t,e){_e(e,!0);let n=Tt((()=>{let t=[];const n=e.partiesToSummarize.map((({singleParties:n,summarizedParty:r})=>{if(e.leadingParties.filter((t=>n.includes(t.id))).length===n.length)return t.push(...n),e.parties.find((t=>t.id===r))})).filter((t=>t)),r=[...e.leadingParties.filter((e=>!t.includes(e.id))),...n].sort(((t,e)=>t.abbr.localeCompare(e.abbr)));return e.partyOrder&&e.partyOrder.length>0&&r.sort(((t,n)=>e.partyOrder.indexOf(t.id)-e.partyOrder.indexOf(n.id))),r}));var r=Yk(),i=Oe(r);Ye(i,65,(()=>de(n)),We,((t,e,n)=>{var r=qk(),i=Oe(r),s=Oe(Ae(Ae(i,!0)));st((()=>{pn(i,"background",Te(Te(e)).$color),Fe(s,Te(Te(e)).abbr)})),rn(t,r)})),Ue(Ae(Ae(i,!0)),(()=>e.showTrendResults),(t=>{var n=Wk(),r=Oe(n),i=Oe(Ae(Ae(r,!0)));st((()=>Fe(i,e.trendResultsStr))),rn(t,n)})),rn(t,r),xe()}var Kk=Ze('');const Xk=function(){let t=G(!1),e=G(gt({})),n=G(void 0);return document.addEventListener("mousemove",(t=>{X(e,gt({x:t.pageX,y:t.pageY}))})),{get show(){return de(t)},set show(e){X(t,gt(e))},get mousePosition(){return de(e)},set mousePosition(t){X(e,gt(t))},get item(){return de(n)},set item(t){X(n,gt(t))}}}();function Qk(t,e,n,r){t.preventDefault();const i=e(t);X(n,null!==i),r()({event:t,data:i})}function Jk(t,e,n){t.preventDefault(),e()({event:t,data:n(t)})}var Zk=Ze(' <!>',1);function tS(t,e){_e(e,!0);let n=Vn(e,"transform",3,Id),r=Vn(e,"hide",3,!1),i=Vn(e,"alpha",3,!1),s=Vn(e,"onmousemove",3,(()=>{})),a=Vn(e,"onclick",3,(()=>{})),o=Vn(e,"contextName",3,"spiegel-canvas");const l=[],c=Math.max(2,window&&window.devicePixelRatio||1);let u,h,d,f=!1,p=G(!1);function g(){h&&(h.clearRect(0,0,e.width,e.height),l.forEach((t=>{h.save(),h.translate(n().x,n().y),h.scale(n().k,n().k),t(h),h.restore()})),f=!1)}function v({offsetX:t,offsetY:e}){if(!h||!t||!e)return;const{data:n}=h.getImageData(t*c,e*c,1,1),[r,i,s]=n;return r+i+s===0?null:`rgb(${r},${i},${s})`}ye(o(),{register(t){l.push(t)},deregister(t){l.splice(l.indexOf(t),1)},invalidate:function(){f||(f=!0,d=requestAnimationFrame(g))}}),nt((()=>(h=u.getContext("2d",{willReadFrequently:!0,alpha:i()}),()=>{d&&cancelAnimationFrame(d)}))),nt((()=>{var t,n,r,i;u&&h&&(t=u,n=h,r=e.width,i=e.height,t.width=r*c,t.height=i*c,t.style.width=r+"px",t.style.height=i+"px",n.scale(c,c))}));var m=Zk(),y=Pe(m);$n(y,(t=>u=t),(()=>u)),y.__mousemove=[Qk,v,p,s],y.__click=[Jk,a,v],an((()=>e.children),Ae(Ae(y,!0))),st((()=>{fn(y,"hide",r()),fn(y,"is-hovered",de(p))})),rn(t,m),xe()}Ie(["mousemove","click"]);var eS=Ze('<!> <!> <!> <!>
');function nS(t,e){_e(e,!0);let n=Vn(e,"outlines",11,(()=>[])),r=Vn(e,"checkPropertyForInteractivity",3,"results");function i(t){if(t){if(de(c).includes(t)){const e=de(u).find((e=>e.fill===t));return X(o,gt(e)),e}return de(o)}}function s(t){const{event:n,data:r}=t;e.onmousemove({event:n,data:i(r)})}function a(t){const{event:n,data:r}=t;e.onclick({event:n,data:i(r)})}let o=G(void 0),l=Tt((()=>{if(!e.activeIds)return e.data;const t=e.data.filter((t=>e.activeIds.includes(t.id)));return[...e.data.filter((e=>!t.map((t=>t.id)).includes(e.id))),...t]})),c=Tt((()=>e.data.map((t=>t[r()].length?mf():null)))),u=Tt((()=>e.data.map(((t,e)=>{const n=de(c)[e];return{...t,showStroke:!1,fixedStroke:n,fixedStrokeWidth:1,showFill:!0,fill:n}})))),h=Tt((()=>de(l).map((t=>({...t,showStroke:!0,showFill:!1}))))),d=Tt((()=>de(l).map((t=>({...t,showStroke:!1,showFill:!0}))))),f=Tt((()=>n().map((t=>({...t,showStroke:!0,stroke:e.outlinesColor,showFill:!1})))));var p=eS();pn(p,"position","var(--position, relative)"),pn(p,"z-index","var(--z-index, 0)");var g=Oe(p);Be(g,0,(()=>({"--pointer-events":"none"})),(t=>tS(t,{get width(){return e.width},get height(){return e.height},alpha:!0,children:(t,n)=>{var r=nn();an((()=>e.children),Pe(r),(()=>de(d))),rn(t,r)},$$slots:{default:!0}})));var v=Ae(Ae(g,!0));Ue(v,(()=>de(f).length),(t=>{var n=nn();Be(Pe(n),0,(()=>({"--position":"absolute","--z-index":"4","--pointer-events":"none"})),(t=>tS(t,{get width(){return e.width},get height(){return e.height},alpha:!0,children:(t,n)=>{var r=nn();an((()=>e.children),Pe(r),(()=>de(f))),rn(t,r)},$$slots:{default:!0}}))),rn(t,n)}));var m=Ae(Ae(v,!0));Be(m,0,(()=>({"--position":"absolute","--z-index":"5","--pointer-events":"none"})),(t=>tS(t,{get width(){return e.width},get height(){return e.height},alpha:!0,children:(t,n)=>{var r=nn();an((()=>e.children),Pe(r),(()=>de(h))),rn(t,r)},$$slots:{default:!0}}))),Be(Ae(Ae(m,!0)),0,(()=>({"--position":"absolute","--z-index":"10"})),(t=>tS(t,{get width(){return e.width},get height(){return e.height},hide:!0,onmousemove:s,onclick:a,children:(t,n)=>{var r=nn();an((()=>e.children),Pe(r),(()=>de(u))),rn(t,r)},$$slots:{default:!0}}))),st((()=>{pn(p,"width",`${Ve(e.width)}px`),pn(p,"height",`${Ve(e.height)}px`)})),rn(t,p),xe()}var rS=Ze('<!>
');var iS=Ze('');function sS(t,e){_e(e,!0);const n=Ln(e,["name","returningResults","partyVotesStr","countingProgressStr","countingProgressFullyStr"]),r=Tt((()=>e.returningResults?.listVotes?.results.slice(0,5))),i=Tt((()=>e.returningResults?.countingProgress.isFullyCounted)),s=Tt((()=>e.returningResults?.countingProgress.countingType));var a=iS(),o=Oe(a),l=Oe(o),c=Oe(l),u=Oe(Ae(Ae(o,!0))),h=Oe(u),d=Oe(h);st((()=>Fe(d,e.partyVotesStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription")).replace(/{partyVotes}/g,Iv("cardVariables","partyVotes")).replace(/{personalVotes}/g,Iv("cardVariables","personalVotes"))))),Ue(Oe(Ae(Ae(h,!0))),(()=>de(i)),(t=>{var n=en();st((()=>Fe(n,e.countingProgressFullyStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription"))))),rn(t,n)}),(t=>{var n=en();st((()=>Fe(n,e.countingProgressStr.replace(/{countingShare}/g,e.returningResults?.countingProgress.share).replace(/{countingType}/g,Iv("countingTypes",de(s)))))),rn(t,n)})),function(t,e){_e(e,!0);let n=Tt((()=>({listVotesHeight:"60px",columnHeight:"60px",marginParty:"13px",marginPreviousResult:"-3px",columnWidth:"22px"})));const r=Tt((()=>e.data.config.settings)),i=Tt((()=>e.results.slice(0,5)));var s=rS(),a=Oe(s),o=Tt((()=>de(r)?.$dateCurrentYear)),l=Tt((()=>de(r)?.$datePreviousYear));Um(a,{get results(){return de(i)},get css(){return de(n)},get currentYear(){return de(o)},get previousYear(){return de(l)}}),rn(t,s),xe()}(Ae(Ae(u,!0)),Fn({get results(){return de(r)}},(()=>n))),st((()=>Fe(c,e.name))),rn(t,a),xe()}function aS(t,e){e.onplus(t)}function oS(t,e){e.onminus(t)}function lS(t,e){e.onreset(t)}var cS=Ze(''),uS=Ze('');Ie(["click"]);var hS=Ze(""),dS=Ze("<!> <!>",1),fS=Ze('<!>
');function pS(t,e){_e(e,!0);var n=t=>{var e=nn();sS(Pe(e),Fn(s,(()=>u))),rn(t,e)};let r,i,s=Vn(e,"hoveredFeature",7),a=Vn(e,"selectedFeature",7),o=Vn(e,"onclear",3,jv),l=Vn(e,"clickable",3,!1),c=Vn(e,"enableZoom",3,!1),u=Ln(e,["mapData","geojson","geojsonOutlines","showTrendResults","hoveredFeature","selectedFeature","onclear","clickable","enableZoom"]),h=yf(),d=G(void 0),f=G(void 0),p=G(gt(Id)),g=Tt((()=>Uc().fitSize([de(d),de(f)],e.geojson))),v=Tt((()=>{if(!de(d)||!de(f))return Id;const[t,e]=de(g).translate();return Id.translate(t,e).scale(de(g).scale())})),m=Tt((()=>{if(!c())return de(g);const{x:t,y:e,k:n}=de(p);return de(g).translate([t,e]).scale(n)})),y=Tt((()=>(de(p),Pc().projection(de(m))))),b=Tt((()=>de(v).k!==de(p).k||de(v).x!==de(p).x||de(v).y!==de(p).y));const w=Tt((()=>Ud().scaleExtent([de(v).k,8*de(v).k]).filter((t=>!(t.touches&&t.touches.length<=1))).on("zoom",(t=>{X(p,gt(t.transform))}))));let _=Tt((()=>e.mapData&&e.geojson?e.mapData.map((t=>{const n=e.geojson.features.find((e=>e.properties.id===t.id));return{...t,path:de(y)(n),fill:t.leadingData&&t.enoughCountingProgressShare?t.leadingData.$meta.$relColor:_f.colors.mapBackground,strokeWidth:1,backgroundStrokeWidth:2}})):[])),x=Tt((()=>e.geojsonOutlines?e.geojsonOutlines.features.map((t=>({...t,path:de(y)(t),stroke:_f.colors.foreground,strokeWidth:1}))):[]));function k(t){_f.device.isTouch||(!t.data||t.data.results.length&&t.data.enoughCountingProgressShare?(s(t.data),Xk.item=n):s(null),Xk.show=!!s())}function S(t){l()&&t.data&&t.data.results.length&&t.data.enoughCountingProgressShare?(a(t.data),a()||o()()):("clickoutside"!==t.type&&a(null),o()())}const T="resultsMap";function C(){i?.transition().duration(400).call(de(w).scaleBy,2),gm({element_name:T,element_text:T+"-zoom-plus"})}function M(){i?.transition().duration(400).call(de(w).scaleBy,.5),gm({element_name:T,element_text:T+"-zoom-minus"})}function R({animation:t=!0}={}){t?i?.transition().duration(400).call(de(w).transform,de(v)):i?.call(de(w).transform,de(v)),gm({element_name:T,element_text:T+"-zoom-reset"})}nt((()=>{c()&&(i=Si(r),i.call(de(w)),R({animation:!1}))}));var E=fS();return $n(E,(t=>r=t),(()=>r)),je(Oe(E),(()=>h),(t=>{rn(t,hS())}),((t,e)=>{var n=dS(),r=Pe(n);nS(r,{get width(){return de(d)},get height(){return de(f)},get data(){return de(_)},get outlines(){return de(x)},get outlinesColor(){return _f.colors.foreground},onmousemove:k,onclick:S,children:(t,n=yt)=>{var r=nn();Ye(Pe(r),65,n,We,((t,n,r)=>{let i=()=>Te(Te(n)).id,o=()=>Te(Te(n)).strokeWidth,l=()=>Te(Te(n)).backgroundStrokeWidth;var c=nn();const u=Tt((()=>s()&&s().id===i())),h=Tt((()=>a()&&a().id===i()));Pe(c);var d=Tt((()=>de(h)||de(u)?_f.colors.background:Te(Te(n)).stroke)),f=Tt((()=>de(h)?2*o():o())),p=Tt((()=>de(h)?_f.colors.foreground:void 0)),g=Tt((()=>de(h)?2*l():l())),v=Tt((()=>Te(Te(n)).enoughCountingProgressShare&&!Te(Te(n)).isFullyCounted?e:void 0));!function(t,e){_e(e,!0);const n=Vn(e,"strokeWidth",3,1),r=Vn(e,"backgroundStroke",3,void 0),i=Vn(e,"backgroundStrokeWidth",3,3),s=Vn(e,"fixedStroke",3,void 0),a=Vn(e,"fixedStrokeWidth",3,1),o=Vn(e,"miterLimit",3,5),l=Vn(e,"showStroke",3,!1),c=Vn(e,"showFill",3,!1),u=Vn(e,"pattern",3,void 0),h=Vn(e,"contextName",3,"spiegel-canvas"),{register:d,deregister:f,invalidate:p}=me(h());function g(t){const h=new Path2D(e.path);t.globalAlpha=1,c()&&e.fill&&(t.fillStyle=e.fill,t.fill(h),u()&&(t.fillStyle=t.createPattern(u(),"repeat"),t.fill(h))),l()&&e.stroke&&(t.miterLimit=o(),r()&&(t.strokeStyle=r(),t.lineWidth=i(),t.stroke(h)),t.strokeStyle=e.stroke,t.lineWidth=n(),t.stroke(h)),s()&&(t.strokeStyle=s(),t.lineWidth=a(),t.stroke(h))}nt((()=>(d(g),p(),()=>f(g)))),nt((()=>{e.path,e.stroke,n(),e.fill,l(),c(),p()})),xe()}(0,Fn((()=>we(Te(Te(n)),["id","stroke","strokeWidth","backgroundStrokeWidth","isFullyCounted","enoughCountingProgressShare"])),{get stroke(){return de(d)},get strokeWidth(){return de(f)},get backgroundStroke(){return de(p)},get backgroundStrokeWidth(){return de(g)},get pattern(){return de(v)}})),rn(t,c)})),rn(t,r)}}),Ue(Ae(Ae(r,!0)),c,(t=>{var e=nn(),n=Pe(e),r=Tt((()=>!_f.device.isTouch));!function(t,e){_e(e,!0);let n=Vn(e,"showPlusMinus",3,!0),r=Vn(e,"showReset",3,!0);var i=uS(),s=Oe(i);Oe(s).__click=[lS,e],Ue(Ae(Ae(s,!0)),n,(t=>{var n=cS(),r=Oe(n);r.__click=[aS,e],Ae(Ae(r,!0)).__click=[oS,e],rn(t,n)})),st((()=>fn(s,"show",r()))),rn(t,i),xe()}(n,{get showPlusMinus(){return de(r)},get showReset(){return de(b)},onplus:C,onminus:M,onreset:R}),rn(t,e)})),rn(t,n)})),st((()=>fn(E,"zoomed",de(b)))),Pn(E,"clientWidth",(t=>X(d,t))),Pn(E,"clientHeight",(t=>X(f,t))),ln(E,(t=>Uv(t))),ln(E,(t=>Bv(t))),$e("clickoutside",E,S,!1),$e("mousemoveoutside",E,k,!1),rn(t,E),xe({zoomReset:R})}var gS=tn(''),vS=Ze('');function mS(t,e){var n=t=>{rn(t,gS())};const r=Vn(e,"isInteractive",3,!0);var i=nn();Ue(Pe(i),r,(t=>{var r=vS();r.__click=function(...t){const n=e.onclick;return n?.apply(this,t)};var i=Oe(r);n(i),rn(t,r)}),(t=>{var e=nn(),r=Pe(e);n(r),rn(t,e)})),rn(t,i)}Ie(["click"]);var yS=tn(''),bS=Ze('');function wS(t,e){"Enter"===t.key&&e()}function _S(t,e){t.stopPropagation(),e()(t)}function xS(t,e,n,r){t.preventDefault(),e(t),n()(t),r().blur()}Ie(["click"]);var kS=Ze(''),SS=Ze(''),TS=Ze(' ',1);function CS(t,e){_e(e,!0);let n=Vn(e,"value",7,""),r=Vn(e,"autocompleteValue",3,void 0),i=Vn(e,"onfocus",3,jv),s=Vn(e,"onselect",3,jv),a=Vn(e,"onclear",3,jv),o=Vn(e,"oncancel",3,jv),l=Vn(e,"onclick",3,jv),c=Vn(e,"onblur",3,jv),u=Vn(e,"input",7),h=G(!1),d=G(0),f=Tt((()=>n().length>0)),p=Tt((()=>0===n().length));function g(t){X(h,!0),t&&(t.preventDefault(),t.stopPropagation()),u().focus(),n(""),a()(t)}function v(){u().blur(),s()()}var m=TS(),y=Pe(m),b=Oe(y),w=Oe(b);$n(w,(t=>u(t)),(()=>u())),w.__keydown=[wS,v],w.__click=[_S,l];var _=Ae(Ae(w,!0));Ue(_,r,(t=>{var e=kS();e.__click=v;var n=Oe(e);st((()=>{pn(e,"left",`${Ve(de(d))}px`),Fe(n,`— ${Ve(r())}`)})),rn(t,e)}));var x=Oe(Ae(Ae(_,!0)));Ue(x,(()=>de(f)),(t=>{var e=nn();mS(Pe(e),{onclick:g}),rn(t,e)})),Ue(Ae(Ae(x,!0)),(()=>de(p)),(t=>{var n=nn();!function(t,e){var n=(t,e=yt)=>{var n=yS();st((()=>fn(n,"has-focus",e()))),rn(t,n)};const r=Vn(e,"isInteractive",3,!0),i=Vn(e,"hasFocus",3,!1);var s=nn();Ue(Pe(s),r,(t=>{var r=bS();r.__click=function(...t){const n=e.onclick;return n?.apply(this,t)};var s=Oe(r);n(s,i),rn(t,r)}),(t=>{var e=nn(),r=Pe(e);n(r,i),rn(t,e)})),rn(t,s)}(Pe(n),{isInteractive:!1,get hasFocus(){return e.hasFocus}}),rn(t,n)})),Ue(Ae(Ae(b,!0)),(()=>e.hasFocus&&_f.device.isTouch),(t=>{var e=SS();Oe(e).__click=[xS,g,o,u],rn(t,e)}));var k=Ae(Ae(y,!0)),S=Oe(k);st((()=>{fn(b,"has-focus",e.hasFocus),hn(w,"placeholder",e.placeholder),hn(w,"tabindex",_f.device.isTouch?-1:0),Fe(S,n())})),function(t,e,n){Cn(t,"input",(()=>{n(Mn(t)?Rn(t.value):t.value)})),it((()=>{var n=e();t.__value=n,Mn(t)&&n===Rn(t.value)||("date"!==t.type||n||t.value)&&(t.value=Ve(n))}))}(w,n,(t=>n(t))),$e("focus",w,(function(t){X(h,!0),i()(t)}),!1),$e("blur",w,(function(t){X(h,!1),setTimeout((()=>{de(h)||c()(t)}),200)}),!1),Pn(k,"clientWidth",(t=>X(d,t))),rn(t,m),xe()}Ie(["keydown","click"]);var MS=Ze('<!>
'),RS=Ze('<!> <!>
');function ES(t,e){_e(e,!0);let n,r,i=Vn(e,"value",7,""),s=Vn(e,"autocompleteValue",3,void 0),a=Vn(e,"placeholder",3,"Suchen..."),o=Vn(e,"onfocus",3,jv),l=Vn(e,"onselect",3,jv),c=Vn(e,"onclear",3,jv),u=Vn(e,"onblur",3,jv),h=Vn(e,"immediateFocus",3,!1),d=G(!1);function f(t){X(d,!1),u()(t),r&&r.blur()}nt((()=>{h()&&r&&r.focus()}));var p=RS();$n(p,(t=>n=t),(()=>n));var g=Oe(p);Ue(g,(()=>_f.device.isTouch&&de(d)),(t=>{var n=MS();n.__click=f,Ue(Oe(n),(()=>e.children),(t=>{var n=nn();an((()=>e.children),Pe(n)),rn(t,n)})),st((()=>pn(n,"--header-height",`${Ve(_f.headerHeight)}px`))),rn(t,n)})),CS(Ae(Ae(g,!0)),{get value(){return i()},set value(t){i(t)},get input(){return r},set input(t){r=t},get placeholder(){return a()},get autocompleteValue(){return s()},get hasFocus(){return de(d)},get forceImmediateFocus(){return h()},onfocus:function(){X(d,!0),o()()},onselect:function(t){l()(t),f(t)},get onclear(){return c()},oncancel:f,onblur:f,get immediateFocus(){return h()}}),st((()=>{fn(p,"is-touch",_f.device.isTouch),fn(p,"has-focus",de(d)),pn(p,"--visual-height",`${Ve(_f.visualViewportHeight||300)}px`)})),rn(t,p),xe()}Ie(["click"]);var OS=t=>t.stopPropagation(),PS=t=>t.stopPropagation(),AS=(t,e,n,r)=>de(e)?n(t,Te(r)):void 0,$S=Ze(''),IS=Ze(' 0 Vorschläge gefunden '),DS=(t,e)=>e("left"),NS=Ze(''),LS=(t,e)=>e("right"),HS=Ze(''),FS=Ze("<!> <!>",1),VS=Ze('');function zS(t,e){_e(e,!0);let n,r=Vn(e,"hoveredFeature",7),i=Vn(e,"selectedFeature",7),s=Vn(e,"highlightedFeature",3,void 0),a=Vn(e,"onclick",3,jv),o=Vn(e,"vertical",3,!1),l=[],c=G(0),u=Tt((()=>de(c)>0)),h=G(!1),d=G(!0),f=Tt((()=>l.length!==e.data.length?[]:l.map((t=>t.getBoundingClientRect()))));function p(t,e){t.preventDefault(),r(e)}function g(t,e){t.preventDefault(),i(e),a()(t)}function v(){X(c,gt(n?.scrollLeft||0));const t=n?.scrollWidth-n?.clientWidth;isNaN(t)||X(h,de(c){e.data,v()})),nt((()=>{s()?n.scrollTo({top:0,left:0,behavior:"smooth"}):function(t){const r=e.data.findIndex((e=>e.id===t?.id));if(r<0||!n||!de(f).length)return;const{left:i=0}=de(f)[r]||{},{left:s=0}=n.getBoundingClientRect()||{};n.scrollTo({left:Math.max(0,i-s-13),behavior:"smooth"})}(i())}));var y=VS(),b=Oe(y);$n(b,(t=>n=t),(()=>n)),b.__touchmove=[OS];var w=Oe(b);Ue(Oe(w),(()=>e.data.length),(t=>{var n=nn();Ye(Pe(n),71,(()=>e.data),((t,e)=>Te(t).id),((t,e,n)=>{var a=$S();const o=Tt((()=>{const{id:t,name:n,leadingData:r,results:i,enoughCountingProgressShare:s}=Te(e)||{};return{id:t,name:n,leadingData:r,results:i,enoughCountingProgressShare:s}})),c=Tt((()=>r()&&r().id===de(o).id)),u=Tt((()=>i()&&i().id===de(o).id)),h=Tt((()=>de(o).results&&de(o).results.length>0&&de(o).enoughCountingProgressShare)),d=Tt((()=>s()&&s().id===de(o).id));$n(a,((t,e)=>l[e]=t),(t=>l?.[t]),(()=>[Te(n)]));var f=Oe(a);f.__mousemove=[PS],f.__click=[AS,h,g,e];var v=Oe(f),m=Oe(Ae(Ae(v,!0)));st((()=>{fn(a,"is-hovered",de(c)),fn(a,"is-selected",de(u)),fn(a,"is-highlighted",de(d)),pn(a,"--color",de(o).leadingData?.$meta.$relColor||(de(h)?"var(--int-color-selectable)":"var(--int-font-color-gray-lighter)")),fn(f,"is-selectable",de(h)),Fe(m,de(o).name)})),$e("mouseenter",f,(t=>de(h)?p(t,Te(e)):void 0),!1),$e("mouseleave",f,(t=>p(t,null)),!1),rn(t,a)})),rn(t,n)}),(t=>{rn(t,IS())})),Ue(Ae(Ae(b,!0)),(()=>!_f.device.isTouch),(t=>{var e=FS(),n=Pe(e);Ue(n,(()=>de(u)),(t=>{var e=NS();Sn(3,e,(()=>Wm)),e.__click=[DS,m],Zm(Oe(e),{type:"dark",direction:"left"}),rn(t,e)})),Ue(Ae(Ae(n,!0)),(()=>de(h)),(t=>{var e=HS();Sn(3,e,(()=>Wm)),e.__click=[LS,m],Zm(Oe(e),{type:"dark",direction:"right"}),rn(t,e)})),rn(t,e)})),st((()=>{fn(y,"is-vertical",o()),fn(b,"is-vertical",o()),pn(w,"pointer-events",de(d)?"auto":"none")})),ln(b,((t,e)=>Qm(t,e)),(()=>({axis:"x",event:"mouse",cursor:!1}))),$e("scroll",b,v,!1),$e("dragging",b,(()=>X(d,!1)),!1),$e("draggingend",b,(()=>X(d,!0)),!1),rn(t,y),xe()}Ie(["touchmove","mousemove","click"]);var jS=Ze('');class US{#i=G();get value(){return de(this.#i)}set value(t){X(this.#i,gt(t))}key="";constructor(t,e){this.key=t,this.#i.v=gt(e);const n=localStorage.getItem(t);n&&(this.#i.v=gt(this.deserialize(n))),nt((()=>{localStorage.setItem(this.key,this.serialize(this.value))}))}serialize(t){return JSON.stringify(t)}deserialize(t){return JSON.parse(t)}}var BS=Ze('');function qS(t,e){_e(e,!0);let n=Vn(e,"onSavedConstituencty",7),r=G(void 0),i=function(t,e){return new US(t,e)}("savedConstituencies",""),s=Tt((()=>{n();let t=localStorage.getItem("savedConstituencies");if(!t)return[];let e=t.split('"').join("");return e&&e.length>0?e.split(",").filter((t=>t)):[]})),a=Tt((()=>de(s).includes(e.id)));var o=BS(),l=Oe(o);l.__click=()=>{de(a)?("0"===i.value&&(i.value=""),i.value=i.value.replace(e.id+",",""),setTimeout((()=>{n(!n())}),3)):de(r)!==e.id&&(X(r,gt(e.id)),i.value=i.value+e.id+",",setTimeout((()=>{n(!n())}),3))},st((()=>{fn(o,"slidable",e.slidable),fn(l,"active",de(a))})),rn(t,o),xe()}Ie(["click"]);var WS=t=>t.stopPropagation(),YS=()=>{},GS=Ze('');function KS(t,e){_e(e,!0);let n=Vn(e,"show",3,!1),r=Vn(e,"fullShow",3,!1),i=Vn(e,"desktopFull",3,!1),s=Vn(e,"onclose",3,(()=>{})),a=Vn(e,"onSavedConstituencty",7),o=Vn(e,"bookmarkable",3,!1);let l,c=0,u=0,h=0,d=Tt((()=>"article"===Wd.type||_f.visualWidth<886)),f=G(!1),p=G(void 0),g=G(0),v=Tt((()=>[_f.headerHeight-_f.contentHeight-_f.headerHeight,-300,10]));function m(t){return t-_f.contentHeight-_f.headerHeight}function y(t){t.stopPropagation(),X(f,!0);const{clientY:e}=t.touches?t.touches[0]:t,{y:n}=l.getBoundingClientRect();c=e-n}function b(t){if(!de(f))return;t.preventDefault();const{clientX:e=0,clientY:n=0}=t.touches?t.touches[0]:t;if(Math.abs(h-n)de(p)?1:-1,r=de(v).findIndex((t=>t===de(p))),i=Math.max(0,Math.min(de(v).length-1,r+n));X(g,gt(X(p,gt(de(v)[i]))))}nt((()=>{n()?r()?de(d)&&X(g,gt(X(p,gt(de(v)[0])))):de(d)&&X(g,gt(X(p,gt(de(v)[1])))):de(d)&&X(g,gt(X(p,gt(de(v)[2]))))})),nt((()=>{de(d)&&de(p)===de(v)[2]&&s()()}));var _=nn();$e("mousemove",Re,b,!1),$e("touchmove",Re,b,!1,!0),Ue(Pe(_),(()=>de(d)||n()),(t=>{var n=GS();$n(n,(t=>l=t),(()=>l)),n.__touchstart=y,n.__mousedown=y,n.__touchend=w,n.__mouseup=w,n.__click=[WS],n.__keyup=[YS],pn(n,"--infocard-margin",`${Ve(17)}px`);var r=Oe(n),c=Oe(r);Ue(c,(()=>de(d)),(t=>{var e=nn();!function(t){rn(t,jS())}(Pe(e)),rn(t,e)}));var u=Oe(Ae(Ae(c,!0))),h=Oe(u),p=Ae(Ae(u,!0));Ue(p,(()=>o()&&de(d)),(t=>{var n=nn();qS(Pe(n),{get onSavedConstituencty(){return a()},set onSavedConstituencty(t){a(t)},get slidable(){return de(d)},get id(){return e.id}}),rn(t,n)})),mS(Ae(Ae(p,!0)),{get onclick(){return s()}});var v=Ae(Ae(r,!0));Ue(Oe(v),(()=>e.children),(t=>{var n=nn();an((()=>e.children),Pe(n),(()=>de(d))),rn(t,n)})),Ue(Ae(Ae(v,!0)),(()=>o()&&!de(d)),(t=>{var n=nn();qS(Pe(n),{get onSavedConstituencty(){return a()},set onSavedConstituencty(t){a(t)},get slidable(){return de(d)},get id(){return e.id}}),rn(t,n)})),st((()=>{fn(n,"slidable",de(d)),fn(n,"with-transition",de(d)&&!de(f)),fn(n,"is-full-on-desktop",i()),pn(n,"top",`${Ve(de(d)?_f.headerHeight+_f.contentHeight:17)}px`),pn(n,"transform",`translate(${Ve(de(d)?-50:0)}%, ${Ve(de(d)?de(g):0)}px)`),pn(n,"--content-height",`${Ve(_f.contentHeight)}px`),fn(u,"slidable",de(d)),Fe(h,e.title)})),$e("dragstart",n,(()=>!1),!1),rn(t,n)})),rn(t,_),xe()}Ie(["touchstart","mousedown","touchend","mouseup","click","keyup"]);var XS=Ze(' '),QS=Ze('<!> <!>
');const JS=(t,e,n,r,i,s)=>{e(!e()),n(),r()&&i({element_name:"collapisble-container",element_text:"cc-"+s()})};var ZS=Ze('');function tT(t,e){_e(e,!0);let n=Vn(e,"children",3,void 0),r=Vn(e,"title",3,""),i=Vn(e,"type",3,"uniqueId"),s=Vn(e,"infoCard",3,!1),a=Vn(e,"collapsed",7,!0),o=Vn(e,"lastItem",3,!1),l=Vn(e,"tracking",3,!1);const c=Tt((()=>a()?"bottom":"top"));let u,h=!1;const d=()=>{h&&(a()?h.style.height="0px":h.style.height=h.scrollHeight+"px")};nt((()=>{new ResizeObserver((()=>{!a()&&h&&(h.style.height=h.scrollHeight+"px")})).observe(h),a()?u.removeAttribute("checked"):(u.setAttribute("checked","checked"),d())}));var f=ZS(),p=Oe(f);$n(p,(t=>u=t),(()=>u)),p.__change=[JS,a,d,l,gm,r];var g=Ae(Ae(p,!0)),v=Oe(g),m=Oe(v),y=Oe(m);Zm(Oe(Ae(Ae(m,!0))),{get direction(){return de(c)}});var b=Ae(Ae(g,!0));$n(b,(t=>h=t),(()=>h)),an(n,Oe(b)),st((()=>{fn(f,"infoCard",s()),fn(f,"lastItem",o()),hn(p,"id",i()),hn(g,"for",i()),fn(g,"hidden","article"===Wd.type&&1===e.nrItems),Fe(y,r())})),rn(t,f),xe()}function eT(t){return--t*t*t*t*t+1}Ie(["change"]);var nT=(t,e,n)=>de(e)?X(n,!de(n)):null,rT=Ze('<!>
'),iT=Ze(" "),sT=Ze(' '),aT=Ze(' <!>',1);Ie(["click"]);var oT=(t,e,n)=>de(e)?X(n,!de(n)):null,lT=Ze('<!>
'),cT=Ze(" "),uT=Ze(' '),hT=Ze('
<!>',1);Ie(["click"]);var dT=Ze('');function fT(t,e){let n=Vn(e,"type",3,!1);var r=dT();Ye(r,73,(()=>e.results),We,((t,e,r)=>{let i=()=>Te(Te(e)).$meta,s=()=>Te(Te(e)).$shareValue,a=()=>Te(Te(e)).$diffValue;var o=nn();Ue(Pe(o),(()=>!1===n()),(t=>{var e=nn();!function(t,e){_e(e,!0);let n=G(!1),r=G(null),i=G(null),s=Tt((()=>de(r)&&de(r).scrollWidth>de(i)));const a="tableRow"+e.party.id,[o,l]=Km({fallback(t,e){const n=getComputedStyle(t),r="none"===n.transform?"":n.transform;return{duration:300,easing:eT,css:t=>`\n\t\t\t\t\ttransform: ${r} scale(${t});\n\t\t\t\t\topacity: ${t}\n\t\t\t\t`}}});var c=aT(),u=Pe(c);Sn(3,u,(()=>Ym));var h=Oe(u);$n(h,(t=>X(r,gt(t))),(()=>de(r))),h.__click=[nT,s,n];var d=Oe(h);Ue(d,(()=>de(s)),(t=>{var e=rT(),r=Oe(e),i=Tt((()=>de(n)?"top":"bottom"));Zm(r,{type:"light",get direction(){return de(i)}}),rn(t,e)})),Ue(Ae(Ae(d,!0)),(()=>!de(n)),(t=>{var n=iT();Sn(1,n,(()=>l),(()=>({key:a}))),Sn(2,n,(()=>o),(()=>({key:a})));var r=Oe(n);st((()=>Fe(r,e.party.name))),rn(t,n)}));var f=Ae(Ae(h,!0)),p=Oe(f),g=Oe(Ae(Ae(f,!0)));Ue(Ae(Ae(u,!0)),(()=>de(n)),(t=>{var n=sT(),r=Oe(n);Sn(1,r,(()=>l),(()=>({key:a}))),Sn(2,r,(()=>o),(()=>({key:a})));var i=Oe(r);st((()=>{fn(n,"even",e.even),Fe(i,e.party.name)})),rn(t,n)})),st((()=>{fn(u,"even",e.even),fn(h,"overflowing",de(s)),pn(h,"padding-right",de(s)?"10px":"0px"),Fe(p,e.shareValue),Fe(g,e.diffValue)})),Pn(h,"clientWidth",(t=>X(i,t))),rn(t,c),xe()}(Pe(e),{get party(){return i()},get shareValue(){return s().str},get diffValue(){return a().str},even:Te(r)%2==0}),rn(t,e)}),(t=>{var o=nn();Ue(Pe(o),(()=>"constituency"===n()),(t=>{var n=nn();!function(t,e){_e(e,!0);let n=G(!1),r=G(null),i=G(null),s=Tt((()=>de(r)&&de(r).scrollWidth>de(i)));const a="tableRowConstituency"+e.party.id,[o,l]=Km({fallback(t,e){const n=getComputedStyle(t),r="none"===n.transform?"":n.transform;return{duration:300,easing:eT,css:t=>`\n\t\t\t\t\ttransform: ${r} scale(${t});\n\t\t\t\t\topacity: ${t}\n\t\t\t\t`}}});var c=hT(),u=Pe(c);Sn(3,u,(()=>Ym));var h=Oe(u);$n(h,(t=>X(r,gt(t))),(()=>de(r))),h.__click=[oT,s,n];var d=Oe(h);Ue(d,(()=>de(s)),(t=>{var e=lT(),r=Oe(e),i=Tt((()=>de(n)?"top":"bottom"));Zm(r,{type:"light",get direction(){return de(i)}}),rn(t,e)})),Ue(Ae(Ae(d,!0)),(()=>!de(n)),(t=>{var n=cT();Sn(1,n,(()=>l),(()=>({key:a}))),Sn(2,n,(()=>o),(()=>({key:a})));var r=Oe(n);st((()=>Fe(r,e.candidateName))),rn(t,n)}));var f=Ae(Ae(h,!0)),p=Oe(f),g=Ae(Ae(f,!0)),v=Oe(g),m=Oe(Ae(Ae(g,!0)));Ue(Ae(Ae(u,!0)),(()=>de(n)),(t=>{var n=uT(),r=Oe(n);Sn(1,r,(()=>l),(()=>({key:a}))),Sn(2,r,(()=>o),(()=>({key:a})));var i=Oe(r);st((()=>{fn(n,"even",e.even),Fe(i,e.candidateName)})),rn(t,n)})),st((()=>{fn(u,"even",e.even),fn(h,"overflowing",de(s)),pn(h,"padding-right",de(s)?"10px":"0px"),Fe(p,e.party.abbr),Fe(v,e.shareValue),Fe(m,e.diffValue)})),Pn(h,"clientWidth",(t=>X(i,t))),rn(t,c),xe()}(Pe(n),{get party(){return i()},get shareValue(){return s().str},get diffValue(){return a().str},even:Te(r)%2==0,get candidateName(){return Te(Te(e)).candidateName}}),rn(t,n)}),null,!0),rn(t,o)})),rn(t,o)})),rn(t,r)}var pT=Ze('');function gT(t){rn(t,pT())}var vT=Ze(' ',1),mT=Ze('Wahlbeteiligung, in Prozent
');function yT(t,e){_e(e,!0);var n=mT(),r=Oe(n),i=Oe(Ae(Ae(r,!0))),s=Oe(i),a=Oe(s),o=Oe(Ae(Ae(s,!0)));Ue(Ae(Ae(i,!0)),(()=>e.previousTurnout&&e.previousYear),(t=>{var n=vT(),r=Oe(Ae(Ae(Pe(n),!0))),i=Oe(r),s=Oe(Ae(Ae(r,!0)));st((()=>{Fe(i,e.previousYear),Fe(s,e.previousTurnout.str)})),rn(t,n)})),st((()=>{Fe(a,e.currentYear),Fe(o,e.currentTurnout.str)})),rn(t,n),xe()}var bT=Ze(''),wT=Ze(' ',1);var _T=Ze("<!> <!>",1),xT=Ze(' <!> <!>
',1);function kT(t,e){_e(e,!0);const n=Tt((()=>e.results.slice(0,5))),r=Tt((()=>e.results.slice(5))),i=Tt((()=>de(r)&&de(r).length>0));let s=G(!0);const a=Tt((()=>de(s)?e.showOtherCandidatesStr:e.hideOtherCandidatesStr));var o=xT(),l=Pe(o),c=Oe(l),u=Oe(c);st((()=>Fe(u,e.personalVotesStr.replace(/{personalVotes}/g,Iv("cardVariables","personalVotes")))));var h=Oe(Ae(Ae(l,!0)));Ye(h,65,(()=>de(n)),We,((t,e,n)=>{var r=nn();!function(t,e){_e(e,!0);const n=Tt((()=>e.result.candidateName)),r=Tt((()=>e.result.$meta.abbr)),i=Tt((()=>e.result.$heightPercentage+"%")),s=Tt((()=>e.result.$meta.$color)),a=Tt((()=>e.result.$shareValue.str));var o=wT(),l=Pe(o),c=Oe(l);Ue(c,(()=>de(n)),(t=>{var e=bT(),r=Oe(e);st((()=>Fe(r,de(n)))),rn(t,e)}));var u=Oe(Ae(Ae(c,!0))),h=Oe(Ae(Ae(l,!0))),d=Oe(Ae(Ae(h,!0)));st((()=>{Fe(u,de(r)),pn(h,"background-color",de(s)),pn(h,"width",de(i)),Fe(d,de(a))})),rn(t,o),xe()}(Pe(r),{get result(){return Te(e)}}),rn(t,r)})),Ue(Ae(Ae(h,!0)),(()=>de(i)),(t=>{var e=_T(),n=Pe(e);Be(n,0,(()=>({"--color-separator":"var(--int-font-color-gray-fond)"})),(t=>gT(t))),tT(Ae(Ae(n,!0)),{type:"InfocardResultConstituencyCollapsible",get title(){return de(a)},infoCard:!0,get collapsed(){return de(s)},set collapsed(t){X(s,gt(t))},children:(t,e)=>{var n=nn();fT(Pe(n),{get results(){return de(r)},type:"constituency"}),rn(t,n)},$$slots:{default:!0}}),rn(t,e)})),rn(t,o),xe()}var ST=Ze("<!> <!>",1),TT=Ze("<!> <!>",1),CT=Ze('');var MT=Ze("<!> <!>",1),RT=Ze('<!>
');function ET(t,e){_e(e,!0);const n=Ln(e,[]);let r;var i=RT();$n(i,(t=>r=t),(()=>r)),i.__touchmove=function(t){r.scrollTop>0&&t.stopPropagation()},Ue(Oe(i),(()=>n&&n.partyVotesStr&&n.electionKey),(t=>{var e=MT(),r=Pe(e);!function(t,e){_e(e,!0);const n=Vn(e,"stateName",3,!1),r=Tt((()=>e.returningResults?.countingProgress?.isFullyCounted)),i=Tt((()=>e.returningResults?.countingProgress?.countingType));var s=QS(),a=Oe(s);Ue(a,n,(t=>{var e=XS(),r=Oe(e);st((()=>Fe(r,n()))),rn(t,e)}));var o=Ae(Ae(a,!0));Ue(Oe(o),(()=>de(r)),(t=>{var n=en();st((()=>Fe(n,e.countingProgressFullyStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription"))))),rn(t,n)}),(t=>{var n=en();st((()=>Fe(n,e.countingProgressStr.replace(/{countingShare}/g,e.returningResults?.countingProgress?.share).replace(/{countingType}/g,Iv("countingTypes",de(i)))))),rn(t,n)}));var l=Oe(Ae(Ae(o,!0)));st((()=>Fe(l,e.partyVotesStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription")).replace(/{partyVotes}/g,Iv("cardVariables","partyVotes")).replace(/{personalVotes}/g,Iv("cardVariables","personalVotes"))))),rn(t,s),xe()}(r,Fn((()=>n))),function(t,e){_e(e,!0);const n=Ln(e,["results","constituencyVotes","data","showOtherPartiesStr","hideOtherPartiesStr","returningResults"]);let r=G(0);const i=Tt((()=>de(r)<400));let s=Tt((()=>({listVotesHeight:"60px",columnHeight:"60px",marginParty:de(i)?"13px":"32px",marginPreviousResult:de(i)?"-3px":"4px",columnWidth:(de(i),"22px")})));const a=Tt((()=>e.data.config.settings)),o=Tt((()=>e.results.slice(0,5))),l=Tt((()=>de(a)?.partyIdForOthers)),c=Tt((()=>e.results.slice(5).filter((t=>t.partyId!==de(l))))),u=Tt((()=>e.results.find((t=>t.partyId===de(l)))));let h=G(!0);const d=Tt((()=>{const t=de(u)?.$shareValue,n=de(u)?.$meta?.name,r=de(h)?e.showOtherPartiesStr:e.hideOtherPartiesStr;return n+": "+t.str+t.suffix+" "+r})),f=Tt((()=>!!e.returningResults?.additionalInformation?.currentTurnout&&Jd(e.returningResults.additionalInformation.currentTurnout,1))),p=Tt((()=>!!e.returningResults?.additionalInformation?.previousTurnout&&Jd(e.returningResults.additionalInformation.previousTurnout))),g=Tt((()=>n.showPersonalVotes));var v=CT(),m=Oe(v),y=Oe(m),b=Tt((()=>de(a)?.$dateCurrentYear)),w=Tt((()=>de(a)?.$datePreviousYear));Um(y,{get results(){return de(o)},get css(){return de(s)},get currentYear(){return de(b)},get previousYear(){return de(w)}});var _=Ae(Ae(m,!0)),x=Ae(Ae(_,!0));Be(x,0,(()=>({"--color-separator":"var(--int-font-color-gray-fond)"})),(t=>gT(t)));var k=Ae(Ae(x,!0));tT(k,{type:"InfocardResultCollapsible",get title(){return de(d)},infoCard:!0,get collapsed(){return de(h)},set collapsed(t){X(h,gt(t))},children:(t,e)=>{var n=nn();fT(Pe(n),{get results(){return de(c)}}),rn(t,n)},$$slots:{default:!0}});var S=Ae(Ae(k,!0));Ue(S,(()=>de(g)),(t=>{var r=ST(),i=Pe(r);Be(i,0,(()=>({"--color-separator":"var(--int-font-color-gray-fond)"})),(t=>gT(t)));var s=Ae(Ae(i,!0)),a=Tt((()=>e.constituencyVotes?.$results));kT(s,Fn({get results(){return de(a)}},(()=>n))),rn(t,r)})),Ue(Ae(Ae(S,!0)),(()=>de(f)&&de(a)?.$dateCurrentYear),(t=>{var e=TT(),n=Pe(e);Be(n,0,(()=>({"--color-separator":"var(--int-font-color-gray-fond)"})),(t=>gT(t)));var r=Ae(Ae(n,!0)),i=Tt((()=>de(a)?.$dateCurrentYear)),s=Tt((()=>de(a)?.$datePreviousYear));yT(r,{get currentTurnout(){return de(f)},get previousTurnout(){return de(p)},get currentYear(){return de(i)},get previousYear(){return de(s)}}),rn(t,e)})),Pn(v,"clientWidth",(t=>X(r,t))),rn(t,v),xe()}(Ae(Ae(r,!0)),Fn((()=>n))),rn(t,e)})),rn(t,i),xe()}Ie(["touchmove"]);var OT=(t,e,n)=>e.onclick(Te(n)),PT=Ze(''),AT=Ze('');function $T(t,e){_e(e,!0),Ln(e,["onSavedConstituencty","mapData","onclick"]);let n=Tt((()=>{e.onSavedConstituencty;let t=localStorage.getItem("savedConstituencies");if(!t)return[];let n=t.split('"').join("");return n&&n.length>0?(n=n.split(",").filter((t=>t)),n.map((t=>{if(t)return e.mapData.find((e=>e.id===t))})).filter((t=>t))):[]}));const r=Tt((()=>_f.visualWidth<599&&_f.visualWidth>449?500:_f.visualWidth<450&&_f.visualWidth>393?_f.visualWidth:Math.min(_f.visualWidth,395)));var i=AT(),s=Oe(i);Ye(s,73,(()=>de(n)),We,((t,n,r)=>{var i=PT();i.__click=[OT,e,n];var s=Oe(i),a=Oe(s);st((()=>Fe(a,Te(n).name))),rn(t,i)})),st((()=>{fn(i,"slidable",_f.visualWidth<869),fn(i,"tablet",_f.visualWidth<869&&_f.visualWidth>598),pn(i,"--items",de(n).length),pn(s,"--width",de(r)+"px")})),rn(t,i),xe()}Ie(["click"]);var IT=Ze("Lädt...",1),DT=Ze(''),NT=Ze("<!> <!>",1),LT=Ze("Lädt...",1),HT=Ze('');const FT=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);var n=t=>{var n=NT(),i=Pe(n);Ue(i,(()=>!de(w)),(t=>{var e=nn();$T(Pe(e),{onclick:b,get onSavedConstituencty(){return de(m)},get mapData(){return de(d)}}),rn(t,e)})),Ue(Ae(Ae(i,!0)),(()=>"constituency_search"===e.interaction),(t=>{var n=nn(),i=Pe(n),s=Tt((()=>de(v)?.name)),a=Tt((()=>e.searchStr.replace("{constituencyDescription}",Iv("cardVariables","constituencyDescription"))));ES(i,{get value(){return de(p)},set value(t){X(p,gt(t))},get autocompleteValue(){return de(s)},get placeholder(){return de(a)},onselect:c,onclear:h,onblur:u,children:(t,n)=>{var i=DT(),s=Oe(i);je(Oe(s),(()=>e.geojson),(t=>{rn(t,IT())}),((t,e)=>{var n=nn();const i=Tt((()=>{const{constituencies:t,states:n}=e||{};return{constituencies:t,states:n}}));pS(Pe(n),Fn((()=>r),{get mapData(){return de(d)},get geojson(){return de(i).constituencies},get geojsonOutlines(){return de(i).states},get selectedFeature(){return de(v)}})),rn(t,n)}));var a=Oe(Ae(Ae(s,!0))),c=Tt((()=>""!==de(p)?de(g):de(d)));zS(a,{get data(){return de(c)},get hoveredFeature(){return de(o)},set hoveredFeature(t){X(o,gt(t))},get selectedFeature(){return de(l)},set selectedFeature(t){X(l,gt(t))},get highlightedFeature(){return de(v)},vertical:!0}),rn(t,i)},$$slots:{default:!0}}),rn(t,n)})),rn(t,n)};let r=Ln(e,["results","geojson","showTrendResults","minimumCountingShareForTrendResults","searchStr","interaction","headerSnippets"]);const i="listVotes";qv({search:n,infoCard:t=>{var e=nn(),n=Pe(e),i=Tt((()=>de(l)&&s.isInView)),a=Tt((()=>de(l)?.name)),o=Tt((()=>de(l)?.id));KS(n,{get show(){return de(i)},slidable:!1,bookmarkable:!0,get onSavedConstituencty(){return de(m)},set onSavedConstituencty(t){X(m,gt(t))},get title(){return de(a)},get id(){return de(o)},onclose:h,children:(t,e=yt)=>{var n=nn();Ue(Pe(n),(()=>de(l)),(t=>{var n=nn();ET(Pe(n),Fn((()=>de(l)),(()=>r),{get slidable(){return e()},onclose:h})),rn(t,n)})),rn(t,n)}}),rn(t,e)}});const s=Wv();let a,o=G(void 0),l=G(void 0);function c(){X(l,gt(de(v))),X(p,"")}function u(){X(p,"")}function h(){y||(X(p,""),X(l,null))}const d=Tt((()=>e.results.results.map((t=>{const n=t.returningResults.countingProgress.isFullyCounted,r=n?100:t.returningResults.countingProgress.share;let s=e.showTrendResults&&e.minimumCountingShareForTrendResults&&r&&r>=e.minimumCountingShareForTrendResults&&e.minimumCountingShareForTrendResults>=0||!1;n&&(s=!0);const a=t.returningResults[i],o=a.results.map((t=>({...t,$meta:{...t.$meta,$relColor:e.results.aesthetics[i][t.partyId]?.$totalColorScale(t.currentShare)}}))).find((t=>t.partyId===a.additionalInformation.$leadingParty.id)),l=t.returningResults.constituencyVotes;return{...t,...a,isFullyCounted:n,leadingData:o,enoughCountingProgressShare:s,constituencyVotes:l}})).sort(((t,e)=>(t.leadingData?.currentShare||0)-(e.leadingData?.currentShare||0)<0?1:-1))));let f=Tt((()=>!de(d).every((t=>t.isFullyCounted))&&e.showTrendResults)),p=G(""),g=Tt((()=>zv(de(d),de(p)))),v=Tt((()=>{const t=de(g).filter((t=>t.results.length>0&&t.enoughCountingProgressShare));return t.length?t[0]:void 0})),m=G(!1),y=!1;const b=t=>{y=!0,s.isInView=!0,X(l,gt(t)),setTimeout((()=>{y=!1}),33)},w=Tt((()=>_f.visualWidth<869&&_f.visualWidth>598)),_=Tt((()=>de(d).filter((t=>t.enoughCountingProgressShare||t.isFullyCounted)).length));var x=HT(),k=Oe(x),S=Oe(k);Ue(Oe(S),(()=>de(_)),(t=>{var n=nn();!function(t,e){_e(e,!0);const n=Ln(e,["subline","countedStr","showTrendResults","trendResultsStr","countedConstituencies","totalConstituencies"]);var r=Kk(),i=Oe(r),s=Oe(i);sn(Oe(s),(()=>e.subline.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription")).replace(/{partyVotes}/g,Iv("cardVariables","partyVotes"))));var a=Oe(Ae(Ae(s,!0)));st((()=>Fe(a,e.countedStr.replace(/{countedConstituencies}/g,e.countedConstituencies).replace(/{totalConstituencies}/g,e.totalConstituencies)))),Gk(Oe(Ae(Ae(i,!0))),Fn({get showTrendResults(){return e.showTrendResults},get trendResultsStr(){return e.trendResultsStr}},(()=>n))),rn(t,r),xe()}(Pe(n),Fn((()=>r),(()=>e.results.additionalInformation),{get showTrendResults(){return de(f)}})),rn(t,n)})),je(Oe(Ae(Ae(S,!0))),(()=>e.geojson),(t=>{rn(t,LT())}),((t,e)=>{var n=nn();const i=Tt((()=>{const{constituencies:t,states:n}=e||{};return{constituencies:t,states:n}}));$n(pS(Pe(n),Fn((()=>r),{get mapData(){return de(d)},get geojson(){return de(i).constituencies},get geojsonOutlines(){return de(i).states},get showTrendResults(){return de(f)},get hoveredFeature(){return de(o)},set hoveredFeature(t){X(o,gt(t))},get selectedFeature(){return de(l)},set selectedFeature(t){X(l,gt(t))},onclear:h,clickable:!0,enableZoom:!0})),(t=>a=t),(()=>a)),rn(t,n)}));var T=Ae(Ae(k,!0));Ue(T,(()=>de(w)),(t=>{var e=nn();$T(Pe(e),{onclick:b,get onSavedConstituencty(){return de(m)},get mapData(){return de(d)}}),rn(t,e)}));var C=Oe(Ae(Ae(T,!0)));n(Oe(C));var M=Oe(Ae(Ae(C,!0))),R=Tt((()=>""!==de(p)?de(g):de(d)));zS(M,{get data(){return de(R)},get hoveredFeature(){return de(o)},set hoveredFeature(t){X(o,gt(t))},get selectedFeature(){return de(l)},set selectedFeature(t){X(l,gt(t))},get highlightedFeature(){return de(v)},onclick:function(){a&&a.zoomReset({animation:!0})}}),rn(t,x),xe()}},Symbol.toStringTag,{value:"Module"}));var VT=Ze(' '),zT=Ze('');function jT(t,e){let n=Tt((()=>[{label:e.legendSeatStr,show:!0},{label:e.legendHatchStr,colorClassName:"has-hatch",show:e.showTrendResults}]));var r=zT();Ye(r,73,(()=>de(n)),We,((t,e,n)=>{var r=nn();Ue(Pe(r),(()=>Te(Te(e)).show),(t=>{var n=VT(),r=Oe(n),i=Oe(Ae(Ae(r,!0)));st((()=>{dn(r,`color-box ${Ve(Te(Te(e)).colorClassName)} svelte-76k18`),Fe(i,Te(Te(e)).label)})),rn(t,n)})),rn(t,r)})),rn(t,r)}var UT=Ze('');function BT(t,e){_e(e,!0);let n=Vn(e,"strokeWidth",3,1),r=Vn(e,"backgroundStroke",3,void 0),i=Vn(e,"backgroundStrokeWidth",3,3),s=Vn(e,"fixedStroke",3,void 0),a=Vn(e,"fixedStrokeWidth",3,1),o=Vn(e,"showStroke",3,!1),l=Vn(e,"showFill",3,!1),c=Vn(e,"pattern",3,void 0),u=Vn(e,"contextName",3,"spiegel-canvas");const{register:h,deregister:d,invalidate:f}=me(u());function p(t){const u=new Path2D(e.path);t.globalAlpha=1,l()&&e.fill&&(t.fillStyle=e.fill,t.fill(u),c()&&(t.fillStyle=t.createPattern(c(),"repeat"),t.fill(u))),o()&&e.stroke&&(r()&&(t.strokeStyle=r(),t.lineWidth=i(),t.stroke(u)),t.strokeStyle=e.stroke,t.lineWidth=n(),t.stroke(u)),s()&&(t.strokeStyle=s(),t.lineWidth=a(),t.stroke(u))}nt((()=>(h(p),f(),()=>d(p)))),nt((()=>{e.path,e.stroke,n(),e.fill,o(),l(),f()})),xe()}var qT=Ze('<!>
');var WT=Ze(' <!>
<!>',1),YT=Ze(''),GT=Ze('');function KT(t,e){_e(e,!0);const n=Ln(e,["name","numSeats","returningResults","partyVotesStr","countingProgressStr","countingProgressFullyStr","seatsPerCountryStr","additionalInformation","missingVoteShareStr"]),r=Tt((()=>e.returningResults?.listVotes?.results.slice(0,5))),i=Tt((()=>e.returningResults?.countingProgress.isFullyCounted)),s=Tt((()=>e.returningResults?.countingProgress.countingType)),a=Tt((()=>e.returningResults?.listVotes?.results.length>0));var o=GT(),l=Oe(o),c=Oe(l),u=Oe(c);Ue(Oe(Ae(Ae(l,!0))),(()=>de(a)),(t=>{var a=WT(),o=Pe(a),l=Oe(o),c=Oe(l);st((()=>Fe(c,e.seatsPerCountryStr.replace(/{totalCountrySeats}/g,e.numSeats))));var u=Ae(Ae(l,!0)),h=Oe(u);st((()=>Fe(h,e.partyVotesStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription")).replace(/{partyVotes}/g,Iv("cardVariables","partyVotes")).replace(/{personalVotes}/g,Iv("cardVariables","personalVotes"))))),Ue(Oe(Ae(Ae(u,!0))),(()=>de(i)&&e.countingProgressFullyStr),(t=>{var n=en();st((()=>Fe(n,e.countingProgressFullyStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription"))))),rn(t,n)}),(t=>{var n=nn();Ue(Pe(n),(()=>e.countingProgressStr),(t=>{var n=en();st((()=>Fe(n,e.countingProgressStr.replace(/{countingShare}/g,e.returningResults?.countingProgress.share).replace(/{countingType}/g,Iv("countingTypes",de(s)))))),rn(t,n)}),null,!0),rn(t,n)})),function(t,e){_e(e,!0);let n=Tt((()=>({listVotesHeight:"70px",columnHeight:"70px",marginParty:"13px",marginPreviousResult:"-3px",columnWidth:"22px"})));const r=Tt((()=>e.data.config.settings)),i=Tt((()=>e.results.slice(0,5)));var s=qT(),a=Oe(s),o=Tt((()=>de(r)?.$dateCurrentYear)),l=Tt((()=>de(r)?.$datePreviousYear));Um(a,{get results(){return de(i)},get css(){return de(n)},get currentYear(){return de(o)},get previousYear(){return de(l)}}),rn(t,s),xe()}(Ae(Ae(o,!0)),Fn({get results(){return de(r)}},(()=>n))),rn(t,a)}),(t=>{var n=YT(),r=Oe(n);st((()=>Fe(r,e.missingVoteShareStr))),rn(t,n)})),st((()=>{fn(o,"fixed-dimensions",de(a)),Fe(u,e.name)})),rn(t,o),xe()}var XT=Ze('<!> <!>
');function QT(t,e){_e(e,!0);let n=Vn(e,"isGrayScale",3,!1),r=Vn(e,"isHalfTransparent",3,!1),i=Tt((()=>e.data.map((t=>({...t,showStroke:!1,showFill:!0}))))),s=Tt((()=>e.data.map((t=>({...t,showStroke:!0,showFill:!1})))));var a=XT();pn(a,"position","var(--position, relative)"),pn(a,"z-index","var(--z-index, 0)");var o=Oe(a);Be(o,0,(()=>({"--pointer-events":"none"})),(t=>tS(t,{get width(){return e.width},get height(){return e.height},alpha:!0,children:(t,n)=>{var r=nn();an((()=>e.children),Pe(r),(()=>de(i))),rn(t,r)},$$slots:{default:!0}}))),Be(Ae(Ae(o,!0)),0,(()=>({"--position":"absolute","--z-index":"5","--pointer-events":"none"})),(t=>tS(t,{get width(){return e.width},get height(){return e.height},alpha:!0,children:(t,n)=>{var r=nn();an((()=>e.children),Pe(r),(()=>de(s))),rn(t,r)},$$slots:{default:!0}}))),st((()=>{fn(a,"is-gray-scale",n()),fn(a,"is-half-transparent",r())})),rn(t,a),xe()}var JT=Ze('<!> <!> <!>
');function ZT(t,e){_e(e,!0);var n=t=>{var e=nn(),n=Pe(e),i=Tt((()=>de(f).find((t=>t.id===r().id))?.numSeats));KT(n,Fn(r,{get numSeats(){return de(i)}},(()=>a))),rn(t,e)};let r=Vn(e,"hoveredFeature",7),i=Vn(e,"selectedFeature",7),s=Vn(e,"clickable",3,!1),a=Ln(e,["mapData","geojson","partials","showTrendResults","hoveredFeature","selectedFeature","onclear","clickable"]);const o=yf();let l=G(void 0),c=G(void 0);setTimeout((()=>{const t=de(l);X(l,0),X(l,gt(t))}),500);let u=Tt((()=>Uc().fitExtent([[1,1],[de(l)-2,de(c)-2]],e.geojson))),h=Tt((()=>Pc().projection(de(u)))),d=Tt((()=>[r()?.id,i()?.id].filter((t=>t)))),f=Tt((()=>Qn(e.partials.features,(t=>t.length),(t=>t.properties.Layer)).map((([t,e])=>({id:t,numSeats:e}))))),p=Tt((()=>e.mapData&&e.geojson?e.mapData.map((t=>{const n=e.geojson.features.find((e=>e.properties.Layer===`${t.id}_border`));return{...t,path:de(h)(n),stroke:_f.colors.grayDarker,strokeWidth:1.5,backgroundStrokeWidth:4,fill:void 0}})):[])),g=Tt((()=>e.mapData&&e.partials?e.mapData.map((t=>{const n=t.returningResults.type,r=t.id,i=t.returningResults.countingProgress.isFullyCounted;let s=1;return t.euSeats.map((a=>{const o=a.currentSeats;return Array.from({length:o}).map(((o,l)=>{const c=e.partials.features.find((e=>e.properties.Layer===t.id&&e.properties.number===s));return s+=1,{...a,resultType:n,isFullyCounted:i,countryId:r,path:de(h)(c),fill:a?.$meta?.$color,stroke:_f.colors.foreground,strokeWidth:.5,seatNumber:l+1,seatCounter:s}}))})).filter((t=>t.length)).flat()})).flat():[]));function v(t){_f.device.isTouch||(r(t.data),Xk.item=n,Xk.show=!!r())}function m(t){s()&&(i(t.data),i()||e.onclear())}var y=JT(),b=Oe(y),w=(t,e=yt)=>{var n=nn();Ye(Pe(n),65,(()=>e().filter((t=>!de(d).includes(t.countryId)))),We,((t,e,n)=>{var r=nn(),i=(Pe(r),Tt((()=>Te(Te(e)).resultType&&!Te(Te(e)).isFullyCounted?o:void 0)));BT(0,Fn((()=>we(Te(Te(e)),["resultType","isFullyCounted"])),{get pattern(){return de(i)}})),rn(t,r)})),rn(t,n)};QT(b,{get width(){return de(l)},get height(){return de(c)},get data(){return de(g)},isHalfTransparent:!0,children:w});var _=Ae(Ae(b,!0));Ue(_,(()=>de(d).length),(t=>{var e=nn(),n=Pe(e),r=(t,e=yt)=>{var n=nn();Ye(Pe(n),65,(()=>e().filter((t=>de(d).includes(t.countryId)))),We,((t,e,n)=>{var r=nn(),i=(Pe(r),Tt((()=>Te(Te(e)).resultType&&!Te(Te(e)).isFullyCounted?o:void 0)));BT(0,Fn((()=>we(Te(Te(e)),["resultType","isFullyCounted"])),{get pattern(){return de(i)}})),rn(t,r)})),rn(t,n)};Be(n,0,(()=>({"--position":"absolute","--z-index":"1"})),(t=>QT(t,{get width(){return de(l)},get height(){return de(c)},get data(){return de(g)},children:r}))),rn(t,e)}));var x=Ae(Ae(_,!0));w=(t,e=yt)=>{var n=nn();Ye(Pe(n),65,e,We,((t,e,n)=>{let s=()=>Te(Te(e)).id,a=()=>Te(Te(e)).strokeWidth,o=()=>Te(Te(e)).backgroundStrokeWidth;var l=nn();const c=Tt((()=>r()&&r().id===s())),u=Tt((()=>i()&&i().id===s()));Pe(l);var h=Tt((()=>de(u)||de(c)?_f.colors.background:Te(Te(e)).stroke)),d=Tt((()=>de(u)?2*a():a())),f=Tt((()=>de(u)?_f.colors.foreground:void 0)),p=Tt((()=>de(u)?2*o():o()));BT(0,Fn((()=>we(Te(Te(e)),["id","stroke","strokeWidth","backgroundStrokeWidth"])),{get stroke(){return de(h)},get strokeWidth(){return de(d)},get backgroundStroke(){return de(f)},get backgroundStrokeWidth(){return de(p)}})),rn(t,l)})),rn(t,n)};Be(x,0,(()=>({"--position":"absolute","--z-index":"2"})),(t=>nS(t,{get width(){return de(l)},get height(){return de(c)},get data(){return de(p)},get activeIds(){return de(d)},checkPropertyForInteractivity:"euSeats",onmousemove:v,onclick:m,children:w}))),Pn(y,"clientWidth",(t=>X(l,t))),Pn(y,"clientHeight",(t=>X(c,t))),ln(y,(t=>Uv(t))),ln(y,(t=>Bv(t))),$e("clickoutside",y,m,!1),$e("mousemoveoutside",y,v,!1),rn(t,y),xe()}var tC=Ze(' '),eC=Ze('<!> <!>
');var nC=(t,e)=>X(e,!de(e)),rC=Ze(''),iC=Ze(" "),sC=Ze(' '),aC=Ze(' <!>',1);Ie(["click"]);var oC=Ze('');function lC(t,e){var n=oC();Ye(n,73,(()=>e.results),We,((t,e,n)=>{var r=nn();!function(t,e){_e(e,!0);let n=G(!1),r=G(null),i=G(null),s=Tt((()=>de(r)&&de(r).scrollWidth>de(i)));const a="tableRow"+e.party.id,[o,l]=Km({fallback(t,e){const n=getComputedStyle(t),r="none"===n.transform?"":n.transform;return{duration:300,easing:eT,css:t=>`\n\t\t\t\t\ttransform: ${r} scale(${t});\n\t\t\t\t\topacity: ${t}\n\t\t\t\t`}}}),c=Tt((()=>e.party.name?e.party.name:e.party.abbr));var u=aC(),h=Pe(u);Sn(3,h,(()=>Ym));var d=Oe(h);$n(d,(t=>X(r,gt(t))),(()=>de(r)));var f=Oe(d);Ue(f,(()=>de(s)),(t=>{var e=rC();e.__click=[nC,n],Zm(Oe(e),{type:"light"}),st((()=>fn(e,"rotated",de(n)))),rn(t,e)})),Ue(Ae(Ae(f,!0)),(()=>!de(n)),(t=>{var e=iC();Sn(1,e,(()=>l),(()=>({key:a}))),Sn(2,e,(()=>o),(()=>({key:a})));var n=Oe(e);st((()=>Fe(n,de(c)))),rn(t,e)}));var p=Ae(Ae(d,!0)),g=Oe(p),v=Oe(Ae(Ae(p,!0)));Ue(Ae(Ae(h,!0)),(()=>de(n)),(t=>{var n=sC(),r=Oe(n);Sn(1,r,(()=>l),(()=>({key:a}))),Sn(2,r,(()=>o),(()=>({key:a})));var i=Oe(r);st((()=>{fn(n,"even",e.even),Fe(i,e.party.name)})),rn(t,n)})),st((()=>{fn(h,"even",e.even),pn(d,"padding-right",de(s)?"10px":"0px"),Fe(g,e.shareValue),Fe(v,e.diffValue)})),Pn(d,"clientWidth",(t=>X(i,t))),rn(t,u),xe()}(Pe(r),{get party(){return Te(Te(e)).$meta},get shareValue(){return Te(Te(e)).$shareValue.str},get diffValue(){return Te(Te(e)).$diffValue.str},even:Te(n)%2==0}),rn(t,r)})),rn(t,n)}var cC=Ze("<!> <!>",1),uC=Ze("<!> <!>",1),hC=Ze('');var dC=Ze("<!> <!>",1),fC=Ze(''),pC=Ze('<!>
');function gC(t,e){_e(e,!0);const n=Ln(e,["missingVoteShareStr"]);let r;var i=pC();$n(i,(t=>r=t),(()=>r)),i.__touchmove=function(t){r.scrollTop>0&&t.stopPropagation()},Ue(Oe(i),(()=>n&&n.partyVotesStr&&n.electionKey&&n.results.length),(t=>{var e=dC(),r=Pe(e);!function(t,e){_e(e,!0);const n=Vn(e,"stateName",3,!1),r=Tt((()=>e.returningResults?.countingProgress?.isFullyCounted)),i=Tt((()=>e.returningResults?.countingProgres?.countingType));var s=eC(),a=Oe(s);Ue(a,n,(t=>{var e=tC(),r=Oe(e);st((()=>Fe(r,n()))),rn(t,e)}));var o=Ae(Ae(a,!0));Ue(Oe(o),(()=>de(r)&&e.countingProgressFullyStr),(t=>{var n=en();st((()=>Fe(n,e.countingProgressFullyStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription"))))),rn(t,n)}),(t=>{var n=nn();Ue(Pe(n),(()=>e.countingProgressStr),(t=>{var n=en();st((()=>Fe(n,e.countingProgressStr.replace(/{countingShare}/g,e.returningResults?.countingProgress?.share).replace(/{countingType}/g,Iv("countingTypes",de(i)))))),rn(t,n)}),null,!0),rn(t,n)}));var l=Oe(Ae(Ae(o,!0)));st((()=>Fe(l,e.partyVotesStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription")).replace(/{partyVotes}/g,Iv("cardVariables","partyVotes")).replace(/{personalVotes}/g,Iv("cardVariables","personalVotes"))))),rn(t,s),xe()}(r,Fn((()=>n))),function(t,e){_e(e,!0);let n=G(0);const r=Tt((()=>de(n)<400));let i=Tt((()=>({listVotesHeight:"70px",columnHeight:"70px",marginParty:de(r)?"13px":"32px",marginPreviousResult:de(r)?"-3px":"4px",columnWidth:(de(r),"22px")})));const s=Tt((()=>e.data.config.settings)),a=Tt((()=>e.results.slice(0,5))),o=Tt((()=>e.results.slice(5).filter((t=>t.partyId!==e.deviatingPartyIdForOthers)))),l=Tt((()=>e.results.find((t=>t.partyId===e.deviatingPartyIdForOthers)))),c=Tt((()=>{const t=de(l)?.$shareValue,e=de(l)?.$meta?.name;return e+": "+t?.str+t?.suffix})),u=Tt((()=>!!e.returningResults?.additionalInformation?.currentTurnout&&Jd(e.returningResults.additionalInformation.currentTurnout))),h=Tt((()=>!!e.returningResults?.additionalInformation?.previousTurnout&&Jd(e.returningResults.additionalInformation.previousTurnout)));var d=hC(),f=Oe(d),p=Oe(f),g=Tt((()=>de(s)?.$dateCurrentYear)),v=Tt((()=>de(s)?.$datePreviousYear));Um(p,{get results(){return de(a)},get css(){return de(i)},get currentYear(){return de(g)},get previousYear(){return de(v)}});var m=Ae(Ae(f,!0)),y=Ae(Ae(m,!0));Ue(y,(()=>de(o)&&de(o).length>0),(t=>{var e=cC(),n=Pe(e);Be(n,0,(()=>({"--color-separator":"var(--int-font-color-gray-fond)"})),(t=>gT(t))),tT(Ae(Ae(n,!0)),{type:"InfocardResultCollapsible",get title(){return de(c)},infoCard:!0,children:(t,e)=>{var n=nn();lC(Pe(n),{get results(){return de(o)}}),rn(t,n)},$$slots:{default:!0}}),rn(t,e)})),Ue(Ae(Ae(y,!0)),(()=>de(u)&&de(s)?.$dateCurrentYear),(t=>{var e=uC(),n=Pe(e);Be(n,0,(()=>({"--color-separator":"var(--int-font-color-gray-fond)"})),(t=>gT(t)));var r=Ae(Ae(n,!0)),i=Tt((()=>de(s)?.$dateCurrentYear)),a=Tt((()=>de(s)?.$datePreviousYear));yT(r,{get currentTurnout(){return de(u)},get previousTurnout(){return de(h)},get currentYear(){return de(i)},get previousYear(){return de(a)}}),rn(t,e)})),Pn(d,"clientWidth",(t=>X(n,t))),rn(t,d),xe()}(Ae(Ae(r,!0)),Fn((()=>n))),rn(t,e)}),(t=>{var n=fC(),r=Oe(n);st((()=>Fe(r,e.missingVoteShareStr))),rn(t,n)})),rn(t,i),xe()}Ie(["touchmove"]);var vC=Ze("Lädt...",1),mC=Ze(''),yC=Ze("Lädt...",1),bC=Ze('');const wC=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);var n=t=>{var n=nn();Ue(Pe(n),(()=>"country_search"===e.interaction),(t=>{var n=nn(),r=Pe(n),s=Tt((()=>de(p)?.name)),g=Tt((()=>e.searchStr.replace("{constituencyDescription}",Iv("cardVariables","constituencyDescription"))));ES(r,{get value(){return de(d)},set value(t){X(d,gt(t))},get autocompleteValue(){return de(s)},get placeholder(){return de(g)},onselect:l,onclear:u,onblur:c,children:(t,n)=>{var r=mC(),s=Oe(r);je(Oe(s),(()=>e.geojson),(t=>{rn(t,vC())}),((t,e)=>{var n=nn();const r=Tt((()=>{const{constituencies:t,states:n}=e||{};return{constituencies:t,states:n}}));ZT(Pe(n),Fn((()=>i),{get mapData(){return de(h)},get geojson(){return de(r).states},get partials(){return de(r).constituencies},get selectedFeature(){return de(p)}})),rn(t,n)}));var l=Oe(Ae(Ae(s,!0))),c=Tt((()=>""!==de(d)?de(f):de(h)));zS(l,{get data(){return de(c)},get hoveredFeature(){return de(a)},set hoveredFeature(t){X(a,gt(t))},get selectedFeature(){return de(o)},set selectedFeature(t){X(o,gt(t))},get highlightedFeature(){return de(p)},vertical:!0}),rn(t,r)},$$slots:{default:!0}}),rn(t,n)})),rn(t,n)};let r,i=Ln(e,["results","geojson","showTrendResults","searchStr","interaction"]);qv({search:n,infoCard:t=>{var e=nn(),n=Pe(e),r=Tt((()=>de(o)&&s.isInView)),a=Tt((()=>de(o)?.name));KS(n,{get show(){return de(r)},slidable:!1,get title(){return de(a)},onclose:u,children:(t,e=yt)=>{var n=nn();Ue(Pe(n),(()=>de(o)),(t=>{var n=nn();gC(Pe(n),Fn((()=>de(o)),(()=>i),{get slidable(){return e()},onclose:u})),rn(t,n)})),rn(t,n)}}),rn(t,e)}});const s=Wv();let a=G(void 0),o=G(void 0);function l(){X(o,gt(de(p))),X(d,"")}function c(){X(d,"")}function u(){X(d,""),X(o,null)}const h=Tt((()=>e.results.results.map((t=>{const e=t.returningResults.countingProgress.isFullyCounted,n=t.returningResults.listVotes;return{...t,...n,isFullyCounted:e,searchStrings:[t.name]}}))));let d=G(""),f=Tt((()=>zv(de(h),de(d)))),p=Tt((()=>de(f).length?de(f)[0]:void 0)),g=Tt((()=>!Wd.type||"article"!==Wd.type||!!_f.device.isTouch));var v=bC();$n(v,(t=>r=t),(()=>r));var m=Oe(v),y=Oe(m),b=Oe(y),w=Tt((()=>de(h).some((t=>!t.isFullyCounted))));!function(t,e){_e(e,!0);const n=Ln(e,["subline"]);var r=UT(),i=Oe(r),s=Oe(i);sn(Oe(s),(()=>e.subline)),jT(Oe(Ae(Ae(i,!0))),Fn((()=>n))),st((()=>fn(s,"article","article"===Wd.type))),rn(t,r),xe()}(b,Fn((()=>i),(()=>e.results.additionalInformation),{get showTrendResults(){return de(w)}})),je(Oe(Ae(Ae(y,!0))),(()=>e.geojson),(t=>{rn(t,yC())}),((t,n)=>{var r=nn();const s=Tt((()=>{const{states:t,constituencies:e}=n||{};return{states:t,constituencies:e}}));ZT(Pe(r),Fn((()=>i),{get mapData(){return de(h)},get geojson(){return de(s).states},get partials(){return de(s).constituencies},get showTrendResults(){return e.showTrendResults},get hoveredFeature(){return de(a)},set hoveredFeature(t){X(a,gt(t))},get selectedFeature(){return de(o)},set selectedFeature(t){X(o,gt(t))},onclear:u,get clickable(){return de(g)}})),rn(t,r)}));var _=Ae(Ae(m,!0)),x=Oe(_);n(Oe(x));var k=Oe(Ae(Ae(x,!0))),S=Tt((()=>""!==de(d)?de(f):de(h)));zS(k,{get data(){return de(S)},get hoveredFeature(){return de(a)},set hoveredFeature(t){X(a,gt(t))},get selectedFeature(){return de(o)},set selectedFeature(t){X(o,gt(t))},get highlightedFeature(){return de(p)}}),st((()=>{fn(v,"article","article"===Wd.type),fn(_,"article","article"===Wd.type),fn(x,"article","article"===Wd.type)})),rn(t,v),xe()}},Symbol.toStringTag,{value:"Module"}));pd({...{...Ro,decimal:".",currency:[""," €"],percent:" %",nan:"—",thousands:",",grouping:[3]},dateTime:"%a %b %e %X %Y",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}).format;const _C={year:Gu("%Y"),"month-short":Gu("%b"),"month-year":Gu("%b. %y"),"day-month-year":Gu("%e.%m.%y")},xC=(t,e)=>(0,_C[e])(t);Ku("%Y-%m-%d");var kC=Ze(''),SC=Ze(' '),TC=Ze(' '),CC=Ze('<!>
'),MC=Ze(' ',1);function RC(t,e){_e(e,!0);const n=Vn(e,"xaxisFormat",3,"year"),r=Vn(e,"paddingLeft",3,"0px"),i=Vn(e,"paddingRight",3,"0px"),s=Vn(e,"coalitions",3,!1);let a=G(0);const o=Tt((()=>e.xScale.range())),l=[...new Set([...e.xScale.ticks(5),e.xScale.domain()[1]])],c=s()?[100,75,50,25,0]:e.yScale.ticks(5).reverse(),u=Tt((()=>l.map((t=>.7*xC(t,n()).length))));var h=MC(),d=Pe(h);Ye(d,73,(()=>l),We,((t,r,i)=>{var s=kC();const a=Tt((()=>e.xScale(Te(r)))),l=Tt((()=>de(u)[Te(i)]));var c=Ae(Ae(Oe(s),!0)),h=Oe(c);st((()=>Fe(h,xC(Te(r),n()).replace(".0",".")))),st((()=>{pn(s,"left",`${Ve(de(a))}%`),pn(c,"transform",`translateX(${Ve(de(a)-de(l)de(o)[1]?-de(l):0)}%)`)})),rn(t,s)}));Ye(Ae(Ae(d,!0)),73,(()=>c),We,((t,n,a)=>{var o=CC();const l=Tt((()=>(t=>s()?0===t||50===t?"100%":"-10px":"100%")(Te(n))));st((()=>pn(o,"top",e.yScale(Te(n))+"%")));var c=Oe(o);Ue(c,(()=>s()&&50===Te(n)),(t=>{rn(t,SC())}),(t=>{rn(t,TC())}));var u=Oe(Ae(Ae(c,!0)));st((()=>Fe(u,[Jd(Te(n)).str,(Te(a),"")].join(" ")))),st((()=>{pn(o,"width","calc("+de(l)+" + "+r()+" + "+i()+")"),pn(o,"left","calc(-1 * "+r()+")")})),rn(t,o)})),Pn(d,"clientWidth",(t=>X(a,t))),rn(t,h),xe()}var EC=Ze('');function OC(t,e){const n=Vn(e,"color",3,!1);var r=EC();st((()=>{fn(r,"nocolor",!n()),pn(r,"top",e.y+"%"),pn(r,"left",e.x+"%"),pn(r,"background-color",n())})),rn(t,r)}var PC=tn('');function AC(t,e){_e(e,!0);const n=Vn(e,"children",3,void 0);var r=PC();an(n,Oe(r)),rn(t,r),xe()}var $C=Ze('');function IC(t,e){_e(e,!0);const n=Vn(e,"chartHeight",3,"237px"),r=Vn(e,"paddingLeft",3,"32px"),i=Vn(e,"paddingRight",3,"0px"),s=Vn(e,"paddingTop",3,"16px"),a=Vn(e,"paddingBottom",3,"16px"),o=Vn(e,"children",3,void 0);var l=$C(),c=Oe(l),u=Oe(c);an(o,Oe(u)),st((()=>{pn(l,"margin-bottom",a()),pn(c,"height",n()),pn(c,"padding-left",r()),pn(c,"padding-right",i()),pn(c,"padding-top",s()),pn(c,"padding-bottom",a())})),rn(t,l),xe()}var DC=Ze('<!>
');function NC(t,e){_e(e,!0);const n=Vn(e,"children",3,void 0);var r=DC();an(n,Oe(r)),rn(t,r),xe()}var LC=Ze(' '),HC=Ze('');function FC(t,e){const n=Vn(e,"type",3,"quad");var r=HC();Ye(r,73,(()=>e.groups),We,((t,e,r)=>{var i=LC(),s=Oe(i),a=Oe(Ae(Ae(s,!0)));st((()=>{hn(s,"style",`background-color: ${Ve(Te(Te(e)).color)}`),fn(s,"line","line"===n()),Fe(a,Te(Te(e)).label)})),rn(t,i)})),rn(t,r)}var VC=Ze('');function zC(t,e){_e(e,!0);const n=Tt((()=>e.rectWidth<90));var r=VC(),i=Oe(r),s=Oe(i);st((()=>{pn(r,"width",e.rectWidth+"px"),pn(r,"top","-"+e.css.paddingTop),pn(r,"right","-"+e.css.paddingRight),pn(r,"height","calc(100% + "+e.css.paddingTop+")"),fn(i,"overflow",de(n)),pn(i,"top","calc(4px + "+e.css.paddingTop+")"),Fe(s,e.text)})),rn(t,r),xe()}var jC=tn(' '),UC=tn(' '),BC=tn("<!><!>",1),qC=Ze("<!> <!> <!>",1),WC=Ze("<!> <!> <!> <!>",1),YC=Ze('');const GC=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);const n=Vn(e,"isInCollapsible",3,!1),r=Tt((()=>e.results.resultsOverall?.listVotes?.results)),i=Tt((()=>e.data?.config?.settings?.$dateCurrent)),s=Tt((()=>!(!de(r)||!de(i)))),a=Tt((()=>e.data?.config?.settings?.partyIdForOthers)),o=Tt((()=>e.results.historic.$renderedResults.parties)),l=Tt((()=>{let t;if(de(s)){const n=de(r).map((t=>t.partyId));t=e.results.historic.$renderedResults.results.map((t=>{const e=t.values.filter((t=>n.includes(t.partyId)));return{...t,values:e}}))}else t=e.results.historic.$renderedResults.results;return t})),c=Tt((()=>{if(!de(s))return!1;const t=de(l)[de(l).length-1],e=de(r).filter((t=>t.partyId!==de(a))),n=[{$timestamp:t.$timestamp,values:[]},{$timestamp:de(i),values:[]}];return t.values.map((t=>{const r=e.find((e=>e.partyId===t.partyId));r&&(n[0].values.push({partyId:t.partyId,share:t.share}),n[1].values.push({partyId:t.partyId,share:r.currentShare}))})),n})),u=Tt((()=>{if(!de(s))return!1;const t=de(l)[de(l).length-1]?.values;return de(r).filter((t=>t.partyId!==de(a))).filter((e=>!t.some((t=>t.partyId===e.partyId)))).map((t=>({partyId:t.partyId,share:t.currentShare,party:de(o).find((e=>e.id===t.partyId))})))})),h=Tt((()=>{let t=1;if(de(s)&&de(l)){const e=de(l).concat(de(c));t=Math.max(...e.map((t=>t.values.map((t=>t.share)))).flat())}else t=Math.max(...de(l).map((t=>t.values.map((t=>t.share)))).flat());return t})),d=Tt((()=>de(i)?Wn([...de(l),{$timestamp:de(i)}].map((t=>t.$timestamp))):Wn(de(l),(t=>t.$timestamp)))),f=Tt((()=>[0,de(h)])),p=Tt((()=>yd().domain(de(d)).range([0,100]))),g=Tt((()=>nu().domain(de(f)).range([100,0]))),v=Tt((()=>Sd().x((t=>de(p)(t.timestamp))).y((t=>de(g)(t.share))).curve(Od))),m=t=>t.reduce(((t,e)=>(e.values.forEach((({partyId:n,share:r})=>{const i=t.find((t=>t.partyId===n)),s={timestamp:e.$timestamp,share:r};i?i.shares.push(s):t.push({partyId:n,party:de(o).find((t=>t.id===n)),shares:[s]})})),t)),[]),y=t=>t.map((t=>{const e=de(v)(t.shares),n=t.shares.map((t=>({x:de(p)(t.timestamp),y:de(g)(t.share),timestamp:t.timestamp,share:t.share})));return{...t,path:e,points:n}})),b=Tt((()=>m(de(l)))),w=Tt((()=>y(de(b)))),_=Tt((()=>m(de(c)))),x=Tt((()=>y(de(_)))),k=Tt((()=>!(!de(s)&&!de(u))&&de(u).map((t=>{const e=[{x:de(p)(de(i)),y:de(g)(t.share)}];return{...t,points:e}})))),S=Tt((()=>!!(de(s)&&e.labelForcastStr&&e.results?.resultsOverall?.type)&&e.labelForcastStr.replace(/\{resultType\}/g,Iv("resultTypes",e.results?.resultsOverall?.type))));let T=G(0);const C=nu().domain([320,600]).range([55,112]).clamp(!0),M=Tt((()=>C(de(T)))),R=Tt((()=>({chartHeight:"327px",paddingLeft:"32px",paddingRight:de(M)/2+"px",paddingTop:"16px",paddingBottom:"16px"}))),E=Tt((()=>{let t=[];return de(w).map((e=>{t.push({label:e.party.abbr,color:e.party.$color})})),de(s)&&de(x).length>0&&de(x).map((e=>{void 0===t.find((t=>t.label===e.party.abbr))&&t.push({label:e.party.abbr,color:e.party.$color})})),de(s)&&de(k)&&de(k).length>0&&de(k).map((e=>{void 0===t.find((t=>t.label===e.party.abbr))&&t.push({label:e.party.abbr,color:e.party.$color})})),t}));var O=YC(),P=Oe(O);sn(Oe(P),(()=>e.subline));var A=Ae(Ae(P,!0)),$=Oe(A);FC($,{get groups(){return de(E)},type:"line"}),IC(Ae(Ae($,!0)),{get chartHeight(){return de(R).chartHeight},get paddingLeft(){return de(R).paddingLeft},get paddingRight(){return de(R).paddingRight},get paddingTop(){return de(R).paddingTop},get paddingBottom(){return de(R).paddingBottom},children:(t,n)=>{var r=WC(),i=Pe(r);Ue(i,(()=>de(s)&&de(S)),(t=>{var e=nn();zC(Pe(e),{get rectWidth(){return de(M)},get css(){return de(R)},get text(){return de(S)}}),rn(t,e)}));var a=Ae(Ae(i,!0));Ue(a,(()=>de(p)&&de(g)),(t=>{var e=nn();RC(Pe(e),{get xScale(){return de(p)},get yScale(){return de(g)},get paddingLeft(){return de(R).paddingLeft},get paddingRight(){return de(R).paddingRight}}),rn(t,e)}));var o=Ae(Ae(a,!0));AC(o,{children:(t,n)=>{var r=BC(),i=Pe(r);Ye(i,65,(()=>de(w)),We,((t,e,n)=>{var r=jC(),i=Oe(r);st((()=>{hn(i,"d",Te(Te(e)).path),pn(i,"stroke",Te(Te(e)).party.$color)})),rn(t,r)})),Ue(Ae(i),(()=>de(s)),(t=>{var n=nn();Ye(Pe(n),65,(()=>de(x)),We,((t,n,r)=>{var i=UC(),a=Oe(i);st((()=>{hn(a,"d",Te(Te(n)).path),fn(a,"lined",de(s)&&!1===e.useReturningResults),pn(a,"stroke",Te(Te(n)).party.$color)})),rn(t,i)})),rn(t,n)})),rn(t,r)},$$slots:{default:!0}}),NC(Ae(Ae(o,!0)),{children:(t,e)=>{var n=qC(),r=Pe(n);Ye(r,65,(()=>de(w)),We,((t,e,n)=>{var r=nn();Ye(Pe(r),65,(()=>Te(Te(e)).points),We,((t,n,r)=>{var i=nn();OC(Pe(i),{get x(){return Te(Te(n)).x},get y(){return Te(Te(n)).y},get color(){return Te(Te(e)).party.$color}}),rn(t,i)})),rn(t,r)}));var i=Ae(Ae(r,!0));Ue(i,(()=>de(s)),(t=>{var e=nn();Ye(Pe(e),65,(()=>de(x)),We,((t,e,n)=>{var r=nn();Ye(Pe(r),65,(()=>Te(Te(e)).points),We,((t,n,r)=>{var i=nn();OC(Pe(i),{get x(){return Te(Te(n)).x},get y(){return Te(Te(n)).y},get color(){return Te(Te(e)).party.$color}}),rn(t,i)})),rn(t,r)})),rn(t,e)})),Ue(Ae(Ae(i,!0)),(()=>de(s)&&de(k)),(t=>{var e=nn();Ye(Pe(e),65,(()=>de(k)),We,((t,e,n)=>{var r=nn();Ye(Pe(r),65,(()=>Te(Te(e)).points),We,((t,n,r)=>{var i=nn();OC(Pe(i),{get x(){return Te(Te(n)).x},get y(){return Te(Te(n)).y},get color(){return Te(Te(e)).party.$color}}),rn(t,i)})),rn(t,r)})),rn(t,e)})),rn(t,n)},$$slots:{default:!0}}),rn(t,r)},$$slots:{default:!0}}),st((()=>fn(O,"reduced-padding",n()))),Pn(A,"clientWidth",(t=>X(T,t))),rn(t,O),xe()}},Symbol.toStringTag,{value:"Module"}));var KC=Ze(''),XC=Ze("<!> <!>",1),QC=Ze('');const JC=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=Tt((()=>e.results.historic.$renderedCoalitions.xScale)),r=Tt((()=>e.results.historic.$renderedCoalitions.yScale)),i=Tt((()=>e.results.historic.$renderedCoalitions.data));const s="327px",a="32px",o="0px",l="16px",c="16px",u=Tt((()=>{let t=[],e=[];return de(i).map((n=>{n.$renderedValues.map((n=>{n&&!t.includes(n.party.abbr)&&(t.push(n.party.abbr),e.push({label:n.party.abbr,color:n.party.$color}))}))})),e}));var h=QC(),d=Oe(h);sn(Oe(d),(()=>e.subline));var f=Oe(Ae(Ae(d,!0)));FC(f,{get groups(){return de(u)}}),IC(Ae(Ae(f,!0)),{get chartHeight(){return s},get paddingLeft(){return a},get paddingRight(){return o},get paddingTop(){return l},get paddingBottom(){return c},children:(t,e)=>{var s=XC(),o=Pe(s);NC(o,{children:(t,e)=>{var n=nn();Ye(Pe(n),65,(()=>de(i)),We,((t,e,n)=>{var r=nn();Ye(Pe(r),65,(()=>Te(Te(e)).$renderedValues),We,((t,e,n)=>{var r=KC();st((()=>{pn(r,"left",Te(Te(e)).left+"%"),pn(r,"bottom",Te(Te(e)).bottom+"%"),pn(r,"width",Te(Te(e)).width+"%"),pn(r,"height",Te(Te(e)).height+"%"),pn(r,"background-color",Te(Te(e)).party.$color)})),rn(t,r)})),rn(t,r)})),rn(t,n)},$$slots:{default:!0}}),Ue(Ae(Ae(o,!0)),(()=>de(n)&&de(r)),(t=>{var e=nn();RC(Pe(e),{coalitions:!0,get xScale(){return de(n)},get yScale(){return de(r)},get paddingLeft(){return a}}),rn(t,e)})),rn(t,s)},$$slots:{default:!0}}),rn(t,h),xe()}},Symbol.toStringTag,{value:"Module"}));var ZC=tn(' '),tM=tn('<!> ',1),eM=Ze("<!> <!>",1),nM=Ze("<!> <!> <!> <!>",1),rM=Ze('');const iM=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);const n=Tt((()=>e.results.historic.$renderedTurnout.turnout)),r=Tt((()=>e.results.resultsOverall?.additionalInformation?.currentTurnout)),i=Tt((()=>e.data?.config?.settings?.$dateCurrent)),s=Tt((()=>!(!de(r)||!de(i)))),a=Tt((()=>!!de(s)&&[...de(n),{$timestamp:de(i),share:de(r)}])),o=Tt((()=>de(s)?Wn(de(a),(t=>t.$timestamp)):Wn(de(n),(t=>t.$timestamp)))),l=Tt((()=>yd().domain(de(o)).range([0,100]))),c=nu().domain([0,100]).range([100,0]),u=Tt((()=>Sd().x((t=>de(l)(t.$timestamp))).y((t=>c(t.share))).curve(Od))),h=Tt((()=>de(u)(de(n)))),d=Tt((()=>de(n).map((t=>({x:de(l)(t.$timestamp),y:c(t.share),timestamp:t.$timestamp,turnout:t.share}))))),f=Tt((()=>!!de(s)&&de(u)(de(a).slice(-2)))),p=Tt((()=>!!de(s)&&{x:de(l)(de(i)),y:c(de(r)),turnout:de(r)})),g=Tt((()=>!!(de(s)&&e.labelForcastStr&&e.results?.resultsOverall?.type)&&e.labelForcastStr.replace(/\{resultType\}/g,Iv("resultTypes",e.results?.resultsOverall?.type))));let v=G(0);const m=nu().domain([320,600]).range([55,112]).clamp(!0),y=Tt((()=>m(de(v))));let b=Tt((()=>({chartHeight:"237px",paddingLeft:"32px",paddingRight:de(y)/2+"px",paddingTop:"16px",paddingBottom:"16px"})));var w=rM(),_=Oe(w);sn(Oe(_),(()=>e.subline));var x=Ae(Ae(_,!0));IC(Oe(x),{get chartHeight(){return de(b).chartHeight},get paddingLeft(){return de(b).paddingLeft},get paddingRight(){return de(b).paddingRight},get paddingTop(){return de(b).paddingTop},get paddingBottom(){return de(b).paddingBottom},children:(t,e)=>{var n=nM(),r=Pe(n);Ue(r,(()=>de(s)&&de(g)),(t=>{var e=nn();zC(Pe(e),{get rectWidth(){return de(y)},get css(){return de(b)},get text(){return de(g)}}),rn(t,e)}));var i=Ae(Ae(r,!0));RC(i,{get xScale(){return de(l)},yScale:c,get paddingLeft(){return de(b).paddingLeft},get paddingRight(){return de(b).paddingRight}});var a=Ae(Ae(i,!0));AC(a,{children:(t,e)=>{var n=tM(),r=Pe(n);Ue(r,(()=>de(f)),(t=>{var e=ZC();st((()=>{hn(e,"d",de(f)),fn(e,"lined",de(s)&&de(g))})),rn(t,e)}));var i=Ae(r);st((()=>hn(i,"d",de(h)))),rn(t,n)},$$slots:{default:!0}}),NC(Ae(Ae(a,!0)),{children:(t,e)=>{var n=eM(),r=Pe(n);Ye(r,65,(()=>de(d)),We,((t,e,n)=>{var r=nn();OC(Pe(r),{get x(){return Te(Te(e)).x},get y(){return Te(Te(e)).y}}),rn(t,r)})),Ue(Ae(Ae(r,!0)),(()=>de(p)),(t=>{var e=nn();OC(Pe(e),{get x(){return de(p).x},get y(){return de(p).y}}),rn(t,e)})),rn(t,n)},$$slots:{default:!0}}),rn(t,n)},$$slots:{default:!0}}),Pn(x,"clientWidth",(t=>X(v,t))),rn(t,w),xe()}},Symbol.toStringTag,{value:"Module"})),sM=(t,{sections:e,sectionGap:n,seatRadius:r,rowHeight:i},s)=>{const a=s/2,o=Math.min(t,e),l=Math.PI/o,c=Array(o).fill({seats:Math.floor(t/o)}).map(((t,e)=>({...t,startRad:e*l,endRad:(e+1)*l})));let u=t%o;if(0!==u){const t=Array(o).fill(null).map(((t,e)=>e)),e=t.splice(0,Math.floor(o/2)).reverse();for(;u>0;)e.length>=t.length?c[e.shift()].seats+=1:c[t.shift()].seats+=1,u-=1}return c.map((t=>(({seats:t,startRad:e,endRad:n,seatRadius:r,rowHeight:i,graphicHeight:s,sectionGap:a})=>{const o=s-r;let l=[],c=0;for(;l.length[...t,...e]),[]).sort(((t,e)=>e.angle-t.angle)).map((t=>{const{angle:e,...n}=t;return n}))};var aM=tn(" "),oM=Ze(''),lM=Ze('');function cM(t,e){_e(e,!0);let n=Vn(e,"isNoData",3,!1),r=G(358);const i=Tt((()=>{const{seatRadius:t,rowHeight:n}=(t=>{let e={seatRadius:6.5,rowHeight:16.25};return 6===t?e={seatRadius:27.4,rowHeight:18.5}:45===t?e={seatRadius:8.6,rowHeight:25}:t>=80&&t<=83?e={seatRadius:8.3,rowHeight:20.75}:t>=84&&t<=91?e={seatRadius:7.76,rowHeight:19.4}:t>=92&&t<=93?e={seatRadius:7.7,rowHeight:19.25}:t>=94&&t<=98?e={seatRadius:7.4,rowHeight:18.5}:t>=99&&t<=102?e={seatRadius:7,rowHeight:20}:t>=103&&t<=105?e={seatRadius:7,rowHeight:17.25}:t>=106&&t<=114?e={seatRadius:6.5,rowHeight:16.25}:t>=115&&t<=121?e={seatRadius:6.2,rowHeight:15.5}:t>=122&&t<=124?e={seatRadius:6.05,rowHeight:15.125}:t>=125&&t<=129?e={seatRadius:6,rowHeight:15}:t>=538&&t<=640?e={seatRadius:3.1,rowHeight:8.875}:643===t?e={seatRadius:3.33,rowHeight:8.2425}:678===t?e={seatRadius:3,rowHeight:8.475}:t>=646&&t<=743&&(e={seatRadius:2.9,rowHeight:8.625}),e})(e.totalSeats+0);return{sections:1,sectionGap:0,seatRadius:t,rowHeight:n}}));let s=Tt((()=>{const t=e.results?.filter((t=>t.currentSeats)),n=[];if(e.results){const r=sM(e.totalSeats+0,de(i),358);let s=0;t.map((t=>{let e=t.currentSeats;0===s&&(e+=0);for(let i=0;ide(s)),We,((t,e,n)=>{var r=aM();st((()=>{hn(r,"cx",Te(Te(e)).x),hn(r,"cy",Te(Te(e)).y),hn(r,"r",de(i).seatRadius),hn(r,"fill",Te(Te(e)).$meta.$color)})),rn(t,r)}));var l=Ae(Ae(o,!0));Ue(l,(()=>e.totalSeats>0),(t=>{var n=oM(),r=Oe(n);st((()=>Fe(r,`${Ve(e.totalSeats+0)} Sitze`))),rn(t,n)}));var c=Ae(Ae(l,!0));st((()=>{fn(a,"isNoData",n()),hn(o,"width",de(r)),hn(o,"height",de(r)/2),fn(c,"isNoData",n())})),Pn(a,"clientWidth",(t=>X(r,t))),rn(t,a),xe()}var uM=Ze("+",1),hM=Ze("±",1),dM=Ze('');var fM=Ze(''),pM=Ze('');function gM(t,e){_e(e,!0);let n=Vn(e,"widget",3,!1),r=Vn(e,"isNoData",3,!1),i=Vn(e,"isCardAnimation",3,!1),s=Tt((()=>e.results?.filter((t=>t.currentSeats)))),a=G(0),o=Tt((()=>n()?"7px 7px":de(a)>745||de(a)>564?"13px 34px":de(a)>436?"13px 45px":de(a)>276?"13px 12px":"13px 40px"));var l=pM();Ye(l,73,(()=>de(s)),We,((t,e,s)=>{let a=()=>Te(Te(e)).$meta;var o=nn();Ue(Pe(o),(()=>!Wd.plenumLegendMax||Wd.plenumLegendMax&&Te(s)<9),(t=>{var s=fM(),o=Oe(s),l=Ae(Ae(o,!0)),c=Oe(l);!function(t,e){_e(e,!0);let n=Vn(e,"isCardAnimation",3,!1);Vn(e,"forbidAnimation",3,!0);const r=um(e.currentSeats);nt((()=>{n()&&(r.value=e.currentSeats)}));var i=dM(),s=Oe(i),a=Oe(s),o=Oe(Ae(Ae(s,!0)));Ue(o,(()=>e.seatsDiff>0),(t=>{rn(t,uM())}),(t=>{var n=nn();Ue(Pe(n),(()=>0===e.seatsDiff),(t=>{rn(t,hM())}),null,!0),rn(t,n)}));var l=Ae(o,!0);st((()=>{fn(i,"widget",e.widget),fn(i,"isNoData",e.isNoData),fn(i,"liveUpdate",r.showLiveUpdate),pn(s,"color",e.color),Fe(a,e.currentSeats),Fe(l,e.seatsDiff)})),rn(t,i),xe()}(Ae(Ae(l,!0)),{get color(){return a().$color},get currentSeats(){return Te(Te(e)).currentSeats},get seatsDiff(){return Te(Te(e)).seatsDiff},get widget(){return n()},get isNoData(){return r()},get isCardAnimation(){return i()},get forbidAnimation(){return n()}}),st((()=>{pn(o,"background-color",a().$color),Fe(c,a().abbr)})),rn(t,s)})),rn(t,o)})),st((()=>{hn(l,"style",n()?"--dotWidth: 6px;":""),fn(l,"widget",n()),fn(l,"isNoData",r()),fn(l,"large",de(a)>340),fn(l,"extraLarge",de(a)>440),fn(l,"small",de(a)<257),fn(l,"spaceBetween",de(a)<436&&!n()),pn(l,"gap",de(o))})),Pn(l,"clientWidth",(t=>X(a,t))),rn(t,l),xe()}var vM=Ze('');function mM(t,e){_e(e,!0);let n=Vn(e,"widget",3,!1),r=Vn(e,"isNoData",3,!1),i=Vn(e,"noDataTotalSeats",3,null),s=Vn(e,"isCardAnimation",3,!1);const a=Tt((()=>e.results?.listVotes?.additionalInformation.$totalSeats||i()));var o=vM(),l=Oe(o);gM(Oe(l),{get results(){return e.resultsWithMicroParties},get widget(){return n()},get isNoData(){return r()},get isCardAnimation(){return s()}}),cM(Oe(Ae(Ae(l,!0))),{get results(){return e.resultsWithMicroParties},get totalSeats(){return de(a)},get isNoData(){return r()}}),st((()=>fn(o,"reversed",n()))),rn(t,o),xe()}var yM=Ze('');Ie(["click"]);var bM=(t,e,n)=>e.onclick?e.onclick(de(n)):null,wM=(t,e)=>e.onmousemove?e.onmousemove(t):null,_M=Ze(''),xM=tn(' ',1),kM=Ze(' '),SM=Ze(' <!>',1),TM=Ze('');function CM(t,e){_e(e,!0);let n=Vn(e,"size",3,44),r=Vn(e,"clickedMp",3,null),i=Vn(e,"showPic",3,!1),s=Vn(e,"imgUrl",3,!1),a=G(null),o=Tt((()=>"https://interactive.spiegel.de/gra//elections/specific/"+e.electionKey+"/candidates/"+s()));var l=TM();$n(l,(t=>X(a,gt(t))),(()=>de(a))),l.__click=[bM,e,a],l.__mousemove=[wM,e],Ue(Oe(l),(()=>r()&&r().id===e.id),(t=>{var e=_M(),r=Oe(e);st((()=>{hn(r,"width",n()),hn(r,"height",n())})),rn(t,e)}),(t=>{var r=SM(),a=Pe(r),l=Oe(a);Ue(Ae(l),(()=>!(i()&&s())),(t=>{var n=xM(),r=Pe(n),i=Ae(r),s=Ae(i);st((()=>{pn(r,"fill",e.color),pn(i,"fill",e.color),pn(s,"fill",e.color)})),rn(t,n)})),Ue(Ae(Ae(a,!0)),(()=>i()&&s()),(t=>{var e=kM();st((()=>hn(e,"src",de(o)))),rn(t,e)})),st((()=>{hn(a,"width",n()),hn(a,"height",n()),pn(l,"stroke",e.color)})),rn(t,r)})),st((()=>{hn(l,"data-mpid",e.id),fn(l,"inheritFlex",r()&&r().id===e.id),pn(l,"height",n()+"px")})),$e("mouseenter",l,(()=>e.onmouseenter?e.onmouseenter():null),!1),$e("mouseleave",l,(()=>e.onmouseleave?e.onmouseleave():null),!1),rn(t,l),xe()}Ie(["click","mousemove"]);var MM=Ze(''),RM=Ze(''),EM=Ze(''),OM=Ze(""),PM=Ze(""),AM=Ze(''),$M=Ze('');function IM(t,e){_e(e,!0);let n=Vn(e,"show",3,!1),r=Vn(e,"element",7,null),i=Vn(e,"type",3,""),s=Tt((()=>e.data?.$party?.$color)),a=Tt((()=>e.data?.name)),o=Tt((()=>e.data?.$party?.abbr)),l=Tt((()=>!!e.data?.yearOfBirth&&e.data.$yearOfBirth)),c=Tt((()=>e.data?.electedVia)),u=Tt((()=>e.data?.electedAs)),h=Tt((()=>e.data?.electedFrom)),d=Tt((()=>e.data?.$showPic)),f=Tt((()=>!(!e.data?.imgCredit||!de(d))&&e.data.$imgCredit)),p=Tt((()=>!(!e.data?.imgUrl||!de(d))&&e.data.imgUrl));var g=$M();$n(g,(t=>r(t)),(()=>r())),Sn(3,g,(()=>Ym));var v=Oe(g);CM(Oe(v),{get color(){return de(s)},size:"74",onclick:null,get showPic(){return de(d)},get imgUrl(){return de(p)},get electionKey(){return e.electionKey}});var m=Oe(Ae(Ae(v,!0)));Ue(m,(()=>""===i()),(t=>{var e=MM(),n=Oe(e);st((()=>Fe(n,de(a)))),rn(t,e)}));var y=Ae(Ae(m,!0)),b=Oe(y),w=Oe(b),_=Ae(Ae(b,!0));Ue(_,(()=>de(c)),(t=>{var e=RM(),n=Oe(e);st((()=>Fe(n,Iv("electedAs",de(u))))),rn(t,e)})),Ue(Ae(Ae(_,!0)),(()=>de(l)),(t=>{var e=EM(),n=Oe(e);st((()=>Fe(n,de(l)))),rn(t,e)}));var x=Ae(Ae(y,!0)),k=Oe(x);st((()=>Fe(k,Iv("electedVia",de(c)))));var S=Ae(Ae(x,!0));Ue(S,(()=>de(h)&&de(c)&&"constituency"===de(c)),(t=>{var e=OM(),n=Oe(e);st((()=>Fe(n,de(h)))),rn(t,e)}));var T=Ae(Ae(S,!0));Ue(T,(()=>de(h)),(t=>{var e=PM(),n=Oe(e);st((()=>Fe(n,de(h)))),rn(t,e)})),Ue(Ae(Ae(T,!0)),(()=>de(f)),(t=>{var e=AM(),n=Oe(e);st((()=>Fe(n,de(f)))),rn(t,e)})),st((()=>{fn(g,"show",n()),pn(b,"background-color",de(s)),Fe(w,de(o))})),rn(t,g),xe()}var DM=Ze('');var NM=Ze(''),LM=Ze('<!> <!>
');function HM(t,e){_e(e,!0);var n=t=>{var n=nn();!function(t,e){_e(e,!0);var n=DM(),r=Oe(n),i=Oe(r),s=Oe(i);IM(Oe(Ae(Ae(r,!0))),{get data(){return e.data},show:!0,type:"tooltip",get electionKey(){return e.electionKey}}),st((()=>Fe(s,e.data.name))),rn(t,n),xe()}(Pe(n),{get data(){return de(u)},get electionKey(){return e.electionKey}}),rn(t,n)};let r=Vn(e,"selectedFeature",7);const i="mp-list";let s=G(gt({})),a=G(null),o=G(!1),l=G(null),c=G(null),u=G(null);nt((()=>{r()&&(t=>{const n=t.id,r=de(c).querySelector("button[data-mpid='"+n+"']");if(r&&(r.click(),e.scrollContainer)){const t=r.getBoundingClientRect().top,n=de(c).getBoundingClientRect().top,i=Math.round(t-n-23);e.scrollContainer.scrollTo({top:i,behavior:"smooth"})}})(r())}));var h=nn();Ue(Pe(h),(()=>e.expanded),(t=>{var h=LM();Sn(3,h,(()=>Ym)),$n(h,(t=>X(c,gt(t))),(()=>de(c)));var d=Oe(h);Ye(d,65,(()=>e.groupedMps),We,((t,c,h)=>{let d=()=>Te(Te(c)).party;var f=NM(),p=Oe(f),g=Oe(p);Ye(Ae(Ae(p,!0)),73,(()=>Te(Te(c)).mps),We,((t,c,h)=>{var f=nn();CM(Pe(f),{get color(){return d().$color},get clickedMp(){return de(s)},get showPic(){return Te(c).$showPic},get imgUrl(){return Te(c).imgUrl},get electionKey(){return e.electionKey},onclick:t=>{de(s)?.id===Te(c).id?(r(null),X(o,!1),X(s,gt({})),gm({element_name:"icons-mp-list",element_text:"icon-"+i+"-"+Te(c).id})):(r(t),((t,e)=>{X(s,gt(t)),X(a,null);const n=e.closest(".mps").querySelectorAll("button"),r=Array.from(n).indexOf(e),i=n.length;for(let s=r;s{t.stopPropagation(),_f.device.isTouch||de(s)?.id===Te(c).id||(X(u,gt(Te(c))),Xk.item=n,Xk.show=!0)},onmouseleave:()=>{_f.device.isTouch||(X(u,null),Xk.show=!1)},size:"44",get id(){return Te(c).id}}),rn(t,f)})),st((()=>{pn(p,"color",d().$color),Fe(g,d().abbr)})),rn(t,f)})),IM(Ae(Ae(d,!0)),{get data(){return de(s)},get show(){return de(o)},get electionKey(){return e.electionKey},get element(){return de(l)},set element(t){X(l,gt(t))}}),rn(t,h)})),rn(t,h),xe()}var FM=Ze(''),VM=Ze(""),zM=Ze('');var jM=t=>t.stopPropagation(),UM=t=>t.stopPropagation(),BM=(t,e,n,r)=>de(e)?n(t,Te(r)):void 0,qM=Ze(' <!>',1),WM=Ze(''),YM=Ze(' 0 Vorschläge gefunden
'),GM=Ze('<!>
');function KM(t,e){_e(e,!0);let n,r=Vn(e,"hoveredFeature",7),i=Vn(e,"selectedFeature",7);function s(t,e){t.preventDefault(),r(e)}function a(t,e){t.preventDefault(),i(e)}var o=GM();$n(o,(t=>n=t),(()=>n)),o.__touchmove=[jM],Ue(Oe(o),(()=>e.data.length),(t=>{var n=WM();Ye(n,79,(()=>e.data),((t,e)=>Te(t).id),((t,n,o)=>{var l=qM();const c=Tt((()=>{const{id:t,name:e}=Te(n)||{};return{id:t,name:e}})),u=Tt((()=>r()&&r().id===de(c).id)),h=Tt((()=>i()&&i().id===de(c).id)),d=Tt((()=>e.highlightedFeature&&e.highlightedFeature.id===de(c).id)),f=Tt((()=>de(c).name&&""!==de(c).name));var p=Pe(l);pn(p,"--color","var(--int-font-color-gray-lighter)");var g=Oe(p);g.__mousemove=[UM],g.__click=[BM,f,a,n];var v=Oe(g);!function(t,e){_e(e,!0);let n=Vn(e,"element",7,null),r=Vn(e,"type",3,""),i=Tt((()=>e.data?.$party?.$color)),s=Tt((()=>e.data?.name)),a=Tt((()=>e.data?.electedFrom));var o=zM();$n(o,(t=>n(t)),(()=>n())),Sn(3,o,(()=>Ym));var l=Oe(o),c=Oe(l),u=Tt((()=>Wd.showDeputyPics&&e.data?.imgUrl)),h=Tt((()=>e.data?.imgUrl));CM(c,{get color(){return de(i)},size:"29",get showPic(){return de(u)},get imgUrl(){return de(h)},get electionKey(){return e.electionKey},onclick:null,onmouseenter:null,onmouseleave:null});var d=Oe(Ae(Ae(l,!0)));Ue(d,(()=>""===r()),(t=>{var e=FM(),n=Oe(e);st((()=>Fe(n,de(s)))),rn(t,e)})),Ue(Ae(Ae(d,!0)),(()=>de(a)),(t=>{var e=VM(),n=Oe(e);st((()=>Fe(n,de(a)))),rn(t,e)})),rn(t,o),xe()}(Oe(Ae(Ae(v,!0))),{get data(){return Te(n)},get isHighlighted(){return de(d)},get electionKey(){return e.electionKey}}),Ue(Ae(Ae(p,!0)),(()=>Te(o){var e=nn();gT(Pe(e)),rn(t,e)})),st((()=>{fn(p,"is-hovered",de(u)),fn(p,"is-selected",de(h)),fn(p,"is-highlighted",de(d)),fn(g,"is-selectable",de(f))})),$e("mouseenter",g,(t=>de(f)?s(t,Te(n)):void 0),!1),$e("mouseleave",g,(t=>s(t,null)),!1),rn(t,l)})),rn(t,n)}),(t=>{rn(t,YM())})),rn(t,o),xe()}function XM(t,e){de(e).scrollTop>0&&t.stopPropagation()}Ie(["touchmove","mousemove","click"]);var QM=Ze('<!>
'),JM=Ze('<!>
'),ZM=Ze('<!>
'),tR=Ze('<!> <!> <!>
');Ie(["touchmove"]);var eR=Ze('');const nR=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);var n=t=>{var n=nn();Ue(Pe(n),(()=>"mps_button"===e.interaction),(t=>{var n=nn();!function(t,e){let n=Vn(e,"expanded",3,!1);var r=yM();r.__click=function(...t){const n=e.onclick;return n?.apply(this,t)};var i=Oe(r),s=Oe(i),a=Oe(Ae(Ae(i,!0)));st((()=>{Fe(s,e.text),fn(a,"expanded",n())})),rn(t,r)}(Pe(n),{get text(){return e.buttonStr},onclick:m,get expanded(){return de(s)}}),rn(t,n)})),rn(t,n)};let r=Ln(e,["subline","results","useReturningResults","data","buttonStr","searchStr","yearOfBirthStr","photoCreditStr","noteStr","interaction"]),i=G(void 0),s=G(!1),a=G(!1);const o=Tt((()=>e.data.config.settings)),l=Tt((()=>de(o)?.partyIdForOthers)),c=Tt((()=>{if(!e.results?.resultsOverall)return;const t=e.results.resultsOverall.listVotes,n=t.resultsSeats&&t.resultsSeats.length>0?t.results.filter((t=>t.partyId!==de(l))):t.results;return t.resultsSeats.forEach((t=>{n.push(t)})),n})),u=Tt((()=>de(c)&&de(c).length>0?de(c).map((t=>t.partyId)):[])),h=Tt((()=>{const t=[];return e.results?.electedMps?.map((e=>{e.mps.map((e=>{if(e.name&&""!==e.name){const n=[e.name];e.electedFrom&&""!==e.electedFrom&&n.push(e.electedFrom),t.push({...e,searchStrings:n})}}))})),t})),d=Tt((()=>de(u)&&de(u).length>0&&de(h)&&de(h).length>0?de(h).sort(((t,e)=>de(u).indexOf(t.partyId)-de(u).indexOf(e.partyId))):de(h))),f=Tt((()=>{let t=[];const n=e.results?.electedMps&&e.results?.electedMps.length>0?e.results.electedMps.map((t=>{const n=t.mps.map((t=>({...t,$showPic:Wd.showDeputyPics&&t.imgUrl&&""!==t.imgUrl,$yearOfBirth:t.yearOfBirth&&""!==t.yearOfBirth?e.yearOfBirthStr+" "+t.yearOfBirth:null,$imgCredit:t.imgCredit&&""!==t.imgCredit?e.photoCreditStr+" "+t.imgCredit:null})));return{...t,mps:n}})):[];return t=de(u)&&de(u).length&&e.results?.electedMps&&e.results?.electedMps.length>0?n.sort(((t,e)=>de(u).indexOf(t.partyId)-de(u).indexOf(e.partyId))):n,t}));qv({infoCard:t=>{var n=nn(),o=Pe(n),l=Tt((()=>de(s)&&p.isInView));KS(o,{get show(){return de(l)},onclose:v,get title(){return r.listTitleStr},fullShow:!0,desktopFull:!0,children:(t,n=yt)=>{var r=nn();!function(t,e){_e(e,!0);var n=t=>{var n=nn(),i=Pe(n),a=Tt((()=>de(h)?.name));ES(i,{get value(){return de(l)},set value(t){X(l,gt(t))},get autocompleteValue(){return de(a)},get placeholder(){return de(c)},onselect:g,onclear:f,get onblur(){return s()},immediateFocus:!0,children:(t,n)=>{var i=QM(),s=Oe(i),a=Tt((()=>""===de(l)?e.results:de(u)));KM(s,{get data(){return de(a)},get selectedFeature(){return r()},set selectedFeature(t){r(t)},get highlightedFeature(){return de(h)},get electionKey(){return e.electionKey}}),rn(t,i)},$$slots:{default:!0}}),rn(t,n)};let r=Vn(e,"selectedFeature",7),i=Vn(e,"onfakesearchstart",3,jv),s=Vn(e,"onfakesearchend",3,jv),a=G(null),o=G(!1),l=G(""),c=Tt((()=>e.searchStr?.replace("{constituencyDescription}",Iv("cardVariables","constituencyDescription")))),u=Tt((()=>zv(e.results,de(l)))),h=Tt((()=>de(u).length?de(u)[0]:void 0));function d(t){X(o,!0)}function f(){X(l,"")}function p(t){setTimeout((()=>X(o,!1)),500)}function g(){r(de(h)),X(l,"")}function v(){i()({overlaySearch:n})}var m=tR();$n(m,(t=>X(a,gt(t))),(()=>de(a))),m.__touchmove=[XM,a];var y=Oe(m);Ue(y,(()=>_f.device.isTouch),(t=>{var e=JM();CS(Oe(e),{get placeholder(){return de(c)},onclick:v}),rn(t,e)}));var b=Ae(Ae(y,!0));Ue(b,(()=>de(o)),(t=>{var n=nn(),i=Pe(n),s=Tt((()=>""===de(l)?e.results:de(u)));KM(i,{get data(){return de(s)},get selectedFeature(){return r()},set selectedFeature(t){r(t)},get highlightedFeature(){return de(h)},get electionKey(){return e.electionKey}}),rn(t,n)}),(t=>{var n=nn();HM(Pe(n),{get groupedMps(){return e.groupedResults},get selectedFeature(){return r()},set selectedFeature(t){r(t)},expanded:!0,get scrollContainer(){return de(a)},get electionKey(){return e.electionKey}}),rn(t,n)})),Ue(Ae(Ae(b,!0)),(()=>!_f.device.isTouch),(t=>{var e=ZM(),n=Oe(e),r=Tt((()=>de(h)?.name));CS(n,{get value(){return de(l)},set value(t){X(l,gt(t))},get placeholder(){return de(c)},get autocompleteValue(){return de(r)},onfocus:d,onblur:p,onselect:g,onclear:f,get hasFocus(){return de(o)}}),rn(t,e)})),st((()=>fn(m,"is-touch",_f.device.isTouch))),rn(t,m),xe()}(Pe(r),{get groupedResults(){return de(f)},get results(){return de(d)},get searchStr(){return e.searchStr},get electionKey(){return e.data.electionKey},get yearOfBirthStr(){return e.yearOfBirthStr},get photoCreditStr(){return e.photoCreditStr},get selectedFeature(){return de(g)},set selectedFeature(t){X(g,gt(t))},onfakesearchstart:t=>{X(a,!0),X(i,gt(t.overlaySearch))},onfakesearchend:()=>{X(a,!1),X(i,void 0)}}),rn(t,r)}}),rn(t,n)},button:n});const p=Wv();let g=G(void 0);function v(){X(g,null),X(s,!1)}function m(){X(s,!de(s))}let y=Tt((()=>cm.cards.find((t=>t?.navi===r.navi))?.isCardAnimation));var b=eR(),w=Oe(b),_=Oe(w);sn(Oe(_),(()=>e.subline?.replace(/\{resultType\}/g,Iv("resultTypes",e.results?.resultsOverall?.type)).replace(/\{previousElectionYear\}/g,de(o).$datePreviousYear))),Ue(Ae(Ae(_,!0)),(()=>!e.useReturningResults),(t=>{var e=nn();Mm(Pe(e),{}),rn(t,e)}));var x=Ae(Ae(w,!0)),k=Oe(x);mM(k,{get results(){return e.results.resultsOverall},get resultsWithMicroParties(){return de(c)},get isCardAnimation(){return de(y)}}),Ue(Ae(Ae(k,!0)),(()=>e.noteStr),(t=>{var n=nn();Ok(Pe(n),{get noteStr(){return e.noteStr}}),rn(t,n)}));var S=Ae(Ae(x,!0));n(Oe(S));var T=Ae(Ae(S,!0));Ue(Oe(T),(()=>de(i)),(t=>{var e=nn();an((()=>de(i)),Pe(e)),rn(t,e)})),st((()=>fn(T,"show",de(a)))),rn(t,b),xe()}},Symbol.toStringTag,{value:"Module"}));var rR=Ze(' ');var iR=Ze('<!> '),sR=Ze('');function aR(t,e){_e(e,!0);const n=Vn(e,"children",3,void 0);var r=sR();Ue(Oe(r),(()=>e.link),(t=>{var r=iR(),i=Oe(r);an(n,i),st((()=>hn(r,"href",e.link))),rn(t,r)})),rn(t,r),xe()}var oR=Ze('');const lR=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);const n=Tt((()=>e.data.config.settings)),r=Tt((()=>_f.darkMode?"dm":"lm")),i=Tt((()=>de(n)?de(n).bucketPaths.thumbnails.replace("{basePath}",de(n).bucketPaths.basePath).replace("{electionKey}",e.data.electionKey)+"/"+e.thumbnail.replace("{color_scheme}",de(r)):""));var s=oR(),a=Oe(s);!function(t,e){var n=rR();st((()=>hn(n,"src",e.url))),rn(t,n)}(a,{get url(){return de(i)}});var o=Oe(Ae(Ae(a,!0)));sn(Oe(o),(()=>e.title)),aR(Oe(Ae(Ae(o,!0))),{get link(){return e.url},children:(t,n)=>{var r=nn();sn(Pe(r),(()=>e.button)),rn(t,r)},$$slots:{default:!0}}),rn(t,s),xe()}},Symbol.toStringTag,{value:"Module"}));var cR=Ze(' ');var uR=Ze('<!>
'),hR=Ze('<!>
'),dR=Ze('');const fR=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=G(0);const r=Tt((()=>de(n)<847)),i=Tt((()=>de(r)?"":"text-width")),s=Tt((()=>e.data.config.settings)),a=Tt((()=>de(s)?de(s).bucketPaths.flags.replace("{basePath}",de(s).bucketPaths.basePath)+"/"+e.flag+".svg":""));var o=dR(),l=Oe(o),c=Oe(l);!function(t,e){var n=cR();st((()=>hn(n,"src",e.url))),rn(t,n)}(c,{get url(){return de(a)}});var u=Ae(Ae(c,!0)),h=Oe(u);sn(Oe(h),(()=>e.title));var d=Ae(Ae(h,!0)),f=Ae(Ae(Oe(d),!0)),p=Oe(f);st((()=>Fe(p,Iv("linkCardStatuses",e.status)))),Ue(Ae(Ae(d,!0)),(()=>de(r)),(t=>{var n=uR();aR(Oe(n),{get link(){return e.url},children:(t,n)=>{var r=nn();sn(Pe(r),(()=>e.button)),rn(t,r)},$$slots:{default:!0}}),rn(t,n)})),Ue(Ae(Ae(u,!0)),(()=>!de(r)),(t=>{var n=hR();aR(Oe(n),{get link(){return e.url},children:(t,n)=>{var r=nn();sn(Pe(r),(()=>e.button)),rn(t,r)},$$slots:{default:!0}}),rn(t,n)})),st((()=>{hn(l,"href",e.url),dn(h,`title ${Ve(de(i))} svelte-1cq47um`),dn(f,`status ${Ve(de(i))} svelte-1cq47um`)})),Pn(o,"clientWidth",(t=>X(n,t))),rn(t,o),xe()}},Symbol.toStringTag,{value:"Module"}));var pR=Ze('');var gR=tn('');const vR=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){const n=Vn(e,"fillColor",3,"#61574E"),r=Vn(e,"strokeColor",3,"white"),i=Vn(e,"arrowColor",3,"white");var s=gR(),a=Oe(s),o=Ae(a),l=Ae(o);st((()=>{pn(a,"fill",n()),pn(o,"stroke",r()),pn(l,"fill",i())})),rn(t,s)}},Symbol.toStringTag,{value:"Module"}));var mR=tn('');const yR=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){const n=Vn(e,"fillColor",3,"#61574E"),r=Vn(e,"strokeColor",3,"white"),i=Vn(e,"arrowColor",3,"white");var s=mR(),a=Oe(s),o=Ae(a),l=Ae(o);st((()=>{pn(a,"fill",n()),pn(o,"stroke",r()),pn(l,"fill",i())})),rn(t,s)}},Symbol.toStringTag,{value:"Module"}));var bR=tn('');const wR=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){const n=Vn(e,"fillColor",3,"#61574E");Vn(e,"strokeColor",3,"white"),Vn(e,"arrowColor",3,"white");var r=bR(),i=Ae(Oe(r));st((()=>pn(i,"fill",n()))),rn(t,r)}},Symbol.toStringTag,{value:"Module"}));var _R=tn('');const xR=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){const n=Vn(e,"fillColor",3,"#61574E");Vn(e,"strokeColor",3,"white");const r=Vn(e,"arrowColor",3,"white");var i=_R(),s=Ae(Oe(i)),a=Ae(s),o=Ae(a);st((()=>{pn(s,"fill",n()),pn(o,"fill",r())})),rn(t,i)}},Symbol.toStringTag,{value:"Module"}));var kR=Ze('<!>
'),SR=Ze('');function TR(t,e){_e(e,!0);const n=yf();let r=G(void 0),i=G(void 0);let s=Tt((()=>Uc().fitSize([de(r)+0,de(i)+0],e.geojson))),a=Tt((()=>Pc().projection(de(s)))),o=Tt((()=>e.data&&e.geojson?e.data.map((t=>{const n=e.geojson.features.find((e=>e.properties.id===t.id));return{...t,path:de(a)(n),fill:t.data?.$meta.$relColor,centroid:de(a).centroid(n)}})):[])),l=Tt((()=>{if(!de(o)||!e.maxConstituency||!e.minConstituency)return[];return de(o).filter((t=>t.id===e.maxConstituency.id||t.id===e.minConstituency.id)).map((t=>{const n=t.id===e.maxConstituency.id?e.maxConstituency.data?.$meta.$colorGradientStops[0]:e.minConstituency.data?.$meta.$colorGradientStops[1],r=t.id===e.maxConstituency.id?"white":"black",i=t.id===e.maxConstituency.id?wR:xR;return{x:t.centroid[0],y:t.centroid[1],fillColor:n,strokeColor:n,arrowColor:r,icon:i}}))}));var c=SR(),u=Oe(c);QT(u,{get width(){return de(r)},get height(){return de(i)},get data(){return de(o)},children:(t,e=yt)=>{var r=nn();Ye(Pe(r),65,e,We,((t,e,r)=>{var i=nn();const s=Tt((()=>{})),a=Tt((()=>{}));Pe(i);var o=Tt((()=>de(a)?_f.colors.background:de(s)?_f.colors.grayDarker:Te(Te(e)).stroke)),l=Tt((()=>de(a)?_f.colors.foreground:void 0)),c=Tt((()=>Te(Te(e)).isFullyCounted?void 0:n));!function(t,e){_e(e,!0);const n=Vn(e,"strokeWidth",3,1),r=Vn(e,"backgroundStroke",3,void 0),i=Vn(e,"backgroundStrokeWidth",3,3),s=Vn(e,"fixedStroke",3,void 0),a=Vn(e,"fixedStrokeWidth",3,1),o=Vn(e,"showStroke",3,!1),l=Vn(e,"showFill",3,!1),c=Vn(e,"pattern",3,void 0),u=Vn(e,"contextName",3,"spiegel-canvas"),{register:h,deregister:d,invalidate:f}=me(u());function p(t){const u=new Path2D(e.path);t.globalAlpha=1,l()&&e.fill&&(t.fillStyle=e.fill,t.fill(u),c()&&(t.fillStyle=t.createPattern(c(),"repeat"),t.fill(u))),o()&&e.stroke&&(r()&&(t.strokeStyle=r(),t.lineWidth=i(),t.stroke(u)),t.strokeStyle=e.stroke,t.lineWidth=n(),t.stroke(u)),s()&&(t.strokeStyle=s(),t.lineWidth=a(),t.stroke(u))}nt((()=>(h(p),f(),()=>d(p)))),nt((()=>{e.path,e.stroke,n(),e.fill,o(),l(),f()})),xe()}(0,Fn((()=>we(Te(Te(e)),["id","stroke","isFullyCounted"])),{get stroke(){return de(o)},get backgroundStroke(){return de(l)},get pattern(){return de(c)}})),rn(t,i)})),rn(t,r)}}),Ye(Ae(Ae(u,!0)),73,(()=>de(l)),We,((t,e,n)=>{var r=kR(),i=Oe(r);on(0,(()=>Te(Te(e)).icon.default),(t=>{t(i,{get fillColor(){return Te(Te(e)).fillColor},get strokeColor(){return Te(Te(e)).strokeColor},get arrowColor(){return Te(Te(e)).arrowColor}})})),st((()=>{pn(r,"top",Te(Te(e)).y+"px"),pn(r,"left",Te(Te(e)).x+"px")})),rn(t,r)})),Pn(c,"clientWidth",(t=>X(r,t))),Pn(c,"clientHeight",(t=>X(i,t))),rn(t,c),xe()}var CR=Ze('');function MR(t,e){_e(e,!0);const n=Tt((()=>e.constituency?.data?.$shareValue.str+""+e.constituency?.data?.$shareValue.suffix)),r=Tt((()=>e.constituency?.name)),i=Tt((()=>e.element));var s=CR(),a=Oe(s),o=Oe(a);sn(Oe(o),(()=>de(n)));var l=Oe(Ae(Ae(o,!0)));on(0,(()=>de(i).default),(t=>{t(l,{get fillColor(){return e.fillColor},get strokeColor(){return e.strokeColor},get arrowColor(){return e.arrowColor}})}));var c=Oe(Ae(Ae(a,!0))),u=Oe(c);st((()=>Fe(u,de(r)))),rn(t,s),xe()}var RR=Ze('<!> <!>
');var ER=Ze("Lädt...",1),OR=Ze(' <!>
<!>
',1),PR=Ze('<!>
'),AR=Ze('');const $R=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);const n=Ln(e,["results","geojson","parties","partiesToBeShown","noteStr","partiesToSummarize"]),r="listVotes",i=Tt((()=>{const t=sf({results:e.results.$enrichedResultsPerConstituency.map((t=>{const n=t.returningResults[r].results.map((t=>{const n=e.partiesToSummarize.find((e=>e.singleParties.includes(t.partyId))),r=void 0!==n?n.summarizedParty:t.partyId,i=void 0!==n?e.parties.find((t=>t.id===n.summarizedParty)):t.$meta;return{...t,partyId:r,$meta:i}})),i=JSON.parse(JSON.stringify(t));return i.returningResults[r].results=n,i})),resultType:"listVotes",parties:e.partiesToBeShown.map((t=>e.parties.find((e=>e.id===t))))});return e.results.results.map((n=>{const i=n.returningResults.countingProgress.isFullyCounted,s=n.returningResults[r],a=s.results.map((n=>{const r=e.partiesToSummarize.find((t=>t.singleParties.includes(n.partyId))),i=void 0!==r?r.summarizedParty:n.partyId,s=void 0!==r?e.parties.find((t=>t.id===r.summarizedParty)):n.$meta;return{...n,$potentialSummarizedPartyId:i,$meta:{...s,$relColor:t[i]?.$partyColorScale(n.currentShare)}}}));return{...n,...s,isFullyCounted:i,styledResult:a}}))})),s=Tt((()=>{let t=!0;const n=e.partiesToBeShown.map((e=>de(i).map((n=>{const r=n.styledResult.find((t=>t.$potentialSummarizedPartyId===e));return void 0!==r&&n.isFullyCounted||(t=!1),{...n,data:r}}))));let r=null,s=null;return n.map((e=>(r=e&&e.length?e.reduce(((t,e)=>t.data?.currentShare>e.data?.currentShare?t:e)):void 0,s=e&&e.length?e.reduce(((t,e)=>t.data?.currentSharee.subline.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription")).replace(/{partyVotes}/g,Iv("cardVariables","partyVotes")).replace(/{iconTop}/g,'').replace(/{iconLow}/g,'')));var s=Oe(Ae(Ae(i,!0)));st((()=>Fe(s,e.countedStr.replace(/{countedConstituencies}/g,e.countedConstituencies).replace(/{totalConstituencies}/g,e.totalConstituencies)))),rn(t,n),xe()}(o,Fn((()=>n),(()=>e.results.additionalInformation)));var l=Ae(Ae(o,!0));je(Oe(l),(()=>e.geojson),(t=>{rn(t,ER())}),((t,e)=>{var n=nn();Ye(Pe(n),65,(()=>de(s)),We,((t,n,r)=>{let i=()=>Te(Te(n)).party,s=()=>Te(Te(n)).maxConstituency,a=()=>Te(Te(n)).minConstituency;var o=PR();Ue(Oe(o),(()=>(Te(Te(n)).showMap,i())),(t=>{var r=OR(),o=Pe(r),l=Oe(o),c=Ae(Ae(o,!0));TR(Oe(c),{get data(){return Te(Te(n)).mapData},get geojson(){return e.constituencies},get maxConstituency(){return s()},get minConstituency(){return a()}}),function(t,e){_e(e,!0);const n=vR,r=yR;var i=RR(),s=Oe(i),a=Tt((()=>e.maxConstituency?.data?.$meta.$colorGradientStops[0])),o=Tt((()=>e.maxConstituency?.data?.$meta.$colorGradientStops[0]));MR(s,{get constituency(){return e.maxConstituency},get fillColor(){return de(a)},get strokeColor(){return de(o)},arrowColor:"white",element:n});var l=Ae(Ae(s,!0)),c=Tt((()=>e.minConstituency?.data?.$meta.$colorGradientStops[1])),u=Tt((()=>e.minConstituency?.data?.$meta.$colorGradientStops[1]));MR(l,{get constituency(){return e.minConstituency},get fillColor(){return de(c)},get strokeColor(){return de(u)},arrowColor:"black",element:r}),rn(t,i),xe()}(Oe(Ae(Ae(c,!0))),{get maxConstituency(){return s()},get minConstituency(){return a()}}),st((()=>Fe(l,i()?.abbr))),rn(t,r)})),rn(t,o)})),rn(t,n)})),Ue(Ae(Ae(l,!0)),(()=>e.noteStr),(t=>{var n=nn();Ok(Pe(n),{get noteStr(){return e.noteStr}}),rn(t,n)})),rn(t,a),xe()}},Symbol.toStringTag,{value:"Module"}));var IR=Ze(' '),DR=Ze('');function NR(t,e){var n=DR();Ye(n,73,(()=>e.groups),We,((t,e,n)=>{var r=IR(),i=Oe(r);fn(i,"bordered",1===Te(n));var s=Oe(Ae(Ae(i,!0)));st((()=>Fe(s,Te(Te(e)).label))),rn(t,r)})),rn(t,n)}var LR=(t,e,n,r,i)=>{e.select(n()),r({element_name:"tabs-switch",element_text:"tab"+i()+"-"+n()})},HR=Ze(''),FR=(t,e,n)=>e(de(n)),VR=Ze(''),zR=Ze('<!> '),jR=Ze('');function UR(t,e){_e(e,!0);let n=Vn(e,"componentName",3,""),r=Vn(e,"selectedIndex",7),i=gt({options:e.options,selected:e.options[0]?.id,selectedIndex:0,select:t=>{i.selected=t,i.selectedIndex=t,r(t)}}),s=G(!0);const a=3,o=20;let l=G(void 0);function c(t){i.selected,function(t){const e=document.getElementById(t);if(e){const t=de(l).clientWidth,n=de(l).scrollWidth,r=e.offsetLeft+e.clientWidth/2-t/2,i=n-t,s=Math.max(0,Math.min(r,i));de(l).scrollTo({left:Math.max(0,Math.min(r,s)),behavior:"smooth"}),e.classList.contains("last")}}(t)}let u=gt([]),h=Tt((()=>{if(i.options&&u.length===i.options.length)return u[i.selectedIndex]})),d=Tt((()=>de(l)&&de(l).clientWidth===de(l).scrollWidth?de(l).clientWidth/u.length-2*o:Math.max(...u))),f=Tt((()=>{if(!de(h))return;return u.slice(0,i.selectedIndex).reduce(((t,e)=>t+e),0)+i.selectedIndex*o*2}));var p=jR();$n(p,(t=>X(l,gt(t))),(()=>de(l)));var g=Oe(p);Ye(g,65,(()=>i.options),We,((t,e,r)=>{let s=()=>Te(Te(e)).id;var a=HR();a.__change=[LR,i,s,gm,n],st((()=>{hn(a,"id",`tabs-switch-input-${Ve(n())}-${Ve(s())}`),un(a,s()===i.selected)})),rn(t,a)}));var v=Ae(Ae(g,!0));Ye(v,73,(()=>i.options),We,((t,e,r)=>{let s=()=>Te(Te(e)).id,a=()=>Te(Te(e)).label;var o=zR();const l=Tt((()=>`${a()}-${s()}`));o.__click=[FR,c,l];var h=Oe(o);Ue(h,(()=>Te(r)>0&&s()!==i.selected&&s()!==i.selected+1),(t=>{rn(t,VR())}));var f=Ae(Ae(h,!0)),p=Oe(f);st((()=>{hn(o,"id",de(l)),fn(o,"last",Te(r)===i.options.length-1),hn(f,"for",`tabs-switch-input-${Ve(n())}-${Ve(s())}`),fn(f,"checked",s()===i.selected),pn(f,"min-width",`${Ve(de(d))}px`),Fe(p,a())})),Pn(f,"clientWidth",(t=>u[Te(Te(e)).index]=t)),rn(t,o)})),st((()=>{fn(v,"no-translate-x",void 0===de(f)),pn(v,"--translate-x",`${Ve(de(f))}px`),pn(v,"--active-label-width",`${Ve(de(h)+2*o)}px`),pn(v,"--border-padding-vertical",`${Ve(a)}px`),pn(v,"--border-padding-horizontal",`${Ve(o)}px`),pn(v,"pointer-events",de(s)?"auto":"none")})),ln(p,((t,e)=>Qm(t,e)),(()=>({axis:"x",event:"mouse",cursor:!1}))),$e("dragging",p,(()=>X(s,!1)),!1),$e("draggingend",p,(()=>X(s,!0)),!1),rn(t,p),xe()}Ie(["change","click"]);var BR=Ze("<!> <!>",1),qR=Ze("<!> <!>",1),WR=Ze('');const YR=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=Vn(e,"columnHeight",3,120);const r=Tt((()=>e.data.config.settings));let i=G(0),s=Tt((()=>de(i)<400)),a=Tt((()=>({listVotesHeight:n()+"px",columnHeight:n()+"px",marginParty:de(s)?"16px":"32px",marginPreviousResult:de(s)?"-3px":"-6px",columnWidth:(de(s),"22px"),groupMargin:de(s)?"-10px":"-24px"})));const o=Tt((()=>e.results.$renderedVoterGroups.find((t=>t.key===e.key)).$renderedValues)),l=Tt((()=>2===de(o).length?"double":"tabs")),c=Tt((()=>{if("tabs"===de(l))return!1;const t=[];return de(o).forEach(((e,n)=>{e.$results.forEach(((e,r)=>{t[r]||(t[r]={$results:[]}),t[r].$results[n]=e}))})),t}));let u=G(0);const h=Tt((()=>de(o).map(((t,e)=>({index:e,id:e,label:t.value})))));let d=G(0),f=G(!1),p=G(!1);var g=WR(),v=Oe(g);Ue(Oe(v),(()=>"tabs"===de(l)),(t=>{var n=BR(),i=Pe(n),s=Tt((()=>"voterGroups"+e.key));UR(i,{get options(){return de(h)},get selectedIndex(){return de(u)},set selectedIndex(t){X(u,gt(t))},get componentName(){return de(s)}}),Rk(Ae(Ae(i,!0)),{get scrollLeft(){return de(d)},set scrollLeft(t){X(d,gt(t))},get showLeftShadow(){return de(f)},get showRightShadow(){return de(p)},children:(t,e)=>{var n=nn();Um(Pe(n),{get results(){return de(o)[de(u)].$results},get css(){return de(a)},get scrollLeft(){return de(d)},get currentYear(){return de(r).$dateCurrentYear},get previousYear(){return de(r).$datePreviousYear},get showLeftShadow(){return de(f)},set showLeftShadow(t){X(f,gt(t))},get showRightShadow(){return de(p)},set showRightShadow(t){X(p,gt(t))},noTopPadding:!1}),rn(t,n)},$$slots:{default:!0}}),rn(t,n)}),(t=>{var e=nn();Ue(Pe(e),(()=>"double"===de(l)),(t=>{var e=qR(),n=Pe(e);NR(n,{get groups(){return de(h)}}),Rk(Ae(Ae(n,!0)),{get scrollLeft(){return de(d)},set scrollLeft(t){X(d,gt(t))},get showLeftShadow(){return de(f)},get showRightShadow(){return de(p)},children:(t,e)=>{var n=nn();Um(Pe(n),{get results(){return de(c)},get css(){return de(a)},get scrollLeft(){return de(d)},get currentYear(){return de(r).$dateCurrentYear},get previousYear(){return de(r).$datePreviousYear},get resultType(){return de(l)},get showLeftShadow(){return de(f)},set showLeftShadow(t){X(f,gt(t))},get showRightShadow(){return de(p)},set showRightShadow(t){X(p,gt(t))}}),rn(t,n)},$$slots:{default:!0}}),rn(t,e)}),null,!0),rn(t,e)})),Pn(g,"clientWidth",(t=>X(i,t))),rn(t,g),xe()}},Symbol.toStringTag,{value:"Module"}));var GR=tn(' ',1),KR=tn(' '),XR=tn('');function QR(t,e){_e(e,!0);const n=Vn(e,"relation",11,(()=>[])),r=Vn(e,"svgHeight",3,200),i=Vn(e,"svgWidth",3,472),s=Vn(e,"circleRadius",3,70),a=Sd().x((t=>t.x)).y((t=>t.y)).curve(Od);var o=XR(),l=Oe(o);Ye(l,65,n,We,((t,e,n)=>{let r=()=>Te(Te(e)).points,i=()=>Te(Te(e)).width,s=()=>Te(Te(e)).party;var o=GR();const l=Tt((()=>Te(Te(e)).value>0?r()[0].x:r()[0].x-8)),c=Tt((()=>r()[0].y-i()/2));var u=Pe(o);st((()=>hn(u,"d",a(r()))));var h=Ae(u);hn(h,"width",8),st((()=>{hn(u,"stroke",s().$color),hn(u,"stroke-width",i()),hn(h,"x",de(l)),hn(h,"y",de(c)),hn(h,"height",i()),hn(h,"fill",s().$color)})),rn(t,o)}));var c=Ae(l);Ye(Ae(c),65,n,We,((t,e,n)=>{let r=()=>Te(Te(e)).arrowCoords;var i=KR(),s=Oe(i);st((()=>{hn(i,"transform",`translate(${Ve(r().x)},${Ve(r().y)}) rotate(${Ve(r().angleDegrees)})`),hn(s,"fill",Te(Te(e)).party.$color),fn(s,"negative",Te(Te(e)).value<0)})),rn(t,i)})),st((()=>{hn(o,"height",r()),hn(o,"width",i()),hn(c,"cx",i()/2),hn(c,"cy",r()/2),hn(c,"r",s())})),rn(t,o),xe()}var JR=Ze(''),ZR=Ze('');function tE(t,e){_e(e,!0);const n=Vn(e,"relation",11,(()=>[])),r=Vn(e,"height",3,200),i=Vn(e,"party",11,(()=>({})));var s=ZR(),a=Oe(s);Ye(a,65,n,We,((t,e,n)=>{let r=()=>Te(Te(e)).value;var i=JR();const s=Tt((()=>(r(),12))),a=Tt((()=>r()>0?de(s):null)),o=Tt((()=>r()>0?null:de(s)));var l=Oe(i),c=Oe(l),u=Oe(Ae(Ae(l,!0)));st((()=>{fn(i,"right",r()<0),pn(i,"top",Te(Te(e)).points[0].y+"px"),pn(i,"left",de(a)?de(a)+"px":null),pn(i,"right",de(o)?de(o)+"px":null),Fe(c,Te(Te(e)).party.abbr),Fe(u,Te(Te(e)).valueObj.str)})),rn(t,i)}));var o=Oe(Ae(Ae(a,!0)));st((()=>{pn(s,"height",r()+"px"),Fe(o,i().abbr)})),rn(t,s),xe()}var eE=Ze("<!> <!>",1),nE=Ze('');const rE=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);const n=Tt((()=>e.data.config.settings)),r=Tt((()=>e.results?.$renderedVoterFlowsNet?.svgHeight)),i=Tt((()=>Mf.chartWidth-1)),s=Tt((()=>e.results?.$renderedVoterFlowsNet?.voterFlowsNet));let a=G(0);const o=Tt((()=>de(s)?de(s).map(((t,e)=>({index:e,id:e,label:t.party.abbr}))):[])),l=Tt((()=>e.results?.$renderedVoterFlowsNet?.voterFlowsNet[de(a)].relations)),c=Tt((()=>e.results?.$renderedVoterFlowsNet?.voterFlowsNet[de(a)].party));var u=nE(),h=Oe(u),d=Oe(h);sn(Oe(d),(()=>e.subline.replace(/\{yearForComparison\}/g,e.yearForComparisonStr.replace("{previousElectionYear}",de(n).$datePreviousYear)).replace("{currentElectionYear}",de(n).$dateCurrentYear)));var f=Ae(Ae(h,!0)),p=Oe(f);UR(p,{get options(){return de(o)},get selectedIndex(){return de(a)},set selectedIndex(t){X(a,gt(t))},componentName:"voterFlowsNet"});var g=Ae(Ae(p,!0));Ue(Oe(g),(()=>Mf.chartWidth>0),(t=>{var e=eE(),n=Pe(e);QR(n,{get relation(){return de(l)},get svgHeight(){return de(r)},get svgWidth(){return de(i)},get circleRadius(){return Mf.circleRadius}}),tE(Ae(Ae(n,!0)),{get relation(){return de(l)},get height(){return de(r)},get party(){return de(c)}}),rn(t,e)})),Ue(Ae(Ae(f,!0)),(()=>e.noteStr),(t=>{var n=nn();Ok(Pe(n),{get noteStr(){return e.noteStr}}),rn(t,n)})),st((()=>pn(g,"height",de(r)+"px"))),Pn(g,"clientWidth",(t=>Mf.chartWidth=t)),rn(t,u),xe()}},Symbol.toStringTag,{value:"Module"}));var iE=tn('');var sE=(t,e)=>e(!e()),aE=Ze('<!>
',1),oE=Ze('<!>
',1),lE=Ze('');function cE(t,e){let n=Vn(e,"showMore",7,!1);var r=lE(),i=Oe(r);i.__click=[sE,n],Ue(Oe(i),n,(t=>{var n=aE(),r=Pe(n);mS(Oe(r),{isInteractive:!1});var i=Ae(r,!0);st((()=>Fe(i,` ${Ve(e.showLessStr)}`))),rn(t,n)}),(t=>{var n=oE(),r=Pe(n);!function(t){rn(t,iE())}(Oe(r));var i=Ae(r,!0);st((()=>Fe(i,` ${Ve(e.showMoreStr)}`))),rn(t,n)})),st((()=>fn(i,"showMore",n()))),rn(t,r)}Ie(["click"]);var uE=(t,e,n)=>de(e)?X(n,!de(n)):null,hE=Ze('<!>
'),dE=Ze(" "),fE=Ze(''),pE=Ze(' '),gE=Ze(' <!>',1);Ie(["click"]);var vE=Ze(''),mE=Ze('');function yE(t,e){_e(e,!0);let n=G(0);const r=Tt((()=>de(n)<334?"mobile":de(n)<600?"tablet":"desktop")),i=Tt((()=>{let t=!0;return e.results.forEach((e=>{e.currentVotes||(t=!1)})),t})),s=Tt((()=>e.config.settings));var a=mE(),o=Oe(a),l=Oe(o),c=Oe(l),u=Ae(Ae(l,!0)),h=Oe(u),d=Ae(Ae(u,!0));Ue(d,(()=>de(i)),(t=>{var n=vE(),r=Oe(n);st((()=>Fe(r,e.tableHeaderVotesStr))),rn(t,n)}));var f=Ae(Ae(d,!0)),p=Oe(f),g=Oe(Ae(Ae(f,!0)));st((()=>Fe(g,e.tableHeaderDiffStr?.replace("{previousElectionYear}",de(s).$datePreviousYear)))),Ye(Ae(Ae(o,!0)),65,(()=>e.results),We,((t,n,i)=>{var s=nn(),a=Pe(s),o=Tt((()=>Te(Te(n)).$shareValue?.str)),l=Tt((()=>Te(Te(n)).$diffValue?.str)),c=Tt((()=>Te(i)<5||e.showMore));!function(t,e){_e(e,!0);let n=G(!1),r=G(null),i=G(null),s=Tt((()=>de(r)&&de(r).scrollWidth>de(i)));const a="tableRow"+e.party.id,[o,l]=Km({fallback(t,e){const n=getComputedStyle(t),r="none"===n.transform?"":n.transform;return{duration:300,easing:eT,css:t=>`\n\t\t\t\t\ttransform: ${r} scale(${t});\n\t\t\t\t\topacity: ${t}\n\t\t\t\t`}}});var c=nn();Ue(Pe(c),(()=>e.show),(t=>{var c=gE(),u=Pe(c);Sn(3,u,(()=>Ym));var h=Oe(u),d=Oe(h),f=Ae(Ae(h,!0));$n(f,(t=>X(r,gt(t))),(()=>de(r))),f.__click=[uE,s,n];var p=Oe(f);Ue(p,(()=>de(s)),(t=>{var e=hE(),r=Oe(e),i=Tt((()=>de(n)?"top":"bottom"));Zm(r,{get direction(){return de(i)}}),st((()=>fn(e,"rotated",de(n)))),rn(t,e)})),Ue(Ae(Ae(p,!0)),(()=>!de(n)),(t=>{var n=dE();Sn(1,n,(()=>l),(()=>({key:a}))),Sn(2,n,(()=>o),(()=>({key:a})));var r=Oe(n);st((()=>Fe(r,e.party.name))),rn(t,n)}));var g=Ae(Ae(f,!0));Ue(g,(()=>e.currentVotes),(t=>{var n=fE(),r=Oe(n);st((()=>Fe(r,e.currentVotes))),rn(t,n)}));var v=Ae(Ae(g,!0)),m=Oe(v),y=Oe(Ae(Ae(v,!0)));Ue(Ae(Ae(u,!0)),(()=>de(n)),(t=>{var n=pE(),r=Oe(n);Sn(1,r,(()=>l),(()=>({key:a}))),Sn(2,r,(()=>o),(()=>({key:a})));var i=Oe(r);st((()=>{fn(n,"even",e.even),Fe(i,e.party.name)})),rn(t,n)})),st((()=>{fn(u,"even",e.even),Fe(d,e.party.abbr),fn(f,"overflowing",de(s)),pn(f,"padding-right",de(s)?"10px":"0px"),Fe(m,e.shareValue),Fe(y,e.diffValue)})),Pn(f,"clientWidth",(t=>X(i,t))),rn(t,c)})),rn(t,c),xe()}(a,{get party(){return Te(Te(n)).$meta},get shareValue(){return de(o)},get diffValue(){return de(l)},get currentVotes(){return Te(Te(n)).$currentVotes.str},get tableClass(){return de(r)},get show(){return de(c)},even:Te(i)%2==0}),rn(t,s)})),st((()=>{dn(a,`overview-table ${Ve(de(r))} svelte-1nfm03u`),fn(a,"noCurrentVotes",!e.useReturningResults),Fe(c,e.tableHeaderAbbrStr),Fe(h,e.tableHeaderNameStr),Fe(p,e.tableHeaderShareStr)})),Pn(a,"clientWidth",(t=>X(n,t))),rn(t,a),xe()}var bE=Ze('');const wE=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=Ln(e,["results","subline","showMoreStr","showLessStr","useReturningResults","data"]),r=Tt((()=>e.results?.resultsOverall?.listVotes)),i=Tt((()=>e.results?.resultsOverallComplete)),s=Tt((()=>e.useReturningResults&&de(i)&&de(i).length>0?de(i):de(r)?.results)),a=G(!1),o=Tt((()=>de(r)?.results?.length>5));var l=bE(),c=Oe(l),u=Oe(c);sn(Oe(u),(()=>e.subline?.replace(/\{resultType\}/g,Iv("resultTypes",e.results?.resultsOverall?.type)))),Ue(Ae(Ae(u,!0)),(()=>de(o)),(t=>{var n=nn();cE(Pe(n),{get showMoreStr(){return e.showMoreStr},get showLessStr(){return e.showLessStr},get showMore(){return de(a)},set showMore(t){X(a,gt(t))}}),rn(t,n)})),yE(Oe(Ae(Ae(c,!0))),Fn({get results(){return de(s)},get useReturningResults(){return e.useReturningResults},get showMore(){return de(a)}},(()=>n))),rn(t,l),xe()}},Symbol.toStringTag,{value:"Module"}));var _E=Ze('');const xE=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=Vn(e,"index",3,0);const r=Tt((()=>e.election?.config)),i=Tt((()=>e.data?.config?.cards[0].elements[n()]?.partyIdForOthers)),s=Tt((()=>{if(!e.results?.resultsOverall)return;const t=e.results.resultsOverall.listVotes,n=t.resultsSeats&&t.resultsSeats.length>0?t.results.filter((t=>t.partyId!==de(i))):t.results;return t.resultsSeats.forEach((t=>{n.push(t)})),n}));vm.dimensions[n()].type="electedMps";let a=Tt((()=>vm.isVertical?!e.useReturningResults&&n()===vm.activeIndex:!e.useReturningResults)),o=Tt((()=>vm.dimensions[n()].textHeightvm.dimensions[n()].chartHeight!e.data?.config?.cards[0].elements[n()].hasData)),u=Tt((()=>Wd.noDataTotalSeats||1===n()?96:720)),h=Tt((()=>{const t=_f.darkMode?"#2F2E2D":"#EEF1F3";return de(c)?[{$meta:{$color:t,abbr:" ",id:"par_eu_20",name:" "},currentSeats:de(u)/4},{$meta:{$color:t,abbr:" ",id:"par_eu_20",name:" "},currentSeats:de(u)/4},{$meta:{$color:t,abbr:" ",id:"par_eu_20",name:" "},currentSeats:de(u)/4},{$meta:{$color:t,abbr:" ",id:"par_eu_20",name:" "},currentSeats:de(u)/4}]:[]})),d=Tt((()=>{const t=e.data?.config?.cards[0].elements[n()].electionKey;let r;return e.data?.elections?.forEach(((e,n)=>{e.electionKey===t&&(r=n)})),r}));let f,p,g=G(0),v=G(0);const m=()=>{de(g)&&(vm.dimensions[n()].textHeight=de(g))},y=()=>{de(v)&&(vm.dimensions[n()].chartHeight=de(v))};nt((()=>(de(g),clearTimeout(f),f=setTimeout(m,33),de(v),clearTimeout(p),p=setTimeout(y,33),()=>{clearTimeout(p),clearTimeout(f)})));var b=_E(),w=Oe(b),_=Oe(w);sn(Oe(_),(()=>e.subline.replace(/\{resultType\}/g,Dv(e.data?.config?.cards[0].elements[n()].electionKey,"resultTypes",e.results?.resultsOverall?.type)).replace(/\{previousElectionYear\}/g,de(r)?.$datePreviousYear)));var x=Ae(Ae(_,!0));Mm(Oe(x),{get electionIndex(){return de(d)},largeFont:!0});var k=Ae(Ae(w,!0)),S=Oe(k),T=Tt((()=>de(c)?de(h):de(s)));mM(S,{get results(){return e.results.resultsOverall},get resultsWithMicroParties(){return de(T)},widget:!0,get isNoData(){return de(c)},get noDataTotalSeats(){return de(u)}}),st((()=>{fn(w,"isNoData",de(c)),pn(w,"min-height",de(o)),pn(w,"margin-bottom","0px"===de(o)?"0":"2px"),fn(x,"active",de(a)),pn(x,"top",vm.isVertical?"-12px":"-10px"),pn(x,"right",vm.isVertical?"4px":"2px"),pn(k,"min-height",de(l)),pn(k,"margin-bottom","0px"===de(l)?"0":"2px")})),Pn(w,"clientHeight",(t=>X(g,t))),Pn(k,"clientHeight",(t=>X(v,t))),rn(t,b),xe()}},Symbol.toStringTag,{value:"Module"}));var kE=Ze('
'),SE=Ze('');var TE=Ze('');const CE=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=Vn(e,"index",3,0),r=Tt((()=>e.results?.listVotes)),i=Tt((()=>{if(vm.isTwoThirds)return 112;return(vm.maxChartHeight||190)-vm.dimensions[n()].textHeight+vm.dimensions[Wd.widgetHeightIndex].textHeight-68}));vm.dimensions[n()].type="listVotes";let s=Tt((()=>({listVotesHeight:de(i)+"px",columnHeight:de(i)+"px",marginParty:"8px",marginPreviousResult:vm.isVertical?"-8px":"-6px",columnWidth:"19px",fontSize:vm.isVertical?"12px":"14px"}))),a=G(0),o=G(!1),l=G(!1),c=Tt((()=>vm.isVertical?!e.useReturningResults&&n()===vm.activeIndex:!e.useReturningResults)),u=Tt((()=>vm.isTwoThirds||vm.isVertical?"15px":"13px")),h=Tt((()=>vm.isTwoThirds?"8px":vm.isVertical?"13px":"5px"));const d=Tt((()=>!e.data?.config?.cards[0].elements[n()].hasData)),f=Tt((()=>e.data?.config?.cards[0].elements[n()].hideOthersIfNotEnoughSpace)),p=Tt((()=>e.data?.config?.cards[0].elements[n()].partyIdForOthers)),g=Tt((()=>e.data?.config?.cards[0].elements[n()].widthHideOthers)),v=Tt((()=>{const t=e.data?.config?.cards[0].elements[n()].electionKey;let r;return e.data?.elections?.forEach((e=>{e.electionKey===t&&(r=e.config.settings.datePrevious)})),r.indexOf("-")>-1&&(r=r.split("-")[0]),r})),m=Tt((()=>{const t=e.data?.config?.cards[0].elements[n()].electionKey;let r;return e.data?.elections?.forEach((e=>{e.electionKey===t&&(r=e.config.settings.dateCurrent)})),r.indexOf("-")>-1&&(r=r.split("-")[0]),r})),y=Tt((()=>{const t=e.data?.config?.cards[0].elements[n()].electionKey;let r;return e.data?.elections?.forEach(((e,n)=>{e.electionKey===t&&(r=n)})),r}));let b,w,_=G(0),x=G(0);const k=()=>{de(_)&&(vm.dimensions[n()].textHeight=de(_))},S=()=>{de(x)&&(vm.dimensions[n()].chartHeight=de(x))};nt((()=>(de(_),clearTimeout(b),b=setTimeout(k,33),de(x),clearTimeout(w),w=setTimeout(S,33),()=>{clearTimeout(w),clearTimeout(b)})));var T=TE(),C=Oe(T),M=Oe(C),R=Oe(M);st((()=>Fe(R,e.subline.replace(/\{partyVotes\}/g,Dv(e.data?.config?.cards[0].elements[n()].electionKey,"cardVariables","partyVotes")).replace(/\{resultType\}/g,Dv(e.data?.config?.cards[0].elements[n()].electionKey,"resultTypes",e.results?.type)))));var E=Ae(Ae(M,!0));Mm(Oe(E),{get electionIndex(){return de(y)},largeFont:!0});var O=Ae(Ae(C,!0));Ue(Oe(O),(()=>de(d)),(t=>{var e=nn();!function(t,e){_e(e,!0);let n=G(100),r=[40,60,50,20,17,9,5,10,20];var i=SE();Ye(i,73,(()=>r),We,((t,e,n)=>{var r=kE(),i=Ae(Ae(Oe(r),!0)),s=Ae(Ae(i,!0));st((()=>{hn(i,"style",`height: ${Ve(Te(e))}%`),hn(s,"style",`height: ${Ve(.7*Te(e))}%`)})),rn(t,r)})),st((()=>{fn(i,"twoThirds",vm.isTwoThirds),fn(i,"small",de(n)<400),pn(i,"height",vm.maxChartHeight+"px")})),Pn(i,"clientWidth",(t=>X(n,t))),rn(t,i),xe()}(Pe(e),{}),rn(t,e)}),(t=>{var n=nn();Rk(Pe(n),{get scrollLeft(){return de(a)},set scrollLeft(t){X(a,gt(t))},get showLeftShadow(){return de(o)},get showRightShadow(){return de(l)},get results(){return e.results},children:(t,e)=>{var n=nn(),i=Pe(n),c=Tt((()=>de(r)?.results));Um(i,{get results(){return de(c)},get css(){return de(s)},get scrollLeft(){return de(a)},get previousYear(){return de(v)},get currentYear(){return de(m)},get hideOthersIfNotEnoughSpace(){return de(f)},get partyIdForOthers(){return de(p)},get widthHideOthers(){return de(g)},get showLeftShadow(){return de(o)},set showLeftShadow(t){X(o,gt(t))},get showRightShadow(){return de(l)},set showRightShadow(t){X(l,gt(t))}}),rn(t,n)},$$slots:{default:!0}}),rn(t,n)})),st((()=>{fn(C,"isNoData",de(d)),fn(E,"active",de(c)),pn(E,"top",de(h)),pn(E,"right",de(u)),fn(O,"isNoData",de(d))})),Pn(C,"clientHeight",(t=>X(_,t))),Pn(O,"clientHeight",(t=>X(x,t))),rn(t,T),xe()}},Symbol.toStringTag,{value:"Module"}));var ME=Ze('
',1),RE=Ze('');var EE=Ze('<!>
'),OE=Ze("<!> <!>",1),PE=Ze('');const AE=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);const n=Tt((()=>e.results?.listVotes)),r=Tt((()=>e.election?.config)),i=Tt((()=>{const t=e.data?.config?.cards[0].elements[e.index].electionKey;let n=[];return e.data?.elections?.forEach((e=>{e.electionKey===t&&(n=e.config.parties)})),n})),s=Tt((()=>de(n)?.additionalInformation?.$totalSeats)),a=Tt((()=>de(n)?.additionalInformation?.$threshold)),o=Tt((()=>{if(e.coalitions&&de(n)&&de(i)&&de(s))return e.coalitions.map((t=>$k({coalitionConfig:t,results:de(n).results,parties:de(i),totalSeats:de(s),threshold:de(a)}))).sort(((t,e)=>t.currentSeats>e.currentSeats?-1:1))})),l=Tt((()=>!e.data?.config?.cards[0].elements[e.index].hasData));vm.dimensions[e.index].type="coalitions";let c=Tt((()=>vm.isVertical?!e.useReturningResults&&e.index===vm.activeIndex:!e.useReturningResults)),u=Tt((()=>vm.dimensions[e.index].textHeightvm.dimensions[e.index].chartHeight{const t=e.data?.config?.cards[0].elements[e.index].electionKey;let n;return e.data?.elections?.forEach(((e,r)=>{e.electionKey===t&&(n=r)})),n}));let f,p,g=G(0),v=G(0);const m=()=>{de(g)&&(vm.dimensions[e.index].textHeight=de(g))},y=()=>{de(v)&&(vm.dimensions[e.index].chartHeight=de(v))};nt((()=>(de(g),clearTimeout(f),f=setTimeout(m,33),de(v),clearTimeout(p),p=setTimeout(y,33),()=>{clearTimeout(p),clearTimeout(f)})));let b=Tt((()=>Wd.addInfoCoalitions));var w=PE(),_=Oe(w),x=Oe(_);sn(Oe(x),(()=>e.subline.replace(/\{resultType\}/g,Dv(e.data?.config?.cards[0].elements[e.index].electionKey,"resultTypes",e.results?.type)).replace(/\{previousElectionYear\}/g,de(r)?.$datePreviousYear).replace(/\{majoritySeats\}/g,de(a))));var k=Ae(Ae(x,!0));Mm(Oe(k),{get electionIndex(){return de(d)},largeFont:!0});var S=Ae(Ae(_,!0));Ue(Oe(S),(()=>de(l)),(t=>{var e=nn();!function(t){const e=K([1,2,3,4]);var n=RE();Ye(n,9,(()=>de(e)),We,((t,e,n)=>{var r=ME(),i=Pe(r),s=Oe(i),a=Oe(s);pn(a,"width","30%"),pn(Ae(Ae(a,!0)),"width","10%");var o=Oe(Ae(Ae(i,!0)));pn(Oe(o),"width","0%"),rn(t,r)})),rn(t,n)}(Pe(e)),rn(t,e)}),(t=>{var n=OE(),r=Pe(n);Ye(r,65,(()=>de(o)),We,((t,n,r)=>{var i=EE();Fk(Oe(i),Fn((()=>Te(n)),{get incumbentStr(){return e.incumbentStr}})),rn(t,i)})),Ue(Ae(Ae(r,!0)),(()=>de(b)&&""!==de(b)),(t=>{var e=nn();zk(Pe(e),{get addInfo(){return de(b)}}),rn(t,e)})),rn(t,n)})),st((()=>{fn(_,"isNoData",de(l)),pn(_,"min-height",de(u)),pn(_,"margin-bottom","0px"===de(u)?"0":"2px"),fn(k,"active",de(c)),pn(k,"top",vm.isVertical?"15px":"5px"),pn(k,"right",vm.isVertical?"14px":"12px"),fn(S,"isNoData",de(l)),pn(S,"min-height",de(h)),pn(S,"margin-bottom","0px"===de(h)?"0":"2px")})),Pn(_,"clientHeight",(t=>X(g,t))),Pn(S,"clientHeight",(t=>X(v,t))),rn(t,w),xe()}},Symbol.toStringTag,{value:"Module"}));function $E(t,e){if(!t||!e)return 0;let n=t;!1===e.find((t=>"seats"===t.type)).useReturningResults&&(n=ar(t.map((t=>t.listVotes?.results||[]))));return ir(n,(t=>t.currentSeats||t.currentSeatsMax||0))}var IE=tn(' '),DE=Ze(' '),NE=Ze('');var LE=Ze(' '),HE=Ze('<!>
');var FE=Ze(' '),VE=Ze('');function zE(t,e){_e(e,!0);const n=Tt((()=>{let t="";if("seats"===e.type){if(!e.data.$seatsMax)return"";t=e.data.$useSeatsMinMax&&e.data.$seatsMax!==e.data.$seatsMin?e.data.$seatsMin+" bis "+e.data.$seatsMax+(0===e.i?" Sitze":""):(e.data.$seatsMax?e.data.$seatsMax:0)+(0===e.i?" Sitze":"")}else t=e.data.$shareValue?.str;return t})),r=Tt((()=>{let t="";return"seats"===e.type?(e.data.seatsDiff||0===e.data.seatsDiff)&&(t=0===e.data.seatsDiff?"±0":e.data.seatsDiff>0?"+"+e.data.seatsDiff:e.data.seatsDiff):t=e.data.$diffValue?.str,t&&""!==t&&(t="("+t+")"),t}));var i=VE(),s=Oe(i);Ue(s,(()=>"seats"===e.type),(t=>{var n=nn();!function(t,e){_e(e,!0);const n=Tt((()=>!e.data.$seatsMax)),r=Tt((()=>de(n)?4:2*e.radius)),i=Tt((()=>de(n)?163:e.data.$seatsMax)),s=Tt((()=>Math.floor(e.height/de(r))*de(r))),a=Tt((()=>de(i)/Math.floor(e.height/de(r))*de(r)+de(r))),o=Tt((()=>{let t=[];for(let a=0;ade(o)),We,((t,n,i)=>{var s=IE();st((()=>{hn(s,"cx",Te(n).x),hn(s,"cy",Te(n).y),hn(s,"r",de(r)/2-.5),hn(s,"fill",e.data.$meta.$color),hn(s,"fill-opacity",Te(n).opacity)})),rn(t,s)})),Ue(Ae(Ae(c,!0)),(()=>de(n)&&0===e.i),(t=>{var n=DE(),r=Oe(n);st((()=>Fe(r,e.placeholderStr))),rn(t,n)})),st((()=>{fn(l,"phantom",de(n)),pn(l,"--size",de(r)+"px"),hn(c,"width",de(a)),hn(c,"height",de(s))})),rn(t,l),xe()}(Pe(n),{get data(){return e.data},get radius(){return e.radius},get radiusUnrounded(){return e.radiusUnrounded},get height(){return e.height},get i(){return e.i},get placeholderStr(){return e.placeholderStr}}),rn(t,n)}),(t=>{var n=nn();!function(t,e){_e(e,!0);const n=Tt((()=>e.data.currentShare?e.data.$meta.$color:"transparent")),r=Tt((()=>!e.data.currentShare));var i=HE();Ue(Oe(i),(()=>de(r)&&0===e.i),(t=>{var n=LE(),r=Oe(n);st((()=>Fe(r,e.placeholderStr))),rn(t,n)})),st((()=>{fn(i,"phantom",de(r)),pn(i,"width",e.data.$heightPercentage+"%"),pn(i,"background-color",de(n))})),rn(t,i),xe()}(Pe(n),{get data(){return e.data},get i(){return e.i},get placeholderStr(){return e.placeholderStr}}),rn(t,n)}));var a=Oe(Ae(Ae(s,!0)));Ue(Ae(a),(()=>Wd.widgetShowDiff),(t=>{var e=FE(),n=Oe(e);st((()=>Fe(n,`${Ve(de(r))}`))),rn(t,e)})),st((()=>{fn(i,"showDiff",Wd.widgetShowDiff),pn(i,"--barHeight",e.height+"px"),Fe(a,de(n))})),rn(t,i),xe()}var jE=Ze('');Ie(["change"]);var UE=Ze(''),BE=Ze(''),qE=Ze(''),WE=Ze('');function YE(t,e){_e(e,!0);var n=t=>{var e=UE(),n=Oe(e);st((()=>Fe(n,de(l)))),Pn(e,"clientWidth",(t=>X(r,t))),rn(t,e)};let r=G(0),i=G(0),s=G(0);const a=Tt((()=>vm.width>623)),o=Tt((()=>{if(!e.elements)return"";let t=!1;return e.elements.map(((e,n)=>{"seats"===e.type&&(t=0===n?"left":"right")})),t})),l=Tt((()=>{if(!e.preparedResults||!e.preparedResults.length>0)return"";const t=ir(e.preparedResults,(t=>t.pot2.$seatsMax));let n=ir(e.preparedResults,(t=>t.pot2.$seatsMin))+" bis "+t+" Sitze";if(Wd.widgetShowDiff){n=t+" (+"+ir(e.preparedResults,(t=>t.pot2.seatsDiff))+")"}return n})),c=Tt((()=>{const t="right"===de(o)?de(i)-de(r)-32:de(s)-de(r)-32,n=e.maxSeats;let a=Math.floor(Math.sqrt(n*t/22)),l=t/a,c=22/Math.ceil(n/a);return{rounded10:Math.min(l,c)/2,rounded100:Math.min(l,c)/2}})),u=Tt((()=>"right"===de(o)?de(i):de(s)));var h=WE(),d=Oe(h),f=Oe(d),p=Oe(f);Ue(Oe(p),(()=>"left"===de(o)),(t=>{var e=nn(),r=Pe(e);n(r),rn(t,e)}));var g=Ae(Ae(p,!0));Ue(Oe(g),(()=>"right"===de(o)),(t=>{var e=nn(),r=Pe(e);n(r),rn(t,e)})),Ue(Ae(Ae(d,!0)),(()=>de(r)>0&&de(u)>0),(t=>{var n=nn();Ye(Pe(n),65,(()=>e.preparedResults),We,((t,n,r)=>{var i=qE(),s=Oe(i);!function(t,e){let n;_e(e,!0);let r=G(!0),i=G(0),s=G(0);const a=Tt((()=>de(r)?"right":"bottom")),o=t=>{X(r,gt(t))};nt((()=>{0!==de(i)&&X(s,gt(de(i))),n&&!n.setCollapsed&&(n.setCollapsed=o)}));var l=jE(),c=Oe(l);$n(c,(t=>n=t),(()=>n)),c.__change=t=>{const i=0===e.index?1:0,s=n.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.querySelector("#desc_"+i+"_"+e.party.$meta.id+"__"+Bf?.data?.hash);s?s.hasAttribute("checked")?(X(r,!0),s.removeAttribute("checked"),n.parentNode.querySelector(".content").classList.remove("show"),s.parentNode.querySelector(".content").classList.remove("show")):(X(r,!1),s.setAttribute("checked","checked"),n.setAttribute("checked","checked"),n.parentNode.querySelector(".content").classList.add("show"),s.parentNode.querySelector(".content").classList.add("show")):(X(r,!de(r)),de(r)?(n.removeAttribute("checked"),n.parentNode.querySelector(".content").classList.remove("show")):(n.setAttribute("checked","checked"),n.parentNode.querySelector(".content").classList.add("show"))),setTimeout((()=>{vm.noAnimation=!0}),0),setTimeout((()=>{vm.noAnimation=!1,o(de(r)),s&&s.setCollapsed(de(r))}),202)};var u=Ae(Ae(c,!0)),h=Oe(u),d=Oe(h);Zm(Oe(d),{get direction(){return de(a)}});var f=Oe(Ae(Ae(d,!0))),p=Ae(Ae(u,!0)),g=Oe(p);sn(Oe(g),(()=>e.party.$meta.description));var v=Oe(Ae(Ae(p,!0)));sn(Oe(v),(()=>e.party.$meta.description)),st((()=>{fn(l,"fast",!e.sideBySide),fn(l,"noData",!e.party.$meta.description),pn(l,"--maxHeight",de(s)+"px"),hn(c,"id","desc_"+e.index+"_"+e.party.$meta.id+"__"+Bf?.data?.hash),hn(u,"for","desc_"+e.index+"_"+e.party.$meta.id+"__"+Bf?.data?.hash),Fe(f,e.party.$meta.name)})),Pn(p,"clientHeight",(t=>X(i,t))),rn(t,l),xe()}(Oe(s),{get party(){return Te(n).pot1},get index(){return e.index},get sideBySide(){return de(a)}});var o=Oe(Ae(Ae(s,!0)));zE(Oe(o),{get data(){return Te(n).pot1},get type(){return e.elements[e.index].type},get radius(){return de(c).rounded10},get radiusUnrounded(){return de(c).rounded1000},height:22,i:Te(r),get placeholderStr(){return e.placeholderStr}}),Ue(Ae(Ae(o,!0)),(()=>de(a)&&0===e.index&&e.elements.length>1),(t=>{var i=BE();zE(Oe(i),{get data(){return Te(n).pot2},get type(){return e.elements[e.index+1].type},get radius(){return de(c).rounded10},get radiusUnrounded(){return de(c).rounded1000},height:22,i:Te(r),get placeholderStr(){return e.placeholderStr}}),rn(t,i)})),rn(t,i)})),rn(t,n)})),st((()=>{fn(h,"isVertical",vm.isVertical),fn(h,"justOneElement",1===e.elements.length),pn(h,"--leftWidth",Wd.leftWidth||"39%"),pn(h,"--rightWidth",Wd.rightWidth||"59%"),fn(d,"single",!de(a)),fn(d,"hiddenTextLeftOrRight","left"===de(o))})),Pn(p,"clientWidth",(t=>X(s,t))),Pn(g,"clientWidth",(t=>X(i,t))),rn(t,h),xe()}var GE=Ze('<!>
'),KE=Ze('');const XE=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0),Vn(e,"isInCollapsible",3,!1);const n=Tt((()=>e.results.resultsOverall?.listVotes?.results)),r=Tt((()=>e.results.returningResults?.listVotes?.results)),i=Tt((()=>e.results.forecastResults?.listVotes?.results)),s=Tt((()=>$E(e.data?.elections[0]?.resultsOverall?.forecasts,e.elements))),a=Tt((()=>0!==e.index||vm.isVertical?e.placeholderStr:e.data?.config?.cards[0].elements[1].placeholderStr)),o=Tt((()=>!e.data?.config?.cards[0].elements[e.index].hasData)),l=Tt((()=>{if(!de(n))return!1;return de(n).map((t=>{const n=t.currentSeatsMax?t.currentSeatsMax:!!t.currentSeats&&t.currentSeats,s=e.elements[1].useReturningResults?de(r).find((e=>e.partyId===t.partyId)):!!de(i)&&de(i).find((e=>e.partyId===t.partyId)),a=!!s&&(s.currentSeatsMax?s.currentSeatsMax:!!s.currentSeats&&s.currentSeats),o=!!s&&(!!s.currentSeatsMin&&s.currentSeatsMin),l=!!s&&(s.currentSeatsMax>0&&s.currentSeatsMin>0);return{pot1:{...t,$seatsMax:n,$seatsMin:!!t.currentSeatsMin&&t.currentSeatsMin,$useSeatsMinMax:t.currentSeatsMax>0&&t.currentSeatsMin>0},pot2:(e.elements[1].useReturningResults,{...s,$seatsMax:a,$seatsMin:o,$useSeatsMinMax:l})}}))})),c=Tt((()=>{let t=e.subline.replace(/\{resultType\}/g,Dv(e.data?.config?.cards[0].elements[e.index].electionKey,"resultTypes",e.results?.resultsOverall?.type));if(!vm.isVertical){const n=e.elements[0].useReturningResults?e.results.returningResults:e.results.forecastResults,r=e.elements[1].useReturningResults?e.results.returningResults:e.results.forecastResults,i=e.elements[0].subline.replace(/\{resultType\}/g,Dv(e.data?.config?.cards[0].elements[0].electionKey,"resultTypes",n?.type)),s=e.elements[1].subline.replace(/\{resultType\}/g,Dv(e.data?.config?.cards[0].elements[1].electionKey,"resultTypes",r?.type));if(e.data?.config?.settings?.combineSublinesOnDesktop)t=""+e.elements[0].title+" "+(i?" ("+i+")":"")+"und"+e.elements[1].title+" "+(s?" ("+s+")":"");else if(e.cardSubline){const i=[...new Set([Dv(e.data?.config?.cards[0].elements[0].electionKey,"resultTypes",n?.type),Dv(e.data?.config?.cards[0].elements[1].electionKey,"resultTypes",r?.type)])].join("und");t=e.cardSubline.replace(/\{resultType\}/g,i)}else t=""+e.elements[0].title+" und"+e.elements[1].title+" "+(i?" ("+i+")":"")}return t}));let u,h,d=G(0),f=G(0),p=G(0);const g=()=>{de(d)&&(vm.dimensions[e.index].textHeight=de(d))},v=()=>{de(f)&&(vm.dimensions[e.index].chartHeight=de(f))};nt((()=>(de(d),clearTimeout(u),u=setTimeout(g,33),de(f),clearTimeout(h),h=setTimeout(v,33),()=>{clearTimeout(h),clearTimeout(u)})));const m=Tt((()=>vm.isVertical?!e.elements[e.index].useReturningResults:!e.elements[0].useReturningResults||!e.elements[1].useReturningResults));let y=Tt((()=>vm.dimensions[e.index].textHeightde(c))),Ue(Ae(Ae(_,!0)),(()=>de(m)),(t=>{var e=GE();Mm(Oe(e),{electionIndex:0}),Pn(e,"clientWidth",(t=>X(p,t))),rn(t,e)}));var x=Ae(Ae(w,!0));YE(Oe(x),{get width(){return 0},get elements(){return e.elements},get index(){return e.index},get preparedResults(){return de(l)},get placeholderStr(){return de(a)},get maxSeats(){return de(s)}}),st((()=>{dn(b,`dualCharts el${Ve(e.index)} svelte-jswr9m`),fn(b,"isVertical",vm.isVertical),fn(w,"isNoData",de(o)),fn(w,"twoCards",Wd.isDual),pn(w,"--switchWidth",de(p)+"px"),pn(w,"--minHeight",de(y))})),Pn(w,"clientHeight",(t=>X(d,t))),Pn(x,"clientHeight",(t=>X(f,t))),rn(t,b),xe()}},Symbol.toStringTag,{value:"Module"}));var QE=Ze('<!>
'),JE=Ze('');const ZE=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0),Vn(e,"isInCollapsible",3,!1);const n=Tt((()=>e.results.resultsOverall?.listVotes?.results)),r=Tt((()=>e.results.returningResults?.listVotes?.results)),i=Tt((()=>e.useReturningResults?$E(de(r),e.elements):$E(e.data?.elections[0]?.resultsOverall?.forecasts,e.elements))),s=Tt((()=>!e.data?.config?.cards[0].elements[e.index].hasData)),a=Tt((()=>{if(!de(n))return!1;return de(n).map((t=>{const e=t.currentSeatsMax?t.currentSeatsMax:!!t.currentSeats&&t.currentSeats,n={...t,$seatsMax:e,$seatsMin:!!t.currentSeatsMin&&t.currentSeatsMin,$useSeatsMinMax:t.currentSeatsMax>0&&t.currentSeatsMin>0};return{pot1:n,pot2:n}}))})),o=Tt((()=>{const t=e.subline.replace(/\{resultType\}/g,Dv(e.data?.config?.cards[0].elements[e.index].electionKey,"resultTypes",e.results?.resultsOverall?.type)),n=e.elements[0].title+" "+(t?" ("+t+")":"");return vm.isVertical?t:n}));let l,c,u=G(0),h=G(0);const d=()=>{de(u)&&(vm.dimensions[e.index].textHeight=de(u))},f=()=>{de(h)&&(vm.dimensions[e.index].chartHeight=de(h))};nt((()=>(de(u),clearTimeout(l),l=setTimeout(d,33),de(h),clearTimeout(c),c=setTimeout(f,33),()=>{clearTimeout(c),clearTimeout(l)})));const p=Tt((()=>vm.isVertical?!e.elements[e.index].useReturningResults:1===e.elements.length?!e.elements[0].useReturningResults:!e.elements[0].useReturningResults||!e.elements[1].useReturningResults));var g=JE(),v=Oe(g),m=Oe(v);sn(Oe(m),(()=>de(o))),Ue(Ae(Ae(m,!0)),(()=>de(p)),(t=>{var e=QE();Mm(Oe(e),{electionIndex:0}),rn(t,e)}));var y=Ae(Ae(v,!0));YE(Oe(y),{get width(){return 0},get elements(){return e.elements},get index(){return e.index},get preparedResults(){return de(a)},get placeholderStr(){return e.placeholderStr},get maxSeats(){return de(i)}}),st((()=>{dn(g,`dualCharts el${Ve(e.index)} svelte-1lfp4ss`),fn(g,"isVertical",vm.isVertical),fn(v,"isNoData",de(s)),fn(v,"twoCards",Wd.isDual)})),Pn(v,"clientHeight",(t=>X(u,t))),Pn(y,"clientHeight",(t=>X(h,t))),rn(t,g),xe()}},Symbol.toStringTag,{value:"Module"})),tO=Object.freeze(Object.defineProperty({__proto__:null,coalitions:Bk,historic_coalitions:JC,historic_turnout:iM,historic_vote_shares:GC,link_analysis:lR,map:FT,map_eu:wC,other_election:fR,results_map:FT,seats:nR,strongholds:$R,table:wE,vote_shares:Ak,voter_flows_net:rE,voter_groups:YR,widget_coalitions:AE,widget_dual_seats:XE,widget_dual_vote_shares:XE,widget_seats:xE,widget_single_chart:ZE,widget_vote_shares:CE},Symbol.toStringTag,{value:"Module"}));var eO=Ze('
');function nO(t,e){_e(e,!0);let n=Vn(e,"isWidget",3,!1),r=Vn(e,"isDual",3,!1),i=Vn(e,"enablePlaceholder",3,!0),s=Vn(e,"onSourceAndStatusChange",3,jv),a=Ln(e,["type","hasData","sourceId","isWidget","isDual","enablePlaceholder","election","elements","onSourceAndStatusChange"]);const o=Tt((()=>{let t={};if(n()){if(t=0===e.election.index?a.useReturningResults?e.election.resultsCollection.returningResults:e.election.resultsCollection.forecasts[Vf.selectedIndex]:a.useReturningResults?e.election.resultsCollection.returningResults:e.election.resultsCollection.forecasts[zf.selectedIndex],r()){t=a.useReturningResults?e.election.resultsCollection.returningResults:e.election.resultsCollection.forecasts[Vf.selectedIndex];return{resultsOverall:t,returningResults:e.election.resultsCollection.returningResults,forecastResults:e.election.resultsCollection.forecasts[Vf.selectedIndex]}}return"seats"===e.type?{resultsOverall:t,electedMps:e.election.resultsCollection.electedMps}:t}return t=a.useReturningResults?Bf.resultsCollection.returningResults:Bf.resultsCollection.forecasts[Bf.forecastsSelector.selectedIndex],"map"===e.type?Bf.resultsCollection.resultsPerConstituency:"map_eu"===e.type?Bf.resultsCollection.resultsPerCountry:"strongholds"===e.type?Bf.resultsCollection.resultsPerConstituency:"seats"===e.type?{resultsOverall:t,electedMps:Bf.resultsCollection.electedMps}:["historic_vote_shares","historic_coalitions","historic_turnout"].includes(e.type)?{resultsOverall:t,historic:Bf.resultsCollection.historic}:"voter_flows_gross"===e.type?Bf.resultsCollection.voterFlowsGross:"voter_flows_net"===e.type?Bf.resultsCollection.voterFlowsNet:"voter_groups"===e.type?Bf.resultsCollection.voterGroups:"table"===e.type?{resultsOverall:t,resultsOverallComplete:Bf.resultsCollection.resultsOverallComplete}:t}));nt((()=>{if(!de(o))return;let t,n;t=de(o)?.resultsOverall?.source?de(o).resultsOverall.source:de(o).source,de(o)?.resultsOverall?.$timestamp?n=de(o).resultsOverall.$timestamp:de(o)?.$timestamp&&(n=de(o).$timestamp),["historic_vote_shares","historic_coalitions","historic_turnout"].includes(e.type)&&(t&&Bf.resultsCollection.historic.source?t=Array.from(new Set([t,...Bf.resultsCollection.historic.source])):Bf.resultsCollection.historic.source&&(t=Bf.resultsCollection.historic.source),n&&Bf.resultsCollection?.historic?.$timestamp?n=ir(Array.from(new Set([n,Bf.resultsCollection?.historic?.$timestamp]))):Bf.resultsCollection?.historic?.$timestamp&&(n=Bf.resultsCollection?.historic?.$timestamp)),r()&&(n=de(o).returningResults.$timestamp,n||(n=e.election.resultsCollection?.forecasts[Vf.selectedIndex]?.$timestamp)),s()({sourceId:t,timestamp:n})}));const l=n()?r()?1===e.elements.length?"widget_single_chart":"widget_dual_"+e.type:"widget_"+e.type:e.type;var c=nn();Ue(Pe(c),(()=>!e.hasData&&!n()),(t=>{var n=nn();Ue(Pe(n),i,(t=>{var n=nn();!function(t,e){_e(e,!0),Vn(e,"children",3,void 0);const n=e.placeholderStr?e.placeholderStr.replace(/{constituencyDescription}/g,Iv("cardVariables","constituencyDescription")):"",r=Tt((()=>e.data.config.settings)),i=Tt((()=>e.placeholderSvg?e.placeholderSvg.replace("{placeholdersSpecific}",de(r).bucketPaths.placeholdersSpecific).replace("{placeholdersStatic}",de(r).bucketPaths.placeholdersStatic).replace("{basePath}",de(r).bucketPaths.basePath).replace("{electionKey}",e.data.electionKey):""));var s=eO(),a=Oe(s);Oe(Ae(Ae(a,!0))).nodeValue=Ve(n),st((()=>hn(a,"src",de(i)))),rn(t,s),xe()}(Pe(n),Fn(Bf,{get elements(){return e.elements}},(()=>a))),rn(t,n)})),rn(t,n)}),(t=>{var n=nn(),r=Pe(n);on(0,(()=>tO[l].default),(t=>{t(r,Fn(Bf,{get elements(){return e.elements}},(()=>a),{get results(){return de(o)}}))})),rn(t,n)})),rn(t,c),xe()}var rO=Ze("<!> <!>",1);const iO=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);const n=Vn(e,"onstatuschange",3,jv),r=Ln(e,["id","headline","subline","elements","onstatuschange"]);let i=gt([]),s=Tt((()=>Lv(i))),a=G(!1),o=Tt((()=>Fv(de(a))));nt((()=>{n()({status:de(o)})}));var l=nn(),c=Pe(l),u=Tt((()=>({sources:de(s),status:de(o)})));dm(c,{get id(){return e.id},get header(){return e.headline},get footer(){return de(u)},get hasData(){return r.hasData},get hash(){return r.hash},get navi(){return r.navi},children:(t,n)=>{var s=nn();Ue(Pe(s),(()=>e.elements?.length>0),(t=>{var n=nn();Ye(Pe(n),65,(()=>e.elements),We,((t,n,s)=>{var o=rO(),l=Pe(o);nO(l,Fn((()=>Te(n)),(()=>r),{enablePlaceholder:0===Te(s),onSourceAndStatusChange:({sourceId:t,timestamp:e})=>{i[Te(s)]=t,X(a,gt(e))}})),Ue(Ae(Ae(l,!0)),(()=>Te(s){var e=nn();gT(Pe(e)),rn(t,e)})),rn(t,o)})),rn(t,n)}),(t=>{var e=nn();nO(Pe(e),Fn((()=>r))),rn(t,e)})),rn(t,s)},$$slots:{default:!0}}),rn(t,l),xe()}},Symbol.toStringTag,{value:"Module"}));var sO=Ze('<!>
'),aO=Ze("<!> <!>",1),oO=Ze("<!> <!>",1);const lO=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);const n=Vn(e,"onstatuschange",3,jv),r=Ln(e,["id","headline","subline","elements","hasData","onstatuschange"]);let i=gt([]),s=Tt((()=>Lv(i))),a=G(!1),o=Tt((()=>Fv(de(a))));const l=Tt((()=>Bf.config.settings));nt((()=>{n()({status:de(o)})}));var c=nn(),u=Pe(c),h=Tt((()=>({sources:de(s),status:de(o)})));dm(u,{get id(){return e.id},get header(){return e.headline},get footer(){return de(h)},get hasData(){return e.hasData},get hash(){return r.hash},get navi(){return r.navi},children:(t,n)=>{var s=oO(),o=Pe(s);Ue(o,(()=>e.hasData),(t=>{var n=sO();sn(Oe(n),(()=>e.subline.replace("{currentElectionYear}",de(l).$dateCurrentYear))),st((()=>fn(n,"article","article"===Wd.type))),rn(t,n)})),Ue(Ae(Ae(o,!0)),(()=>e.elements?.length>0),(t=>{var n=nn();Ye(Pe(n),65,(()=>e.elements),We,((t,n,r)=>{let s=()=>Te(Te(n)).type,o=()=>Te(Te(n)).key,l=()=>we(Te(Te(n)),["type","key","title"]);var c=aO(),u=Pe(c),h=Tt((()=>s()+o())),d=Tt((()=>Te(r)===e.elements.length-1));tT(u,{get type(){return de(h)},get title(){return Te(Te(n)).title},get subline(){return e.subline},collapsed:Te(r)>0,get nrItems(){return e.elements.length},get lastItem(){return de(d)},tracking:!0,children:(t,n)=>{var c=nn();nO(Pe(c),Fn({get type(){return s()},get key(){return o()},get hasData(){return e.hasData}},l,{enablePlaceholder:0===Te(r),onSourceAndStatusChange:({sourceId:t,timestamp:e})=>{void 0!==Te(r)&&(i[Te(r)]=t,X(a,gt(e)))}})),rn(t,c)},$$slots:{default:!0}}),Ue(Ae(Ae(u,!0)),(()=>Te(r){var e=nn();gT(Pe(e)),rn(t,e)})),rn(t,c)})),rn(t,n)}),(t=>{var n=nn();nO(Pe(n),Fn({get hasData(){return e.hasData}},(()=>r))),rn(t,n)})),rn(t,s)},$$slots:{default:!0}}),rn(t,c),xe()}},Symbol.toStringTag,{value:"Module"}));var cO=Ze('');var uO=Ze('<!>
'),hO=Ze("<!> <!>",1);const dO=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=gt([]),r=Tt((()=>Lv(n))),i=G(!1),s=Tt((()=>Fv(de(i)))),a=e.elements.length%2==0;var o=nn(),l=Pe(o),c=Tt((()=>({sources:de(r),status:de(s)})));!function(t,e){_e(e,!0);const n=Vn(e,"children",3,void 0),r=Tt((()=>!0===e.order?"element-order":""));var i=cO(),s=Oe(i),a=Oe(s);an(n,Oe(a)),st((()=>{hn(i,"id",`card-${Ve(e.id)}`),dn(a,`body-wrapper ${Ve(de(r))} svelte-4bikkm`)})),rn(t,i),xe()}(l,{get id(){return e.id},get header(){return e.headline},get footer(){return de(c)},get order(){return a},get hasData(){return e.hasData},children:(t,r)=>{var s=nn();Ye(Pe(s),65,(()=>e.elements),We,((t,r,s)=>{var a=hO(),o=Pe(a);nO(o,Fn((()=>Te(r)),{get hasData(){return e.hasData},onSourceAndStatusChange:({sourceId:t,timestamp:e})=>{n[Te(s)]=t,X(i,gt(e))}})),Ue(Ae(Ae(o,!0)),(()=>Te(s){var e=uO();gT(Oe(e)),rn(t,e)})),rn(t,a)})),rn(t,s)},$$slots:{default:!0}}),rn(t,o),xe()}},Symbol.toStringTag,{value:"Module"}));var fO=Ze("<!><!>",1),pO=Ze("<!> "),gO=Ze("<!> "),vO=Ze('<!> <!>
');function mO(t,e){_e(e,!0);let n=Vn(e,"data",3,void 0),r=Vn(e,"small",3,!1),i=Vn(e,"turnoutExists",7);const s=Tt((()=>n()?.config?.cards)),a=Tt((()=>{if(!de(s))return!1;let t="";return de(s).forEach((e=>{e.elements.forEach((e=>{e.turnoutStr&&(t=e.turnoutStr)}))})),t})),o=Tt((()=>{if(!de(s))return!1;let t=!1;return de(s).forEach((e=>{e.elements.forEach((e=>{e.useReturningResults&&(t=!0)}))})),t})),l=Tt((()=>n()?.elections[0]?.resultsCollection?.returningResults)),c=Tt((()=>{if(!(de(s)&&de(o)&&de(a)&&de(l)))return!1;let t=de(l)?.additionalInformation?.currentTurnout;if(!t)return!1;const e=Jd(t,1);return de(a).replace("{turnout}",e.str)}));nt((()=>{de(c)&&!/^\s+$/.test(de(c))||n()?.config?.cards[0]?.elements[0]?.majorityStr?i(!0):i(!1)}));let u=G(0);var h=nn();Ue(Pe(h),(()=>de(c)&&!/^\s+$/.test(de(c))||n()?.config?.cards[0]?.elements[0]?.majorityStr),(t=>{var e=vO(),i=Oe(e);Ue(i,(()=>n()?.config?.cards[0]?.elements[0]?.majorityStr),(t=>{var e=pO();Ue(Oe(e),(()=>de(c)&&!/^\s+$/.test(de(c))),(t=>{var e=fO(),r=Pe(e);sn(r,(()=>n()?.config?.cards[0]?.elements[0]?.majorityStr)),sn(Ae(r),(()=>de(u)<330?" ":",")),rn(t,e)}),(t=>{var e=nn();sn(Pe(e),(()=>n()?.config?.cards[0]?.elements[0]?.majorityStr)),rn(t,e)})),rn(t,e)})),Ue(Ae(Ae(i,!0)),(()=>de(c)&&!/^\s+$/.test(de(c))),(t=>{var e=gO();sn(Oe(e),(()=>de(c))),rn(t,e)})),st((()=>{fn(e,"small",r()),fn(e,"morePadding",vm.isVertical)})),Pn(e,"clientWidth",(t=>X(u,t))),rn(t,e)})),rn(t,h),xe()}var yO=(t,e,n)=>{e()(n(),t)},bO=Ze(''),wO=Ze(' ',1);function _O(t,e){_e(e,!0);const n=Vn(e,"children",3,void 0),r=Vn(e,"title",3,""),i=Vn(e,"index",3,0),s=Vn(e,"twoCards",3,!1),a=Vn(e,"last",3,!1),o=Vn(e,"first",3,!1),l=Vn(e,"isNoData",3,!1),c=Vn(e,"someData",3,!1),u=Vn(e,"onClick",3,(()=>{})),h=Tt((()=>Bf?.config?.cards[0].elements[i()].placeholderStr));let d=Tt((()=>{if(e.sources)return de(f)?e.sources:e.sources+"; "+e.status}));const f=Tt((()=>!vm.isTwoThirds&&(Wd.widgetBindFast?de(v):de(m))<30));let p,g,v=G(0),m=G(0),y=G(0);const b=()=>{de(v)&&X(m,gt(de(v)))},w=()=>{de(y)&&(vm.dimensions[i()].cardHeight=de(y))};let _;nt((()=>(de(v),clearTimeout(p),p=setTimeout(b,33),de(y),clearTimeout(p),g=setTimeout(w,0),de(x),de(k),T(),()=>{clearTimeout(p),clearTimeout(g),clearTimeout(_)})));let x=G(0),k=G(0);const S=()=>{de(x)&&(vm.titleHeight=de(x),1===i()&&(vm.titleWidth=de(k)))},T=()=>{clearTimeout(_),_=setTimeout(S,33)};var C=wO(),M=Pe(C);M.__click=[yO,u,i];var R=Oe(M),E=Oe(R),O=Ae(Ae(R,!0));an(n,Oe(O));var P=Ae(Ae(O,!0));Ue(P,(()=>c()&&0!==i()&&!s()),(t=>{var e=bO(),n=Oe(e);st((()=>Fe(n,de(h)))),rn(t,e)}));var A=Oe(Ae(Ae(P,!0))),$=Oe(A);Ue($,(()=>Wd.isDual),(t=>{var e=nn(),n=Pe(e),r=Tt((()=>!Wd.isDual&&!Wd.largeCredit));mO(n,{data:Bf,get small(){return de(r)}}),rn(t,e)}));var I=Ae(Ae($,!0)),D=Tt((()=>!Wd.isDual&&!Wd.largeCredit));im(I,{get sources(){return de(d)},get small(){return de(D)}}),Ue(Ae(Ae(A,!0)),(()=>de(f)),(t=>{var n=nn(),r=Pe(n),i=Tt((()=>!Wd.isDual&&!Wd.largeCredit));am(r,{get status(){return e.status},get small(){return de(i)}}),rn(t,n)}));var N=Ae(Ae(M,!0));st((()=>{fn(M,"active",vm.activeIndex===i()),fn(M,"first",o()),fn(M,"isHorizontal",!vm.isVertical),fn(M,"isNoData",l()),fn(M,"isVertical",vm.isVertical),fn(M,"last",a()),fn(M,"twoCards",s()),Fe(E,r()),fn(N,"first",o()),fn(N,"isVertical",vm.isVertical)})),Pn(M,"clientHeight",(t=>X(y,t))),Pn(R,"clientHeight",(t=>X(x,t))),Pn(R,"clientWidth",(t=>X(k,t))),Pn(A,"clientHeight",(t=>X(v,t))),rn(t,C),xe()}Ie(["click"]);var xO=Ze('');function kO(t,e){let n=Vn(e,"type",3,"primary");var r=xO();r.__click=function(...t){const n=e.onclick;return n?.apply(this,t)};var i=Oe(r),s=Oe(i);st((()=>{fn(r,"primary","primary"===n()),fn(r,"secondary","secondary"===n()),Fe(s,e.text)})),rn(t,r)}Ie(["click"]);var SO=Ze('<!> '),TO=Ze('<!> '),CO=Ze("<!> <!>",1),MO=Ze(''),RO=Ze(' <!>',1);function EO(t,e){_e(e,!0);const n=Vn(e,"twoCards",3,!1);let r=Tt((()=>e.data?.config?.cards[0]?.primaryButton)),i=Tt((()=>e.data?.config?.cards[0]?.secondaryButton)),s=G(!1);let a,o=G(0),l=G(0),c=Tt((()=>{if(e.sources)return de(u)?e.sources:e.sources+"; "+e.status}));const u=Tt((()=>!(Wd.turnout&&n()&&Wd.isDual)&&(!vm.isTwoThirds&&(Wd.widgetBindFast?de(o):de(l))<30))),h=()=>{de(o)&&X(l,gt(de(o)))};nt((()=>(de(o),clearTimeout(a),a=setTimeout(h,3),()=>{clearTimeout(a)})));const d=Tt((()=>vm.isButton?Wd.turnout&&de(s)&&n()&&Wd.isDual&&!vm.isVertical?de(o)>37?0:12:e.data?.cards[0].elements.length<=2&&!de(s)&&Wd.isDual&&!vm.isVertical&&de(o)<20?13:0:e.data?.cards[0].elements.length<=2&&!de(s)&&Wd.isDual&&!vm.isVertical?-10:0));var f=RO(),p=Pe(f),g=Oe(p);Ue(Oe(g),(()=>vm.isButton),(t=>{var e=CO(),n=Pe(e);Ue(n,(()=>de(r)&&de(r).url),(t=>{var e=SO();kO(Oe(e),{get text(){return de(r).label},type:"primary",onclick:()=>location.href=de(r).url}),st((()=>hn(e,"href",de(r).url))),rn(t,e)})),Ue(Ae(Ae(n,!0)),(()=>de(i)&&de(i).url),(t=>{var e=TO();kO(Oe(e),{get text(){return de(i).label},type:"secondary",onclick:()=>location.href=de(i).url}),st((()=>hn(e,"href",de(i).url))),rn(t,e)})),rn(t,e)})),Ue(Ae(Ae(p,!0)),(()=>!vm.isVertical&&de(c)),(t=>{var r=MO(),i=Oe(r),a=Oe(i);Ue(a,(()=>Wd.isDual&&Wd.turnout),(t=>{var n=nn(),r=Pe(n),i=Tt((()=>!Wd.isDual&&!Wd.largeCredit));mO(r,{get data(){return e.data},get small(){return de(i)},get turnoutExists(){return de(s)},set turnoutExists(t){X(s,gt(t))}}),rn(t,n)}));var l=Ae(Ae(a,!0)),h=Tt((()=>!Wd.isDual&&!Wd.largeCredit));im(l,{get sources(){return de(c)},get small(){return de(h)}}),Ue(Ae(Ae(i,!0)),(()=>de(u)),(t=>{var n=nn(),r=Pe(n),i=Tt((()=>!Wd.isDual&&!Wd.largeCredit));am(r,{get status(){return e.status},get small(){return de(i)}}),rn(t,n)})),st((()=>{fn(r,"inline",!vm.isTwoThirds),fn(r,"twoCards",n()),fn(r,"noButtons",!vm.isButton),fn(r,"turnoutExists",de(s)),fn(r,"singleCard",1===e.data?.cards[0].elements.length),fn(r,"threeRows",0===de(d)&&de(o)>50),fn(r,"noButtons",!vm.isButton),pn(r,"--paddingBottom",de(d)+"px")})),Pn(i,"clientHeight",(t=>X(o,t))),rn(t,r)})),st((()=>{fn(p,"isVertical",vm.isVertical),fn(p,"isTwoThirds",vm.isTwoThirds),fn(p,"twoCards",n()),fn(p,"noButtons",!vm.isButton),fn(p,"isNoSource",!de(c)),fn(p,"singleCard",1===e.data?.cards[0].elements.length),fn(p,"isNoData",e.isNoData)})),rn(t,f),xe()}var OO=Ze('');function PO(t){rn(t,OO())}var AO=tn('');function $O(t,e){let n=Vn(e,"isDual",3,!1);var r=AO();st((()=>fn(r,"isDual",n()))),rn(t,r)}var IO=Ze("<!> <!> <!>",1),DO=Ze("<!> <!>",1),NO=Ze('<!>
'),LO=Ze('<!>
'),HO=Ze('<!>
'),FO=Ze('<!>
<!>',1),VO=Ze('<!>
'),zO=Ze('');const jO=Object.freeze(Object.defineProperty({__proto__:null,default:function(t,e){_e(e,!0);let n=gt([]),r=gt([]),i=Tt((()=>function(t,e){const n=t.flat().filter((t=>t));if(!n||!n.length)return"";const r=e.flat().filter((t=>t));let i=[];n.forEach(((t,e)=>{i.push(Nv.translate(r[e],"sources",t))}));const s=[...new Set(i)];return(1===s.length?"Quelle: ":"Quellen: ")+s.join(", ")}(n,r))),s=G(!1),a=Tt((()=>Fv(de(s))||"")),o=gt([]),l=G(!1);const c=Tt((()=>Bf?.config?.settings?.isLive)),u=Tt((()=>Bf?.config?.liveStr)),h=Tt((()=>{const t=Bf?.config?.cards[0].elements[0].hasData,e=Bf?.config?.cards[0].elements.length>1&&Bf?.config?.cards[0].elements[1].hasData,n=Bf?.config?.cards[0].elements.length>2&&Bf?.config?.cards[0].elements[2].hasData;return!t&&!e&&!n})),d=Tt((()=>{const t=Bf?.config?.cards[0].elements[0].hasData,e=!(Bf?.config?.cards[0].elements.length>1)||Bf?.config?.cards[0].elements[1].hasData,n=!(Bf?.config?.cards[0].elements.length>2)||Bf?.config?.cards[0].elements[2].hasData;return t&&(!e||!n)})),f=Tt((()=>Wd.isDual?de(d)?Bf?.config?.cards[0].elements[0].placeholderStr:Bf?.config?.placeholderStr:Bf?.config?.cards[0].elements[0].placeholderStr));let p=Tt((()=>({widgetMaxWidth:Math.abs(vm.width)+"px",widgetMaxHeight:vm.maxWidgetHeight+"px",widgetItemWidth:Math.abs(vm.width/e.elements.length-6/e.elements.length)+"px",widgetPaddingMinus:(Wd.widgetPaddingMinus||0)+"px"}))),g=Tt((()=>{if(de(h))return[0,-4,20-vm.maxCardHeight];let t;return t=0===vm.activeIndex?[0,-4,-vm.maxCardHeight]:1===vm.activeIndex?[0,-vm.maxCardHeight,-vm.maxCardHeight]:[0,-vm.maxCardHeight,2*-vm.maxCardHeight],t}));const v=(t,e)=>{t!==vm.activeIndex&&(e.target.classList.contains("title")||e.target.classList.contains("tab_inner"))&&!de(h)&&e.target&&(vm.activeIndex=t)};let m;nt((()=>{Wd.turnout=e.elements.length<=2,(Wd.isDual||Wd.data.indexOf("euw_2024")>=0)&&(Wd.widgetHeightIndex=1===e.elements.length?0:(e.elements.length,1)),Wd.isDual&&1===e.elements.length&&(Wd.leftWidth="100%",Wd.rightWidth="0%"),de(h)&&e.elements.length>2?(m||(m=Wd.widgetHeightIndex),Wd.widgetHeightIndex=1):vm.widgetHeightIndex=m,vm.twoCards=e.elements.length<=2,Wd.widgetStartTab&&!de(h)&&(vm.activeIndex=Wd.widgetStartTab),setTimeout((()=>{X(l,!0)}),303),vm.maxWidgetHeight,vm.maxCardHeight}));var y=zO(),b=Oe(y);Ue(Oe(b),(()=>Wd.isDual),(t=>{var e=nn();Ue(Pe(e),(()=>de(u)&&de(c)),(t=>{var e=IO(),n=Pe(e);sn(n,(()=>de(u)));var r=Ae(Ae(n,!0));$O(r,{get isDual(){return Wd.isDual}}),sn(Ae(Ae(r,!0)),(()=>Bf?.config?.headline)),rn(t,e)}),(t=>{var e=nn();sn(Pe(e),(()=>Bf?.config?.headline)),rn(t,e)})),rn(t,e)}),(t=>{var e=DO(),n=Pe(e);sn(n,(()=>Bf?.config?.headline)),Ue(Ae(Ae(n,!0)),(()=>de(c)),(t=>{var e=nn();$O(Pe(e),{}),rn(t,e)})),rn(t,e)}));var w=Ae(Ae(b,!0));Ye(w,73,(()=>e.elements),We,((t,c,u)=>{let f=()=>Te(Te(c)).type,p=()=>Te(Te(c)).key,m=()=>Te(Te(c)).electionKey,y=()=>we(Te(Te(c)),["type","key","title","electionKey"]);var b=FO();const w=Tt((()=>Bf.elections.find((t=>t.electionKey===m()))));var _=Pe(b);pn(_,"z-index",Te(u));var x=Oe(_),k=Tt((()=>f()+p())),S=Tt((()=>Te(u)===e.elements.length-1)),T=Tt((()=>e.elements.length<=2));_O(x,{onClick:v,get sources(){return de(i)},get status(){return de(a)},get isNoData(){return de(h)},get someData(){return de(d)},index:Te(u),get title(){return Te(Te(c)).title},get type(){return de(k)},first:0===Te(u),get last(){return de(S)},get twoCards(){return de(T)},children:(t,i)=>{var a=nn();nO(Pe(a),Fn({get key(){return p()},get type(){return f()},index:Te(u)},y,{get cardSubline(){return e.subline},get election(){return de(w)},isWidget:!0,onSourceAndStatusChange:({sourceId:t,timestamp:e})=>{n[Te(u)]=t,r[Te(u)]=m(),e&&X(s,gt(e))},get isDual(){return Wd.isDual},get elements(){return e.elements}})),rn(t,a)},$$slots:{default:!0}}),Ue(Ae(Ae(_,!0)),(()=>vm.isTwoThirds&&Te(u){var e=nn();Ue(Pe(e),(()=>0===Te(u)),(t=>{var e=NO();gT(Oe(e)),rn(t,e)}),(t=>{var e=LO();PO(Oe(e)),st((()=>pn(e,"height",vm.maxChartHeight+55+"px"))),rn(t,e)})),rn(t,e)}),(t=>{var n=nn();Ue(Pe(n),(()=>!vm.isVertical&&Te(u){var e=HO();PO(Oe(e)),rn(t,e)}),null,!0),rn(t,n)})),st((()=>{fn(_,"ani",de(l)&&!vm.noAnimation),pn(_,"transform",`translateY(${de(g)[Te(u)]}px)`)})),Pn(_,"clientHeight",(t=>o[Te(u)]=t)),rn(t,b)}));var _=Ae(Ae(w,!0)),x=Tt((()=>e.elements.length<=2));EO(_,{get sources(){return de(i)},get status(){return de(a)},data:Bf,get isNoData(){return de(h)},get twoCards(){return de(x)}}),Ue(Ae(Ae(_,!0)),(()=>de(h)),(t=>{var e=VO();sn(Oe(e),(()=>de(f))),st((()=>{fn(e,"large",!vm.isTwoThirds&&!vm.isVertical),fn(e,"twoThirds",vm.isTwoThirds)})),rn(t,e)})),st((()=>{fn(y,"twoThirds",vm.isTwoThirds),fn(y,"twoCards",e.elements.length<=2),fn(w,"isVertical",vm.isVertical),fn(w,"isHorizontal",!vm.isVertical),fn(w,"noData",de(h)),fn(w,"noButtons",!vm.isButton)})),Pn(y,"clientWidth",(t=>vm.width=t)),ln(w,((t,e)=>Em(t,e)),(()=>de(p))),rn(t,y),xe()}},Symbol.toStringTag,{value:"Module"})),UO=Object.freeze(Object.defineProperty({__proto__:null,collapsible:lO,link_box:dO,standard:iO,widget:jO},Symbol.toStringTag,{value:"Module"}));var BO=Ze('');function qO(t,e){let n,r;_e(e,!0);const i=()=>_f.device.isApp?0:window.innerWidth<520?100:108,s=()=>{if(!r)return;const{width:t,height:e}=r.getBoundingClientRect();_f.visualWidth=t,_f.containerHeight=e;const n=Math.abs(_f.containerHeight-_f.visualHeight)>_f.tolerance;(!_f.visualHeight||_f.containerHeight>_f.visualHeight||n)&&(_f.visualHeight=_f.containerHeight),_f.headerHeight=i(),_f.footerHeight=_f.device.isApp?59:0,_f.contentHeight=_f.visualHeight-_f.headerHeight-_f.footerHeight,_f.safeHeight&&!n||(_f.safeHeight=document.documentElement.clientHeight-_f.headerHeight-_f.footerHeight)},a=()=>{clearTimeout(n),n=setTimeout(s,125)};"article"===Wd.type&&(_f.headerHeight=0),setTimeout(s,333),nt((()=>(a(),()=>clearTimeout(n))));var o=BO();$e("resize",Me,a,!1),$n(o,(t=>r=t),(()=>r)),function(t,e,n){var r=()=>{s=!0,clearTimeout(i),i=setTimeout(a,100),n(window.scrollY)};addEventListener("scroll",r,{passive:!0});var i,s=!1,a=()=>{s=!1},o=!0;it((()=>{var t=e();o?o=!1:s||null==t||(s=!0,clearTimeout(i),scrollTo(window.scrollX,t),i=setTimeout(a,100))})),rt(r),it((()=>()=>{removeEventListener("scroll",r)}))}(0,(()=>_f.scrollY),(t=>_f.scrollY=t)),rn(t,o),xe()}var WO=Ze('<!> <!> ',1);const YO=((t={})=>document.currentScript||(()=>{const e=(t.url||"").replace(/^.+?(\/src\/.+?.js)+?/,"$1");return document.querySelector("script[src='"+e+"']")})())();!function(t,n){const r=n.anchor??n.target.appendChild(Ee());he((()=>function(t,{target:n,anchor:r,props:i={},events:s,context:a,intro:o=!1}){!function(){if(void 0===Me){Me=window,Re=document;var t=Element.prototype;t.__click=void 0,t.__className="",t.__attributes=null,t.__e=void 0,Text.prototype.__nodeValue=" "}}();const l=new Set,c=De.bind(null,n),u=De.bind(null,document),h=t=>{for(let e=0;e{ct(e)}}((()=>(ot((()=>{a&&(_e({}),Xt.c=a);s&&(i.$$events=s),He=o,d=t(r,i)||{},He=!0,a&&xe()})),()=>{for(const t of l)n.removeEventListener(t,c);Le.delete(h),ze.delete(d)})));return ze.set(d,f),d}(t,{...n,anchor:r})),!1)}((function(t,e){_e(e,!0);const n=new $v;nt((()=>{let{useWebsockets:t=!1,pollingFrequency:e=Bf?.config?.settings?.pollingFrequency||Wd.interval,cacheAge:r=0}=Bf.config.settings||{};n.cacheAge=1e3*r,t?n.enableWebsockets():n.disableWebsockets(),Wd.debugUrls&&Wd.interval&&(e=Wd.interval),n.resetInterval(1e3*e)}));var r=WO(),i=Pe(r);Ue(i,(()=>Wd.iframe),(t=>{var e=nn();Pe(e);!function(t,e){if(_e(e,!1),Wd.iframe){const t=document.querySelector("body");t.style.margin="1px",t.style.padding=0;let e=document.createElement("script");e.src="//interactive.spiegel.de/int/pub/common/js/embedbridge/embedbridge.v0.js",t.append(e);let n=document.createElement("style");n.rel="stylesheet",n.type="text/css",n.href="//interactive.spiegel.de/gra/common/css/grafik.base.v0.css",n.innerHTML='@font-face{\n font-family:\'SpiegelSlabCdUI\';\n font-weight:800;\n font-display: swap;\n src:url("https://cdn.prod.www.spiegel.de/public/shared/fonts/SpiegelSlab4UICd-ExtraBold.woff2") format("woff2"),\n url("https://cdn.prod.www.spiegel.de/public/shared/fonts/SpiegelSlab4UICd-ExtraBold.woff") format("woff")\n}\n\n@font-face {\n font-family:\'SpiegelSansUI\';\n font-weight:400;\n font-display: swap;\n src:url("https://cdn.prod.www.spiegel.de/public/shared/fonts/SpiegelSans4UI-Regular.woff2") format("woff2"),\n url("https://cdn.prod.www.spiegel.de/public/shared/fonts/SpiegelSans4UI-Regular.woff") format("woff")}\n\n@media (prefers-color-scheme: dark) {\n body {\n background-color: #1f1e1c;\n }\n}\n\n@font-face {\n font-family:\'SpiegelSansUI\';\n font-weight:700;\n font-display: swap;\n src:url("https://cdn.prod.www.spiegel.de/public/shared/fonts/SpiegelSans4UI-Bold.woff2") format("woff2"),\n url("https://cdn.prod.www.spiegel.de/public/shared/fonts/SpiegelSans4UI-Bold.woff") format("woff")\n}',t.append(n);const r=()=>{window.EmbedBridge?window.EmbedBridge({autoResize:!0}).resize():setTimeout(r,666)};setTimeout(r,333)}In(),xe()}(0,{}),rn(t,e)}));var s=Ae(Ae(i,!0));qO(s,{});var a=Oe(Ae(Ae(s,!0)));Ye(a,73,(()=>Bf.cards),We,((t,e,n)=>{var r=nn();!function(t,e){_e(e,!0);const n=Ln(e,["type"]),r=Tt((()=>UO[e.type]?.default));var i=nn();Ue(Pe(i),(()=>de(r)),(t=>{var e=nn(),i=Pe(e);on(0,(()=>de(r)),(t=>{t(i,Fn((()=>n)))})),rn(t,e)})),rn(t,i),xe()}(Pe(r),Fn((()=>Te(e)))),rn(t,r)})),ln(a,(t=>function(t){_f.viewRoot=t}(t))),rn(t,r),xe()}),{target:YO.previousElementSibling});})()