@sevn/elections-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +297 -0
  3. package/dist/index.cjs +603 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +351 -0
  6. package/dist/index.d.ts +351 -0
  7. package/dist/index.js +15609 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/styles.css +38 -0
  10. package/dist/umd/candidate-by-state.js +98 -0
  11. package/dist/umd/candidate-carrousel-state-results-viewer.js +108 -0
  12. package/dist/umd/candidate-counting-progress.js +77 -0
  13. package/dist/umd/candidate-duel-state-result-viewer.js +91 -0
  14. package/dist/umd/candidate-map-by-state.js +104 -0
  15. package/dist/umd/candidate-multi-ring-chart-performance-by-municipality.js +105 -0
  16. package/dist/umd/candidate-performance-by-municipality.js +105 -0
  17. package/dist/umd/candidate-ranking.js +59 -0
  18. package/dist/umd/candidate-results-by-municipality.js +103 -0
  19. package/dist/umd/counting-progress.js +125 -0
  20. package/dist/umd/current-leader.js +43 -0
  21. package/dist/umd/election-round-analysis.js +100 -0
  22. package/dist/umd/election-status.js +135 -0
  23. package/dist/umd/final-results.js +141 -0
  24. package/dist/umd/live-summary.js +36 -0
  25. package/dist/umd/municipality-perfomance-map.js +82 -0
  26. package/dist/umd/party-performance.js +99 -0
  27. package/dist/umd/results-by-office.js +94 -0
  28. package/dist/umd/round-results-analysis.js +99 -0
  29. package/dist/umd/state-leaders.js +118 -0
  30. package/dist/umd/state-winners.js +129 -0
  31. package/dist/umd/top-dispute.js +43 -0
  32. package/dist/umd/vote-comparison-by-round.js +76 -0
  33. package/dist/umd/vote-counting-progress.js +23 -0
  34. package/dist/umd/voting-map.js +112 -0
  35. package/package.json +96 -0
@@ -0,0 +1,99 @@
1
+ (function(G,W){typeof exports=="object"&&typeof module<"u"?module.exports=W():typeof define=="function"&&define.amd?define(W):(G=typeof globalThis<"u"?globalThis:G||self,G.RoundResultsAnalysis=W())})(this,(function(){"use strict";var Fl=Object.defineProperty;var hs=G=>{throw TypeError(G)};var Dl=(G,W,re)=>W in G?Fl(G,W,{enumerable:!0,configurable:!0,writable:!0,value:re}):G[W]=re;var Ze=(G,W,re)=>Dl(G,typeof W!="symbol"?W+"":W,re),An=(G,W,re)=>W.has(G)||hs("Cannot "+re);var v=(G,W,re)=>(An(G,W,"read from private field"),re?re.call(G):W.get(G)),F=(G,W,re)=>W.has(G)?hs("Cannot add the same private member more than once"):W instanceof WeakSet?W.add(G):W.set(G,re),L=(G,W,re,qt)=>(An(G,W,"write to private field"),qt?qt.call(G,re):W.set(G,re),re),ue=(G,W,re)=>(An(G,W,"access private method"),re);var tr,rr,Pt,nr,yr,zr,Ot,st,ar,ze,Tn,Mn,Rn,ps,qe,En,it,It,Ke,Ge,ke,We,ot,Nt,mt,sr,ir,or,lt,jr,ie,jl,ql,Ln,Vr,Kr,Pn,Ue,Ye,Ee,Ft,kr,Er,qr,fs;class G extends Error{constructor(){super('Chave de acesso não configurada. Chame Core.applyKey("sua-chave") antes de montar o componente, ou carregue o script com ?cid=sua-chave.'),this.name="SevnKeyMissingError"}}class W extends Error{constructor(t,r){super(`Não foi possível contatar a API para ${t}.`),this.name="SevnNetworkError",this.cause=r}}const re="__sevnElectionsState_v1__",qt=globalThis;function On(e){return qt[re]||(qt[re]={config:e(),transport:{activeIndex:0,pinnedAt:0}}),qt[re]}const _s="https://failover-api.sevntech.com",gs=/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/i;function In(){return{key:null,apiHosts:[],assetsBase:"https://cdn.sevnelections.com/static",assetsVersion:"v1",cache:{storageKey:"election_cache",maxEntries:200},request:{timeoutMs:8e3,retriesPerHost:3,retryDelayMs:300,stickyWindowMs:12e4},theme:null}}const ms=In;function Ut(){return On(In)}function ws(e){return[`https://${e}-api1.sevnelections.com`,`https://${e}-api2.sevnelections.com`,_s]}function Gr(e){if(typeof e!="string"||!gs.test(e))throw new Error(`[sevn] Chave inválida: ${JSON.stringify(e)}. Use apenas letras, números e hífen (a chave vira subdomínio da API).`);const t=Ut();t.config.key=e,t.config.apiHosts=ws(e)}function Nn(e){const{cache:t,request:r,key:n,...a}=e,s=Ut();s.config={...s.config,...a,cache:{...s.config.cache,...t},request:{...s.config.request,...r}},n&&(Gr(n),a.apiHosts&&(s.config.apiHosts=a.apiHosts))}function cr(){return Ut().config}function Fn(){return Ut().config.apiHosts.length>0}function Dn(){if(!Fn())throw new G;return Ut().config.apiHosts}function bs(e){const{assetsBase:t,assetsVersion:r}=Ut().config,n=t.replace(/\/+$/,""),a=String(e).replace(/^\/+/,"");return`${n}/${r}/${a}`}const xs=':root{--sevn-color-primary: #0a3e27;--sevn-color-secondary: #c38214;--sevn-color-tertiary: #1c1c1c;--sevn-color-red: #da0000;--sevn-color-yellow: #e4a615;--sevn-color-green: #1e6704;--sevn-color-blue: #0e2a41;--sevn-color-neutral: #f2f2f7;--sevn-color-text-secondary: #6b7280}[class^=sevn_],[class*=" sevn_"],[class^=sevn_] *,[class^=sevn_] *:before,[class^=sevn_] *:after,[class*=" sevn_"] *,[class*=" sevn_"] *:before,[class*=" sevn_"] *:after{box-sizing:border-box}[class^=sevn_] *,[class*=" sevn_"] *{margin:0;padding:0}',ct=typeof window<"u"&&typeof document<"u",jn="data-sevn-tokens",qn="data-sevn-theme",Un={primary:"--sevn-color-primary",secondary:"--sevn-color-secondary",tertiary:"--sevn-color-tertiary",neutral:"--sevn-color-neutral",red:"--sevn-color-red",green:"--sevn-color-green",blue:"--sevn-color-blue",yellow:"--sevn-color-yellow",textSecondary:"--sevn-color-text-secondary"};function ys(){if(!ct||document.querySelector(`style[${jn}]`))return;const e=document.createElement("style");e.setAttribute(jn,""),e.textContent=xs,document.head.prepend(e);const t=cr().theme;t&&Wr(t)}function Wr(e){if(!ct)return;const t=Object.keys(Un).filter(n=>e[n]).map(n=>` ${Un[n]}: ${e[n]};`);if(t.length===0)return;let r=document.querySelector(`style[${qn}]`);r||(r=document.createElement("style"),r.setAttribute(qn,""),document.head.appendChild(r)),r.textContent=`:root {
2
+ ${t.join(`
3
+ `)}
4
+ }`}function Hn(){return On(ms).transport}function Bn(e){return new Promise(t=>setTimeout(t,e))}function zs(e,t){const r=AbortSignal.timeout(e);return t&&typeof AbortSignal.any=="function"?AbortSignal.any([t,r]):r}function ks(e,t){const r=new URL(e),n=new URL(t);return r.protocol=n.protocol,r.host=n.host,r.toString()}function Es(e,t){return Array.from({length:t},(r,n)=>(e+n)%t)}const Ss=async(e,t)=>{const r=typeof e=="string"?e:e instanceof URL?e.toString():e.url,n=Dn(),{timeoutMs:a,retriesPerHost:s,retryDelayMs:i,stickyWindowMs:l}=cr().request,o=Hn();o.activeIndex!==0&&Date.now()-o.pinnedAt>=l&&(o.activeIndex=0);let f=null;for(const c of Es(o.activeIndex,n.length)){const _=ks(r,n[c]);for(let d=0;d<s;d++)try{const h=await fetch(_,{...t,signal:zs(a,t?.signal)});if(h.status>=500){f=new Error(`HTTP ${h.status} em ${n[c]}`),d<s-1&&await Bn(i);continue}return o.activeIndex=c,o.pinnedAt=Date.now(),h}catch(h){f=h,d<s-1&&await Bn(i)}}throw new W(r,f)};function Cs(){return cr().apiHosts[Hn().activeIndex]??null}const As={applyKey:Gr,configure(e){Nn(e),e.theme&&Wr(e.theme)},getConfig:cr,isReady:Fn,assetUrl:bs,setTheme(e){Nn({theme:e}),Wr(e)},activeHost:Cs},Yr=!1;var Vn=Array.isArray,Ts=Array.prototype.indexOf,Ht=Array.prototype.includes,Cr=Array.from,Ms=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,Rs=Object.getOwnPropertyDescriptors,Ls=Object.prototype,Ps=Array.prototype,Kn=Object.getPrototypeOf,Gn=Object.isExtensible;const Os=()=>{};function Is(e){for(var t=0;t<e.length;t++)e[t]()}function Wn(){var e,t,r=new Promise((n,a)=>{e=n,t=a});return{promise:r,resolve:e,reject:t}}const ce=2,fr=4,Ar=8,Yn=1<<24,Qe=16,Pe=32,zt=64,Jr=128,Ce=512,se=1024,fe=2048,Oe=4096,be=8192,Xe=16384,kt=32768,Vt=65536,Jn=1<<17,Zn=1<<18,Kt=1<<19,Ns=1<<20,$e=1<<25,Et=65536,Zr=1<<21,Qr=1<<22,ft=1<<23,dr=Symbol("$state"),Fs=Symbol("legacy props"),Ds=Symbol(""),St=new class extends Error{constructor(){super(...arguments);Ze(this,"name","StaleReactionError");Ze(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function js(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function qs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Us(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Hs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Bs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Vs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ks(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Gs(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ys(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Js(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Zs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Qs=1,Xs=2,Qn=4,$s=8,ei=16,ti=1,ri=4,ni=8,ai=16,si=1,ii=2,de=Symbol(),Xn="http://www.w3.org/1999/xhtml";function oi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function $n(e){return e===this.v}function li(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ea(e){return!li(e,this.v)}let ui=!1,xe=null;function Gt(e){xe=e}function Wt(e,t=!1,r){xe={p:xe,i:!1,c:null,e:null,s:e,x:null,l:null}}function Yt(e){var t=xe,r=t.e;if(r!==null){t.e=null;for(var n of r)ka(n)}return t.i=!0,xe=t.p,{}}function ta(){return!0}let Ct=[];function ra(){var e=Ct;Ct=[],Is(e)}function et(e){if(Ct.length===0&&!vr){var t=Ct;queueMicrotask(()=>{t===Ct&&ra()})}Ct.push(e)}function ci(){for(;Ct.length>0;)ra()}function na(e){var t=H;if(t===null)return I.f|=ft,e;if((t.f&kt)===0&&(t.f&fr)===0)throw e;Jt(e,t)}function Jt(e,t){for(;t!==null;){if((t.f&Jr)!==0){if((t.f&kt)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const fi=-7169;function ne(e,t){e.f=e.f&fi|t}function Xr(e){(e.f&Ce)!==0||e.deps===null?ne(e,se):ne(e,Oe)}function aa(e){if(e!==null)for(const t of e)(t.f&ce)===0||(t.f&Et)===0||(t.f^=Et,aa(t.deps))}function sa(e,t,r){(e.f&fe)!==0?t.add(e):(e.f&Oe)!==0&&r.add(e),aa(e.deps),ne(e,se)}const Tr=new Set;let B=null,$r=null,Ie=null,_e=[],Mr=null,en=!1,vr=!1;const kn=class kn{constructor(){F(this,ze);Ze(this,"committed",!1);Ze(this,"current",new Map);Ze(this,"previous",new Map);F(this,tr,new Set);F(this,rr,new Set);F(this,Pt,0);F(this,nr,0);F(this,yr,null);F(this,zr,new Set);F(this,Ot,new Set);F(this,st,new Map);Ze(this,"is_fork",!1);F(this,ar,!1)}skip_effect(t){v(this,st).has(t)||v(this,st).set(t,{d:[],m:[]})}unskip_effect(t){var r=v(this,st).get(t);if(r){v(this,st).delete(t);for(var n of r.d)ne(n,fe),Ne(n);for(n of r.m)ne(n,Oe),Ne(n)}}process(t){_e=[],this.apply();var r=[],n=[];for(const a of t)ue(this,ze,Mn).call(this,a,r,n);if(ue(this,ze,Tn).call(this)){ue(this,ze,Rn).call(this,n),ue(this,ze,Rn).call(this,r);for(const[a,s]of v(this,st))ca(a,s)}else{for(const a of v(this,tr))a();v(this,tr).clear(),v(this,Pt)===0&&ue(this,ze,ps).call(this),$r=this,B=null,oa(n),oa(r),$r=null,v(this,yr)?.resolve()}Ie=null}capture(t,r){r!==de&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&ft)===0&&(this.current.set(t,t.v),Ie?.set(t,t.v))}activate(){B=this,this.apply()}deactivate(){B===this&&(B=null,Ie=null)}flush(){if(this.activate(),_e.length>0){if(ia(),B!==null&&B!==this)return}else v(this,Pt)===0&&this.process([]);this.deactivate()}discard(){for(const t of v(this,rr))t(this);v(this,rr).clear()}increment(t){L(this,Pt,v(this,Pt)+1),t&&L(this,nr,v(this,nr)+1)}decrement(t){L(this,Pt,v(this,Pt)-1),t&&L(this,nr,v(this,nr)-1),!v(this,ar)&&(L(this,ar,!0),et(()=>{L(this,ar,!1),ue(this,ze,Tn).call(this)?_e.length>0&&this.flush():this.revive()}))}revive(){for(const t of v(this,zr))v(this,Ot).delete(t),ne(t,fe),Ne(t);for(const t of v(this,Ot))ne(t,Oe),Ne(t);this.flush()}oncommit(t){v(this,tr).add(t)}ondiscard(t){v(this,rr).add(t)}settled(){return(v(this,yr)??L(this,yr,Wn())).promise}static ensure(){if(B===null){const t=B=new kn;Tr.add(B),vr||et(()=>{B===t&&t.flush()})}return B}apply(){}};tr=new WeakMap,rr=new WeakMap,Pt=new WeakMap,nr=new WeakMap,yr=new WeakMap,zr=new WeakMap,Ot=new WeakMap,st=new WeakMap,ar=new WeakMap,ze=new WeakSet,Tn=function(){return this.is_fork||v(this,nr)>0},Mn=function(t,r,n){t.f^=se;for(var a=t.first;a!==null;){var s=a.f,i=(s&(Pe|zt))!==0,l=i&&(s&se)!==0,o=l||(s&be)!==0||v(this,st).has(a);if(!o&&a.fn!==null){i?a.f^=se:(s&fr)!==0?r.push(a):_r(a)&&((s&Qe)!==0&&v(this,Ot).add(a),$t(a));var f=a.first;if(f!==null){a=f;continue}}for(;a!==null;){var c=a.next;if(c!==null){a=c;break}a=a.parent}}},Rn=function(t){for(var r=0;r<t.length;r+=1)sa(t[r],v(this,zr),v(this,Ot))},ps=function(){var a;if(Tr.size>1){this.previous.clear();var t=Ie,r=!0;for(const s of Tr){if(s===this){r=!1;continue}const i=[];for(const[o,f]of this.current){if(s.current.has(o))if(r&&f!==s.current.get(o))s.current.set(o,f);else continue;i.push(o)}if(i.length===0)continue;const l=[...s.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var n=_e;_e=[];const o=new Set,f=new Map;for(const c of i)la(c,l,o,f);if(_e.length>0){B=s,s.apply();for(const c of _e)ue(a=s,ze,Mn).call(a,c,[],[]);s.deactivate()}_e=n}}B=null,Ie=t}this.committed=!0,Tr.delete(this)};let dt=kn;function di(e){var t=vr;vr=!0;try{for(var r;;){if(ci(),_e.length===0&&(B?.flush(),_e.length===0))return Mr=null,r;ia()}}finally{vr=t}}function ia(){en=!0;var e=null;try{for(var t=0;_e.length>0;){var r=dt.ensure();if(t++>1e3){var n,a;vi()}r.process(_e),vt.clear()}}finally{_e=[],en=!1,Mr=null}}function vi(){try{Ks()}catch(e){Jt(e,Mr)}}let tt=null;function oa(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Xe|be))===0&&_r(n)&&(tt=new Set,$t(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Ca(n),tt?.size>0)){vt.clear();for(const a of tt){if((a.f&(Xe|be))!==0)continue;const s=[a];let i=a.parent;for(;i!==null;)tt.has(i)&&(tt.delete(i),s.push(i)),i=i.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(Xe|be))===0&&$t(o)}}tt.clear()}}tt=null}}function la(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const a of e.reactions){const s=a.f;(s&ce)!==0?la(a,t,r,n):(s&(Qr|Qe))!==0&&(s&fe)===0&&ua(a,t,n)&&(ne(a,fe),Ne(a))}}function ua(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const a of e.deps){if(Ht.call(t,a))return!0;if((a.f&ce)!==0&&ua(a,t,r))return r.set(a,!0),!0}return r.set(e,!1),!1}function Ne(e){var t=Mr=e,r=t.b;if(r?.is_pending&&(e.f&(fr|Ar|Yn))!==0&&(e.f&kt)===0){r.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var n=t.f;if(en&&t===H&&(n&Qe)!==0&&(n&Zn)===0&&(n&kt)!==0)return;if((n&(zt|Pe))!==0){if((n&se)===0)return;t.f^=se}}_e.push(t)}function ca(e,t){if(!((e.f&Pe)!==0&&(e.f&se)!==0)){(e.f&fe)!==0?t.d.push(e):(e.f&Oe)!==0&&t.m.push(e),ne(e,se);for(var r=e.first;r!==null;)ca(r,t),r=r.next}}function hi(e){let t=0,r=At(0),n;return()=>{sn()&&(u(r),on(()=>(t===0&&(n=er(()=>e(()=>hr(r)))),t+=1,()=>{et(()=>{t-=1,t===0&&(n?.(),n=void 0,hr(r))})})))}}var pi=Vt|Kt;function _i(e,t,r){new gi(e,t,r)}class gi{constructor(t,r,n){F(this,ie);Ze(this,"parent");Ze(this,"is_pending",!1);F(this,qe);F(this,En,null);F(this,it);F(this,It);F(this,Ke);F(this,Ge,null);F(this,ke,null);F(this,We,null);F(this,ot,null);F(this,Nt,0);F(this,mt,0);F(this,sr,!1);F(this,ir,new Set);F(this,or,new Set);F(this,lt,null);F(this,jr,hi(()=>(L(this,lt,At(v(this,Nt))),()=>{L(this,lt,null)})));L(this,qe,t),L(this,it,r),L(this,It,a=>{var s=H;s.b=this,s.f|=Jr,n(a)}),this.parent=H.b,L(this,Ke,ln(()=>{ue(this,ie,Ln).call(this)},pi))}defer_effect(t){sa(t,v(this,ir),v(this,or))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!v(this,it).pending}update_pending_count(t){ue(this,ie,Pn).call(this,t),L(this,Nt,v(this,Nt)+t),!(!v(this,lt)||v(this,sr))&&(L(this,sr,!0),et(()=>{L(this,sr,!1),v(this,lt)&&Zt(v(this,lt),v(this,Nt))}))}get_effect_pending(){return v(this,jr).call(this),u(v(this,lt))}error(t){var r=v(this,it).onerror;let n=v(this,it).failed;if(!r&&!n)throw t;v(this,Ge)&&(ge(v(this,Ge)),L(this,Ge,null)),v(this,ke)&&(ge(v(this,ke)),L(this,ke,null)),v(this,We)&&(ge(v(this,We)),L(this,We,null));var a=!1,s=!1;const i=()=>{if(a){oi();return}a=!0,s&&Zs(),v(this,We)!==null&&Tt(v(this,We),()=>{L(this,We,null)}),ue(this,ie,Kr).call(this,()=>{dt.ensure(),ue(this,ie,Ln).call(this)})};et(()=>{try{s=!0,r?.(t,i),s=!1}catch(l){Jt(l,v(this,Ke)&&v(this,Ke).parent)}n&&L(this,We,ue(this,ie,Kr).call(this,()=>{dt.ensure();try{return Fe(()=>{var l=H;l.b=this,l.f|=Jr,n(v(this,qe),()=>t,()=>i)})}catch(l){return Jt(l,v(this,Ke).parent),null}}))})}}qe=new WeakMap,En=new WeakMap,it=new WeakMap,It=new WeakMap,Ke=new WeakMap,Ge=new WeakMap,ke=new WeakMap,We=new WeakMap,ot=new WeakMap,Nt=new WeakMap,mt=new WeakMap,sr=new WeakMap,ir=new WeakMap,or=new WeakMap,lt=new WeakMap,jr=new WeakMap,ie=new WeakSet,jl=function(){try{L(this,Ge,Fe(()=>v(this,It).call(this,v(this,qe))))}catch(t){this.error(t)}},ql=function(){const t=v(this,it).pending;t&&(this.is_pending=!0,L(this,ke,Fe(()=>t(v(this,qe)))),et(()=>{var r=L(this,ot,document.createDocumentFragment()),n=ht();r.append(n),L(this,Ge,ue(this,ie,Kr).call(this,()=>(dt.ensure(),Fe(()=>v(this,It).call(this,n))))),v(this,mt)===0&&(v(this,qe).before(r),L(this,ot,null),Tt(v(this,ke),()=>{L(this,ke,null)}),ue(this,ie,Vr).call(this))}))},Ln=function(){try{if(this.is_pending=this.has_pending_snippet(),L(this,mt,0),L(this,Nt,0),L(this,Ge,Fe(()=>{v(this,It).call(this,v(this,qe))})),v(this,mt)>0){var t=L(this,ot,document.createDocumentFragment());Ma(v(this,Ge),t);const r=v(this,it).pending;L(this,ke,Fe(()=>r(v(this,qe))))}else ue(this,ie,Vr).call(this)}catch(r){this.error(r)}},Vr=function(){this.is_pending=!1;for(const t of v(this,ir))ne(t,fe),Ne(t);for(const t of v(this,or))ne(t,Oe),Ne(t);v(this,ir).clear(),v(this,or).clear()},Kr=function(t){var r=H,n=I,a=xe;Ve(v(this,Ke)),Ae(v(this,Ke)),Gt(v(this,Ke).ctx);try{return t()}catch(s){return na(s),null}finally{Ve(r),Ae(n),Gt(a)}},Pn=function(t){var r;if(!this.has_pending_snippet()){this.parent&&ue(r=this.parent,ie,Pn).call(r,t);return}L(this,mt,v(this,mt)+t),v(this,mt)===0&&(ue(this,ie,Vr).call(this),v(this,ke)&&Tt(v(this,ke),()=>{L(this,ke,null)}),v(this,ot)&&(v(this,qe).before(v(this,ot)),L(this,ot,null)))};function mi(e,t,r,n){const a=Rr;var s=e.filter(d=>!d.settled);if(r.length===0&&s.length===0){n(t.map(a));return}var i=B,l=H,o=wi(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function c(d){o();try{n(d)}catch(h){(l.f&Xe)===0&&Jt(h,l)}i?.deactivate(),tn()}if(r.length===0){f.then(()=>c(t.map(a)));return}function _(){o(),Promise.all(r.map(d=>xi(d))).then(d=>c([...t.map(a),...d])).catch(d=>Jt(d,l))}f?f.then(_):_()}function wi(){var e=H,t=I,r=xe,n=B;return function(s=!0){Ve(e),Ae(t),Gt(r),s&&n?.activate()}}function tn(){Ve(null),Ae(null),Gt(null)}function bi(){var e=H.b,t=B,r=e.is_rendered();return e.update_pending_count(1),t.increment(r),()=>{e.update_pending_count(-1),t.decrement(r)}}function Rr(e){var t=ce|fe,r=I!==null&&(I.f&ce)!==0?I:null;return H!==null&&(H.f|=Kt),{ctx:xe,deps:null,effects:null,equals:$n,f:t,fn:e,reactions:null,rv:0,v:de,wv:0,parent:r??H,ac:null}}function xi(e,t,r){H===null&&qs();var a=void 0,s=At(de),i=!I,l=new Map;return Oi(()=>{var o=Wn();a=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===B&&f.committed&&f.deactivate(),tn()})}catch(d){o.reject(d),tn()}var f=B;if(i){var c=bi();l.get(f)?.reject(St),l.delete(f),l.set(f,o)}const _=(d,h=void 0)=>{if(f.activate(),h)h!==St&&(s.f|=ft,Zt(s,h));else{(s.f&ft)!==0&&(s.f^=ft),Zt(s,d);for(const[g,z]of l){if(l.delete(g),g===f)break;z.reject(St)}}c&&c()};o.promise.then(_,d=>_(null,d||"unknown"))}),za(()=>{for(const o of l.values())o.reject(St)}),new Promise(o=>{function f(c){function _(){c===a?o(s):f(a)}c.then(_,_)}f(a)})}function Y(e){const t=Rr(e);return La(t),t}function fa(e){const t=Rr(e);return t.equals=ea,t}function yi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ge(t[r])}}function zi(e){for(var t=e.parent;t!==null;){if((t.f&ce)===0)return(t.f&Xe)===0?t:null;t=t.parent}return null}function rn(e){var t,r=H;Ve(zi(e));try{e.f&=~Et,yi(e),t=Fa(e)}finally{Ve(r)}return t}function da(e){var t=rn(e);if(!e.equals(t)&&(e.wv=Ia(),(!B?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){ne(e,se);return}pt||(Ie!==null?(sn()||B?.is_fork)&&Ie.set(e,t):Xr(e))}function ki(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(St),t.teardown=Os,t.ac=null,gr(t,0),un(t))}function va(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&$t(t)}let nn=new Set;const vt=new Map;let ha=!1;function At(e,t){var r={f:0,v:e,reactions:null,equals:$n,rv:0,wv:0};return r}function J(e,t){const r=At(e);return La(r),r}function Ei(e,t=!1,r=!0){const n=At(e);return t||(n.equals=ea),n}function x(e,t,r=!1){I!==null&&(!De||(I.f&Jn)!==0)&&ta()&&(I.f&(ce|Qe|Qr|Jn))!==0&&(Te===null||!Ht.call(Te,e))&&Js();let n=r?rt(t):t;return Zt(e,n)}function Zt(e,t){if(!e.equals(t)){var r=e.v;pt?vt.set(e,t):vt.set(e,r),e.v=t;var n=dt.ensure();if(n.capture(e,r),(e.f&ce)!==0){const a=e;(e.f&fe)!==0&&rn(a),Xr(a)}e.wv=Ia(),pa(e,fe),H!==null&&(H.f&se)!==0&&(H.f&(Pe|zt))===0&&(Me===null?Fi([e]):Me.push(e)),!n.is_fork&&nn.size>0&&!ha&&Si()}return t}function Si(){ha=!1;for(const e of nn)(e.f&se)!==0&&ne(e,Oe),_r(e)&&$t(e);nn.clear()}function hr(e){x(e,e.v+1)}function pa(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,a=0;a<n;a++){var s=r[a],i=s.f,l=(i&fe)===0;if(l&&ne(s,t),(i&ce)!==0){var o=s;Ie?.delete(o),(i&Et)===0&&(i&Ce&&(s.f|=Et),pa(o,Oe))}else l&&((i&Qe)!==0&&tt!==null&&tt.add(s),Ne(s))}}function rt(e){if(typeof e!="object"||e===null||dr in e)return e;const t=Kn(e);if(t!==Ls&&t!==Ps)return e;var r=new Map,n=Vn(e),a=J(0),s=Rt,i=l=>{if(Rt===s)return l();var o=I,f=Rt;Ae(null),Oa(s);var c=l();return Ae(o),Oa(f),c};return n&&r.set("length",J(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ws();var c=r.get(o);return c===void 0?i(()=>{var _=J(f.value);return r.set(o,_),_}):x(c,f.value,!0),!0},deleteProperty(l,o){var f=r.get(o);if(f===void 0){if(o in l){const c=i(()=>J(de));r.set(o,c),hr(a)}}else x(f,de),hr(a);return!0},get(l,o,f){if(o===dr)return e;var c=r.get(o),_=o in l;if(c===void 0&&(!_||Bt(l,o)?.writable)&&(c=i(()=>{var h=rt(_?l[o]:de),g=J(h);return g}),r.set(o,c)),c!==void 0){var d=u(c);return d===de?void 0:d}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var c=r.get(o);c&&(f.value=u(c))}else if(f===void 0){var _=r.get(o),d=_?.v;if(_!==void 0&&d!==de)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,o){if(o===dr)return!0;var f=r.get(o),c=f!==void 0&&f.v!==de||Reflect.has(l,o);if(f!==void 0||H!==null&&(!c||Bt(l,o)?.writable)){f===void 0&&(f=i(()=>{var d=c?rt(l[o]):de,h=J(d);return h}),r.set(o,f));var _=u(f);if(_===de)return!1}return c},set(l,o,f,c){var _=r.get(o),d=o in l;if(n&&o==="length")for(var h=f;h<_.v;h+=1){var g=r.get(h+"");g!==void 0?x(g,de):h in l&&(g=i(()=>J(de)),r.set(h+"",g))}if(_===void 0)(!d||Bt(l,o)?.writable)&&(_=i(()=>J(void 0)),x(_,rt(f)),r.set(o,_));else{d=_.v!==de;var z=i(()=>rt(f));x(_,z)}var p=Reflect.getOwnPropertyDescriptor(l,o);if(p?.set&&p.set.call(c,f),!d){if(n&&typeof o=="string"){var k=r.get("length"),m=Number(o);Number.isInteger(m)&&m>=k.v&&x(k,m+1)}hr(a)}return!0},ownKeys(l){u(a);var o=Reflect.ownKeys(l).filter(_=>{var d=r.get(_);return d===void 0||d.v!==de});for(var[f,c]of r)c.v!==de&&!(f in l)&&o.push(f);return o},setPrototypeOf(){Ys()}})}var _a,ga,ma,wa;function Ci(){if(_a===void 0){_a=window,ga=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ma=Bt(t,"firstChild").get,wa=Bt(t,"nextSibling").get,Gn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Gn(r)&&(r.__t=void 0)}}function ht(e=""){return document.createTextNode(e)}function Qt(e){return ma.call(e)}function pr(e){return wa.call(e)}function w(e,t){return Qt(e)}function an(e,t=!1){{var r=Qt(e);return r instanceof Comment&&r.data===""?pr(r):r}}function P(e,t=1,r=!1){let n=e;for(;t--;)n=pr(n);return n}function Ai(e){e.textContent=""}function ba(){return!1}function xa(e,t,r){return document.createElementNS(Xn,e,void 0)}let ya=!1;function Ti(){ya||(ya=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Lr(e){var t=I,r=H;Ae(null),Ve(null);try{return e()}finally{Ae(t),Ve(r)}}function Mi(e,t,r,n=r){e.addEventListener(t,()=>Lr(r));const a=e.__on_r;a?e.__on_r=()=>{a(),n(!0)}:e.__on_r=()=>n(!0),Ti()}function Ri(e){H===null&&(I===null&&Vs(),Bs()),pt&&Hs()}function Li(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function nt(e,t,r){var n=H;n!==null&&(n.f&be)!==0&&(e|=be);var a={ctx:xe,deps:null,nodes:null,f:e|fe|Ce,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{$t(a)}catch(l){throw ge(a),l}else t!==null&&Ne(a);var s=a;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Kt)===0&&(s=s.first,(e&Qe)!==0&&(e&Vt)!==0&&s!==null&&(s.f|=Vt)),s!==null&&(s.parent=n,n!==null&&Li(s,n),I!==null&&(I.f&ce)!==0&&(e&zt)===0)){var i=I;(i.effects??(i.effects=[])).push(s)}return a}function sn(){return I!==null&&!De}function za(e){const t=nt(Ar,null,!1);return ne(t,se),t.teardown=e,t}function Xt(e){Ri();var t=H.f,r=!I&&(t&Pe)!==0&&(t&kt)===0;if(r){var n=xe;(n.e??(n.e=[])).push(e)}else return ka(e)}function ka(e){return nt(fr|Ns,e,!1)}function Pi(e){dt.ensure();const t=nt(zt|Kt,e,!0);return(r={})=>new Promise(n=>{r.outro?Tt(t,()=>{ge(t),n(void 0)}):(ge(t),n(void 0))})}function Ea(e){return nt(fr,e,!1)}function Oi(e){return nt(Qr|Kt,e,!0)}function on(e,t=0){return nt(Ar|t,e,!0)}function D(e,t=[],r=[],n=[]){mi(n,t,r,a=>{nt(Ar,()=>e(...a.map(u)),!0)})}function ln(e,t=0){var r=nt(Qe|t,e,!0);return r}function Fe(e){return nt(Pe|Kt,e,!0)}function Sa(e){var t=e.teardown;if(t!==null){const r=pt,n=I;Ra(!0),Ae(null);try{t.call(null)}finally{Ra(r),Ae(n)}}}function un(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const a=r.ac;a!==null&&Lr(()=>{a.abort(St)});var n=r.next;(r.f&zt)!==0?r.parent=null:ge(r,t),r=n}}function Ii(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Pe)===0&&ge(t),t=r}}function ge(e,t=!0){var r=!1;(t||(e.f&Zn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ni(e.nodes.start,e.nodes.end),r=!0),un(e,t&&!r),gr(e,0),ne(e,Xe);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Sa(e);var a=e.parent;a!==null&&a.first!==null&&Ca(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ni(e,t){for(;e!==null;){var r=e===t?null:pr(e);e.remove(),e=r}}function Ca(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Tt(e,t,r=!0){var n=[];Aa(e,n,!0);var a=()=>{r&&ge(e),t&&t()},s=n.length;if(s>0){var i=()=>--s||a();for(var l of n)l.out(i)}else a()}function Aa(e,t,r){if((e.f&be)===0){e.f^=be;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&t.push(l);for(var a=e.first;a!==null;){var s=a.next,i=(a.f&Vt)!==0||(a.f&Pe)!==0&&(e.f&Qe)!==0;Aa(a,t,i?r:!1),a=s}}}function cn(e){Ta(e,!0)}function Ta(e,t){if((e.f&be)!==0){e.f^=be,(e.f&se)===0&&(ne(e,fe),Ne(e));for(var r=e.first;r!==null;){var n=r.next,a=(r.f&Vt)!==0||(r.f&Pe)!==0;Ta(r,a?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const i of s)(i.is_global||t)&&i.in()}}function Ma(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var a=r===n?null:pr(r);t.append(r),r=a}}let Pr=!1,pt=!1;function Ra(e){pt=e}let I=null,De=!1;function Ae(e){I=e}let H=null;function Ve(e){H=e}let Te=null;function La(e){I!==null&&(Te===null?Te=[e]:Te.push(e))}let me=null,ye=0,Me=null;function Fi(e){Me=e}let Pa=1,Mt=0,Rt=Mt;function Oa(e){Rt=e}function Ia(){return++Pa}function _r(e){var t=e.f;if((t&fe)!==0)return!0;if(t&ce&&(e.f&=~Et),(t&Oe)!==0){for(var r=e.deps,n=r.length,a=0;a<n;a++){var s=r[a];if(_r(s)&&da(s),s.wv>e.wv)return!0}(t&Ce)!==0&&Ie===null&&ne(e,se)}return!1}function Na(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Te!==null&&Ht.call(Te,e)))for(var a=0;a<n.length;a++){var s=n[a];(s.f&ce)!==0?Na(s,t,!1):t===s&&(r?ne(s,fe):(s.f&se)!==0&&ne(s,Oe),Ne(s))}}function Fa(e){var z;var t=me,r=ye,n=Me,a=I,s=Te,i=xe,l=De,o=Rt,f=e.f;me=null,ye=0,Me=null,I=(f&(Pe|zt))===0?e:null,Te=null,Gt(e.ctx),De=!1,Rt=++Mt,e.ac!==null&&(Lr(()=>{e.ac.abort(St)}),e.ac=null);try{e.f|=Zr;var c=e.fn,_=c();e.f|=kt;var d=e.deps,h=B?.is_fork;if(me!==null){var g;if(h||gr(e,ye),d!==null&&ye>0)for(d.length=ye+me.length,g=0;g<me.length;g++)d[ye+g]=me[g];else e.deps=d=me;if(sn()&&(e.f&Ce)!==0)for(g=ye;g<d.length;g++)((z=d[g]).reactions??(z.reactions=[])).push(e)}else!h&&d!==null&&ye<d.length&&(gr(e,ye),d.length=ye);if(ta()&&Me!==null&&!De&&d!==null&&(e.f&(ce|Oe|fe))===0)for(g=0;g<Me.length;g++)Na(Me[g],e);if(a!==null&&a!==e){if(Mt++,a.deps!==null)for(let p=0;p<r;p+=1)a.deps[p].rv=Mt;if(t!==null)for(const p of t)p.rv=Mt;Me!==null&&(n===null?n=Me:n.push(...Me))}return(e.f&ft)!==0&&(e.f^=ft),_}catch(p){return na(p)}finally{e.f^=Zr,me=t,ye=r,Me=n,I=a,Te=s,Gt(i),De=l,Rt=o}}function Di(e,t){let r=t.reactions;if(r!==null){var n=Ts.call(r,e);if(n!==-1){var a=r.length-1;a===0?r=t.reactions=null:(r[n]=r[a],r.pop())}}if(r===null&&(t.f&ce)!==0&&(me===null||!Ht.call(me,t))){var s=t;(s.f&Ce)!==0&&(s.f^=Ce,s.f&=~Et),Xr(s),ki(s),gr(s,0)}}function gr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Di(e,r[n])}function $t(e){var t=e.f;if((t&Xe)===0){ne(e,se);var r=H,n=Pr;H=e,Pr=!0;try{(t&(Qe|Yn))!==0?Ii(e):un(e),Sa(e);var a=Fa(e);e.teardown=typeof a=="function"?a:null,e.wv=Pa;var s;Yr&&ui&&(e.f&fe)!==0&&e.deps}finally{Pr=n,H=r}}}async function ji(){await Promise.resolve(),di()}function u(e){var t=e.f,r=(t&ce)!==0;if(I!==null&&!De){var n=H!==null&&(H.f&Xe)!==0;if(!n&&(Te===null||!Ht.call(Te,e))){var a=I.deps;if((I.f&Zr)!==0)e.rv<Mt&&(e.rv=Mt,me===null&&a!==null&&a[ye]===e?ye++:me===null?me=[e]:me.push(e));else{(I.deps??(I.deps=[])).push(e);var s=e.reactions;s===null?e.reactions=[I]:Ht.call(s,I)||s.push(I)}}}if(pt&&vt.has(e))return vt.get(e);if(r){var i=e;if(pt){var l=i.v;return((i.f&se)===0&&i.reactions!==null||ja(i))&&(l=rn(i)),vt.set(i,l),l}var o=(i.f&Ce)===0&&!De&&I!==null&&(Pr||(I.f&Ce)!==0),f=(i.f&kt)===0;_r(i)&&(o&&(i.f|=Ce),da(i)),o&&!f&&(va(i),Da(i))}if(Ie?.has(e))return Ie.get(e);if((e.f&ft)!==0)throw e.v;return e.v}function Da(e){if(e.f|=Ce,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&ce)!==0&&(t.f&Ce)===0&&(va(t),Da(t))}function ja(e){if(e.v===de)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(vt.has(t)||(t.f&ce)!==0&&ja(t))return!0;return!1}function er(e){var t=De;try{return De=!0,e()}finally{De=t}}const qi=["touchstart","touchmove"];function Ui(e){return qi.includes(e)}const Lt=Symbol("events"),qa=new Set,fn=new Set;function Hi(e,t,r,n={}){function a(s){if(n.capture||dn.call(t,s),!s.cancelBubble)return Lr(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?et(()=>{t.addEventListener(e,a,n)}):t.addEventListener(e,a,n),a}function Ua(e,t,r,n,a){var s={capture:n,passive:a},i=Hi(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&za(()=>{t.removeEventListener(e,i,s)})}function at(e,t,r){(t[Lt]??(t[Lt]={}))[e]=r}function Ha(e){for(var t=0;t<e.length;t++)qa.add(e[t]);for(var r of fn)r(e)}let Ba=null;function dn(e){var t=this,r=t.ownerDocument,n=e.type,a=e.composedPath?.()||[],s=a[0]||e.target;Ba=e;var i=0,l=Ba===e&&e[Lt];if(l){var o=a.indexOf(l);if(o!==-1&&(t===document||t===window)){e[Lt]=t;return}var f=a.indexOf(t);if(f===-1)return;o<=f&&(i=o)}if(s=a[i]||e.target,s!==t){Ms(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=I,_=H;Ae(null),Ve(null);try{for(var d,h=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var z=s[Lt]?.[n];z!=null&&(!s.disabled||e.target===s)&&z.call(s,e)}catch(p){d?h.push(p):d=p}if(e.cancelBubble||g===t||g===null)break;s=g}if(d){for(let p of h)queueMicrotask(()=>{throw p});throw d}}finally{e[Lt]=t,delete e.currentTarget,Ae(c),Ve(_)}}}const Bi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Vi(e){return Bi?.createHTML(e)??e}function Va(e,t=!1){var r=xa("template");return e=e.replaceAll("<!>","<!---->"),r.innerHTML=t?Vi(e):e,r.content}function Or(e,t){var r=H;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function T(e,t){var r=(t&si)!==0,n=(t&ii)!==0,a,s=!e.startsWith("<!>");return()=>{a===void 0&&(a=Va(s?e:"<!>"+e,!0),r||(a=Qt(a)));var i=n||ga?document.importNode(a,!0):a.cloneNode(!0);if(r){var l=Qt(i),o=i.lastChild;Or(l,o)}else Or(i,i);return i}}function Ki(e,t,r="svg"){var n=!e.startsWith("<!>"),a=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(!s){var i=Va(a,!0),l=Qt(i);s=Qt(l)}var o=s.cloneNode(!0);return Or(o,o),o}}function vn(e,t){return Ki(e,t,"svg")}function Ka(){var e=document.createDocumentFragment(),t=document.createComment(""),r=ht();return e.append(t,r),Or(t,r),e}function C(e,t){e!==null&&e.before(t)}function Z(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function Gi(e,t){return Wi(e,t)}const Ir=new Map;function Wi(e,{target:t,anchor:r,props:n={},events:a,context:s,intro:i=!0}){Ci();var l=void 0,o=Pi(()=>{var f=r??t.appendChild(ht());_i(f,{pending:()=>{}},d=>{Wt({});var h=xe;s&&(h.c=s),a&&(n.$$events=a),l=e(d,n)||{},Yt()});var c=new Set,_=d=>{for(var h=0;h<d.length;h++){var g=d[h];if(!c.has(g)){c.add(g);var z=Ui(g);for(const m of[t,document]){var p=Ir.get(m);p===void 0&&(p=new Map,Ir.set(m,p));var k=p.get(g);k===void 0?(m.addEventListener(g,dn,{passive:z}),p.set(g,1)):p.set(g,k+1)}}}};return _(Cr(qa)),fn.add(_),()=>{for(var d of c)for(const z of[t,document]){var h=Ir.get(z),g=h.get(d);--g==0?(z.removeEventListener(d,dn),h.delete(d),h.size===0&&Ir.delete(z)):h.set(d,g)}fn.delete(_),f!==r&&f.parentNode?.removeChild(f)}});return hn.set(l,o),l}let hn=new WeakMap;function Yi(e,t){const r=hn.get(e);return r?(hn.delete(e),r(t)):Promise.resolve()}class Ji{constructor(t,r=!0){Ze(this,"anchor");F(this,Ue,new Map);F(this,Ye,new Map);F(this,Ee,new Map);F(this,Ft,new Set);F(this,kr,!0);F(this,Er,()=>{var t=B;if(v(this,Ue).has(t)){var r=v(this,Ue).get(t),n=v(this,Ye).get(r);if(n)cn(n),v(this,Ft).delete(r);else{var a=v(this,Ee).get(r);a&&(v(this,Ye).set(r,a.effect),v(this,Ee).delete(r),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),n=a.effect)}for(const[s,i]of v(this,Ue)){if(v(this,Ue).delete(s),s===t)break;const l=v(this,Ee).get(i);l&&(ge(l.effect),v(this,Ee).delete(i))}for(const[s,i]of v(this,Ye)){if(s===r||v(this,Ft).has(s))continue;const l=()=>{if(Array.from(v(this,Ue).values()).includes(s)){var f=document.createDocumentFragment();Ma(i,f),f.append(ht()),v(this,Ee).set(s,{effect:i,fragment:f})}else ge(i);v(this,Ft).delete(s),v(this,Ye).delete(s)};v(this,kr)||!n?(v(this,Ft).add(s),Tt(i,l,!1)):l()}}});F(this,qr,t=>{v(this,Ue).delete(t);const r=Array.from(v(this,Ue).values());for(const[n,a]of v(this,Ee))r.includes(n)||(ge(a.effect),v(this,Ee).delete(n))});this.anchor=t,L(this,kr,r)}ensure(t,r){var n=B,a=ba();if(r&&!v(this,Ye).has(t)&&!v(this,Ee).has(t))if(a){var s=document.createDocumentFragment(),i=ht();s.append(i),v(this,Ee).set(t,{effect:Fe(()=>r(i)),fragment:s})}else v(this,Ye).set(t,Fe(()=>r(this.anchor)));if(v(this,Ue).set(n,t),a){for(const[l,o]of v(this,Ye))l===t?n.unskip_effect(o):n.skip_effect(o);for(const[l,o]of v(this,Ee))l===t?n.unskip_effect(o.effect):n.skip_effect(o.effect);n.oncommit(v(this,Er)),n.ondiscard(v(this,qr))}else v(this,Er).call(this)}}Ue=new WeakMap,Ye=new WeakMap,Ee=new WeakMap,Ft=new WeakMap,kr=new WeakMap,Er=new WeakMap,qr=new WeakMap;function V(e,t,r=!1){var n=new Ji(e),a=r?Vt:0;function s(i,l){n.ensure(i,l)}ln(()=>{var i=!1;t((l,o=0)=>{i=!0,s(o,l)}),i||s(!1,null)},a)}function pn(e,t){return t}function Zi(e,t,r){for(var n=[],a=t.length,s,i=t.length,l=0;l<a;l++){let _=t[l];Tt(_,()=>{if(s){if(s.pending.delete(_),s.done.add(_),s.pending.size===0){var d=e.outrogroups;_n(Cr(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var o=n.length===0&&r!==null;if(o){var f=r,c=f.parentNode;Ai(c),c.append(f),e.items.clear()}_n(t,!o)}else s={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function _n(e,t=!0){for(var r=0;r<e.length;r++)ge(e[r],t)}var Ga;function mr(e,t,r,n,a,s=null){var i=e,l=new Map,o=(t&Qn)!==0;if(o){var f=e;i=f.appendChild(ht())}var c=null,_=fa(()=>{var k=r();return Vn(k)?k:k==null?[]:Cr(k)}),d,h=!0;function g(){p.fallback=c,Qi(p,d,i,t,n),c!==null&&(d.length===0?(c.f&$e)===0?cn(c):(c.f^=$e,br(c,null,i)):Tt(c,()=>{c=null}))}var z=ln(()=>{d=u(_);for(var k=d.length,m=new Set,A=B,q=ba(),$=0;$<k;$+=1){var oe=d[$],X=n(oe,$),O=h?null:l.get(X);O?(O.v&&Zt(O.v,oe),O.i&&Zt(O.i,$),q&&A.unskip_effect(O.e)):(O=Xi(l,h?i:Ga??(Ga=ht()),oe,X,$,a,t,r),h||(O.e.f|=$e),l.set(X,O)),m.add(X)}if(k===0&&s&&!c&&(h?c=Fe(()=>s(i)):(c=Fe(()=>s(Ga??(Ga=ht()))),c.f|=$e)),k>m.size&&Us(),!h)if(q){for(const[y,j]of l)m.has(y)||A.skip_effect(j.e);A.oncommit(g),A.ondiscard(()=>{})}else g();u(_)}),p={effect:z,items:l,outrogroups:null,fallback:c};h=!1}function wr(e){for(;e!==null&&(e.f&Pe)===0;)e=e.next;return e}function Qi(e,t,r,n,a){var s=(n&$s)!==0,i=t.length,l=e.items,o=wr(e.effect.first),f,c=null,_,d=[],h=[],g,z,p,k;if(s)for(k=0;k<i;k+=1)g=t[k],z=a(g,k),p=l.get(z).e,(p.f&$e)===0&&(p.nodes?.a?.measure(),(_??(_=new Set)).add(p));for(k=0;k<i;k+=1){if(g=t[k],z=a(g,k),p=l.get(z).e,e.outrogroups!==null)for(const j of e.outrogroups)j.pending.delete(p),j.done.delete(p);if((p.f&$e)!==0)if(p.f^=$e,p===o)br(p,null,r);else{var m=c?c.next:o;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),_t(e,c,p),_t(e,p,m),br(p,m,r),c=p,d=[],h=[],o=wr(c.next);continue}if((p.f&be)!==0&&(cn(p),s&&(p.nodes?.a?.unfix(),(_??(_=new Set)).delete(p))),p!==o){if(f!==void 0&&f.has(p)){if(d.length<h.length){var A=h[0],q;c=A.prev;var $=d[0],oe=d[d.length-1];for(q=0;q<d.length;q+=1)br(d[q],A,r);for(q=0;q<h.length;q+=1)f.delete(h[q]);_t(e,$.prev,oe.next),_t(e,c,$),_t(e,oe,A),o=A,c=oe,k-=1,d=[],h=[]}else f.delete(p),br(p,o,r),_t(e,p.prev,p.next),_t(e,p,c===null?e.effect.first:c.next),_t(e,c,p),c=p;continue}for(d=[],h=[];o!==null&&o!==p;)(f??(f=new Set)).add(o),h.push(o),o=wr(o.next);if(o===null)continue}(p.f&$e)===0&&d.push(p),c=p,o=wr(p.next)}if(e.outrogroups!==null){for(const j of e.outrogroups)j.pending.size===0&&(_n(Cr(j.done)),e.outrogroups?.delete(j));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||f!==void 0){var X=[];if(f!==void 0)for(p of f)(p.f&be)===0&&X.push(p);for(;o!==null;)(o.f&be)===0&&o!==e.fallback&&X.push(o),o=wr(o.next);var O=X.length;if(O>0){var y=(n&Qn)!==0&&i===0?r:null;if(s){for(k=0;k<O;k+=1)X[k].nodes?.a?.measure();for(k=0;k<O;k+=1)X[k].nodes?.a?.fix()}Zi(e,X,y)}}s&&et(()=>{if(_!==void 0)for(p of _)p.nodes?.a?.apply()})}function Xi(e,t,r,n,a,s,i,l){var o=(i&Qs)!==0?(i&ei)===0?Ei(r,!1,!1):At(r):null,f=(i&Xs)!==0?At(a):null;return{v:o,i:f,e:Fe(()=>(s(t,o??r,f??a,l),()=>{e.delete(n)}))}}function br(e,t,r){if(e.nodes)for(var n=e.nodes.start,a=e.nodes.end,s=t&&(t.f&$e)===0?t.nodes.start:r;n!==null;){var i=pr(n);if(s.before(n),n===a)return;n=i}}function _t(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function gt(e,t){Ea(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const a=xa("style");a.id=t.hash,a.textContent=t.code,n.appendChild(a)}})}const Wa=[...`
5
+ \r\f \v\uFEFF`];function $i(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var a in r)if(r[a])n=n?n+" "+a:a;else if(n.length)for(var s=a.length,i=0;(i=n.indexOf(a,i))>=0;){var l=i+s;(i===0||Wa.includes(n[i-1]))&&(l===n.length||Wa.includes(n[l]))?n=(i===0?"":n.substring(0,i))+n.substring(l+1):i=l}}return n===""?null:n}function eo(e,t){return e==null?null:String(e)}function Re(e,t,r,n,a,s){var i=e.__className;if(i!==r||i===void 0){var l=$i(r,n,s);l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l),e.__className=r}else if(s&&a!==s)for(var o in s){var f=!!s[o];(a==null||f!==!!a[o])&&e.classList.toggle(o,f)}return s}function je(e,t,r,n){var a=e.__style;if(a!==t){var s=eo(t);s==null?e.removeAttribute("style"):e.style.cssText=s,e.__style=t}return n}const to=Symbol("is custom element"),ro=Symbol("is html");function Q(e,t,r,n){var a=no(e);a[t]!==(a[t]=r)&&(t==="loading"&&(e[Ds]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ao(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function no(e){return e.__attributes??(e.__attributes={[to]:e.nodeName.includes("-"),[ro]:e.namespaceURI===Xn})}var Ya=new Map;function ao(e){var t=e.getAttribute("is")||e.nodeName,r=Ya.get(t);if(r)return r;Ya.set(t,r=[]);for(var n,a=e,s=Element.prototype;s!==a;){n=Rs(a);for(var i in n)n[i].set&&r.push(i);a=Kn(a)}return r}function so(e,t,r=t){var n=new WeakSet;Mi(e,"input",async a=>{var s=a?e.defaultValue:e.value;if(s=gn(e)?mn(s):s,r(s),B!==null&&n.add(B),await ji(),s!==(s=t())){var i=e.selectionStart,l=e.selectionEnd,o=e.value.length;if(e.value=s??"",l!==null){var f=e.value.length;i===l&&l===o&&f>o?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=i,e.selectionEnd=Math.min(l,f))}}}),er(t)==null&&e.value&&(r(gn(e)?mn(e.value):e.value),B!==null&&n.add(B)),on(()=>{var a=t();if(e===document.activeElement){var s=$r??B;if(n.has(s))return}gn(e)&&a===mn(e.value)||e.type==="date"&&!a&&!e.value||a!==e.value&&(e.value=a??"")})}function gn(e){var t=e.type;return t==="number"||t==="range"}function mn(e){return e===""?null:+e}function Ja(e,t){return e===t||e?.[dr]===t}function wn(e={},t,r,n){return Ea(()=>{var a,s;return on(()=>{a=s,s=[],er(()=>{e!==r(...s)&&(t(e,...s),a&&Ja(r(...a),e)&&t(null,...a))})}),()=>{et(()=>{s&&Ja(r(...s),e)&&t(null,...s)})}}),e}let Nr=!1;function io(e){var t=Nr;try{return Nr=!1,[e(),Nr]}finally{Nr=t}}function S(e,t,r,n){var a=(r&ni)!==0,s=(r&ai)!==0,i=n,l=!0,o=()=>(l&&(l=!1,i=s?er(n):n),i),f;if(a){var c=dr in e||Fs in e;f=Bt(e,t)?.set??(c&&t in e?m=>e[t]=m:void 0)}var _,d=!1;a?[_,d]=io(()=>e[t]):_=e[t],_===void 0&&n!==void 0&&(_=o(),f&&(Gs(),f(_)));var h;if(h=()=>{var m=e[t];return m===void 0?o():(l=!0,m)},(r&ri)===0)return h;if(f){var g=e.$$legacy;return(function(m,A){return arguments.length>0?((!A||g||d)&&f(A?h():m),m):h()})}var z=!1,p=((r&ti)!==0?Rr:fa)(()=>(z=!1,h()));a&&u(p);var k=H;return(function(m,A){if(arguments.length>0){const q=A?u(p):a?rt(m):m;return x(p,q),z=!0,i!==void 0&&(i=q),m}return pt&&z||(k.f&Xe)!==0?p.v:u(p)})}function Za(e){xe===null&&js(),Xt(()=>{const t=er(e);if(typeof t=="function")return t})}function oo(e,t){var r,n;return n=class{constructor(s){F(this,r,null);if(!ct)throw new Error(`[sevn] ${t} só pode ser instanciado no navegador. Em SSR, monte o componente dentro de um efeito de cliente.`);const{target:i,...l}=s??{},o=typeof i=="string"?document.querySelector(i):i;if(!o)throw new Error(`[sevn] ${t}: alvo não encontrado`+(typeof i=="string"?` para o seletor "${i}".`:"."));ys(),L(this,r,Gi(e,{target:o,props:l}))}destroy(){if(!v(this,r))return Promise.resolve();const s=v(this,r);return L(this,r,null),Yi(s)}},r=new WeakMap,n}function Qa(e){try{return new URL(e,document.baseURI).searchParams.get("cid")}catch{return null}}function lo(){const e=document.currentScript;if(e?.src){const r=Qa(e.src);if(r)return r}const t=document.querySelectorAll('script[src*="cid="]');for(const r of t){const n=Qa(r.src);if(n)return n}return null}function uo(){if(!ct)return;const e=lo();if(e)try{Gr(e)}catch(t){console.error("[sevn] Chave inválida na tag <script>:",t)}}const co="5";typeof window<"u"&&((fs=window.__svelte??(window.__svelte={})).v??(fs.v=new Set)).add(co);const fo="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M25.9798%2026.872L17.6305%2018.5227C16.9638%2019.0907%2016.1971%2019.5302%2015.3305%2019.8413C14.4638%2020.1524%2013.5927%2020.308%2012.7171%2020.308C10.582%2020.308%208.77493%2019.5689%207.29582%2018.0907C5.8167%2016.6124%205.07715%2014.8058%205.07715%2012.6707C5.07715%2010.5356%205.81581%208.728%207.29315%207.248C8.77048%205.768%2010.5767%205.02711%2012.7118%205.02533C14.8469%205.02356%2016.6549%205.76311%2018.1358%207.244C19.6167%208.72489%2020.3571%2010.5324%2020.3571%2012.6667C20.3571%2013.5929%2020.1931%2014.4893%2019.8651%2015.356C19.5371%2016.2227%2019.106%2016.964%2018.5718%2017.58L26.9211%2025.928L25.9798%2026.872ZM12.7185%2018.9733C14.4874%2018.9733%2015.9807%2018.3644%2017.1985%2017.1467C18.4163%2015.9289%2019.0251%2014.4351%2019.0251%2012.6653C19.0251%2010.8956%2018.4163%209.40222%2017.1985%208.18533C15.9807%206.96844%2014.4874%206.35956%2012.7185%206.35867C10.9496%206.35778%209.45581%206.96667%208.23715%208.18533C7.01848%209.404%206.40959%2010.8973%206.41048%2012.6653C6.41137%2014.4333%207.02026%2015.9267%208.23715%2017.1453C9.45404%2018.364%2010.9474%2018.9729%2012.7171%2018.972'%20fill='%231C1C1C'/%3e%3c/svg%3e",Fr="data:image/svg+xml,%3csvg%20width='13'%20height='8'%20viewBox='0%200%2013%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.91%20-0.00016065L12.97%201.06084L7.193%206.83984C7.10043%206.93299%206.99036%207.00692%206.86911%207.05737C6.74786%207.10782%206.61783%207.13379%206.4865%207.13379C6.35517%207.13379%206.22514%207.10782%206.10389%207.05737C5.98264%207.00692%205.87257%206.93299%205.78%206.83984L2.65457e-07%201.06084L1.06%200.000838803L6.485%205.42484L11.91%20-0.00016065Z'%20fill='black'/%3e%3c/svg%3e",Xa="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.5%201.5L1.5%2010.5M1.5%201.5L10.5%2010.5'%20stroke='black'%20stroke-width='1.6'%20stroke-linecap='round'/%3e%3c/svg%3e";var vo=T('<span class="mobile-label svelte-1dw55dz"> </span>'),ho=T('<input class="search-input svelte-1dw55dz" type="text"/>'),po=T('<span class="field-label-prefix svelte-1dw55dz"> </span>'),_o=T('<span class="field-text svelte-1dw55dz"><!> </span>'),go=T("<span> </span>"),mo=T('<button class="icon-clear svelte-1dw55dz" type="button" aria-label="Limpar seleção"><img alt="" aria-hidden="true"/></button>'),wo=T('<img alt="" aria-hidden="true"/>'),bo=T('<img class="icon-search svelte-1dw55dz" alt="" aria-hidden="true"/>'),xo=T('<span class="meta svelte-1dw55dz"> </span>'),yo=T('<div class="web-info svelte-1dw55dz"><span class="selected-label svelte-1dw55dz"><strong class="svelte-1dw55dz">Você selecionou:</strong> </span> <!></div>'),zo=T('<button type="button" role="option"> </button>'),ko=T('<div class="no-results svelte-1dw55dz">Nenhum resultado encontrado</div>'),Eo=T('<div class="dropdown svelte-1dw55dz" role="listbox"></div>'),So=T('<div><!> <div role="combobox" aria-haspopup="listbox"><!> <!></div> <!> <!></div>');const Co={hash:"svelte-1dw55dz",code:`.autocomplete.svelte-1dw55dz {position:relative;width:var(--field-width);font-family:inherit;}
6
+
7
+ /* ── Label (mobile only) ─────────────────────────────── */.mobile-label.svelte-1dw55dz {display:none;font-size:0.875rem;font-weight:600;color:var(--sevn-color-tertiary);margin-bottom:6px;}
8
+
9
+ @media (max-width: 768px) {.mobile-label.svelte-1dw55dz {display:block;}
10
+ }
11
+
12
+ /* ── Campo principal ─────────────────────────────────── */.field.svelte-1dw55dz {display:flex;align-items:center;width:100%;height:var(--field-height);padding:0 14px;background:var(--sevn-color-neutral);border:1px solid transparent;border-radius:8px;cursor:pointer;gap:8px;transition:border-color 0.15s, box-shadow 0.15s;color:var(--sevn-color-tertiary);}.field.svelte-1dw55dz:hover {border-color:#d1d1d6;}.field.disabled.svelte-1dw55dz {cursor:not-allowed;opacity:0.55;}.field.disabled.svelte-1dw55dz:hover {border-color:transparent;}.field.open.svelte-1dw55dz {border-color:var(--sevn-color-primary);box-shadow:0 0 0 2px color-mix(in srgb, var(--sevn-color-primary) 15%, transparent);background:#fff;}
13
+
14
+ /* ── Texto do campo ──────────────────────────────────── */.field-text.svelte-1dw55dz {flex:1;text-align:left;font-size:0.9375rem;color:var(--sevn-color-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.field-text.is-placeholder.svelte-1dw55dz {color:#9a9aaa;}.field-label-prefix.svelte-1dw55dz {font-weight:600;margin-right:4px;}
15
+
16
+ /* ── Input de busca ──────────────────────────────────── */.search-input.svelte-1dw55dz {flex:1;border:none;outline:none;font-size:0.9375rem;font-family:inherit;color:var(--sevn-color-tertiary);background:transparent;min-width:0;}.search-input.svelte-1dw55dz::placeholder {color:#9a9aaa;}
17
+
18
+ /* ── Ícone de lupa ───────────────────────────────────── */.icon-search.svelte-1dw55dz {flex-shrink:0;}.field.open.svelte-1dw55dz .icon-search:where(.svelte-1dw55dz) {opacity:1;}
19
+
20
+ /* ── Botão de limpar ─────────────────────────────────── */.icon-clear.svelte-1dw55dz {display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;background:none;border:none;border-radius:50%;cursor:pointer;transition:background 0.15s;}.icon-clear.svelte-1dw55dz:hover,
21
+ .icon-clear.svelte-1dw55dz:focus-visible {background:rgba(0, 0, 0, 0.08);}
22
+
23
+ /* ── Ícone de chevron ────────────────────────────────── */.icon-chevron.svelte-1dw55dz {flex-shrink:0;transition:transform 0.2s ease;}.icon-chevron.open.svelte-1dw55dz {transform:rotate(180deg);}
24
+
25
+ /* ── "Você selecionou" (web only) ────────────────────── */.web-info.svelte-1dw55dz {display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:20px;font-size:0.8125rem;color:var(--sevn-color-tertiary);}.selected-label.svelte-1dw55dz strong:where(.svelte-1dw55dz) {font-weight:600;}.meta.svelte-1dw55dz {font-size:0.7rem;opacity:50%;}
26
+
27
+ @media (max-width: 768px) {.web-info.svelte-1dw55dz {display:none;}.field-text.svelte-1dw55dz {font-weight:600;}.field-text.is-placeholder.svelte-1dw55dz:not(.force-placeholder) {display:none;}.search-input.svelte-1dw55dz::placeholder {color:transparent;}.show-placeholder-mobile.svelte-1dw55dz .search-input:where(.svelte-1dw55dz)::placeholder {color:#9a9aaa;}.icon-search.svelte-1dw55dz {margin-left:auto;}
28
+ }
29
+
30
+ /* ── Dropdown ────────────────────────────────────────── */.dropdown.svelte-1dw55dz {position:absolute;top:calc(var(--field-height) + 6px);left:0;right:0;background:#fff;border:1px solid #d1d1d6;border-radius:8px;max-height:240px;overflow-y:auto;z-index:200;box-shadow:0 6px 16px rgba(0, 0, 0, 0.1);scrollbar-width:thin;scrollbar-color:#d1d1d6 transparent;}.dropdown.svelte-1dw55dz::-webkit-scrollbar {width:4px;}.dropdown.svelte-1dw55dz::-webkit-scrollbar-track {background:transparent;}.dropdown.svelte-1dw55dz::-webkit-scrollbar-thumb {background-color:#d1d1d6;border-radius:4px;}
31
+
32
+ /* ── Opção ───────────────────────────────────────────── */.option.svelte-1dw55dz {display:block;width:100%;padding:11px 14px;text-align:left;background:none;border:none;border-bottom:1px solid #f0f0f5;cursor:pointer;font-size:0.9375rem;font-family:inherit;color:var(--sevn-color-tertiary);transition:background 0.1s;line-height:1.4;}.option.svelte-1dw55dz:last-child {border-bottom:none;}.option.svelte-1dw55dz:hover {background:var(--sevn-color-neutral);}.option.selected.svelte-1dw55dz {background:color-mix(in srgb, var(--sevn-color-primary) 8%, transparent);color:var(--sevn-color-primary);font-weight:600;}.no-results.svelte-1dw55dz {padding:14px;color:#9a9aaa;font-size:0.875rem;text-align:center;}`};function bn(e,t){Wt(t,!0),gt(e,Co);let r=S(t,"label",3,""),n=S(t,"showLabel",3,!0),a=S(t,"options",19,()=>[]),s=S(t,"value",15,null),i=S(t,"meta",3,""),l=S(t,"width",3,"100%"),o=S(t,"height",3,"48px"),f=S(t,"icon",3,fo),c=S(t,"iconSize",3,13),_=S(t,"showLabelInField",3,!1),d=S(t,"showDescriptionSelection",3,!0),h=S(t,"labelAsPlaceholder",3,!0),g=S(t,"showPlaceholderOnMobile",3,!1),z=S(t,"disabled",3,!1),p=S(t,"clearable",3,!0);const k=`autocomplete-listbox-${Math.random().toString(36).slice(2,9)}`;let m=J(!1),A=J(""),q=J(null),$=J(null),oe=Y(()=>u(A).trim()?a().filter(E=>E.label.toLowerCase().includes(u(A).trim().toLowerCase())):a()),X=Y(()=>s()!=null?a().find(E=>E.value===s())??null:null);function O(E){s(E.value),x(A,""),x(m,!1)}function y(){z()||(x(m,!u(m)),u(m)||x(A,""))}function j(E){E.stopPropagation(),s(null),x(A,""),x(m,!1)}function te(E){E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),y())}function N(E){u(q)&&!u(q).contains(E.target)&&(x(m,!1),x(A,""))}function M(E){E.key==="Escape"&&(x(m,!1),x(A,""))}Xt(()=>{u(m)&&u($)&&u($).focus()}),Xt(()=>{z()&&(x(m,!1),x(A,""))}),Za(()=>(document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)));var U=So();let ae;var he=w(U);{var Le=E=>{var R=vo(),K=w(R);D(()=>Z(K,r())),C(E,R)};V(he,E=>{n()&&r()&&E(Le)})}var le=P(he,2);let He;var wt=w(le);{var Dt=E=>{var R=ho();wn(R,K=>x($,K),()=>u($)),D(()=>Q(R,"placeholder",r())),at("keydown",R,M),at("click",R,K=>K.stopPropagation()),so(R,()=>u(A),K=>x(A,K)),C(E,R)},Je=E=>{var R=_o(),K=w(R);{var we=b=>{var ee=po(),Se=w(ee);D(()=>Z(Se,r())),C(b,ee)};V(K,b=>{_()&&b(we)})}var pe=P(K,1,!0);D(()=>Z(pe,u(X).label)),C(E,R)},jt=E=>{var R=Ka(),K=an(R);{var we=pe=>{var b=go();let ee;var Se=w(b);D(()=>{ee=Re(b,1,"field-text is-placeholder svelte-1dw55dz",null,ee,{"force-placeholder":g()}),Z(Se,r())}),C(pe,b)};V(K,pe=>{h()&&pe(we)})}C(E,R)};V(wt,E=>{u(m)?E(Dt):u(X)?E(Je,1):E(jt,!1)})}var lr=P(wt,2);{var ve=E=>{var R=mo(),K=w(R);D(()=>{Q(K,"src",Xa),Q(K,"width",c()?c():12),Q(K,"height",c()?c():12)}),at("click",R,j),C(E,R)},bt=E=>{var R=wo();let K;D(()=>{K=Re(R,1,"icon-chevron svelte-1dw55dz",null,K,{open:u(m)}),Q(R,"src",Fr),Q(R,"width",c()?c():12),Q(R,"height",c()?c():12)}),C(E,R)},Sn=E=>{var R=bo();D(()=>{Q(R,"src",f()),Q(R,"width",c()),Q(R,"height",c())}),C(E,R)};V(lr,E=>{u(X)&&p()&&!z()?E(ve):u(X)?E(bt,1):E(Sn,!1)})}var Sr=P(le,2);{var Cn=E=>{var R=yo(),K=w(R),we=P(w(K)),pe=P(K,2);{var b=ee=>{var Se=xo(),Be=w(Se);D(()=>Z(Be,i())),C(ee,Se)};V(pe,ee=>{i()&&ee(b)})}D(()=>Z(we,` ${u(X).label??""}`)),C(E,R)};V(Sr,E=>{u(X)&&d()&&E(Cn)})}var Ur=P(Sr,2);{var Hr=E=>{var R=Eo();mr(R,21,()=>u(oe),K=>K.value,(K,we)=>{var pe=zo();let b;var ee=w(pe);D(()=>{b=Re(pe,1,"option svelte-1dw55dz",null,b,{selected:u(we).value===s()}),Q(pe,"aria-selected",u(we).value===s()),Z(ee,u(we).label)}),at("click",pe,()=>O(u(we))),C(K,pe)},K=>{var we=ko();C(K,we)}),D(()=>Q(R,"id",k)),C(E,R)};V(Ur,E=>{u(m)&&E(Hr)})}wn(U,E=>x(q,E),()=>u(q)),D(()=>{ae=Re(U,1,"autocomplete svelte-1dw55dz",null,ae,{"show-placeholder-mobile":g()}),je(U,`--field-width: ${l()??""}; --field-height: ${o()??""}`),He=Re(le,1,"field svelte-1dw55dz",null,He,{open:u(m),"has-value":u(X)&&!u(m),disabled:z()}),Q(le,"tabindex",z()?-1:0),Q(le,"aria-controls",k),Q(le,"aria-expanded",u(m)),Q(le,"aria-disabled",z())}),at("click",le,y),at("keydown",le,te),C(e,U),Yt()}Ha(["click","keydown"]);var Ao=T("<span> </span>");const To={hash:"svelte-pamnib",code:".tag.svelte-pamnib {display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;font-family:inherit;font-weight:700;color:#ffffff;white-space:nowrap;letter-spacing:0.03em;width:fit-content;}"};function xr(e,t){gt(e,To);let r=S(t,"color",3,"#1C1C1C"),n=S(t,"fontSize",3,"0.6875rem"),a=S(t,"class",3,"");var s=Ao(),i=w(s);D(()=>{Re(s,1,`tag ${a()??""}`,"svelte-pamnib"),je(s,`background-color: ${r()??""}; font-size: ${n()??""}`),Z(i,t.label)}),C(e,s)}var Mo=T("<span> </span>"),Ro=T('<div class="vote-overview-stats svelte-1m9ufac"></div>'),Lo=T("<span> </span>"),Po=T('<span class="vote-overview-sep svelte-1m9ufac">|</span>'),Oo=T("<span> </span>"),Io=T('<div class="vote-overview-meta svelte-1m9ufac"><!> <!> <!></div>'),No=T('<div class="vote-overview svelte-1m9ufac"><!> <!></div>');const Fo={hash:"svelte-1m9ufac",code:".vote-overview.svelte-1m9ufac {display:flex;align-items:center;padding:0.5rem 1rem;font-size:0.8rem;color:#1c1c1c;gap:1rem;flex-wrap:wrap;opacity:50%;}.vote-overview-stats.svelte-1m9ufac {display:flex;align-items:center;gap:1.5rem;font-weight:600;}.vote-overview-meta.svelte-1m9ufac {display:flex;align-items:center;gap:0.4rem;font-weight:400;white-space:nowrap;}.vote-overview-sep.svelte-1m9ufac {opacity:0.4;}"};function Do(e,t){Wt(t,!0),gt(e,Fo);let r=S(t,"data",19,()=>[]),n=S(t,"borderTop",3,!1),a=S(t,"align",3,"start");var s=No(),i=w(s);{var l=c=>{var _=Ro();mr(_,21,r,pn,(d,h)=>{var g=Mo(),z=w(g);D(()=>Z(z,`${u(h).text??""} ${u(h).value??""}`)),C(d,g)}),C(c,_)};V(i,c=>{r().length&&c(l)})}var o=P(i,2);{var f=c=>{var _=Io(),d=w(_);{var h=m=>{var A=Lo(),q=w(A);D(()=>Z(q,`Atualizado em ${t.date??""}`)),C(m,A)};V(d,m=>{t.date&&m(h)})}var g=P(d,2);{var z=m=>{var A=Po();C(m,A)};V(g,m=>{t.date&&t.font&&m(z)})}var p=P(g,2);{var k=m=>{var A=Oo(),q=w(A);D(()=>Z(q,`Fonte ${t.font??""}`)),C(m,A)};V(p,m=>{t.font&&m(k)})}C(c,_)};V(o,c=>{(t.date||t.font)&&c(f)})}D(()=>je(s,`justify-content:${a()==="end"?"flex-end":"flex-start"};${n()?"border-top:1px solid var(--sevn-color-neutral)":""}`)),C(e,s),Yt()}var jo=T('<div><div class="candidates-votes-ranking-candidate svelte-icwugj"><span class="candidates-votes-ranking-dot svelte-icwugj"></span> <div class="candidates-votes-ranking-info svelte-icwugj"><span class="candidates-votes-ranking-name svelte-icwugj"> </span> <!> <!> <!></div></div> <span class="candidates-votes-ranking-votes svelte-icwugj"> </span></div>'),qo=T('<div class="candidates-votes-ranking svelte-icwugj"><div class="candidates-votes-ranking-header svelte-icwugj"><span> </span> <span> </span></div> <!> <!></div>');const Uo={hash:"svelte-icwugj",code:`.candidates-votes-ranking.svelte-icwugj {display:flex;flex-direction:column;font-family:inherit;}
33
+
34
+ /* ── Header ── */.candidates-votes-ranking-header.svelte-icwugj {display:flex;justify-content:space-between;align-items:center;padding:0 0 8px;font-size:0.85rem;font-weight:600;color:var(--sevn-color-tertiary);}
35
+
36
+ /* ── Row ── */.candidates-votes-ranking-row.svelte-icwugj {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--sevn-color-neutral);transition:background-color 0.15s ease;}.candidates-votes-ranking-row.svelte-icwugj:last-of-type {border-bottom:none;}.candidates-votes-ranking-row.elected.svelte-icwugj {background-color:#e8f5ee;margin:0 -12px;padding:14px 12px;border-radius:8px;}
37
+
38
+ /* ── Left side ── */.candidates-votes-ranking-candidate.svelte-icwugj {display:flex;align-items:center;gap:10px;min-width:0;flex:1;}.candidates-votes-ranking-dot.svelte-icwugj {width:var(--dot-size);height:var(--dot-size);border-radius:50%;flex-shrink:0;}.candidates-votes-ranking-info.svelte-icwugj {display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;}.candidates-votes-ranking-name.svelte-icwugj {font-size:var(--name-size);font-weight:var(--name-weight);color:var(--sevn-color-tertiary);white-space:nowrap;}
39
+
40
+ /* ── Right side ── */.candidates-votes-ranking-votes.svelte-icwugj {font-size:var(--votes-size);font-weight:var(--votes-weight);color:var(--sevn-color-tertiary);white-space:nowrap;flex-shrink:0;opacity:0.5;}
41
+
42
+ /* ── Responsive ── */
43
+ @media (max-width: 480px) {.candidates-votes-ranking-name.svelte-icwugj {font-size:calc(var(--name-size) * 0.9);}.candidates-votes-ranking-votes.svelte-icwugj {font-size:calc(var(--votes-size) * 0.9);}.candidates-votes-ranking-row.elected.svelte-icwugj {margin:0 -8px;padding:14px 8px;}
44
+ }`};function $a(e,t){gt(e,Uo);let r=S(t,"candidates",19,()=>[]),n=S(t,"headerLeft",3,"Partido/ Candidato"),a=S(t,"headerRight",3,"Votos"),s=S(t,"dotSize",3,"12px"),i=S(t,"nameFontSize",3,"1rem"),l=S(t,"nameWeight",3,700),o=S(t,"votesFontSize",3,"0.875rem"),f=S(t,"votesWeight",3,600),c=S(t,"tagFontSize",3,"0.6875rem"),_=S(t,"electedColor",3,"var(--sevn-color-green)"),d=S(t,"electedLabel",3,"ELEITO");const h=Y(()=>!!(t.totalVotes||t.date||t.font)),g=Y(()=>t.totalVotes?[{text:"Total",value:`${t.totalVotes} votos`}]:[]);var z=qo(),p=w(z),k=w(p),m=w(k),A=P(k,2),q=w(A),$=P(p,2);mr($,17,r,pn,(O,y)=>{var j=jo();let te;var N=w(j),M=w(N),U=P(M,2),ae=w(U),he=w(ae),Le=P(ae,2);{var le=ve=>{{let bt=Y(()=>u(y).tagColor??"var(--sevn-color-secondary)");xr(ve,{get label(){return u(y).tag},get color(){return u(bt)},get fontSize(){return c()}})}};V(Le,ve=>{u(y).tag&&ve(le)})}var He=P(Le,2);{var wt=ve=>{xr(ve,{get label(){return d()},get color(){return _()},get fontSize(){return c()}})};V(He,ve=>{u(y).elected&&ve(wt)})}var Dt=P(He,2);{var Je=ve=>{{let bt=Y(()=>u(y).statusColor??"var(--sevn-color-tertiary)");xr(ve,{get label(){return u(y).statusLabel},get color(){return u(bt)},get fontSize(){return c()}})}};V(Dt,ve=>{u(y).statusLabel&&ve(Je)})}var jt=P(N,2),lr=w(jt);D(()=>{te=Re(j,1,"candidates-votes-ranking-row svelte-icwugj",null,te,{elected:u(y).elected}),je(M,`background-color: ${u(y).dotColor??"var(--sevn-color-secondary)"??""}`),Z(he,u(y).name),Z(lr,u(y).votes)}),C(O,j)});var oe=P($,2);{var X=O=>{Do(O,{get data(){return u(g)},get date(){return t.date},get font(){return t.font},borderTop:!0})};V(oe,O=>{u(h)&&O(X)})}D(()=>{je(z,`
45
+ --dot-size: ${s()??""};
46
+ --name-size: ${i()??""};
47
+ --name-weight: ${l()??""};
48
+ --votes-size: ${o()??""};
49
+ --votes-weight:${f()??""};
50
+ `),Z(m,n()),Z(q,a())}),C(e,z)}function Ho(e,t,r,n,a,s){const i=r-s,l=es(n),o=es(a),f=a-n>180?1:0,c=e+r*Math.cos(l),_=t+r*Math.sin(l),d=e+r*Math.cos(o),h=t+r*Math.sin(o),g=e+i*Math.cos(o),z=t+i*Math.sin(o),p=e+i*Math.cos(l),k=t+i*Math.sin(l);return[`M ${c} ${_}`,`A ${r} ${r} 0 ${f} 1 ${d} ${h}`,`L ${g} ${z}`,`A ${i} ${i} 0 ${f} 0 ${p} ${k}`,"Z"].join(" ")}function es(e){return e*Math.PI/180}var Bo=vn('<path style="cursor: pointer; transition: opacity 0.2s;" role="button" tabindex="0"><title> </title></path>'),Vo=vn('<text text-anchor="middle" dominant-baseline="middle" class="donut-chart-center-label svelte-1q978zv"> </text>'),Ko=vn('<text text-anchor="middle" dominant-baseline="middle" class="donut-chart-center-sub svelte-1q978zv"> </text>'),Go=T('<div class="donut-tooltip svelte-1q978zv"><div class="donut-tooltip-content svelte-1q978zv"><div class="donut-tooltip-header svelte-1q978zv"></div> <div class="donut-tooltip-body svelte-1q978zv"><div class="donut-tooltip-label svelte-1q978zv"> </div> <div class="donut-tooltip-value svelte-1q978zv"> </div></div></div> <div class="donut-tooltip-arrow svelte-1q978zv"></div></div>'),Wo=T('<div class="donut-chart svelte-1q978zv"><svg viewBox="0 0 200 200" role="img" aria-label="Gráfico de donut" class="svelte-1q978zv"><!><!><!></svg> <!></div>');const Yo={hash:"svelte-1q978zv",code:`.donut-chart.svelte-1q978zv {display:inline-block;}svg.svelte-1q978zv {width:100%;height:100%;display:block;}.donut-chart-center-label.svelte-1q978zv {font-family:inherit;font-weight:700;fill:var(--sevn-color-tertiary);}.donut-chart-center-sub.svelte-1q978zv {font-family:inherit;font-weight:500;fill:#9a9aaa;}
51
+
52
+ /* ── Hover effect ─────────────────────── */svg.svelte-1q978zv path.hovered:where(.svelte-1q978zv) {opacity:0.8;filter:brightness(1.1);}
53
+
54
+ /* ── Foco: sem outline ao clicar (mouse), mantém pra navegação por teclado ── */svg.svelte-1q978zv path:where(.svelte-1q978zv):focus {outline:none;}svg.svelte-1q978zv path:where(.svelte-1q978zv):focus-visible {outline:2px solid var(--sevn-color-tertiary, #1c1c1c);outline-offset:2px;}
55
+
56
+ /* ── Tooltip ──────────────────────────── */.donut-tooltip.svelte-1q978zv {position:fixed;left:var(--tooltip-x);top:var(--tooltip-y);transform:translate(-50%, -100%);z-index:1000;pointer-events:none;
57
+ animation: svelte-1q978zv-slideUp 0.2s ease-out;}
58
+
59
+ @keyframes svelte-1q978zv-slideUp {
60
+ from {
61
+ opacity: 0;
62
+ transform: translate(-50%, -90%);
63
+ }
64
+ to {
65
+ opacity: 1;
66
+ transform: translate(-50%, -100%);
67
+ }
68
+ }.donut-tooltip-content.svelte-1q978zv {background:white;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow:hidden;min-width:140px;}.donut-tooltip-header.svelte-1q978zv {height:4px;width:100%;}.donut-tooltip-body.svelte-1q978zv {padding:12px 16px;display:flex;flex-direction:column;gap:4px;}.donut-tooltip-label.svelte-1q978zv {font-size:0.75rem;font-weight:600;color:var(--sevn-color-tertiary, #1c1c1c);text-transform:uppercase;letter-spacing:0.05em;}.donut-tooltip-value.svelte-1q978zv {font-size:1.125rem;font-weight:700;color:var(--sevn-color-tertiary, #1c1c1c);}.donut-tooltip-arrow.svelte-1q978zv {position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid white;filter:drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));}`};function ts(e,t){Wt(t,!0),gt(e,Yo);let r=S(t,"segments",19,()=>[]),n=S(t,"size",3,"200px"),a=S(t,"radius",3,80),s=S(t,"thickness",3,32),i=S(t,"gap",3,2),l=S(t,"centerLabelSize",3,22),o=S(t,"centerSubSize",3,10);const f=100,c=100;let _=J(null),d=J(rt({x:0,y:0}));function h(N,M){x(_,M,!0);const U=N.currentTarget.getBoundingClientRect();x(d,{x:U.left+U.width/2,y:U.top-10},!0)}function g(){x(_,null)}const z=Y(()=>r().reduce((N,M)=>N+M.value,0)),p=Y(()=>Math.min(a(),100)),k=Y(()=>Math.min(s(),50)),m=Y(()=>{if(u(z)===0)return[];const N=i();let M=-90;return r().map(U=>{const ae=U.value/u(z)*360-N,he=M+N/2,Le=he+ae;return M+=U.value/u(z)*360,{path:Ho(f,c,u(p),he,Le,u(k)),color:U.color,label:U.label}})});var A=Wo(),q=w(A),$=w(q);mr($,17,()=>u(m),pn,(N,M,U)=>{var ae=Bo();let he;var Le=w(ae),le=w(Le);D(()=>{Q(ae,"d",u(M).path),Q(ae,"fill",u(M).color),he=Re(ae,0,"svelte-1q978zv",null,he,{hovered:u(_)===U}),Z(le,u(M).label)}),Ua("mouseenter",ae,He=>h(He,U)),Ua("mouseleave",ae,g),C(N,ae)});var oe=P($);{var X=N=>{var M=Vo();Q(M,"x",f);var U=w(M);D(()=>{Q(M,"y",t.centerSub?c-6:c),je(M,`font-size: ${l()??""}px`),Z(U,t.centerLabel)}),C(N,M)};V(oe,N=>{t.centerLabel&&N(X)})}var O=P(oe);{var y=N=>{var M=Ko();Q(M,"x",f),Q(M,"y",c+18);var U=w(M);D(()=>{je(M,`font-size: ${o()??""}px`),Z(U,t.centerSub)}),C(N,M)};V(O,N=>{t.centerSub&&N(y)})}var j=P(q,2);{var te=N=>{const M=Y(()=>r()[u(_)]);var U=Go(),ae=w(U),he=w(ae),Le=P(he,2),le=w(Le),He=w(le),wt=P(le,2),Dt=w(wt);D(Je=>{je(U,`--tooltip-x: ${u(d).x??""}px; --tooltip-y: ${u(d).y??""}px;`),je(he,`background-color: ${u(M).color??""};`),Z(He,u(M).label),Z(Dt,`${Je??""}%`)},[()=>u(M).value.toFixed(1)]),C(N,U)};V(j,N=>{u(_)!==null&&r()[u(_)]&&N(te)})}D(()=>je(A,`width: ${n()??""}; height: ${n()??""};`)),C(e,A),Yt()}var Jo=T('<span class="trigger-label svelte-hkzjiw"> </span>'),Zo=T('<img alt="" aria-hidden="true" width="10" height="10"/>'),Qo=T('<button class="clear svelte-hkzjiw" type="button"><img alt="" aria-hidden="true" width="8" height="8"/></button>'),Xo=T('<button type="button" role="option"> </button>'),$o=T('<div class="dropdown svelte-hkzjiw" role="listbox"></div>'),el=T('<div class="filter-dropdown svelte-hkzjiw"><button type="button" aria-haspopup="listbox"><!> <span class="trigger-value svelte-hkzjiw"> </span> <!></button> <!> <!></div>');const tl={hash:"svelte-hkzjiw",code:`.filter-dropdown.svelte-hkzjiw {position:relative;display:inline-flex;align-items:center;}
69
+
70
+ /* ── Trigger ─────────────────────────────── */.trigger.svelte-hkzjiw {display:inline-flex;align-items:center;gap:4px;padding:0;background:none;border:none;cursor:pointer;font-family:inherit;font-size:0.875rem;color:var(--sevn-color-tertiary);white-space:nowrap;}.trigger-label.svelte-hkzjiw {font-weight:700;}.trigger-value.svelte-hkzjiw {font-weight:400;}.trigger-chevron.svelte-hkzjiw {flex-shrink:0;transition:transform 0.2s ease;margin-left:2px;}.trigger-chevron.rotated.svelte-hkzjiw {transform:rotate(180deg);}
71
+
72
+ /* ── Botão de limpar ─────────────────────── */.clear.svelte-hkzjiw {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px;margin-left:4px;padding:0;background:none;border:none;border-radius:50%;cursor:pointer;transition:background 0.15s;}.clear.svelte-hkzjiw:hover,
73
+ .clear.svelte-hkzjiw:focus-visible {background:rgba(0, 0, 0, 0.08);}
74
+
75
+ /* ── Dropdown ────────────────────────────── */.dropdown.svelte-hkzjiw {position:absolute;top:calc(100% + 6px);left:0;min-width:100%;background:#fff;border:1px solid #d1d1d6;border-radius:8px;box-shadow:0 6px 16px rgba(0, 0, 0, 0.1);z-index:200;overflow:hidden;}
76
+
77
+ /* ── Options ─────────────────────────────── */.option.svelte-hkzjiw {display:block;width:100%;padding:10px 14px;text-align:left;background:none;border:none;border-bottom:1px solid #f0f0f5;cursor:pointer;font-size:0.875rem;font-family:inherit;color:var(--sevn-color-tertiary);white-space:nowrap;transition:background 0.1s;}.option.svelte-hkzjiw:last-child {border-bottom:none;}.option.svelte-hkzjiw:hover {background:var(--sevn-color-neutral);}.option.selected.svelte-hkzjiw {background:color-mix(in srgb, var(--sevn-color-primary) 8%, transparent);color:var(--sevn-color-primary);font-weight:600;}`};function rl(e,t){Wt(t,!0),gt(e,tl);let r=S(t,"label",3,""),n=S(t,"options",19,()=>[]),a=S(t,"value",15,null),s=S(t,"clearable",3,!0),i=J(!1),l=J(null);const o=Y(()=>a()!=null?n().find(y=>y.value===a())??null:null);function f(y){a(y.value),x(i,!1)}function c(){a(null),x(i,!1)}function _(y){u(l)&&!u(l).contains(y.target)&&x(i,!1)}Za(()=>(document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)));var d=el(),h=w(d);let g;var z=w(h);{var p=y=>{var j=Jo(),te=w(j);D(()=>Z(te,`${r()??""}:`)),C(y,j)};V(z,y=>{r()&&y(p)})}var k=P(z,2),m=w(k),A=P(k,2);{var q=y=>{var j=Zo();let te;D(()=>{te=Re(j,1,"trigger-chevron svelte-hkzjiw",null,te,{rotated:u(i)}),Q(j,"src",Fr)}),C(y,j)};V(A,y=>{u(o)&&s()||y(q)})}var $=P(h,2);{var oe=y=>{var j=Qo(),te=w(j);D(()=>{Q(j,"aria-label",`Limpar ${(r()||"filtro")??""}`),Q(te,"src",Xa)}),at("click",j,c),C(y,j)};V($,y=>{u(o)&&s()&&y(oe)})}var X=P($,2);{var O=y=>{var j=$o();mr(j,21,n,te=>te.value,(te,N)=>{var M=Xo();let U;var ae=w(M);D(()=>{U=Re(M,1,"option svelte-hkzjiw",null,U,{selected:u(N).value===a()}),Q(M,"aria-selected",u(N).value===a()),Z(ae,u(N).label)}),at("click",M,()=>f(u(N))),C(te,M)}),C(y,j)};V(X,y=>{u(i)&&y(O)})}wn(d,y=>x(l,y),()=>u(l)),D(()=>{g=Re(h,1,"trigger svelte-hkzjiw",null,g,{open:u(i)}),Q(h,"aria-expanded",u(i)),Z(m,u(o)?u(o).label:"")}),at("click",h,()=>x(i,!u(i))),C(e,d),Yt()}Ha(["click"]);var nl=T('<span class="header-tag-above svelte-1xm1ks6"><!></span>'),al=T('<span class="header-tag-inline svelte-1xm1ks6"><!></span>'),sl=T('<p class="header-description svelte-1xm1ks6"> </p>'),il=T('<header class="header svelte-1xm1ks6"><!> <div class="header-title-row svelte-1xm1ks6"><h1 class="header-title svelte-1xm1ks6"> </h1> <!></div> <!></header>');const ol={hash:"svelte-1xm1ks6",code:`.header.svelte-1xm1ks6 {display:flex;flex-direction:column;gap:4px;}.header-tag-inline.svelte-1xm1ks6 {display:none;}.header-title-row.svelte-1xm1ks6 {display:flex;align-items:center;gap:10px;}.header-title.svelte-1xm1ks6 {font-size:var(--header-title-font-size);font-weight:var(--header-title-font-weight);color:var(--sevn-color-tertiary);line-height:1.15;}.header-description.svelte-1xm1ks6 {font-size:var(--header-description-font-size);color:var(--sevn-color-tertiary);}
78
+
79
+ @media (max-width: 767px) {.header-title.svelte-1xm1ks6 {font-size:calc(var(--header-title-font-size) * 0.75);max-width:60%;}.header-description.svelte-1xm1ks6 {font-size:calc(var(--header-description-font-size) * 0.9);}
80
+ }
81
+
82
+ @media (min-width: 768px) {.header-tag-above.svelte-1xm1ks6 {display:none;}.header-tag-inline.svelte-1xm1ks6 {display:inline-flex;}
83
+ }`};function ll(e,t){gt(e,ol);var r=il(),n=w(r);{var a=d=>{var h=nl(),g=w(h);xr(g,{get label(){return t.tag},get color(){return t.tagColor}}),C(d,h)};V(n,d=>{t.tag&&d(a)})}var s=P(n,2),i=w(s),l=w(i),o=P(i,2);{var f=d=>{var h=al(),g=w(h);xr(g,{get label(){return t.tag},get color(){return t.tagColor}}),C(d,h)};V(o,d=>{t.tag&&d(f)})}var c=P(s,2);{var _=d=>{var h=sl(),g=w(h);D(()=>Z(g,t.description)),C(d,h)};V(c,d=>{t.description&&d(_)})}D(()=>{je(r,`
84
+ --header-title-font-size: ${t.titleFontSize??"1.75rem"??""};
85
+ --header-title-font-weight: ${t.titleFontWeight??700??""};
86
+ --header-description-font-size: ${t.descriptionFontSize??"0.875rem"??""};
87
+ `),Z(l,t.title)}),C(e,r)}class rs{constructor(t={}){var r,n,a;this.inflight=new Map,this.tick=0,this.storageKey=(r=t.storageKey)!==null&&r!==void 0?r:"reqcache",this.maxEntries=(n=t.maxEntries)!==null&&n!==void 0?n:100,this.storage=(a=t.storage)!==null&&a!==void 0?a:cl()}async getFetch(t,r,n={}){const a=Date.now(),s=this.readAll(),i=s.find(f=>f.rota===t);if(i&&a<i.expiresAt)return i.lastAccess=this.nextAccess(),this.writeAll(s),i.data;const l=this.inflight.get(t);if(l)return l;const o=this.revalidate(t,r,n,i??null).finally(()=>this.inflight.delete(t));return this.inflight.set(t,o),o}invalidate(t){const r=this.readAll().filter(n=>n.rota!==t);this.writeAll(r)}cleanup(t=3600){const r=Date.now()-t*1e3,n=this.readAll(),a=n.filter(s=>s.expiresAt>r);return this.writeAll(a),n.length-a.length}clear(){if(this.storage)try{this.storage.removeItem(this.storageKey)}catch{}}nextAccess(){return this.tick=Math.max(Date.now(),this.tick+1),this.tick}async revalidate(t,r,n,a){var s,i;const l=(s=n.fetcher)!==null&&s!==void 0?s:fetch;let o;try{const c=await l(t,n.fetchOptions);if(!c.ok)throw new Error(`HTTP ${c.status} ao buscar ${t}`);o=await c.json()}catch(c){if(a&&(!((i=n.staleOnError)!==null&&i!==void 0)||i))return this.upsert({...a,expiresAt:Date.now()+r,lastAccess:this.nextAccess()}),a.data;throw c}if(a&&n.monotonicKey){const c=ns(a.data,n.monotonicKey),_=ns(o,n.monotonicKey);if(typeof c=="number"&&typeof _=="number"&&_<=c)return this.upsert({...a,expiresAt:Date.now()+r,lastAccess:this.nextAccess()}),a.data}const f=Date.now();return this.upsert({rota:t,data:o,createdAt:f,expiresAt:f+r,lastAccess:this.nextAccess()}),o}upsert(t){const r=this.readAll().filter(n=>n.rota!==t.rota);r.push(t),this.evictIfNeeded(r),this.writeAll(r)}evictIfNeeded(t){for(;t.length>this.maxEntries;){let r=0;for(let n=1;n<t.length;n++)t[n].lastAccess<t[r].lastAccess&&(r=n);t.splice(r,1)}}readAll(){if(!this.storage)return[];try{const t=this.storage.getItem(this.storageKey);if(!t)return[];const r=JSON.parse(t);return Array.isArray(r)?r:[]}catch{return[]}}writeAll(t){if(this.storage)try{this.storage.setItem(this.storageKey,JSON.stringify(t))}catch(r){if(ul(r)&&t.length>0){const n=[...t].sort((a,s)=>a.lastAccess-s.lastAccess);n.splice(0,Math.ceil(n.length/2));try{this.storage.setItem(this.storageKey,JSON.stringify(n))}catch{}}}}}function ns(e,t){return t.split(".").reduce((r,n)=>{if(r&&typeof r=="object"&&n in r)return r[n]},e)}function ul(e){return e instanceof Error&&(e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")}function cl(){try{if(typeof localStorage<"u"){const e="__reqcache_probe__";return localStorage.setItem(e,"1"),localStorage.removeItem(e),localStorage}}catch{}return null}new rs;const as=300,fl=3600,xn=new Map;function yn(){try{return typeof window<"u"&&typeof localStorage<"u"}catch{return!1}}const dl={getItem(e){return yn()?localStorage.getItem(e):xn.get(e)??null},setItem(e,t){if(yn())try{localStorage.setItem(e,t)}catch{console.warn("[api] Cota do localStorage excedida, ignorando escrita")}else xn.set(e,t)},removeItem(e){yn()?localStorage.removeItem(e):xn.delete(e)}};let zn=null;function vl(){if(!zn){const{storageKey:e,maxEntries:t}=cr().cache;zn=new rs({storage:dl,storageKey:e,maxEntries:t})}return zn}async function ss(e,t,r=as,n){const[a]=Dn(),s=e.replace(/^\/+/,""),i=new URL(s,`${a.replace(/\/+$/,"")}/`);let l;try{l=await vl().getFetch(i.toString(),r*1e3,{monotonicKey:n,fetcher:Ss})}catch(o){throw o instanceof Error&&/^HTTP 404 /.test(o.message)?new Error("Dados ainda não publicados"):o}if(l&&typeof l=="object"&&l.published===!1)throw new Error(l.reason??"Dados ainda não publicados");return l}function hl(e){return ss(`v1/reference/municipalities/${e.toUpperCase()}.json`,void 0,fl)}function is(e,t){const r=t?.round??1,n=t?.office??"president";let a="br";return t?.municipalityId?a=`mun/${t.municipalityId}`:t?.state&&(a=`uf/${t.state.toUpperCase()}`),ss(`v1/elections/${e}/r${r}/${n}/${a}/results.json`,void 0,as,"summary.ballots_counted")}const pl=new Set(["da","de","do","das","dos","e"]);function os(e){return e.toLowerCase().split(" ").map((t,r)=>r>0&&pl.has(t)?t:t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function _l(e){if(typeof e=="string"){const r=e.match(/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2}))?/);if(r)return new Date(Date.UTC(Number(r[1]),Number(r[2])-1,Number(r[3]),Number(r[4]),Number(r[5]),Number(r[6]??0)))}const t=new Date(e);return Number.isNaN(t.getTime())?null:t}function Dr(e){if(e==null||e==="")return"";const t=_l(e);if(!t)return"";const r=String(t.getUTCDate()).padStart(2,"0"),n=String(t.getUTCMonth()+1).padStart(2,"0"),a=t.getUTCFullYear(),s=String(t.getUTCHours()).padStart(2,"0"),i=String(t.getUTCMinutes()).padStart(2,"0");return`${r}/${n}/${a} às ${s}h${i}`}function ls(e,t="TSE"){const r=Dr(e);return r?`Atualizado em ${r} | Fonte ${t}`:`Fonte ${t}`}const us=Dr("2022-10-31T00:18:00Z"),gl=ls("2022-10-31T00:18:00Z");var ml=T('<p class="sevn_round_results__status svelte-xuzras"> </p>'),wl=T('<p class="sevn_round_results__status sevn_round_results__status--error svelte-xuzras"> </p>'),bl=T('<p class="sevn_round_results__status svelte-xuzras">2º turno ainda não publicado para este município.</p>'),xl=T('<div class="sevn_round_results__chart svelte-xuzras"><!></div> <!>',1),yl=T('<div class="sevn_round_results__grid svelte-xuzras"><div class="sevn_round_results__round svelte-xuzras"><div class="sevn_round_results__chart svelte-xuzras"><!></div> <!></div> <div class="sevn_round_results__round svelte-xuzras"><!></div></div>'),zl=T('<div><!> <div class="sevn_round_results__office-web svelte-xuzras"><!></div> <div class="sevn_round_results__office-mobile svelte-xuzras"><!></div> <div class="sevn_round_results__filters svelte-xuzras"><div class="sevn_round_results__filter svelte-xuzras"><!></div> <div class="sevn_round_results__filter svelte-xuzras"><!></div></div> <!></div>');const kl={hash:"svelte-xuzras",code:`.sevn_round_results.svelte-xuzras {display:flex;flex-direction:column;gap:24px;}.sevn_round_results--raw.svelte-xuzras,
88
+ .sevn_round_results--raw.svelte-xuzras :where(.svelte-xuzras) {all:revert;}.sevn_round_results__status.svelte-xuzras {font-size:0.875rem;color:var(--sevn-color-text-secondary, #6b7280);}.sevn_round_results__status--error.svelte-xuzras {color:#e11d48;}
89
+
90
+ /* Filters row */.sevn_round_results__filters.svelte-xuzras {display:flex;gap:16px;align-items:flex-start;}.sevn_round_results__filter.svelte-xuzras {flex:1;min-width:0;}.sevn_round_results__office-web.svelte-xuzras {display:none;}.sevn_round_results__office-mobile.svelte-xuzras {display:block;width:220px;}
91
+
92
+ @media (min-width: 769px) {.sevn_round_results__office-web.svelte-xuzras {display:block;}.sevn_round_results__office-mobile.svelte-xuzras {display:none;}
93
+ }
94
+
95
+ /* Grid: two rounds side by side on web */.sevn_round_results__grid.svelte-xuzras {display:grid;grid-template-columns:1fr 1fr;gap:40px;}.sevn_round_results__round.svelte-xuzras {display:flex;flex-direction:column;gap:24px;}.sevn_round_results__chart.svelte-xuzras {display:flex;justify-content:center;}.sevn_round_results.svelte-xuzras .vote-overview {gap:8px;padding:0.5rem 0;align-items:flex-end;}
96
+
97
+ /* Mobile */
98
+ @media (max-width: 768px) {.sevn_round_results__grid.svelte-xuzras {grid-template-columns:1fr;gap:40px;}.sevn_round_results__filters.svelte-xuzras {flex-direction:column;gap:12px;}.sevn_round_results__filter.svelte-xuzras {width:100%;}.sevn_round_results__filter.svelte-xuzras .dropdown {position:static;margin-top:10px;}.sevn_round_results.svelte-xuzras .vote-overview {padding:3px;font-size:0.7rem;gap:8px;}.sevn_round_results.svelte-xuzras .vote-overview .vote-overview-stats {gap:8px;}
99
+ }`};function El(e,t){Wt(t,!0),gt(e,kl);let r=S(t,"mock",3,!1),n=S(t,"rawStyle",3,!1),a=S(t,"year",3,2026),s=S(t,"defaultOffice",3,"president"),i=S(t,"header",19,()=>({title:"Análise de resultados por turno",description:"Resultados presidenciais por município, em tempo real"}));const l=[{value:"presidente",label:"Presidente"},{value:"governador",label:"Governador"}],o={presidente:"president",governador:"governor"},f={president:"presidente",governor:"governador"};let c=J(rt(er(()=>f[s()]??"presidente")));const _=[{value:"ac",label:"Acre AC"},{value:"al",label:"Alagoas AL"},{value:"ap",label:"Amapá AP"},{value:"am",label:"Amazonas AM"},{value:"ba",label:"Bahia BA"},{value:"ce",label:"Ceará CE"},{value:"df",label:"Distrito Federal DF"},{value:"es",label:"Espírito Santo ES"},{value:"go",label:"Goiás GO"},{value:"ma",label:"Maranhão MA"},{value:"mt",label:"Mato Grosso MT"},{value:"ms",label:"Mato Grosso do Sul MS"},{value:"mg",label:"Minas Gerais MG"},{value:"pa",label:"Pará PA"},{value:"pb",label:"Paraíba PB"},{value:"pr",label:"Paraná PR"},{value:"pe",label:"Pernambuco PE"},{value:"pi",label:"Piauí PI"},{value:"rj",label:"Rio de Janeiro RJ"},{value:"rn",label:"Rio Grande do Norte RN"},{value:"rs",label:"Rio Grande do Sul RS"},{value:"ro",label:"Rondônia RO"},{value:"rr",label:"Roraima RR"},{value:"sc",label:"Santa Catarina SC"},{value:"sp",label:"São Paulo SP"},{value:"se",label:"Sergipe SE"},{value:"to",label:"Tocantins TO"}],d=[{value:"3507001",label:"Boituva"},{value:"3509502",label:"Campinas"},{value:"3518800",label:"Guarulhos"},{value:"3543402",label:"Ribeirão Preto"},{value:"3548500",label:"Santos"},{value:"3549805",label:"São João da Boa Vista"},{value:"3550308",label:"São Paulo"},{value:"3552205",label:"Sorocaba"}];let h=J(""),g=J(null),z=J(null),p=J(!1);Xt(()=>{!ct||!u(h)||(x(g,null),!r()&&(x(z,null),x(p,!0),hl(u(h)).then(b=>{x(z,b,!0),x(p,!1)}).catch(b=>{console.error("Failed to fetch municipalities:",b),x(p,!1)})))});const k=Y(()=>!r()&&u(z)?.municipalities?u(z).municipalities.map(b=>({value:String(b.municipality_id),label:b.name})):r()?d:[]),m=Y(()=>u(k).find(b=>b.value===u(g))?.label??null),A=Y(()=>u(h)?u(p)?"Carregando municípios...":u(g)?"Você selecionou:":"Busque pelo município (opcional)":"Selecione a UF primeiro"),q=[{name:"Candidato A",tag:"ABC",dotColor:"var(--sevn-color-primary)",tagColor:"var(--sevn-color-primary)",votes:"42,8%"},{name:"Candidato B",tag:"DEF",dotColor:"#16a34a",tagColor:"#16a34a",votes:"31,4%"},{name:"Candidato C",tag:"GHI",dotColor:"#1e4d6b",tagColor:"#1e4d6b",votes:"12,6%"},{name:"Candidato D",tag:"JKL",dotColor:"#0f172a",tagColor:"#0f172a",votes:"9,7%"},{name:"Candidato E",tag:"MNO",dotColor:"#e11d48",tagColor:"#e11d48",votes:"4,1%"}],$=[{label:"ABC",value:42.8,color:"var(--sevn-color-primary)"},{label:"DEF",value:31.4,color:"#16a34a"},{label:"GHI",value:12.6,color:"#1e4d6b"},{label:"JKL",value:9.7,color:"#0f172a"},{label:"MNO",value:4.1,color:"#e11d48"}],oe=[{name:"Candidato A",tag:"ABC",dotColor:"var(--sevn-color-primary)",tagColor:"var(--sevn-color-primary)",votes:"54,2%",elected:!0},{name:"Candidato B",tag:"DEF",dotColor:"#16a34a",tagColor:"#16a34a",votes:"45,8%"}],X=[{label:"ABC",value:54.2,color:"var(--sevn-color-primary)"},{label:"DEF",value:45.8,color:"#16a34a"}];let O=J(null),y=J(null),j=J(!1),te=J(null),N=J(!1);Xt(()=>{if(!ct||r())return;if(!u(h)||!u(c)){x(O,null),x(y,null),x(N,!1);return}x(O,null),x(y,null),x(N,!1),x(j,!0),x(te,null);const b=u(h),ee=u(g)?Number(u(g)):void 0,Se=o[u(c)]||"president";is(a(),{round:1,state:b,municipalityId:ee,office:Se}).then(Be=>{x(O,Be,!0)}).catch(Be=>{console.error("Failed to fetch round 1 results:",Be),x(te,"Failed to load data")}).finally(()=>{x(j,!1)}),is(a(),{round:2,state:b,municipalityId:ee,office:Se}).then(Be=>{x(y,Be,!0)}).catch(Be=>{console.error(`No round 2 results for ${u(g)}:`,Be),x(y,null),x(N,!0)})});const M=Y(()=>r()?q:u(O)?.candidates?u(O).candidates.map(b=>({name:os(b.ballot_name),tag:b.party_abbr,dotColor:b.party_color,tagColor:b.party_color,votes:`${b.valid_votes_pct.toFixed(1).replace(".",",")}%`,elected:b.elected})):[]),U=Y(()=>r()?$:u(O)?.candidates?u(O).candidates.map(b=>({label:b.party_abbr,value:b.valid_votes_pct,color:b.party_color})):[]),ae=Y(()=>r()?oe:u(y)?.candidates?u(y).candidates.map(b=>({name:os(b.ballot_name),tag:b.party_abbr,dotColor:b.party_color,tagColor:b.party_color,votes:`${b.valid_votes_pct.toFixed(1).replace(".",",")}%`,elected:b.elected})):[]),he=Y(()=>r()?X:u(y)?.candidates?u(y).candidates.map(b=>({label:b.party_abbr,value:b.valid_votes_pct,color:b.party_color})):[]),Le=Y(()=>r()?"118.552.353":u(O)?.summary?u(O).summary.total_valid_votes.toLocaleString("pt-BR"):null),le=Y(()=>r()?"118.552.353":u(y)?.summary?u(y).summary.total_valid_votes.toLocaleString("pt-BR"):null),He=Y(()=>r()?us:Dr(u(O)?.summary?.last_updated)),wt=Y(()=>r()?us:Dr(u(y)?.summary?.last_updated)),Dt=Y(()=>r()?gl:ls(u(y)?.summary?.last_updated??u(O)?.summary?.last_updated));let Je=J(rt(ct?window.innerWidth<=480:!1));Xt(()=>{if(!ct)return;const b=window.matchMedia("(max-width: 480px)");x(Je,b.matches,!0);const ee=Se=>{x(Je,Se.matches,!0)};return b.addEventListener("change",ee),()=>b.removeEventListener("change",ee)});var jt=zl();let lr;var ve=w(jt);ll(ve,{get title(){return i().title},get description(){return i().description},get tag(){return i().tag},get tagColor(){return i().tagColor}});var bt=P(ve,2),Sn=w(bt);rl(Sn,{label:"Cargo",get options(){return l},get value(){return u(c)},set value(b){x(c,b,!0)}});var Sr=P(bt,2),Cn=w(Sr);bn(Cn,{label:"Cargo:",showLabel:!1,showLabelInField:!0,labelAsPlaceholder:!0,showPlaceholderOnMobile:!0,get options(){return l},get value(){return u(c)},set value(b){x(c,b,!0)}});var Ur=P(Sr,2),Hr=w(Ur),E=w(Hr);{let b=Y(()=>u(h)?"Você selecionou":"Busque por UF");bn(E,{get label(){return u(b)},get icon(){return Fr},iconSize:13,get options(){return _},get meta(){return u(Dt)},get value(){return u(h)},set value(ee){x(h,ee,!0)}})}var R=P(Hr,2),K=w(R);{let b=Y(()=>!u(h)||u(p));bn(K,{get label(){return u(A)},get icon(){return Fr},iconSize:13,get options(){return u(k)},get disabled(){return u(b)},get value(){return u(g)},set value(ee){x(g,ee,!0)}})}var we=P(Ur,2);{var pe=b=>{var ee=Ka(),Se=an(ee);{var Be=ut=>{var xt=ml(),ur=w(xt);D(()=>Z(ur,`Carregando resultados${u(m)?` de ${u(m)}`:""}...`)),C(ut,xt)},Sl=ut=>{var xt=wl(),ur=w(xt);D(()=>Z(ur,u(te))),C(ut,xt)},Cl=ut=>{var xt=yl(),ur=w(xt),ds=w(ur),Al=w(ds);{let yt=Y(()=>u(Je)?"250px":"300px");ts(Al,{get segments(){return u(U)},centerLabel:"1ºTurno",get size(){return u(yt)},radius:85,thickness:18,centerLabelSize:15,gap:1})}var Tl=P(ds,2);$a(Tl,{get candidates(){return u(M)},get totalVotes(){return u(Le)},get date(){return u(He)},font:"TSE"});var Ml=P(ur,2),Rl=w(Ml);{var Ll=yt=>{var Br=bl();C(yt,Br)},Pl=yt=>{var Br=xl(),vs=an(Br),Ol=w(vs);{let Nl=Y(()=>u(Je)?"250px":"300px");ts(Ol,{get segments(){return u(he)},centerLabel:"2ºTurno",get size(){return u(Nl)},radius:85,thickness:18,centerLabelSize:15,gap:1})}var Il=P(vs,2);$a(Il,{get candidates(){return u(ae)},get totalVotes(){return u(le)},get date(){return u(wt)},font:"TSE"}),C(yt,Br)};V(Rl,yt=>{!r()&&u(N)?yt(Ll):yt(Pl,!1)})}C(ut,xt)};V(Se,ut=>{u(j)?ut(Be):u(te)?ut(Sl,1):ut(Cl,!1)})}C(b,ee)};V(we,b=>{u(h)&&u(c)&&b(pe)})}D(()=>lr=Re(jt,1,"sevn_round_results svelte-xuzras",null,lr,{"sevn_round_results--raw":n()})),C(e,jt),Yt()}const cs=oo(El,"RoundResultsAnalysis");return typeof window<"u"&&(window.SevnElections=Object.assign(window.SevnElections||{},{Core:As,RoundResultsAnalysis:cs}),uo()),cs}));