@20minutes/tyr 2.40.8 → 2.40.9
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.
- package/dist/css/homePage-desktop-critical.css +1 -1
- package/dist/css/homePage-desktop-no-critical.css +1 -1
- package/dist/css/homePage-mobile-critical.css +1 -1
- package/dist/css/homePage-mobile-no-critical.css +1 -1
- package/dist/index.es.js +3701 -3672
- package/dist/index.umd.js +83 -83
- package/dist/js/main.min.js +1 -1
- package/dist/types/ComponentConfig.d.ts +0 -1
- package/dist/types/graphql.d.ts +44 -48
- package/package.json +2 -2
package/dist/js/main.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"use strict";const r=typeof window<"u"&&navigator.userAgent.toLowerCase().includes("firefox"),n=()=>{const e=document.getElementById("js-download-band");e&&/Android/i.test(navigator.userAgent)&&e.setAttribute("href","https://app.adjust.com/15shf6wg?campaign=Bandeau_1&deep_link=20minutes%3A%2F%2Fhome")},i=[{text:"Paris",_index:"town_1717424751904",_id:"75056",_score:1,_source:{output:"Paris (75000)",url:"/elections/resultats/paris/paris-75000"}},{text:"Paris 10ème Arrondissement",_index:"town_1717424751904",_id:"75056AR10",_score:1,_source:{output:"Paris 10ème Arrondissement (75010)",url:"/elections/resultats/paris/paris-75010"}},{text:"Paris 11ème Arrondissement",_index:"town_1717424751904",_id:"75056AR11",_score:1,_source:{output:"Paris 11ème Arrondissement (75011)",url:"/elections/resultats/paris/paris-75011"}}],o=(e,t,r,n,o,a)=>{const s=document.getElementById(e);if(!s)return;const l=s.dataset.storybook,c=s.querySelector(`#${e}-search`),u=c?.getAttribute("data-api-url"),d=s.querySelector(".c-autocomplete__menu");if(!c||!d||!u)return;const p=s.querySelector(".c-autocomplete__input-spinner"),f=c.getAttribute("data-trigger-message"),h=()=>{p?.classList.toggle("u-hidden")},m=async e=>{h(),d.classList.remove("u-hidden");const s=await(async e=>{try{const n=l&&t.includes("20minutes.fr")?i:await fetch(`${u}${r}${encodeURIComponent(e)}`).then(e=>e.json()),o=a&&"object"==typeof n&&null!==n?n[a]:n;return Array.isArray(o)?o:[]}catch(e){return console.error("Error fetching autocomplete results:",e),[]}})(e);d.innerHTML="",0===s.length&&d.classList.add("u-hidden"),s.forEach(e=>{((e,t)=>{const r=document.createElement("li");r.id=`/${e}`,r.textContent=t,r.addEventListener("click",()=>{c instanceof HTMLInputElement&&(c.value=t,d.classList.add("u-hidden"))}),d.appendChild(r)})(e[n],e[o])}),h()};c.addEventListener("input",e=>{if(!(e.target instanceof HTMLInputElement))return;const t=e.target.value;d.classList.remove("u-hidden"),t.length>=3?m(t):(d.innerHTML="",(()=>{const e=document.createElement("li");e.textContent=f,d.appendChild(e)})())}),c.addEventListener("focusout",()=>{setTimeout(()=>d.classList.add("u-hidden"),300)}),c.addEventListener("focusin",()=>{d.childElementCount>0&&d.classList.remove("u-hidden")})},a=(e=document.querySelector(".js-collapse__button"))=>{e&&document.querySelectorAll(".c-collapse__button").forEach(e=>{e.addEventListener("click",e=>{(e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget;if(t instanceof HTMLButtonElement){const e=t.parentElement?.querySelector(`#${t.getAttribute("aria-controls")}`);"true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded","false"),e?.setAttribute("aria-hidden","true")):(t.setAttribute("aria-expanded","true"),e?.setAttribute("aria-hidden","false"))}})(e)})})},s=(e,t)=>{const r=document.querySelector(`#${t}`);if(r){const t=r.querySelector(".js-countdown-days"),n=r.querySelector(".js-countdown-hours"),i=r.querySelector(".js-countdown-minutes"),o=r.querySelector(".js-countdown-seconds");if(!(t&&n&&i&&o))return;window.counters={paralympicsGames:"2024-08-28 20:00:00",winterOlympicsGames:"2026-02-06 20:00:00",eurovision:"2026-05-16 21:00:00",worldFoot2026:"2026-06-11 15:00:00"};const a=window.counters[e],s=new Date(a).getTime(),l=setInterval(()=>{const e=Date.now(),r=s-e;if(r<=0)clearInterval(l);else{const e=Math.floor(r/864e5),a=Math.floor(r%864e5/36e5),s=Math.floor(r%36e5/6e4),l=Math.floor(r%6e4/1e3);t.innerHTML=e.toString(),n.innerHTML=a.toString(),i.innerHTML=s.toString(),o.innerHTML=l.toString()}},1e3)}},l=()=>{const e=document.querySelector(".c-map-districts-container"),t=document.querySelector(".c-map-districts");if(!e||!t)return;const r=document.querySelector(".c-map-districts-container__description"),n=document.querySelector(".c-map-districts-container__department"),i=document.querySelector(".c-map-districts-container__unzoom-button");let o=t;const a=t.getAttribute("viewBox"),s=(e,t)=>e.matches?.call(e,t),l=(s,l)=>{if(l&&i&&r){e.classList.remove("c-map-districts-container--department-view"),r.classList.remove("u-hidden"),n?.classList.add("u-hidden"),i.classList.add("u-hidden"),l!==a&&(r.classList.add("u-hidden"),i.classList.remove("u-hidden")),o.classList.remove("js-selected-area"),o=s;const c=o.getAttribute("data-info");n&&c&&(e.classList.add("c-map-districts-container--department-view"),n.classList.remove("u-hidden"),n.innerHTML=c),o.classList.add("js-selected-area"),t.setAttribute("viewBox",l)}},c=e=>{e.stopPropagation();const r=e.currentTarget;if(o&&t&&r instanceof SVGGraphicsElement){if(r===o)return;if(e.preventDefault(),o!==t&&!((e,t,r)=>{if(!e)return;let n=e.parentElement;for(;n instanceof SVGGraphicsElement&&n!==r;){if(t===n)return!0;n=n.parentElement}return r===t})(r,o,t))return void l(t,a);const n=((e,t,r=".c-map-districts__zoomable:not(.js-selected-area)")=>{if(!e)return;let n,i=e.parentElement;for(;i instanceof SVGGraphicsElement&&i!==t;)s(i,r)&&(n=i),i=i.parentElement;return n})(r,o);l(n||r,(e=>{const t=e.getBBox(),r=t.width/20;return[t.x-r,t.y-r,t.width+2*r,t.height+2*r].join(" ")})(n||r))}},u=()=>{t&&o!==t&&l(t,a)};t.addEventListener("click",u),i&&i.addEventListener("click",u),document.querySelectorAll(".c-map-districts__zoomable").forEach(e=>{e.addEventListener("click",e=>c(e))})},c=()=>{const e=document.getElementById("elections-form-search"),t=document.querySelector(".c-search-form__autocomplete");if(!e||!t)return;e.addEventListener("input",({target:e})=>{if(!(e instanceof HTMLInputElement))return;const r=e.value;if(t.classList.add("u-hidden"),r.length>=3){const e=(e=>{t.classList.remove("u-hidden");const r=t.querySelectorAll("li"),n=[];return r.forEach(t=>{t.querySelector("a")?.innerHTML.toLowerCase().includes(e.toLowerCase())&&n.push(t.innerHTML)}),n})(r);t.innerHTML="",0===e.length&&t.classList.add("u-hidden"),e.forEach(e=>{(e=>{t.innerHTML+=`<li>${e}</li>`})(e)})}}),e.addEventListener("focusout",()=>{setTimeout(()=>t.classList.add("u-hidden"),300)}),e.addEventListener("focusin",()=>{t.childElementCount>0&&t.classList.remove("u-hidden")})},u=(e,t)=>{const r=e.currentTarget;if(e.preventDefault(),r instanceof HTMLButtonElement){const e=t?"u-ellipsis-multiline":"u-ellipsis";return"true"===r.getAttribute("aria-expanded")?((e,t)=>{e.parentNode?.querySelectorAll(".js-ellipsis-target")?.forEach(e=>{e.classList.add(t)}),e.setAttribute("aria-expanded","false");const r=e.querySelector(".js-ellipsis-button__label");r instanceof HTMLSpanElement&&(r.innerHTML="Voir plus")})(r,e):((e,t)=>{e.setAttribute("aria-expanded","true"),e.parentNode?.querySelectorAll(".js-ellipsis-target")?.forEach(e=>{e.classList.remove(t)});const r=e.querySelector(".js-ellipsis-button__label");r instanceof HTMLSpanElement&&(r.innerHTML="Voir moins")})(r,e)}return null},d=e=>{const t=e.currentTarget;return e.preventDefault(),t instanceof HTMLButtonElement?"true"===t.getAttribute("aria-expanded")?(e=>{e.parentNode?.querySelectorAll(".js-expand-target")?.forEach(e=>{e.setAttribute("aria-hidden","true")}),e.setAttribute("aria-expanded","false");const t=e.querySelector(".js-expand-button__label");t instanceof HTMLSpanElement&&(t.innerHTML="Voir plus")})(t):(e=>{e.setAttribute("aria-expanded","true"),e.parentNode?.querySelectorAll(".js-expand-target")?.forEach(e=>{e.setAttribute("aria-hidden","false")});const t=e.querySelector(".js-expand-button__label");t instanceof HTMLSpanElement&&(t.innerHTML="Voir moins")})(t):null},p=()=>{const e=document.querySelector(".c-image-slider__container");if(!e)return()=>{};const t=document.querySelectorAll(".c-image-slider__slide"),r=document.querySelector(".c-image-slider__button-container--previous"),n=document.querySelector(".c-image-slider__button-container--next"),i=document.querySelectorAll(".c-image-slider__indicator");let o=0,a=null,s=!1;const l=(t=!0)=>{if(!(e instanceof HTMLElement))return;e.style.transition=t?"transform 0.3s ease":"none";const r=100*-o;e.style.transform=`translateX(${r}%)`,i.forEach((e,t)=>{e.classList.toggle("c-image-slider__indicator--is-active",t===o)})},c=e=>{o=e,l(!0)},u=()=>{a&&clearInterval(a),a=setInterval(()=>{if(!s){const e=(o+1)%t.length;c(e)}},4e3)},d=()=>{a&&(clearInterval(a),a=null)},p=()=>{s=!0,d()},f=()=>{s=!1,u()};r?.addEventListener("click",()=>{p();const e=(o-1+t.length)%t.length;c(e),setTimeout(f,5e3)}),n?.addEventListener("click",()=>{p();const e=(o+1)%t.length;c(e),setTimeout(f,5e3)}),i.forEach((e,t)=>{e.addEventListener("click",()=>{p(),c(t),setTimeout(f,5e3)})});let h=0,m=0,g=!1;return e.addEventListener("touchstart",t=>{e instanceof HTMLElement&&(p(),h=t.touches[0].clientX,m=h,g=!0,e.style.transition="none")}),e.addEventListener("touchmove",t=>{if(!(e instanceof HTMLElement))return;m=t.touches[0].clientX;const r=m-h,n=-o*window.innerWidth+r;e.style.transform=`translateX(${n}px)`}),e.addEventListener("touchend",()=>{if(!g)return;g=!1;const e=m-h;Math.abs(e)>75&&(e<0?o=Math.min(o+1,t.length-1):e>0&&(o=Math.max(o-1,0))),l(!0),setTimeout(f,5e3)}),l(!0),u(),()=>{d()}},f=e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget,r=document.getElementById("info-button-content");!(t instanceof HTMLButtonElement)||!r||("true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded","false"),r.setAttribute("aria-hidden","true")):(t.setAttribute("aria-expanded","true"),r.setAttribute("aria-hidden","false")))},h=":not([inert]):not([inert] *)",m=':not([tabindex^="-"])',g=":not(:disabled)";var y=[`a[href]${h}${m}`,`area[href]${h}${m}`,`input:not([type="hidden"]):not([type="radio"])${h}${m}${g}`,`input[type="radio"]${h}${m}${g}`,`select${h}${m}${g}`,`textarea${h}${m}${g}`,`button${h}${m}${g}`,`details${h} > summary:first-of-type${m}`,`iframe${h}${m}`,`audio[controls]${h}${m}`,`video[controls]${h}${m}`,`[contenteditable]${h}${m}`,`[tabindex]${h}${m}`];function v(e){(e.querySelector("[autofocus]")||e).focus()}function b(e,t){if(t&&x(e))return e;if(function(e){return(!e.shadowRoot||"-1"!==e.getAttribute("tabindex"))&&!e.matches(":disabled,[hidden],[inert]")}(e))if(e.shadowRoot){let r=w(e.shadowRoot,t);for(;r;){const e=b(r,t);if(e)return e;r=_(r,t)}}else if("slot"===e.localName){const r=e.assignedElements({flatten:!0});t||r.reverse();for(const e of r){const r=b(e,t);if(r)return r}}else{let r=w(e,t);for(;r;){const e=b(r,t);if(e)return e;r=_(r,t)}}return!t&&x(e)?e:null}function w(e,t){return t?e.firstElementChild:e.lastElementChild}function _(e,t){return t?e.nextElementSibling:e.previousElementSibling}const x=e=>!e.shadowRoot?.delegatesFocus&&(e.matches(y.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e));function S(e=document){const t=e.activeElement;return t?t.shadowRoot?S(t.shadowRoot)||document.activeElement:t:null}function E(e,t){const[r,n]=function(e){const t=b(e,!0);return[t,t?b(e,!1)||t:null]}(e);if(!r)return t.preventDefault();const i=S();t.shiftKey&&i===r?(n.focus(),t.preventDefault()):!t.shiftKey&&i===n&&(r.focus(),t.preventDefault())}function k(e,t){return function t(r){if(!r||r===document||r===window)return null;const n=C(r);return n&&(r=n),r.closest(e)||t(r.getRootNode().host)}(t)}function C(e){return e.assignedSlot||(e.parentNode?C(e.parentNode):null)}const A="data-a11y-dialog";class T{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(A)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=S(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():v(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,r){return this.$el.addEventListener(e,t,r),this}off(e,t,r){return this.$el.removeEventListener(e,t,r),this}fire(e,t){const r=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(r),r}handleTriggerClicks(e){const t=e.composedPath()[0],r=k(`[${A}-show="${this.id}"]`,t),n=k(`[${A}-hide="${this.id}"]`,t),i=k(`[${A}-hide]`,t)&&k('[aria-modal="true"]',t)===this.$el;r&&this.show(e),(n||i)&&this.hide(e)}bindKeypress(e){if(k('[aria-modal="true"]',S())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"===e.key&&"alertdialog"!==this.$el.getAttribute("role")&&!t&&(e.preventDefault(),this.hide(e)),"Tab"===e.key&&E(this.$el,e)}maintainFocus(){const e=S();k(`[aria-modal="true"], [${A}-ignore-focus-trap]`,e)||v(this.$el)}}function L(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new T(e)}typeof document<"u"&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",L):L());const D="68px",N="50px",I=({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})=>{const i=e.classList.contains("c-breadcrumb--is-small")?N:D;r.classList.contains("o-nav-button--visible")&&!n.classList.contains("o-nav-button--visible")&&(e.style.paddingRight=i,e.style.paddingLeft=""),n.classList.contains("o-nav-button--visible")&&(e.style.paddingLeft=i,r.classList.contains("o-nav-button--visible")&&(e.style.paddingRight=i),r.classList.contains("o-nav-button--visible")||(e.style.paddingRight="")),!r.classList.contains("o-nav-button--visible")&&!n.classList.contains("o-nav-button--visible")&&(t.style.width="",e.style.paddingRight="")},P=({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n,sliderVariant:i})=>{if(t){const o=t.closest(".js-overview-bar-container")?.querySelector(".c-stepper")?.querySelectorAll(".c-stepper__item");if(o){const e=Array.from(o).findIndex(e=>e.classList.contains("c-stepper__item--loading"));if(e<0)o[0].classList.add("c-stepper__item--loading");else{o[e].classList.remove("c-stepper__item--loading"),o[e].classList.add("c-stepper__item--loaded");const t=o[e].querySelector(".c-stepper__loader");t&&t instanceof HTMLElement&&(t.style.transition="width 0s linear"),e+1<o.length&&o[e+1].classList.add("c-stepper__item--loading")}}if(t.scrollWidth-t.clientWidth>t.clientWidth){let e=t.scrollLeft;switch(i){case"three-columns-articles":e+=t.clientWidth+32;break;case"rubrics":e+=t.clientWidth-36;break;default:e+=Math.ceil(.6*t.clientWidth)}t.scrollTo({left:e,behavior:"smooth"}),n.classList.add("o-nav-button--visible"),e+t.clientWidth>=t.scrollWidth&&r.classList.remove("o-nav-button--visible")}else{const e=t.scrollWidth-t.clientWidth;t.scrollTo({left:e,behavior:"smooth"}),r.classList.remove("o-nav-button--visible"),n.classList.add("o-nav-button--visible")}r.classList.contains("c-slider__button-container--has-space-around")&&n.classList.contains("c-slider__button-container--has-space-around")&&I({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})}},O=({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n,sliderVariant:i,delay:o})=>{if(t){const a=t.closest(".js-overview-bar-container")?.querySelector(".c-stepper")?.querySelectorAll(".c-stepper__item");if(a){const e=Array.from(a).findIndex(e=>e.classList.contains("c-stepper__item--loading"));e<0?a[0].classList.add("c-stepper__item--loading"):(a[e].classList.remove("c-stepper__item--loading"),a[e].classList.remove("c-stepper__item--loaded"),e-1>0&&(a[e-1].classList.remove("c-stepper__item--loading"),a[e-1].classList.remove("c-stepper__item--loaded"),setTimeout(()=>{const t=a[e-1].querySelector(".c-stepper__loader");a[e-1].classList.add("c-stepper__item--loading"),t&&t instanceof HTMLElement&&(t.style.transition=`width ${o/1e3}s linear`)},0)))}if(t.clientWidth<t.scrollLeft){let e=t.scrollLeft;switch(i){case"three-columns-articles":e-=t.clientWidth+32;break;case"rubrics":e-=t.clientWidth-36;break;default:e-=Math.ceil(.6*t.clientWidth)}t.scrollTo({left:e,behavior:"smooth"}),r.classList.add("o-nav-button--visible"),0===e&&n.classList.remove("o-nav-button--visible")}else t.scrollTo({left:0,behavior:"smooth"}),n.classList.remove("o-nav-button--visible"),t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible");r.classList.contains("c-slider__button-container--has-space-around")&&n.classList.contains("c-slider__button-container--has-space-around")&&I({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})}},q=({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})=>{(({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})=>{const i=t.scrollLeft>0,o=t.scrollLeft+(t.clientWidth+.5)<t.scrollWidth;i&&o?(r.classList?.add("o-nav-button--visible"),n.classList?.add("o-nav-button--visible")):i?(r.classList?.remove("o-nav-button--visible"),n.classList?.add("o-nav-button--visible")):o?(r.classList?.add("o-nav-button--visible"),n.classList?.remove("o-nav-button--visible")):(r.classList?.remove("o-nav-button--visible"),n.classList?.remove("o-nav-button--visible")),r.classList.contains("c-slider__button-container--has-space-around")&&n.classList.contains("c-slider__button-container--has-space-around")&&I({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})})({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})},j=e=>{const{sliderVariant:t}=e.dataset,{sliderAuto:r}=e.dataset,{sliderDelay:n}=e.dataset,i=n?parseInt(n,10):3e3,o=e.closest(".js-overview-bar-container")?.querySelector(".c-stepper"),a=o?.querySelectorAll(".c-stepper__item"),s=e.querySelector(".js-navigation-container__list"),l=e.querySelector(".o-nav-button--next-button"),c=e.querySelector(".o-nav-button--previous-button");if(s&&l&&c){if(s.clientWidth<s.scrollWidth&&(l.classList.add("o-nav-button--visible"),l.classList.contains("c-slider__button-container--has-space-around"))){const t=e.classList.contains("c-breadcrumb--is-small")?N:D;e.style.paddingRight=t}if(l.addEventListener("click",P.bind(!1,{navigationContainer:e,navigatedList:s,nextBtn:l,prevBtn:c,sliderVariant:t})),c.addEventListener("click",O.bind(!1,{navigationContainer:e,navigatedList:s,nextBtn:l,prevBtn:c,sliderVariant:t,delay:i})),"true"===r){const e=o?o.querySelector(".c-stepper__item--loading"):null;a&&(a.forEach(e=>{const t=e.querySelector(".c-stepper__loader");t&&t instanceof HTMLElement&&(t.style.transition=`width ${i/1e3}s linear`)}),e||a[0].classList.add("c-stepper__item--loading")),setInterval(()=>{l.classList.contains("o-nav-button--visible")?l.click():s&&c&&(s.scrollLeft=0,a&&(a.forEach(e=>{const t=e.querySelector(".c-stepper__loader");t&&t instanceof HTMLElement&&(t.style.transition="width 0s linear"),e.classList.remove("c-stepper__item--loading"),e.classList.remove("c-stepper__item--loaded"),setTimeout(()=>{t&&t instanceof HTMLElement&&(t.style.transition=`width ${i/1e3}s linear`)},0)}),setTimeout(()=>{a[0].classList.add("c-stepper__item--loading")},0)),c.click())},i)}}};function M(e,t,r){const n=document.createElement(t);return e&&(n.className=e),r&&r.appendChild(n),n}function R(e,t){return e.x=t.x,e.y=t.y,void 0!==t.id&&(e.id=t.id),e}function F(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function B(e,t){const r=Math.abs(e.x-t.x),n=Math.abs(e.y-t.y);return Math.sqrt(r*r+n*n)}function z(e,t){return e.x===t.x&&e.y===t.y}function H(e,t,r){return Math.min(Math.max(e,t),r)}function V(e,t,r){let n=`translate3d(${e}px,${t||0}px,0)`;return void 0!==r&&(n+=` scale3d(${r},${r},1)`),n}function U(e,t,r,n){e.style.transform=V(t,r,n)}function $(e,t,r,n){e.style.transition=t?`${t} ${r}ms ${n||"cubic-bezier(.4,0,.22,1)"}`:"none"}function K(e,t,r){e.style.width="number"==typeof t?`${t}px`:t,e.style.height="number"==typeof r?`${r}px`:r}const G="idle",W="loading",Q="loaded",Z="error";function J(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}let Y=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{Y=!0}}))}catch{}class X{constructor(){this._pool=[]}add(e,t,r,n){this._toggleListener(e,t,r,n)}remove(e,t,r,n){this._toggleListener(e,t,r,n,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,t,r,n,i,o){if(!e)return;const a=i?"removeEventListener":"addEventListener";t.split(" ").forEach(t=>{if(t){o||(i?this._pool=this._pool.filter(n=>n.type!==t||n.listener!==r||n.target!==e):this._pool.push({target:e,type:t,listener:r,passive:n}));const s=!!Y&&{passive:n||!1};e[a](t,r,s)}})}}function ee(e,t){if(e.getViewportSizeFn){const r=e.getViewportSizeFn(e,t);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function te(e,t,r,n,i){let o=0;if(t.paddingFn)o=t.paddingFn(r,n,i)[e];else if(t.padding)o=t.padding[e];else{const r="padding"+e[0].toUpperCase()+e.slice(1);t[r]&&(o=t[r])}return Number(o)||0}function re(e,t,r,n){return{x:t.x-te("left",e,t,r,n)-te("right",e,t,r,n),y:t.y-te("top",e,t,r,n)-te("bottom",e,t,r,n)}}class ne{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:t}=this.slide,r=this.slide["x"===e?"width":"height"]*this.currZoomLevel,n=te("x"===e?"left":"top",t.options,t.viewportSize,this.slide.data,this.slide.index),i=this.slide.panAreaSize[e];this.center[e]=Math.round((i-r)/2)+n,this.max[e]=r>i?Math.round(i-r)+n:this.center[e],this.min[e]=r>i?n:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,t){return H(t,this.max[e],this.min[e])}}let ie=class{constructor(e,t,r,n){this.pswp=n,this.options=e,this.itemData=t,this.index=r,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,r){const n={x:e,y:t};this.elementSize=n,this.panAreaSize=r;const i=r.x/n.x,o=r.y/n.y;this.fit=Math.min(1,i<o?i:o),this.fill=Math.min(1,i>o?i:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",r=this.options[t];if(r)return"function"==typeof r?r(this):"fill"===r?this.fill:"fit"===r?this.fit:Number(r)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}};class oe{constructor(e,t,r){this.data=e,this.index=t,this.pswp=r,this.isActive=t===r.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!r.opener.isOpen,this.zoomLevels=new ie(r.options,e,t,r),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:t}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=M("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new ne(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;this.heavyAppended||!e.opener.isOpen||e.mainScroll.isShifted()||(this.isActive,0)||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(e){const t=this.currentResolution||this.zoomLevels.initial;if(!t)return;const r=Math.round(this.width*t)||this.pswp.viewportSize.x,n=Math.round(this.height*t)||this.pswp.viewportSize.y;!this.sizeChanged(r,n)&&!e||this.content.setDisplayedSize(r,n)}sizeChanged(e,t){return(e!==this.prevDisplayedWidth||t!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=e,this.prevDisplayedHeight=t,!0)}getPlaceholderElement(){var e;return null===(e=this.content.placeholder)||void 0===e?void 0:e.element}zoomTo(e,t,r,n){const{pswp:i}=this;if(!this.isZoomable()||i.mainScroll.isShifted())return;i.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:t,transitionDuration:r}),i.animations.stopAllPan();const o=this.currZoomLevel;n||(e=H(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",t,o),this.pan.y=this.calculateZoomToPanOffset("y",t,o),F(this.pan);const a=()=>{this._setResolution(e),this.applyCurrentZoomPan()};r?i.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:a,duration:r,easing:i.options.easing}):a()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,t,r){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];t||(t=this.pswp.getViewportCenterPoint()),r||(r=this.zoomLevels.initial);const n=this.currZoomLevel/r;return this.bounds.correctPan(e,(this.pan[e]-t[e])*n+t[e])}panTo(e,t){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",t),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),R(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,t,r){r/=this.currentResolution||this.zoomLevels.initial,U(this.container,e,t,r)}calculateSize(){const{pswp:e}=this;R(this.panAreaSize,re(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return V(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class ae{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&R(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:t,dragAxis:r}=this.gestures,{currSlide:n}=this.pswp;if("y"===r&&this.pswp.options.closeOnVerticalDrag&&n&&n.currZoomLevel<=n.zoomLevels.fit&&!this.gestures.isMultitouch){const r=n.pan.y+(e.y-t.y);if(!this.pswp.dispatch("verticalDrag",{panY:r}).defaultPrevented){this._setPanWithFriction("y",r,.6);const e=1-Math.abs(this._getVerticalDragRatio(n.pan.y));this.pswp.applyBgOpacity(e),n.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),n&&(F(n.pan),n.applyCurrentZoomPan()))}end(){const{velocity:e}=this.gestures,{mainScroll:t,currSlide:r}=this.pswp;let n=0;if(this.pswp.animations.stopAll(),t.isShifted()){const r=(t.x-t.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-.5&&r<0||e.x<.1&&r<-.5?(n=1,e.x=Math.min(e.x,0)):(e.x>.5&&r>0||e.x>-.1&&r>.5)&&(n=-1,e.x=Math.max(e.x,0)),t.moveIndexBy(n,!0,e.x)}r&&r.currZoomLevel>r.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:t}=this.gestures,{currSlide:r}=this.pswp;if(!r)return;const{pan:n,bounds:i}=r,o=n[e],a=this.pswp.bgOpacity<1&&"y"===e,s=o+function(e,t){return e*t/(1-t)}(t[e],.995);if(a){const e=this._getVerticalDragRatio(o),t=this._getVerticalDragRatio(s);if(e<0&&t<-.4||e>0&&t>.4)return void this.pswp.close()}const l=i.correctPan(e,s);if(o===l)return;const c=l===s?1:.82,u=this.pswp.bgOpacity,d=l-o;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:l,velocity:t[e],dampingRatio:c,onUpdate:t=>{if(a&&this.pswp.bgOpacity<1){const e=1-(l-t)/d;this.pswp.applyBgOpacity(H(u+(1-u)*e,0,1))}n[e]=Math.floor(t),r.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:t,dragAxis:r,prevP1:n,isMultitouch:i}=this.gestures,{currSlide:o,mainScroll:a}=this.pswp,s=t[e]-n[e],l=a.x+s;if(!s||!o)return!1;if("x"===e&&!o.isPannable()&&!i)return a.moveTo(l,!0),!0;const{bounds:c}=o,u=o.pan[e]+s;if(this.pswp.options.allowPanToNext&&"x"===r&&"x"===e&&!i){const t=a.getCurrSlideX(),r=a.x-t,n=s>0,i=!n;if(u>c.min[e]&&n){if(c.min[e]<=this.startPan[e])return a.moveTo(l,!0),!0;this._setPanWithFriction(e,u)}else if(u<c.max[e]&&i){if(this.startPan[e]<=c.max[e])return a.moveTo(l,!0),!0;this._setPanWithFriction(e,u)}else if(0!==r){if(r>0)return a.moveTo(Math.max(l,t),!0),!0;if(r<0)return a.moveTo(Math.min(l,t),!0),!0}else this._setPanWithFriction(e,u)}else"y"===e?!a.isShifted()&&c.min.y!==c.max.y&&this._setPanWithFriction(e,u):this._setPanWithFriction(e,u);return!1}_getVerticalDragRatio(e){var t,r;return(e-(null!==(t=null===(r=this.pswp.currSlide)||void 0===r?void 0:r.bounds.center.y)&&void 0!==t?t:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,t,r){const{currSlide:n}=this.pswp;if(!n)return;const{pan:i,bounds:o}=n;if(o.correctPan(e,t)!==t||r){const n=Math.round(t-i[e]);i[e]+=n*(r||.35)}else i[e]=t}}function se(e,t,r){return e.x=(t.x+r.x)/2,e.y=(t.y+r.y)/2,e}class le{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,R(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:t,p2:r,startP2:n,pswp:i}=this.gestures,{currSlide:o}=i;if(!o)return;const a=o.zoomLevels.min,s=o.zoomLevels.max;if(!o.isZoomable()||i.mainScroll.isShifted())return;se(this._startZoomPoint,t,n),se(this._zoomPoint,e,r);let l=1/B(t,n)*B(e,r)*this._startZoomLevel;if(l>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),l<a)if(i.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=o.zoomLevels.initial){const e=1-(a-l)/(a/1.2);i.dispatch("pinchClose",{bgOpacity:e}).defaultPrevented||i.applyBgOpacity(e)}else l=a-.15*(a-l);else l>s&&(l=s+.05*(l-s));o.pan.x=this._calculatePanForZoomLevel("x",l),o.pan.y=this._calculatePanForZoomLevel("y",l),o.setZoomLevel(l),o.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:t}=e;(!t||t.currZoomLevel<t.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&e.options.pinchToClose?e.close():this.correctZoomPan()}_calculatePanForZoomLevel(e,t){const r=t/this._startZoomLevel;return this._zoomPoint[e]-(this._startZoomPoint[e]-this._startPan[e])*r}correctZoomPan(e){const{pswp:t}=this.gestures,{currSlide:r}=t;if(null==r||!r.isZoomable())return;0===this._zoomPoint.x&&(e=!0);const n=r.currZoomLevel;let i,o=!0;n<r.zoomLevels.initial?i=r.zoomLevels.initial:n>r.zoomLevels.max?i=r.zoomLevels.max:(o=!1,i=n);const a=t.bgOpacity,s=t.bgOpacity<1,l=R({x:0,y:0},r.pan);let c=R({x:0,y:0},l);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=n,R(this._startPan,l)),o&&(c={x:this._calculatePanForZoomLevel("x",i),y:this._calculatePanForZoomLevel("y",i)}),r.setZoomLevel(i),c={x:r.bounds.correctPan("x",c.x),y:r.bounds.correctPan("y",c.y)},r.setZoomLevel(n);const u=!z(c,l);if(!u&&!o&&!s)return r._setResolution(i),void r.applyCurrentZoomPan();t.animations.stopAllPan(),t.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:e=>{if(e/=1e3,u||o){if(u&&(r.pan.x=l.x+(c.x-l.x)*e,r.pan.y=l.y+(c.y-l.y)*e),o){const t=n+(i-n)*e;r.setZoomLevel(t)}r.applyCurrentZoomPan()}s&&t.bgOpacity<1&&t.applyBgOpacity(H(a+(1-a)*e,0,1))},onComplete:()=>{r._setResolution(i),r.applyCurrentZoomPan()}})}}function ce(e){return!!e.target.closest(".pswp__container")}class ue{constructor(e){this.gestures=e}click(e,t){const r=t.target.classList,n=r.contains("pswp__img"),i=r.contains("pswp__item")||r.contains("pswp__zoom-wrap");n?this._doClickOrTapAction("imageClick",e,t):i&&this._doClickOrTapAction("bgClick",e,t)}tap(e,t){ce(t)&&this._doClickOrTapAction("tap",e,t)}doubleTap(e,t){ce(t)&&this._doClickOrTapAction("doubleTap",e,t)}_doClickOrTapAction(e,t,r){var n;const{pswp:i}=this.gestures,{currSlide:o}=i,a=e+"Action",s=i.options[a];if(!i.dispatch(a,{point:t,originalEvent:r}).defaultPrevented){if("function"==typeof s)return void s.call(i,t,r);switch(s){case"close":case"next":i[s]();break;case"zoom":o?.toggleZoom(t);break;case"zoom-or-close":null!=o&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(t):i.options.clickToCloseNonZoomable&&i.close();break;case"toggle-controls":null===(n=this.gestures.pswp.element)||void 0===n||n.classList.toggle("pswp--ui-visible")}}}}class de{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new ae(this),this.zoomLevels=new le(this),this.tapHandler=new ue(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,t,r,n){const{pswp:i}=this,{events:o}=i,a=n?e+n:"";o.add(i.scrollWrap,e+t,this.onPointerDown.bind(this)),o.add(window,e+"move",this.onPointerMove.bind(this)),o.add(window,e+r,this.onPointerUp.bind(this)),a&&o.add(i.scrollWrap,a,this.onPointerUp.bind(this))}onPointerDown(e){const t="mousedown"===e.type||"mouse"===e.pointerType;if(t&&e.button>0)return;const{pswp:r}=this;r.opener.isOpen?r.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(t&&(r.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),r.animations.stopAll(),this._updatePoints(e,"down"),1===this._numActivePoints&&(this.dragAxis=null,R(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):e.preventDefault()}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented&&(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,R(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented&&(0===this._numActivePoints&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?z(this.p1,this.prevP1)||this.drag.change():(!z(this.p1,this.prevP1)||!z(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const t=Date.now(),r=t-this._intervalTime;r<50&&!e||(this.velocity.x=this._getVelocity("x",r),this.velocity.y=this._getVelocity("y",r),this._intervalTime=t,R(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:t}=this.pswp;if(t.isShifted())return void t.moveIndexBy(0,!0);if(e.type.indexOf("cancel")>0)return;if("mouseup"===e.type||"mouse"===e.pointerType)return void this.tapHandler.click(this.startP1,e);const r=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),B(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,e)):(R(this._lastStartP1,this.startP1),this._tapTimer=setTimeout(()=>{this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},r))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,t){const r=this.p1[e]-this._intervalP1[e];return Math.abs(r)>1&&t>5?r/t:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,t){this.pswp.applyFilters("preventPointerEvent",!0,e,t)&&e.preventDefault()}_updatePoints(e,t){if(this._pointerEventEnabled){const r=e,n=this._ongoingPointers.findIndex(e=>e.id===r.pointerId);"up"===t&&n>-1?this._ongoingPointers.splice(n,1):"down"===t&&-1===n?this._ongoingPointers.push(this._convertEventPosToPoint(r,{x:0,y:0})):n>-1&&this._convertEventPosToPoint(r,this._ongoingPointers[n]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&R(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&R(this.p2,this._ongoingPointers[1])}else{const r=e;this._numActivePoints=0,r.type.indexOf("touch")>-1?r.touches&&r.touches.length>0&&(this._convertEventPosToPoint(r.touches[0],this.p1),this._numActivePoints++,r.touches.length>1&&(this._convertEventPosToPoint(r.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),"up"===t?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){R(this.prevP1,this.p1),R(this.prevP2,this.p2)}_updateStartPoints(){R(this.startP1,this.p1),R(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==e){const t=e>0?"x":"y";Math.abs(this.p1[t]-this.startP1[t])>=10&&(this.dragAxis=t)}}}_convertEventPosToPoint(e,t){return t.x=e.pageX-this.pswp.offset.x,t.y=e.pageY-this.pswp.offset.y,"pointerId"in e?t.id=e.pointerId:void 0!==e.identifier&&(t.id=e.identifier),t}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}class pe{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){const{pswp:t}=this,r=Math.round(t.viewportSize.x+t.viewportSize.x*t.options.spacing),n=r!==this.slideWidth;n&&(this.slideWidth=r,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((t,r)=>{n&&U(t.el,(r+this._containerShiftIndex)*this.slideWidth),e&&t.slide&&t.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){const t=M("pswp__item","div",this.pswp.container);t.setAttribute("role","group"),t.setAttribute("aria-roledescription","slide"),t.setAttribute("aria-hidden","true"),t.style.display=1===e?"block":"none",this.itemHolders.push({el:t})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,t,r){const{pswp:n}=this;let i=n.potentialIndex+e;const o=n.getNumItems();if(n.canLoop()){i=n.getLoopedIndex(i);const t=(e+o)%o;e=t<=o/2?t:t-o}else i<0?i=0:i>=o&&(i=o-1),e=i-n.potentialIndex;n.potentialIndex=i,this._currPositionIndex-=e,n.animations.stopMainScroll();const a=this.getCurrSlideX();if(t){n.animations.startSpring({isMainScroll:!0,start:this.x,end:a,velocity:r||0,naturalFrequency:30,dampingRatio:1,onUpdate:e=>{this.moveTo(e)},onComplete:()=>{this.updateCurrItem(),n.appendHeavy()}});let e=n.potentialIndex-n.currIndex;if(n.canLoop()){const t=(e+o)%o;e=t<=o/2?t:t-o}Math.abs(e)>1&&this.updateCurrItem()}else this.moveTo(a),this.updateCurrItem();return!!e}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;const{pswp:t}=this,r=this._prevPositionIndex-this._currPositionIndex;if(!r)return;this._prevPositionIndex=this._currPositionIndex,t.currIndex=t.potentialIndex;let n,i=Math.abs(r);i>=3&&(this._containerShiftIndex+=r+(r>0?-3:3),i=3,this.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.destroy(),e.slide=void 0}));for(let e=0;e<i;e++)r>0?(n=this.itemHolders.shift(),n&&(this.itemHolders[2]=n,this._containerShiftIndex++,U(n.el,(this._containerShiftIndex+2)*this.slideWidth),t.setContent(n,t.currIndex-i+e+2))):(n=this.itemHolders.pop(),n&&(this.itemHolders.unshift(n),this._containerShiftIndex--,U(n.el,this._containerShiftIndex*this.slideWidth),t.setContent(n,t.currIndex+i-e-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),t.animations.stopAllPan(),this.itemHolders.forEach((e,t)=>{e.slide&&e.slide.setIsActive(1===t)}),t.currSlide=null===(e=this.itemHolders[1])||void 0===e?void 0:e.slide,t.contentLoader.updateLazy(r),t.currSlide&&t.currSlide.applyCurrentZoomPan(),t.dispatch("change")}moveTo(e,t){if(!this.pswp.canLoop()&&t){let t=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;t+=this.pswp.currIndex;const r=Math.round(e-this.x);(t<0&&r>0||t>=this.pswp.getNumItems()-1&&r<0)&&(e=this.x+.35*r)}this.x=e,this.pswp.container&&U(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:t??!1})}}const fe={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},he=(e,t)=>t?e:fe[e];class me{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});const t=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&t&&this._wasFocused&&t.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:t}=this;if(t.dispatch("keydown",{originalEvent:e}).defaultPrevented||("button"in(r=e)&&1===r.button||r.ctrlKey||r.metaKey||r.altKey||r.shiftKey))return;var r;let n,i,o=!1;const a="key"in e;switch(a?e.key:e.keyCode){case he("Escape",a):t.options.escKey&&(n="close");break;case he("z",a):n="toggleZoom";break;case he("ArrowLeft",a):i="x";break;case he("ArrowUp",a):i="y";break;case he("ArrowRight",a):i="x",o=!0;break;case he("ArrowDown",a):o=!0,i="y";break;case he("Tab",a):this._focusRoot()}if(i){e.preventDefault();const{currSlide:r}=t;t.options.arrowKeys&&"x"===i&&t.getNumItems()>1?n=o?"next":"prev":r&&r.currZoomLevel>r.zoomLevels.fit&&(r.pan[i]+=o?-80:80,r.panTo(r.pan.x,r.pan.y))}n&&(e.preventDefault(),t[n]())}_onFocusIn(e){const{template:t}=this.pswp;t&&document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}}const ge="cubic-bezier(.4,0,.22,1)";class ye{constructor(e){var t;this.props=e;const{target:r,onComplete:n,transform:i,onFinish:o=()=>{},duration:a=333,easing:s=ge}=e;this.onFinish=o;const l=i?"transform":"opacity",c=null!==(t=e[l])&&void 0!==t?t:"";this._target=r,this._onComplete=n,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{$(r,l,a,s),this._helperTimeout=setTimeout(()=>{r.addEventListener("transitionend",this._onTransitionEnd,!1),r.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},a+500),r.style[l]=c},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),$(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}class ve{constructor(e,t,r){this.velocity=1e3*e,this._dampingRatio=t||.75,this._naturalFrequency=r||12,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,t){let r,n=0;t/=1e3;const i=Math.E**(-this._dampingRatio*this._naturalFrequency*t);if(1===this._dampingRatio)r=this.velocity+this._naturalFrequency*e,n=(e+r*t)*i,this.velocity=n*-this._naturalFrequency+r*i;else if(this._dampingRatio<1){r=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const o=Math.cos(this._dampedFrequency*t),a=Math.sin(this._dampedFrequency*t);n=i*(e*o+r*a),this.velocity=n*-this._naturalFrequency*this._dampingRatio+i*(-this._dampedFrequency*e*a+this._dampedFrequency*r*o)}return n}}class be{constructor(e){this.props=e,this._raf=0;const{start:t,end:r,velocity:n,onUpdate:i,onComplete:o,onFinish:a=()=>{},dampingRatio:s,naturalFrequency:l}=e;this.onFinish=a;const c=new ve(n,s,l);let u=Date.now(),d=t-r;const p=()=>{this._raf&&(d=c.easeFrame(d,Date.now()-u),Math.abs(d)<1&&Math.abs(c.velocity)<50?(i(r),o&&o(),this.onFinish()):(u=Date.now(),i(d+r),this._raf=requestAnimationFrame(p)))};this._raf=requestAnimationFrame(p)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class we{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,t){const r=t?new be(e):new ye(e);return this.activeAnimations.push(r),r.onFinish=()=>this.stop(r),r}stop(e){e.destroy();const t=this.activeAnimations.indexOf(e);t>-1&&this.activeAnimations.splice(t,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>!e.props.isPan||(e.destroy(),!1))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>!e.props.isMainScroll||(e.destroy(),!1))}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}}class _e{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:t}=this.pswp;let{deltaX:r,deltaY:n}=e;if(t&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(t.isZoomable()){let r=-n;1===e.deltaMode?r*=.05:r*=e.deltaMode?1:.002,r=2**r;const i=t.currZoomLevel*r;t.zoomTo(i,{x:e.clientX,y:e.clientY})}}else t.isPannable()&&(1===e.deltaMode&&(r*=18,n*=18),t.panTo(t.pan.x-r,t.pan.y-n))}}class xe{constructor(e,t){var r;const n=t.name||t.className;let i=t.html;if(!1===e.options[n])return;"string"==typeof e.options[n+"SVG"]&&(i=e.options[n+"SVG"]),e.dispatch("uiElementCreate",{data:t});let o="";t.isButton?(o+="pswp__button ",o+=t.className||`pswp__button--${t.name}`):o+=t.className||`pswp__${t.name}`;let a=t.isButton?t.tagName||"button":t.tagName||"div";a=a.toLowerCase();const s=M(o,a);if(t.isButton){"button"===a&&(s.type="button");let{title:r}=t;const{ariaLabel:i}=t;"string"==typeof e.options[n+"Title"]&&(r=e.options[n+"Title"]),r&&(s.title=r);const o=i||r;o&&s.setAttribute("aria-label",o)}s.innerHTML=function(e){if("string"==typeof e)return e;if(!e||!e.isCustomSVG)return"";const t=e;let r='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return r=r.split("%d").join(t.size||32),t.outlineID&&(r+='<use class="pswp__icn-shadow" xlink:href="#'+t.outlineID+'"/>'),r+=t.inner,r+="</svg>",r}(i),t.onInit&&t.onInit(s,e),t.onClick&&(s.onclick=r=>{"string"==typeof t.onClick?e[t.onClick]():"function"==typeof t.onClick&&t.onClick(r,s,e)});const l=t.appendTo||"bar";let c=e.element;"bar"===l?(e.topBar||(e.topBar=M("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),c=e.topBar):(s.classList.add("pswp__hide-on-close"),"wrapper"===l&&(c=e.scrollWrap)),null===(r=c)||void 0===r||r.appendChild(e.applyFilters("uiElement",s,t))}}function Se(e,t,r){e.classList.add("pswp__button--arrow"),e.setAttribute("aria-controls","pswp__items"),t.on("change",()=>{t.options.loop||(e.disabled=r?!(t.currIndex<t.getNumItems()-1):!(t.currIndex>0))})}const Ee={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:Se},ke={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(e,t)=>{Se(e,t,!0)}},Ce={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},Ae={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Te={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(e,t)=>{let r,n=null;const i=t=>{r!==t&&(r=t,((t,r)=>{e.classList.toggle("pswp__preloader--"+t,r)})("active",t))},o=()=>{var e;if(null===(e=t.currSlide)||void 0===e||!e.content.isLoading())return i(!1),void(n&&(clearTimeout(n),n=null));n||(n=setTimeout(()=>{var e;i(!(null===(e=t.currSlide)||void 0===e||!e.content.isLoading())),n=null},t.options.preloaderDelay))};t.on("change",o),t.on("loadComplete",e=>{t.currSlide===e.slide&&o()}),t.ui&&(t.ui.updatePreloaderVisibility=o)}},Le={name:"counter",order:5,onInit:(e,t)=>{t.on("change",()=>{e.innerText=t.currIndex+1+t.options.indexIndicatorSep+t.getNumItems()})}};function De(e,t){e.classList.toggle("pswp--zoomed-in",t)}class Ne{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[Ce,Ee,ke,Ae,Te,Le],e.dispatch("uiRegister"),this.uiElementsData.sort((e,t)=>(e.order||0)-(t.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(e=>{this.registerElement(e)}),e.on("change",()=>{var t;null===(t=e.element)||void 0===t||t.classList.toggle("pswp--one-slide",1===e.getNumItems())}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new xe(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:t,options:r}=this.pswp;if(this.pswp.opener.isClosing||!e||!t)return;let{currZoomLevel:n}=t;if(this.pswp.opener.isOpen||(n=t.zoomLevels.initial),n===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=n;const i=t.zoomLevels.initial-t.zoomLevels.secondary;if(Math.abs(i)<.01||!t.isZoomable())return De(e,!1),void e.classList.remove("pswp--zoom-allowed");e.classList.add("pswp--zoom-allowed");De(e,(n===t.zoomLevels.initial?t.zoomLevels.secondary:t.zoomLevels.initial)<=n),("zoom"===r.imageClickAction||"zoom-or-close"===r.imageClickAction)&&e.classList.add("pswp--click-to-zoom")}}let Ie=class{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}},Pe=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,r=100){var n,i,o;this._filters[e]||(this._filters[e]=[]),null===(n=this._filters[e])||void 0===n||n.push({fn:t,priority:r}),null===(i=this._filters[e])||void 0===i||i.sort((e,t)=>e.priority-t.priority),null===(o=this.pswp)||void 0===o||o.addFilter(e,t,r)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(e=>e.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var r;return null===(r=this._filters[e])||void 0===r||r.forEach(e=>{t[0]=e.fn.apply(this,t)}),t[0]}on(e,t){var r,n;this._listeners[e]||(this._listeners[e]=[]),null===(r=this._listeners[e])||void 0===r||r.push(t),null===(n=this.pswp)||void 0===n||n.on(e,t)}off(e,t){var r;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(e=>t!==e)),null===(r=this.pswp)||void 0===r||r.off(e,t)}dispatch(e,t){var r;if(this.pswp)return this.pswp.dispatch(e,t);const n=new Ie(e,t);return null===(r=this._listeners[e])||void 0===r||r.forEach(e=>{e.call(this,n)}),n}},Oe=class{constructor(e,t){if(this.element=M("pswp__img pswp__img--placeholder",e?"img":"div",t),e){const t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(K(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=V(0,0,e/250)):K(this.element,e,t))}destroy(){var e;null!==(e=this.element)&&void 0!==e&&e.parentNode&&this.element.remove(),this.element=null}},qe=class{constructor(e,t,r){this.instance=t,this.data=e,this.index=r,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=G,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new Oe(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=M("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=M("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,r;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=null!==(t=this.data.src)&&void 0!==t?t:"",n.alt=null!==(r=this.data.alt)&&void 0!==r?r:"",this.state=W,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=Q,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===Q||this.state===Z)&&this.removePlaceholder())}onError(){this.state=Z,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===W,this)}isError(){return this.state===Z}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(K(this.element,e,t),this.isImageContent()&&!this.isError()))){const r=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,r?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==Z,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t;let r=M("pswp__error-msg","div");r.innerText=null!==(e=null===(t=this.instance.options)||void 0===t?void 0:t.errorMsg)&&void 0!==e?e:"",r=this.instance.applyFilters("contentErrorElement",r,this),this.element=M("pswp__content pswp__error-msg-container","div"),this.element.appendChild(r),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===Z)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||J())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!J()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===Q||this.state===Z)&&this.removePlaceholder()))}};function je(e,t,r){const n=t.createContentFromData(e,r);let i;const{options:o}=t;if(o){let a;i=new ie(o,e,-1),a=t.pswp?t.pswp.viewportSize:ee(o,t);const s=re(o,a,e,r);i.update(n.width,n.height,s)}return n.lazyLoad(),i&&n.setDisplayedSize(Math.ceil(n.width*i.initial),Math.ceil(n.height*i.initial)),n}class Me{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(e){const{pswp:t}=this;if(t.dispatch("lazyLoad").defaultPrevented)return;const{preload:r}=t.options,n=void 0===e||e>=0;let i;for(i=0;i<=r[1];i++)this.loadSlideByIndex(t.currIndex+(n?i:-i));for(i=1;i<=r[0];i++)this.loadSlideByIndex(t.currIndex+(n?-i:i))}loadSlideByIndex(e){const t=this.pswp.getLoopedIndex(e);let r=this.getContentByIndex(t);r||(r=function(e,t){const r=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:r}).defaultPrevented)return je(r,t,e)}(t,this.pswp),r&&this.addToCache(r))}getContentBySlide(e){let t=this.getContentByIndex(e.index);return t||(t=this.pswp.createContentFromData(e.data,e.index),this.addToCache(t)),t.setSlide(e),t}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const e=this._cachedItems.findIndex(e=>!e.isAttached&&!e.hasSlide);-1!==e&&this._cachedItems.splice(e,1)[0].destroy()}}removeByIndex(e){const t=this._cachedItems.findIndex(t=>t.index===e);-1!==t&&this._cachedItems.splice(t,1)}getContentByIndex(e){return this._cachedItems.find(t=>t.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}}let Re=class extends Pe{getNumItems(){var e;let t=0;const r=null===(e=this.options)||void 0===e?void 0:e.dataSource;r&&"length"in r?t=r.length:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),r.items&&(t=r.items.length));const n=this.dispatch("numItems",{dataSource:r,numItems:t});return this.applyFilters("numItems",n.numItems,r)}createContentFromData(e,t){return new qe(e,this,t)}getItemData(e){var t;const r=null===(t=this.options)||void 0===t?void 0:t.dataSource;let n={};Array.isArray(r)?n=r[e]:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),n=r.items[e]);let i=n;i instanceof Element&&(i=this._domElementToItemData(i));const o=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var t,r;return null!==(t=this.options)&&void 0!==t&&t.children||null!==(r=this.options)&&void 0!==r&&r.childSelector?function(e,t,r=document){let n=[];if(e instanceof Element)n=[e];else if(e instanceof NodeList||Array.isArray(e))n=Array.from(e);else{const i="string"==typeof e?e:t;i&&(n=Array.from(r.querySelectorAll(i)))}return n}(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},r="A"===e.tagName?e:e.querySelector("a");if(r){t.src=r.dataset.pswpSrc||r.href,r.dataset.pswpSrcset&&(t.srcset=r.dataset.pswpSrcset),t.width=r.dataset.pswpWidth?parseInt(r.dataset.pswpWidth,10):0,t.height=r.dataset.pswpHeight?parseInt(r.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,r.dataset.pswpType&&(t.type=r.dataset.pswpType);const i=e.querySelector("img");var n;if(i)t.msrc=i.currentSrc||i.src,t.alt=null!==(n=i.getAttribute("alt"))&&void 0!==n?n:"";(r.dataset.pswpCropped||r.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,r)}lazyLoadData(e,t){return je(e,this,t)}};const Fe=.003;class Be{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,t=this.pswp.currSlide,{options:r}=e;var n,i;("fade"===r.showHideAnimationType?(r.showHideOpacity=!0,this._thumbBounds=void 0):"none"===r.showHideAnimationType?(r.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=t?.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&t?.content.usePlaceholder()&&(!this.isClosing||!e.mainScroll.isShifted()),this._animateZoom)?this._animateRootOpacity=null!==(n=r.showHideOpacity)&&void 0!==n&&n:(this._animateRootOpacity=!0,this.isOpening&&t&&(t.zoomAndPanToInitial(),t.applyCurrentZoomPan()));if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>Fe,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(e.element&&(e.element.style.opacity=String(Fe)),e.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=null===(i=this.pswp.currSlide)||void 0===i?void 0:i.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")):this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(Fe)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(Fe)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(Fe)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&0!==e.mainScroll.x&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise(e=>{let t=!1,r=!0;var n;(n=this._placeholder,"decode"in n?n.decode().catch(()=>{}):n.complete?Promise.resolve(n):new Promise((e,t)=>{n.onload=()=>e(n),n.onerror=t})).finally(()=>{t=!0,r||e(!0)}),setTimeout(()=>{r=!1,t&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,t;null===(e=this.pswp.element)||void 0===e||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),null===(t=this.pswp.element)||void 0===t||t.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var t;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),null===(t=e.currSlide)||void 0===t||t.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:t}=this,{innerRect:r}=this._thumbBounds,{currSlide:n,viewportSize:i}=t;if(this._croppedZoom&&r&&this._cropContainer1&&this._cropContainer2){const t=-i.x+(this._thumbBounds.x-r.x)+r.w,n=-i.y+(this._thumbBounds.y-r.y)+r.h,o=i.x-r.w,a=i.y-r.h;e?(this._animateTo(this._cropContainer1,"transform",V(t,n)),this._animateTo(this._cropContainer2,"transform",V(o,a))):(U(this._cropContainer1,t,n),U(this._cropContainer2,o,a))}n&&(R(n.pan,r||this._thumbBounds),n.currZoomLevel=this._thumbBounds.w/n.width,e?this._animateTo(n.container,"transform",n.getCurrentTransform()):n.applyCurrentZoomPan())}_animateTo(e,t,r){if(!this._duration)return void(e.style[t]=r);const{animations:n}=this.pswp,i={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{n.activeAnimations.length||this._onAnimationComplete()},target:e};i[t]=r,n.startTransition(i)}}const ze={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class He extends Re{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new X,this.animations=new we,this.mainScroll=new pe(this),this.gestures=new de(this),this.opener=new Be(this),this.keyboard=new me(this),this.contentLoader=new Me(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new _e(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:e}=this.mainScroll;e[0]&&(e[0].el.style.display="block",this.setContent(e[0],this.currIndex-1)),e[2]&&(e[2].el.style.display="block",this.setContent(e[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const t=this.getNumItems();return this.options.loop&&(e>t-1&&(e-=t),e<0&&(e+=t)),H(e,0,t-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var t;null===(t=this.currSlide)||void 0===t||t.zoomTo(...e)}toggleZoom(){var e;null===(e=this.currSlide)||void 0===e||e.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),null===(e=this.element)||void 0===e||e.remove(),this.mainScroll.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((t,r)=>{var n,i;let o=(null!==(n=null===(i=this.currSlide)||void 0===i?void 0:i.index)&&void 0!==n?n:0)-1+r;var a;(this.canLoop()&&(o=this.getLoopedIndex(o)),o===e&&(this.setContent(t,e,!0),1===r))&&(this.currSlide=t.slide,null===(a=t.slide)||void 0===a||a.setIsActive(!0))}),this.dispatch("change")}setContent(e,t,r){if(this.canLoop()&&(t=this.getLoopedIndex(t)),e.slide){if(e.slide.index===t&&!r)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(t<0||t>=this.getNumItems()))return;const n=this.getItemData(t);e.slide=new oe(n,t,this),t===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const t=ee(this.options,this);!e&&z(t,this._prevViewportSize)||(R(this._prevViewportSize,t),this.dispatch("beforeResize"),R(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){var e;this.hasMouse||(this.hasMouse=!0,null===(e=this.element)||void 0===e||e.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,t){this.offset.x=e,this.offset.y=t,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=M("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=M("pswp__bg","div",this.element),this.scrollWrap=M("pswp__scroll-wrap","section",this.element),this.container=M("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new Ne(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(e,t,r){const n=r.dispatch("thumbBounds",{index:e,itemData:t,instance:r});if(n.thumbBounds)return n.thumbBounds;const{element:i}=t;let o,a;if(i&&!1!==r.options.thumbSelector){const e=r.options.thumbSelector||"img";a=i.matches(e)?i:i.querySelector(e)}return a=r.applyFilters("thumbEl",a,t,e),a&&(o=t.thumbCropped?function(e,t,r){const n=e.getBoundingClientRect(),i=n.width/t,o=n.height/r,a=i>o?i:o,s=(n.width-t*a)/2,l=(n.height-r*a)/2,c={x:n.left+s,y:n.top+l,w:t*a};return c.innerRect={w:n.width,h:n.height,x:s,y:l},c}(a,t.width||t.w||0,t.height||t.h||0):function(e){const t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width}}(a)),r.applyFilters("thumbBounds",o,t,e)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...ze,...e}}}function Ve(e,t,r){const n=document.createElement(t);return e&&(n.className=e),r&&r.appendChild(n),n}function Ue(e,t,r){e.style.width="number"==typeof t?`${t}px`:t,e.style.height="number"==typeof r?`${r}px`:r}const $e="idle",Ke="loading",Ge="loaded",We="error";function Qe(e,t,r=document){let n=[];if(e instanceof Element)n=[e];else if(e instanceof NodeList||Array.isArray(e))n=Array.from(e);else{const i="string"==typeof e?e:t;i&&(n=Array.from(r.querySelectorAll(i)))}return n}function Ze(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}class Je{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class Ye{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,r=100){var n,i,o;this._filters[e]||(this._filters[e]=[]),null===(n=this._filters[e])||void 0===n||n.push({fn:t,priority:r}),null===(i=this._filters[e])||void 0===i||i.sort((e,t)=>e.priority-t.priority),null===(o=this.pswp)||void 0===o||o.addFilter(e,t,r)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(e=>e.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var r;return null===(r=this._filters[e])||void 0===r||r.forEach(e=>{t[0]=e.fn.apply(this,t)}),t[0]}on(e,t){var r,n;this._listeners[e]||(this._listeners[e]=[]),null===(r=this._listeners[e])||void 0===r||r.push(t),null===(n=this.pswp)||void 0===n||n.on(e,t)}off(e,t){var r;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(e=>t!==e)),null===(r=this.pswp)||void 0===r||r.off(e,t)}dispatch(e,t){var r;if(this.pswp)return this.pswp.dispatch(e,t);const n=new Je(e,t);return null===(r=this._listeners[e])||void 0===r||r.forEach(e=>{e.call(this,n)}),n}}class Xe{constructor(e,t){if(this.element=Ve("pswp__img pswp__img--placeholder",e?"img":"div",t),e){const t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(Ue(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=function(e,t,r){let n=`translate3d(${e}px,0px,0)`;return void 0!==r&&(n+=` scale3d(${r},${r},1)`),n}(0,0,e/250)):Ue(this.element,e,t))}destroy(){var e;null!==(e=this.element)&&void 0!==e&&e.parentNode&&this.element.remove(),this.element=null}}class et{constructor(e,t,r){this.instance=t,this.data=e,this.index=r,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=$e,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new Xe(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=Ve("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=Ve("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,r;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=null!==(t=this.data.src)&&void 0!==t?t:"",n.alt=null!==(r=this.data.alt)&&void 0!==r?r:"",this.state=Ke,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=Ge,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===Ge||this.state===We)&&this.removePlaceholder())}onError(){this.state=We,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===Ke,this)}isError(){return this.state===We}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(Ue(this.element,e,t),this.isImageContent()&&!this.isError()))){const r=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,r?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==We,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t;let r=Ve("pswp__error-msg","div");r.innerText=null!==(e=null===(t=this.instance.options)||void 0===t?void 0:t.errorMsg)&&void 0!==e?e:"",r=this.instance.applyFilters("contentErrorElement",r,this),this.element=Ve("pswp__content pswp__error-msg-container","div"),this.element.appendChild(r),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===We)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Ze())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Ze()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===Ge||this.state===We)&&this.removePlaceholder()))}}function tt(e,t,r,n,i){let o=0;if(t.paddingFn)o=t.paddingFn(r,n,i)[e];else if(t.padding)o=t.padding[e];else{const r="padding"+e[0].toUpperCase()+e.slice(1);t[r]&&(o=t[r])}return Number(o)||0}class rt{constructor(e,t,r,n){this.pswp=n,this.options=e,this.itemData=t,this.index=r,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,r){const n={x:e,y:t};this.elementSize=n,this.panAreaSize=r;const i=r.x/n.x,o=r.y/n.y;this.fit=Math.min(1,i<o?i:o),this.fill=Math.min(1,i>o?i:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",r=this.options[t];if(r)return"function"==typeof r?r(this):"fill"===r?this.fill:"fit"===r?this.fit:Number(r)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function nt(e,t,r){const n=t.createContentFromData(e,r);let i;const{options:o}=t;if(o){let a;i=new rt(o,e,-1),a=t.pswp?t.pswp.viewportSize:function(e,t){if(e.getViewportSizeFn){const r=e.getViewportSizeFn(e,t);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(o,t);const s=function(e,t,r,n){return{x:t.x-tt("left",e,t,r,n)-tt("right",e,t,r,n),y:t.y-tt("top",e,t,r,n)-tt("bottom",e,t,r,n)}}(o,a,e,r);i.update(n.width,n.height,s)}return n.lazyLoad(),i&&n.setDisplayedSize(Math.ceil(n.width*i.initial),Math.ceil(n.height*i.initial)),n}class it extends Ye{getNumItems(){var e;let t=0;const r=null===(e=this.options)||void 0===e?void 0:e.dataSource;r&&"length"in r?t=r.length:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),r.items&&(t=r.items.length));const n=this.dispatch("numItems",{dataSource:r,numItems:t});return this.applyFilters("numItems",n.numItems,r)}createContentFromData(e,t){return new et(e,this,t)}getItemData(e){var t;const r=null===(t=this.options)||void 0===t?void 0:t.dataSource;let n={};Array.isArray(r)?n=r[e]:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),n=r.items[e]);let i=n;i instanceof Element&&(i=this._domElementToItemData(i));const o=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var t,r;return null!==(t=this.options)&&void 0!==t&&t.children||null!==(r=this.options)&&void 0!==r&&r.childSelector?Qe(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},r="A"===e.tagName?e:e.querySelector("a");if(r){t.src=r.dataset.pswpSrc||r.href,r.dataset.pswpSrcset&&(t.srcset=r.dataset.pswpSrcset),t.width=r.dataset.pswpWidth?parseInt(r.dataset.pswpWidth,10):0,t.height=r.dataset.pswpHeight?parseInt(r.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,r.dataset.pswpType&&(t.type=r.dataset.pswpType);const i=e.querySelector("img");var n;if(i)t.msrc=i.currentSrc||i.src,t.alt=null!==(n=i.getAttribute("alt"))&&void 0!==n?n:"";(r.dataset.pswpCropped||r.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,r)}lazyLoadData(e,t){return nt(e,this,t)}}class ot extends it{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){Qe(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if("button"in(t=e)&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||window.pswp)return;var t;let r={x:e.clientX,y:e.clientY};!r.x&&!r.y&&(r=null);let n=this.getClickedIndex(e);n=this.applyFilters("clickedIndex",n,e,this);const i={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,i,r))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);const t=e.target,r=Qe(this.options.children,this.options.childSelector,e.currentTarget).findIndex(e=>e===t||e.contains(t));return-1!==r?r:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,t,r){if(window.pswp||!this.options)return!1;if(!t&&this.options.gallery&&this.options.children){const e=Qe(this.options.gallery);e[0]&&(t={gallery:e[0]})}return this.options.index=e,this.options.initialPointerPos=r,this.shouldOpen=!0,this.preload(e,t),!0}preload(e,t){const{options:r}=this;t&&(r.dataSource=t);const n=[],i=typeof r.pswpModule;if("function"==typeof(o=r.pswpModule)&&o.prototype&&o.prototype.goTo)n.push(Promise.resolve(r.pswpModule));else{if("string"===i)throw new Error("pswpModule as string is no longer supported");if("function"!==i)throw new Error("pswpModule is not valid");n.push(r.pswpModule())}var o;"function"==typeof r.openPromise&&n.push(r.openPromise()),!1!==r.preloadFirstSlide&&e>=0&&(this._preloadedContent=function(e,t){const r=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:r}).defaultPrevented)return nt(r,t,e)}(e,this));const a=++this._uid;Promise.all(n).then(e=>{if(this.shouldOpen){const t=e[0];this._openPhotoswipe(t,a)}})}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const r="object"==typeof e?new e.default(this.options):new e(this.options);this.pswp=r,window.pswp=r,Object.keys(this._listeners).forEach(e=>{var t;null===(t=this._listeners[e])||void 0===t||t.forEach(t=>{r.on(e,t)})}),Object.keys(this._filters).forEach(e=>{var t;null===(t=this._filters[e])||void 0===t||t.forEach(t=>{r.addFilter(e,t.fn,t.priority)})}),this._preloadedContent&&(r.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),r.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),r.init()}destroy(){var e;null===(e=this.pswp)||void 0===e||e.destroy(),this.shouldOpen=!1,this._listeners={},Qe(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)})}}const at=e=>Math.min(100,Math.max(0,Math.round(e))),st=()=>{const e=document.querySelector(".js-limit-scroll-progress-bar"),t=document.querySelector(".c-progress__bar"),r=document.querySelector(".c-btn__close-progress");if(!t&&!r)return;const{documentElement:n}=document,i=n.scrollTop;if(t){let r=n.scrollHeight-n.clientHeight;if(!r)return;e&&(r=e.scrollHeight-n.clientHeight+(window.pageYOffset+e.getBoundingClientRect().top)),t.style.width=`${at(i/r*100)}%`}if(r){const e=document.querySelector(".js-content-header"),t=document.querySelector(".js-limit-scroll-close-article-btn");if(e&&t){const o=window.pageYOffset+e.getBoundingClientRect().bottom,a=window.pageYOffset+t.getBoundingClientRect().bottom-n.clientHeight-o;if(a>0){const e=at((i-o)/a*100);r.style.setProperty("--progress",`${e}`),r.parentElement?.classList.toggle("c-btn--close-progress-complete",e>=100)}}}},lt=()=>{const e=document.querySelector("#mbrs-comments-container"),t=document.querySelector(".c-scroll-to-top-comment");if(!e||!t)return;t.style.display="none",t.addEventListener("click",()=>{document.getElementById("graphcomment")?.scrollIntoView({behavior:"smooth"})});let r=!1;const n=()=>{const{top:r,bottom:n}=e.getBoundingClientRect(),i=r<-400,o=n<window.innerHeight/2;t.style.display=i&&!o?"flex":"none"},i=e=>{e.offsetHeight>500?r||(r=!0,window.addEventListener("scroll",n,{passive:!0}),n()):r&&(r=!1,window.removeEventListener("scroll",n),t.style.display="none")},o=e=>{i(e),(e=>{new ResizeObserver(()=>{i(e)}).observe(e)})(e)},a=e=>{try{if("complete"===e.contentDocument?.readyState)return void o(e)}catch{}e.addEventListener("load",()=>o(e),{once:!0})};if((()=>{const t=e.querySelector("iframe");return!!t&&(a(t),!0)})())return;const s=new MutationObserver(e=>{e.some(e=>Array.from(e.addedNodes).some(e=>{if(e instanceof HTMLIFrameElement)return a(e),!0;if(e instanceof HTMLElement){const t=e.querySelector("iframe");if(t)return a(t),!0}return!1}))&&s.disconnect()});s.observe(e,{childList:!0,subtree:!0})},ct="#page-content",ut="#text-tooltip",dt="c-text-tooltip--show",pt=["#page-content .c-content p","#page-content .c-content h2","#page-content .c-content h3","#page-content .c-content h4","#page-content .c-content h5","#page-content .c-content h6","#page-content .c-content li","#page-content .c-content span","#page-content header span","#page-content header h1","#page-content header h2"],ft=(e,t)=>e instanceof Element&&t.some(t=>e.matches(t)),ht=()=>{const e=document.querySelector(`${ut}`);e&&e.classList.remove(dt)},mt=({type:e})=>{const t=window.getSelection();if("selectionchange"===e)return void ht();if(!t?.rangeCount)return;const r=t.getRangeAt(0),n=t.toString().trim();if(n.length){const e=((e,t)=>{const r=e.startContainer.nodeType===Node.ELEMENT_NODE?e.startContainer:e.startContainer.parentElement,n=e.endContainer.nodeType===Node.ELEMENT_NODE?e.endContainer:e.endContainer.parentElement;return!!r&&ft(r,t)||!!n&&ft(n,t)})(r,pt),i=(e=>{if(!e.focusNode)return null;const t=e.anchorNode?.compareDocumentPosition(e.focusNode);return t?(4&t)>0:e.anchorOffset<e.focusOffset})(t)||!1;return void(e&&((e,t,r)=>{const n=document.querySelector(`${ct} ${ut}`),i=document.querySelector(`${ct}`),o=document.querySelectorAll(`${ct} ${ut} .tooltip-btn`);if(!n||!i)return void console.warn("Text tooltip : Tooltip or it's parent are not found in the DOM");Array.from(o).forEach(e=>{e.setAttribute("data-selected-text",r)});const a=e.getClientRects(),s=a[t?a.length-1:0];n.style.top=s.top-i.getBoundingClientRect().top-(n.offsetHeight+10)+"px",s.width<n.offsetWidth?n.style.left=s.left-i.getBoundingClientRect().left+s.width/2-n.offsetWidth/2+"px":n.style.left=t?s.left-i.getBoundingClientRect().left+s.width-n.offsetWidth+"px":s.left-i.getBoundingClientRect().left+"px",n.classList.add(dt)})(r,i,n))}ht()},gt=(e=document.querySelector(".c-search-form--button"))=>{e&&e.addEventListener("click",e=>{(e=>{const{target:t}=e;if(t instanceof Element){const r=t.closest(".c-search-form--button");r&&(e.preventDefault(),r.classList.remove("c-search-form--button"))}})(e)})},yt=e=>"ArrowLeft"===e.code||39===e.keyCode,vt=e=>"ArrowRight"===e.code||37===e.keyCode,bt=(e=document.querySelectorAll(".js-tabs"))=>{e.length>0&&e.forEach(e=>{const t=e.querySelectorAll('[role="tab"]');t.forEach(t=>{t.addEventListener("click",t=>{(({tabsContainerElement:e,event:t})=>{t.preventDefault();const r=t.target;if(!(r instanceof HTMLButtonElement))return;const n=e.querySelectorAll('[role="tab"]'),i=e.querySelectorAll('[role="tabpanel"]'),o=r.getAttribute("aria-controls"),a=Object.values(i).find(e=>e.id===o);n.forEach(e=>{e.setAttribute("aria-selected","false")}),i.forEach(e=>{e.setAttribute("aria-hidden","true")}),r.setAttribute("aria-selected","true"),a&&a.removeAttribute("aria-hidden")})({tabsContainerElement:e,event:t})})});const r=e.querySelector('[role="tablist"]');if(r&&t.length>0){let e=0;r.addEventListener("keydown",r=>{r instanceof KeyboardEvent&&(yt(r)||vt(r))&&(t[e].setAttribute("tabindex","-1"),yt(r)?(e+=1,e>=t.length&&(e=0)):vt(r)&&(e-=1,e<0&&(e=t.length-1)),t[e].setAttribute("tabindex","0"),t[e].focus())})}})},wt=e=>{const[t,r]=e.split("h").map(Number);return 60*t+r},_t=()=>{const e=new Date;return 60*e.getHours()+e.getMinutes()},xt=()=>{const e=document.querySelectorAll(".c-timeline__time");if(!e||e.length<2)return;const t=document.querySelector(".c-timeline__progress-bar"),{currentIntervalStartTime:r,currentIntervalEndTime:n,currentIntervalIndex:i}=(e=>{const t=_t();let r=null,n=null,i=-1;return Array.from(e).find((e,o,a)=>{if(o===a.length-1)return!1;const s=e.textContent,l=a[o+1].textContent;if(!s||!l)return!1;const c=wt(s),u=wt(l);return t>=c&&t<u&&(r=s,n=l,i=o,!0)}),{currentIntervalStartTime:r,currentIntervalEndTime:n,currentIntervalIndex:i}})(e);if(!r||!n)return;const o=((e,t)=>{const r=_t();return r<e||r>t?0:(r-e)/(t-e)})(wt(r),wt(n));if(t instanceof HTMLElement){if(t.classList.contains("c-timeline__progress-bar--is-desktop")&&e.length>=5){const e="172px / 2";switch(i){case 0:t.style.width=`calc(${e} + (((${e} + 25% - ${e} / 2) - ${e}) * ${o})`;break;case 1:t.style.width=`calc((${e} + 25% - ${e} / 2) + (((50%) - (${e} + 25% - ${e} / 2)) * ${o})`;break;case 2:t.style.width=`calc((50%) + (((75% - ${e} / 2) - (50%)) * ${o})`;break;case 3:t.style.width=`calc((75% - ${e} / 2) + (((100% - ${e}) - (75% - ${e} / 2)) * ${o}`;break;default:t.style.width="0%"}}if(t.classList.contains("c-timeline__progress-bar--is-mobile")){const e="45px / 2",a="20px";switch(i){case 0:case 1:case 2:case 3:t.style.width=`calc((${a} + ${e}) + (((60% + ${e}) - (${a} + ${e})) * ${o})`;break;default:t.style.width="0%"}if(1===i||2===i||3===i){const e=document.querySelectorAll(".c-timeline__time"),t=document.querySelectorAll(".c-timeline__event");e.length>0&&t.length>0&&(e[0].textContent=r,e[1].textContent=n,t[0].textContent=t[i].textContent,t[1].textContent=t[i+1].textContent)}}}},St="c-icon-item__container--is-highlighted",Et=()=>{const e=document.querySelector(".c-toolbar");if(e){const t=window.location.origin+window.location.pathname,r=Array.from(e.querySelectorAll(".c-icon-item__container"));(e=>{e.find(e=>e.classList.contains(St))?.classList.remove(St)})(r),r.find(e=>e.querySelector("a")?.getAttribute("href")===t)?.classList.add(St)}},kt=e=>{const t=e||document.querySelector(".c-map-towns");if(!t)return void new MutationObserver((e,t)=>{if(typeof document<"u"){const e=document.querySelector(".c-map-towns");e&&(t.disconnect(),kt(e))}}).observe(document.body,{childList:!0,subtree:!0});const r=()=>{const e=t.querySelectorAll(".js-city-marker");if(0===e.length)return!1;const r=(t=0)=>{let n=!0;e.forEach(e=>{if("false"===e.getAttribute("aria-hidden"))return;const t=e.querySelector(".js-city-anchor"),r=e.querySelector(".js-city-text"),i=e.querySelector(".js-city-bg");if(!(t instanceof SVGGraphicsElement&&r instanceof SVGTextElement&&i instanceof SVGRectElement))return;const o=t.getBBox();if(o.width>0){const{x:t,y:n,width:a,height:s}=o,l=e.getAttribute("data-scale"),c=l?` scale(${l})`:"";e.setAttribute("transform",`translate(${t+a/2}, ${n+s/2})${c}`);const u=r.getBBox(),d=8,p=4,f=8,h=u.width+d,m=u.height+p;i.setAttribute("width",`${h}`),i.setAttribute("height",`${m}`),i.setAttribute("x",""+-h/2),i.setAttribute("y",""+(-m-f));const g=-m/2-f;r.setAttribute("y",`${g}`),e.setAttribute("aria-hidden","false")}else n=!1}),!n&&t<12&&requestAnimationFrame(()=>r(t+1))};return requestAnimationFrame(()=>r()),!0};r()||new MutationObserver((e,t)=>{r()&&t.disconnect()}).observe(t,{childList:!0,subtree:!0})},Ct={10:[{id:"10387",name:"Troyes"},{id:"10323",name:"Romilly-sur-Seine"},{id:"10033",name:"Bar-sur-Aube"}],11:[{id:"11262",name:"Narbonne"},{id:"11069",name:"Carcassonne"},{id:"11076",name:"Castelnaudary"}],12:[{id:"12202",name:"Rodez"},{id:"12145",name:"Millau"},{id:"12300",name:"Villefranche-de-Rouergue"}],13:[{id:"13055",name:"Marseille"},{id:"13001",name:"Aix-en-Provence"},{id:"13004",name:"Arles"}],14:[{id:"14118",name:"Caen"},{id:"14366",name:"Lisieux"},{id:"14762",name:"Vire Normandie"}],15:[{id:"15014",name:"Aurillac"},{id:"15187",name:"Saint-Flour"},{id:"15120",name:"Mauriac"}],16:[{id:"16015",name:"Angoulême"},{id:"16102",name:"Cognac"},{id:"16028",name:"Barbezieux-Saint-Hilaire"}],17:[{id:"17300",name:"La Rochelle"},{id:"17415",name:"Saintes"},{id:"17299",name:"Rochefort"}],18:[{id:"18033",name:"Bourges"},{id:"18279",name:"Vierzon"},{id:"18197",name:"Saint-Amand-Montrond"}],19:[{id:"19031",name:"Brive-la-Gaillarde"},{id:"19272",name:"Tulle"},{id:"19275",name:"Ussel"}],21:[{id:"21231",name:"Dijon"},{id:"21054",name:"Beaune"},{id:"21038",name:"Auxonne"}],22:[{id:"22278",name:"Saint-Brieuc"},{id:"22113",name:"Lannion"},{id:"22093",name:"Lamballe-Armor"}],23:[{id:"23096",name:"Guéret"},{id:"23176",name:"La Souterraine"},{id:"23008",name:"Aubusson"}],24:[{id:"24322",name:"Périgueux"},{id:"24037",name:"Bergerac"},{id:"24520",name:"Sarlat-la-Canéda"}],25:[{id:"25056",name:"Besançon"},{id:"25388",name:"Montbéliard"},{id:"25462",name:"Pontarlier"}],26:[{id:"26362",name:"Valence"},{id:"26198",name:"Montélimar"},{id:"26235",name:"Pierrelatte"}],27:[{id:"27229",name:"Évreux"},{id:"27681",name:"Vernon"},{id:"27375",name:"Louviers"}],28:[{id:"28085",name:"Chartres"},{id:"28134",name:"Dreux"},{id:"28088",name:"Châteaudun"}],29:[{id:"29019",name:"Brest"},{id:"29232",name:"Quimper"},{id:"29039",name:"Concarneau"}],30:[{id:"30189",name:"Nîmes"},{id:"30007",name:"Alès"},{id:"30028",name:"Bagnols-sur-Cèze"}],31:[{id:"31555",name:"Toulouse"},{id:"31483",name:"Saint-Gaudens"},{id:"31033",name:"Auterive"}],32:[{id:"32013",name:"Auch"},{id:"32160",name:"L'Isle-Jourdain"},{id:"32107",name:"Condom"}],33:[{id:"33063",name:"Bordeaux"},{id:"33529",name:"La Teste-de-Buch"},{id:"33243",name:"Libourne"}],34:[{id:"34172",name:"Montpellier"},{id:"34032",name:"Béziers"},{id:"34301",name:"Sète"}],35:[{id:"35238",name:"Rennes"},{id:"35288",name:"Saint-Malo"},{id:"35115",name:"Fougères"}],36:[{id:"36044",name:"Châteauroux"},{id:"36088",name:"Issoudun"},{id:"36018",name:"Le Blanc"}],37:[{id:"37261",name:"Tours"},{id:"37003",name:"Amboise"},{id:"37072",name:"Chinon"}],38:[{id:"38185",name:"Grenoble"},{id:"38544",name:"Vienne"},{id:"38053",name:"Bourgoin-Jallieu"}],39:[{id:"39198",name:"Dole"},{id:"39300",name:"Lons-le-Saunier"},{id:"39478",name:"Saint-Claude"}],40:[{id:"40192",name:"Mont-de-Marsan"},{id:"40088",name:"Dax"},{id:"40046",name:"Biscarrosse"}],41:[{id:"41018",name:"Blois"},{id:"41194",name:"Romorantin-Lanthenay"},{id:"41269",name:"Vendôme"}],42:[{id:"42218",name:"Saint-Étienne"},{id:"42187",name:"Roanne"},{id:"42147",name:"Montbrison"}],43:[{id:"43157",name:"Le Puy-en-Velay"},{id:"43137",name:"Monistrol-sur-Loire"},{id:"43040",name:"Brioude"}],44:[{id:"44109",name:"Nantes"},{id:"44184",name:"Saint-Nazaire"},{id:"44131",name:"Pornic"}],45:[{id:"45234",name:"Orléans"},{id:"45208",name:"Montargis"},{id:"45155",name:"Gien"}],46:[{id:"46042",name:"Cahors"},{id:"46102",name:"Figeac"},{id:"46127",name:"Gourdon"}],47:[{id:"47001",name:"Agen"},{id:"47323",name:"Villeneuve-sur-Lot"},{id:"47157",name:"Marmande"}],48:[{id:"48095",name:"Mende"},{id:"48140",name:"Saint-Chély-d'Apcher"},{id:"48080",name:"Langogne"}],49:[{id:"49007",name:"Angers"},{id:"49099",name:"Cholet"},{id:"49328",name:"Saumur"}],50:[{id:"50129",name:"Cherbourg-en-Cotentin"},{id:"50502",name:"Saint-Lô"},{id:"50218",name:"Granville"}],51:[{id:"51454",name:"Reims"},{id:"51108",name:"Châlons-en-Champagne"},{id:"51230",name:"Épernay"}],52:[{id:"52448",name:"Saint-Dizier"},{id:"52121",name:"Chaumont"},{id:"52269",name:"Langres"}],53:[{id:"53130",name:"Laval"},{id:"53062",name:"Château-Gontier-sur-Mayenne"},{id:"53147",name:"Mayenne"}],54:[{id:"54395",name:"Nancy"},{id:"54329",name:"Lunéville"},{id:"54528",name:"Toul"}],55:[{id:"55545",name:"Verdun"},{id:"55029",name:"Bar-le-Duc"},{id:"55122",name:"Commercy"}],56:[{id:"56121",name:"Lorient"},{id:"56260",name:"Vannes"},{id:"56178",name:"Pontivy"}],57:[{id:"57463",name:"Metz"},{id:"57672",name:"Thionville"},{id:"57227",name:"Forbach"}],58:[{id:"58194",name:"Nevers"},{id:"58086",name:"Cosne-Cours-sur-Loire"},{id:"58095",name:"Decize"}],59:[{id:"59350",name:"Lille"},{id:"59183",name:"Dunkerque"},{id:"59606",name:"Valenciennes"}],60:[{id:"60057",name:"Beauvais"},{id:"60159",name:"Compiègne"},{id:"60175",name:"Creil"}],61:[{id:"61001",name:"Alençon"},{id:"61169",name:"Flers"},{id:"61006",name:"Argentan"}],62:[{id:"62193",name:"Calais"},{id:"62041",name:"Arras"},{id:"62160",name:"Boulogne-sur-Mer"}],63:[{id:"63113",name:"Clermont-Ferrand"},{id:"63178",name:"Issoire"},{id:"63430",name:"Thiers"}],64:[{id:"64445",name:"Pau"},{id:"64102",name:"Bayonne"},{id:"64260",name:"Hendaye"}],65:[{id:"65440",name:"Tarbes"},{id:"65258",name:"Lannemezan"},{id:"65025",name:"Argelès-Gazost"}],66:[{id:"66136",name:"Perpignan"},{id:"66049",name:"Céret"},{id:"66149",name:"Prades"}],67:[{id:"67482",name:"Strasbourg"},{id:"67180",name:"Haguenau"},{id:"67462",name:"Sélestat"}],68:[{id:"68224",name:"Mulhouse"},{id:"68066",name:"Colmar"},{id:"68297",name:"Saint-Louis"}],69:[{id:"69123",name:"Lyon"},{id:"69264",name:"Villefranche-sur-Saône"},{id:"69091",name:"Givors"}],70:[{id:"70550",name:"Vesoul"},{id:"70285",name:"Héricourt"},{id:"70310",name:"Lure"}],71:[{id:"71076",name:"Chalon-sur-Saône"},{id:"71270",name:"Mâcon"},{id:"71153",name:"Le Creusot"}],72:[{id:"72181",name:"Le Mans"},{id:"72154",name:"La Flèche"},{id:"72264",name:"Sablé-sur-Sarthe"}],73:[{id:"73065",name:"Chambéry"},{id:"73011",name:"Albertville"},{id:"73248",name:"Saint-Jean-de-Maurienne"}],74:[{id:"74010",name:"Annecy"},{id:"74281",name:"Thonon-les-Bains"},{id:"74012",name:"Annemasse"}],75:[{id:"75056",name:"Paris"}],76:[{id:"76351",name:"Le Havre"},{id:"76540",name:"Rouen"},{id:"76217",name:"Dieppe"}],77:[{id:"77284",name:"Meaux"},{id:"77108",name:"Chelles"},{id:"77288",name:"Melun"}],78:[{id:"78646",name:"Versailles"},{id:"78361",name:"Mantes-la-Jolie"},{id:"78172",name:"Conflans-Sainte-Honorine"}],79:[{id:"79191",name:"Niort"},{id:"79049",name:"Bressuire"},{id:"79329",name:"Thouars"}],80:[{id:"80021",name:"Amiens"},{id:"80001",name:"Abbeville"},{id:"80016",name:"Albert"}],81:[{id:"81004",name:"Albi"},{id:"81065",name:"Castres"},{id:"81105",name:"Graulhet"}],82:[{id:"82121",name:"Montauban"},{id:"82033",name:"Castelsarrasin"},{id:"82037",name:"Caussade"}],83:[{id:"83137",name:"Toulon"},{id:"83061",name:"Fréjus"},{id:"83050",name:"Draguignan"}],84:[{id:"84007",name:"Avignon"},{id:"84031",name:"Carpentras"},{id:"84087",name:"Orange"}],85:[{id:"85191",name:"La Roche-sur-Yon"},{id:"85194",name:"Les Sables-d'Olonne"},{id:"85047",name:"Challans"}],86:[{id:"86194",name:"Poitiers"},{id:"86066",name:"Châtellerault"},{id:"86070",name:"Chauvigny"}],87:[{id:"87085",name:"Limoges"},{id:"87154",name:"Saint-Junien"},{id:"87187",name:"Saint-Yrieix-la-Perche"}],88:[{id:"88160",name:"Épinal"},{id:"88413",name:"Saint-Dié-des-Vosges"},{id:"88196",name:"Gérardmer"}],89:[{id:"89024",name:"Auxerre"},{id:"89387",name:"Sens"},{id:"89206",name:"Joigny"}],90:[{id:"90010",name:"Belfort"},{id:"90081",name:"Réchésy"}],91:[{id:"91228",name:"Évry-Courcouronnes"},{id:"91223",name:"Étampes"},{id:"91692",name:"Les Ulis"}],92:[{id:"92012",name:"Boulogne-Billancourt"}],93:[{id:"93066",name:"Saint-Denis"}],94:[{id:"94081",name:"Vitry-sur-Seine"}],95:[{id:"95018",name:"Argenteuil"},{id:"95487",name:"Persan"},{id:"95351",name:"Louvres"}],971:[{id:"97101",name:"Les Abymes"},{id:"97128",name:"Sainte-Anne"},{id:"97118",name:"Petit-Bourg"}],972:[{id:"97209",name:"Fort-de-France"},{id:"97224",name:"Saint-Joseph"},{id:"97220",name:"Rivière-Pilote"}],973:[{id:"97311",name:"Saint-Laurent-du-Maroni"},{id:"97304",name:"Kourou"}],974:[{id:"97411",name:"Saint-Denis"},{id:"97416",name:"Saint-Pierre"},{id:"97409",name:"Saint-André"}],"03":[{id:"03185",name:"Montluçon"},{id:"03310",name:"Vichy"},{id:"03190",name:"Moulins"}],"04":[{id:"04112",name:"Manosque"},{id:"04070",name:"Digne-les-Bains"},{id:"04209",name:"Sisteron"}],"09":[{id:"09225",name:"Pamiers"},{id:"09261",name:"Saint-Girons"},{id:"09160",name:"Lavelanet"}],"01":[{id:"01053",name:"Bourg-en-Bresse"},{id:"01283",name:"Oyonnax"},{id:"01033",name:"Valserhône"}],"06":[{id:"06088",name:"Nice"},{id:"06029",name:"Cannes"},{id:"06083",name:"Menton"}],"2B":[{id:"2B033",name:"Bastia"},{id:"2B096",name:"Corte"},{id:"2B050",name:"Calvi"}],"2A":[{id:"2A004",name:"Ajaccio"},{id:"2A247",name:"Porto-Vecchio"},{id:"2A032",name:"Bastelicaccia"}],"02":[{id:"02691",name:"Saint-Quentin"},{id:"02722",name:"Soissons"},{id:"02408",name:"Laon"}],"07":[{id:"07010",name:"Annonay"},{id:"07019",name:"Aubenas"},{id:"07324",name:"Tournon-sur-Rhône"}],"05":[{id:"05061",name:"Gap"},{id:"05023",name:"Briançon"},{id:"05046",name:"Embrun"}],"08":[{id:"08105",name:"Charleville-Mézières"},{id:"08362",name:"Rethel"},{id:"08190",name:"Givet"}]},At=/<path\b([^>]*?)\/>/g,Tt=/\b([:\w-]+)="([^"]*)"/g;var Lt=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(Lt||{});const Dt=e=>{window.location.href=e},Nt=(e,t)=>{const r=document.createDocumentFragment();return e.forEach(e=>{const n=((e,t)=>{const r=e.id,n=e.url,i=e.name;if(!r||!n)return null;const o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d",e.path),o.setAttribute("class","c-map-towns__path c-map-towns__zoom-town"),o.setAttribute("data-url",n);const a=((e,t)=>t.get(e))(r,t);if(a&&a.forEach(e=>{o.classList.add(e)}),i){const e=document.createElementNS("http://www.w3.org/2000/svg","title");e.textContent=i,o.appendChild(e)}return o})(e,t);n&&r.appendChild(n)}),r};let It=!1;const Pt=()=>{if(It)return;if(!document.querySelector(".c-map-towns"))return void new MutationObserver((e,t)=>{typeof document<"u"&&document.querySelector(".c-map-towns")&&(t.disconnect(),Pt())}).observe(document.body,{childList:!0,subtree:!0});const e=window.layout===Lt.MOBILE,t=document.querySelector(".c-map-towns__map"),r=document.querySelector(".c-map-towns__droms"),n=document.querySelector(".c-map-towns__zooms"),i=e=>{const{target:t}=e;if(!(t instanceof Element))return;const r=t.closest(".js-city-marker");if(r){const e=r.getAttribute("data-url");return void(e&&Dt(e))}const n=t.closest(".c-map-towns__zoom-item")?.getAttribute("data-city-url");if(n)return void Dt(n);const i=t.closest(".c-map-towns__dept-trigger")?.getAttribute("data-url");i&&Dt(i)};if(e)return t?.addEventListener("click",i),r?.addEventListener("click",i),n?.addEventListener("click",i),void(It=!0);const o=document.getElementById("js-zoom-overlay"),a=document.getElementById("js-zoom-svg"),s=document.getElementById("js-zoom-group"),l=document.getElementById("js-zoom-close");if(!(o instanceof HTMLElement&&a instanceof SVGSVGElement&&s instanceof SVGGElement&&l instanceof HTMLElement))return void requestAnimationFrame(Pt);It=!0;const c=document.getElementById("js-zoom-label"),u=document.getElementById("js-zoom-title"),d=document.getElementById("js-town-sprite-data"),p=new Map,f=new Map;let h=null;const m=()=>{if(h)return h;const e=d instanceof HTMLScriptElement?JSON.parse(d.textContent||'""'):"";return t=(e=>{const t=[];for(const r of e.matchAll(At)){const e=r[1];if(!e)continue;const n=new Map;for(const t of e.matchAll(Tt)){const[,e,r]=t;e&&n.set(e,r||"")}const i=n.get("id"),o=n.get("d"),a=n.get("data-name"),s=n.get("data-url");!i||!o||!a||!s||t.push({id:i,path:o,name:a,url:s})}return t})(e),h=new Map(t.map(e=>[e.id,e])),h;var t},g=()=>{o.setAttribute("aria-hidden","true"),s.replaceChildren()},y=(e,t)=>{const r=Ct[e]||[];if(0===r.length)return;const n=document.createDocumentFragment();r.forEach(r=>{const i=((e,t)=>e.startsWith("97")?document.querySelector(`path[id="town-${t}-drom"]`)?.getAttribute("d")||null:m().get(`town-${t}`)?.path||null)(e,r.id);if(!i)return;const o=((e,t,r)=>{const n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttribute("class","js-city-marker c-map-towns__city-marker"),n.setAttribute("aria-hidden","true"),n.setAttribute("data-scale",r.toString());const i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("d",t),i.setAttribute("class","js-city-anchor c-map-towns__city-anchor");const o=document.createElementNS("http://www.w3.org/2000/svg","circle");o.setAttribute("class","c-map-towns__city-circle"),o.setAttribute("r","5"),o.setAttribute("fill","white"),o.setAttribute("stroke","black"),o.setAttribute("strokeWidth","1");const a=document.createElementNS("http://www.w3.org/2000/svg","rect");a.setAttribute("class","js-city-bg"),a.setAttribute("fill","white"),a.setAttribute("rx","4"),a.setAttribute("ry","4");const s=document.createElementNS("http://www.w3.org/2000/svg","text");return s.setAttribute("class","js-city-text c-map-towns__city-text"),s.textContent=e,n.appendChild(i),n.appendChild(o),n.appendChild(a),n.appendChild(s),n})(r.name,i,t);n.appendChild(o)}),s.appendChild(n),requestAnimationFrame(()=>{kt(s)})},v=e=>{const{target:t}=e;if(!(t instanceof Element))return;const r=t?.closest(".c-map-towns__dept-trigger");if(!r)return;const n=r.getAttribute("id")?.replace("out-","")||"",i=r.getAttribute("data-name"),l=((e,t,r)=>{const n=r.get(e);if(n)return n;const i=e.startsWith("97")?Array.from(document.querySelectorAll(`path[id^="town-${e}"][id$="-drom"]`)).map(e=>({id:e.getAttribute("id")||"",path:e.getAttribute("d")||"",name:e.getAttribute("data-name")||"",url:e.getAttribute("data-url")||""})):Array.from(t().values()).filter(t=>t.id.startsWith(`town-${e}`));return r.set(e,i),i})(n,m,p);var d;(d=f).size>0||document.querySelectorAll(".c-map-towns__map .c-map-towns__layer-towns path[data-town-id], .c-map-towns__map-drom .c-map-towns__layer-towns path[id]").forEach(e=>{const t=e.getAttribute("data-town-id")||e.getAttribute("id");t&&d.set(t,Array.from(e.classList).filter(e=>e.startsWith("c-map-towns__path--")))});const h=Nt(l,f);if(c&&u&&i&&(c.textContent=i,u.textContent=`Carte détaillée du département : ${i}`),!(r instanceof SVGGraphicsElement))return;const g=((e,t)=>{const r=t.getBBox(),n=r.width+10,i=r.height+10;e.setAttribute("viewBox",`${r.x-5} ${r.y-5} ${n} ${i}`);const o=e.clientWidth||800,a=e.clientHeight||600;return Math.max(n/o,i/a)})(a,r);o.setAttribute("aria-hidden","false"),((e,t)=>{e.replaceChildren(t)})(s,h),y(n,g)};t?.addEventListener("click",v),r?.addEventListener("click",v),s.addEventListener("click",e=>{const{target:t}=e;if(!(t instanceof Element))return;const r=t.closest(".c-map-towns__zoom-town")?.getAttribute("data-url");r&&Dt(r)}),l.addEventListener("click",()=>{g()}),o.addEventListener("click",e=>{e.target===o&&g()})},Ot=()=>{((e=document.querySelector(".js-expand-button"))=>{e&&document.querySelectorAll(".js-expand-button").forEach(e=>{(e=>{const t=e.parentNode?.querySelector(".js-expand-target");return!(!t||t.classList.contains("c-elections-result__members"))&&(t.textContent?.trim().length??0)<255})(e)?(e.style.display="none",e.parentNode?.querySelectorAll(".js-expand-target")?.forEach(e=>{e.setAttribute("aria-hidden","false")})):e.addEventListener("click",d)})})(),bt(),a(),(()=>{const e=document.querySelector(".js-info-banner__button");e instanceof HTMLButtonElement&&e.addEventListener("click",f)})(),((e=document.querySelector(".js-ellipsis-button"))=>{e&&document.querySelectorAll(".js-ellipsis-button").forEach(e=>{const t="true"===e.getAttribute("data-multiple");e.addEventListener("click",e=>u(e,t))})})(),(()=>{const e=document.querySelector(".c-progress"),t=document.querySelector(".c-btn__close-progress");(e||t)&&window.addEventListener("scroll",st)})(),(()=>{let e=null;e=new ot({gallery:"#photoswipe-gallery",children:"a",pswpModule:He,zoom:!1,imageClickAction:"next",tapAction:"next"}),e.on("uiRegister",()=>{e?.pswp?.ui?.registerElement({name:"custom-caption",appendTo:"root",onInit:t=>{e?.pswp?.on("change",()=>{const r=e?.pswp?.currSlide?.data.element;if(r){const e=r.querySelector(".caption-content");t.innerHTML=e?.innerHTML||""}})}})}),e.init()})(),document.querySelectorAll(".js-modal").forEach(e=>{if(!(e instanceof HTMLElement))return;const t=new T(e);if("dialog-menu"===e.id){const e=document.querySelectorAll("button[data-a11y-dialog-show='dialog-menu']"),r=document.querySelectorAll("button[data-a11y-dialog-hide='dialog-menu']");e.length>0&&r.length>0&&(t.on("show",()=>{e.forEach(e=>{e.classList.add("u-hidden")}),r.forEach(e=>{e.classList.remove("u-hidden")})}),t.on("hide",()=>{e.forEach(e=>{e.classList.remove("u-hidden")}),r.forEach(e=>{e.classList.add("u-hidden")})}))}t.on("show",()=>{document.body.classList.add("noscroll")}).on("hide",()=>{document.body.classList.remove("noscroll")})}),gt(),s("winterOlympicsGames","countdown-winter-olympics-games"),s("eurovision","countdown-eurovision"),s("worldFoot2026","countdown-world-foot-2026"),window?.getSelection?(document.addEventListener("mouseup",mt),document.addEventListener("selectionchange",mt),document.addEventListener("touchend",mt),document.addEventListener("touchcancel",mt)):console.warn("Selection API isn't supported"),(()=>{const e=document.querySelector(".js-content-header"),t=document.querySelector(".js-limit-scroll-close-article-btn"),r=document.querySelector(".js-close-article-btn"),n=document.querySelector(".c-header-mobile"),i=n instanceof HTMLElement?n.offsetHeight:0;if(e&&t&&r){const n=new IntersectionObserver(()=>{const n=r.classList,o=n.contains("u-hidden"),a=e.getBoundingClientRect().bottom-i,s=t.getBoundingClientRect().bottom-i;o&&a<=0&&s>=0&&n.remove("u-hidden"),!o&&(a>=0||s<=0)&&n.add("u-hidden")},{root:document,rootMargin:`-${i}px 0px 0px 0px`});n.observe(e),n.observe(t)}})(),(()=>{const e=document.querySelectorAll(".js-half-donut-result");for(const t of Array.from(e)){const e=t.querySelector(".c-half-donut"),r=t.querySelector(".c-legend");if(!e||!r)return;r.querySelectorAll("[data-color]").forEach(t=>{const n=t.getAttribute("data-color"),i=e.querySelector(`.c-half-donut__zone--${n}`);i?.addEventListener("mouseenter",()=>{t.classList.add("c-legend__item--is-hovered"),e.classList.add("c-half-donut--is-hovered"),r.classList.add("c-legend--is-hovered")}),i?.addEventListener("mouseleave",()=>{t.classList.remove("c-legend__item--is-hovered"),e.classList.remove("c-half-donut--is-hovered"),r.classList.remove("c-legend--is-hovered")}),t.addEventListener("mouseenter",()=>{i?.classList.add("c-half-donut__zone--is-hovered"),r.classList.add("c-legend--is-hovered"),e.classList.add("c-half-donut--is-hovered")}),t.addEventListener("mouseleave",()=>{i?.classList.remove("c-half-donut__zone--is-hovered"),r.classList.remove("c-legend--is-hovered"),e.classList.remove("c-half-donut--is-hovered")})})}})(),c(),o("localisation-input","https://www.20minutes.fr/elections/resultats/recherche","?searchValue=","text","text"),l(),kt(),Et(),(()=>{const e=document.querySelector("#js-election-selector");e&&e.addEventListener("change",e=>{window.location.replace(e.target.value)})})(),(()=>{const e=document.querySelector(".c-search-banner");if(!e)return;const t=document.getElementById("js-search-banner-expand-button");if(t instanceof HTMLButtonElement){if(t.hasAttribute("data-search-banner-listener-attached"))return;const r=e.querySelector("[data-search-banner-expanded-source]"),n=e.querySelector("[data-search-banner-collapse]");if(!r||!n)return;t.setAttribute("data-search-banner-listener-attached","true"),t.addEventListener("click",()=>{"true"===r.getAttribute("aria-expanded")?(r.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true")):(r.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false"))})}})(),p(),Pt(),(()=>{const e=document.querySelectorAll(".js-navigation-container");Array.from(e).forEach(e=>{const t=e.querySelector(".js-navigation-container__list");if(t){const r=new ResizeObserver(t=>{t.forEach(t=>{const{width:n}=t.contentRect;n>0&&(j(e),r.disconnect())})});r.observe(t)}})})(),(()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e))if(t){const e=t.querySelector(".js-navigation-container__list"),r=t.querySelector(".o-nav-button--next-button"),n=t.querySelector(".o-nav-button--previous-button");e&&r&&n&&window.addEventListener("resize",q.bind(!1,{navigationContainer:t,navigatedList:e,nextBtn:r,prevBtn:n}))}})(),(()=>{const e=document.querySelector(".js-game-alert");r&&e&&e.classList.remove("u-hidden")})(),n(),xt(),((e={})=>{const{buttonSelector:t=".c-scroll-to-top"}=e,r=document.querySelector(t),n=r?.querySelector("button");if(!r||!n)return;const i=r.dataset.triggerSelector||"[data-scroll-trigger]",o=parseInt(r.dataset.triggerOffset||"0",10);r.style.display="none";const a=()=>{const e=document.querySelector(i);let t=!1;if(e){const r=e.getBoundingClientRect().top;t=window.pageYOffset>=r-o}else t=window.pageYOffset>300;r.style.display=t?"block":"none"};window.addEventListener("scroll",a),n.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})}),a()})(),lt()},qt="forward-disable-audience-measure",jt="data-preferences-consent",Mt=(e,t)=>{let r=null;if(e.id&&(r=document.querySelector(`label[for="${e.id}"]`)),r||(r=e.closest("label")),!r){const t=e.nextElementSibling;if(t&&"LABEL"===t.tagName&&t instanceof HTMLElement)r=t;else{const t=e.previousElementSibling;t&&"LABEL"===t.tagName&&t instanceof HTMLElement&&(r=t)}}const n=r?.querySelector("span")||r;n&&(n.textContent=t?"Mon droit d'opposition est respecté et aucune donnée personnelle supplémentaire n'est collectée":"Mes données de navigation sont collectées à des fins d'analyse statistique")};function Rt(){if(this?.id)try{const e=document.getElementById(this.id);if(e){const t=e.getAttribute("value");if(t){const e=document.createElement("textarea");document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e)}}}catch(e){console.error("Oops, unable to copy",e)}}const Ft=(e,t)=>{const r=e.innerHTML.includes("candidats")?"candidats":"résultats";e.innerHTML=t?`Masquer tous les ${r}`:`Voir tous les ${r}`},Bt=e=>{const t=e.currentTarget;if(e.preventDefault(),t instanceof HTMLButtonElement){const e=t.parentNode?.querySelectorAll(".js-toggle-target");"true"===t.getAttribute("aria-expanded")?((e,t)=>{t?.forEach(e=>{e.setAttribute("aria-hidden","true")}),e.setAttribute("aria-expanded","false"),Ft(e,!1)})(t,e):((e,t)=>{e.setAttribute("aria-expanded","true"),Ft(e,!0),t?.forEach(e=>{e.setAttribute("aria-hidden","false")})})(t,e)}};let zt=!1;const Ht=()=>{if(zt)return;zt=!0;const e=document.getElementById("js-top-sentinel");if(!e)return;new IntersectionObserver(([e])=>{(e=>{const t=document.querySelector(".c-search-banner");if(!t)return;const r=t.querySelector("[data-search-banner-expanded-source]"),n=t.querySelector("[data-search-banner-collapse]");n&&r&&(e?(r.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false")):(r.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true")))})(e.isIntersecting)},{root:null,threshold:0}).observe(e)},Vt=e=>{var t;const r=e.querySelector(".c-search-banner");if(!(r instanceof HTMLElement))return;const n="c-search-banner--has-top-border";(t=r.dataset).initialHasTopBorder??(t.initialHasTopBorder=String(r.classList.contains(n))),r.classList.toggle(n,"true"===r.dataset.initialHasTopBorder&&!e.classList.contains("u-sticky--on-top-screen"))},Ut=(e,t,r)=>{"desktop"===r&&(t?(e.classList.remove("u-sticky"),e.classList.remove("u-sticky--under-header-mini")):(e.classList.add("u-sticky"),e.classList.add("u-sticky--under-header-mini"))),"mobile"===r&&(t?(e.classList.remove("u-sticky--under-header"),e.classList.add("u-sticky--on-top-screen")):(e.classList.remove("u-sticky--on-top-screen"),e.classList.add("u-sticky--under-header")),Vt(e))};var $t=()=>{(()=>{const e=document.getElementById("goto-distribution"),t=document.getElementById("goto-european-map"),r=document.getElementById("goto-map"),n=document.getElementById("goto-statistics"),i=document.getElementById("goto-results");e&&e.addEventListener("click",Rt),t&&t.addEventListener("click",Rt),r&&r.addEventListener("click",Rt),n&&n.addEventListener("click",Rt),i&&i.addEventListener("click",Rt)})(),((e=document.querySelector(".js-toggle-button"))=>{e&&document.querySelectorAll(".js-toggle-button").forEach(e=>{e.addEventListener("click",Bt)})})(),Ht(),(()=>{const e=document.getElementById("elections-form-container"),t=document.querySelector(".c-header-mini"),r=document.querySelector(".c-header-mobile"),n=document.querySelector('body[data-layout="mobile"]');e&&t&&new MutationObserver(t=>{const r=t[0],n=r.target;if(n instanceof HTMLElement&&"attributes"===r.type&&"class"===r.attributeName){const t=n.className.includes("c-header-mini--is-hidden");Ut(e,t,"desktop")}}).observe(t,{attributes:!0});n&&e&&r&&(e.classList.add("u-sticky"),e.classList.add("u-sticky--under-header"),Vt(e),new MutationObserver(t=>{const r=t[0],n=r.target;if(n instanceof HTMLElement&&"attributes"===r.type&&"class"===r.attributeName){const t=n.className.includes("c-header-mobile--is-hidden");Ut(e,t,"mobile")}}).observe(r,{attributes:!0}))})()};const Kt=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>window.__tcfapi("addEventListener",2,(e=>(t,r)=>{if(r&&("tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus)&&e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&e.getCurrentUserStatus().vendors["20minutes-bfbzKmzq"]?.enabled){const e=document.getElementById("feedback-button");if(!e)return;e.addEventListener("click",()=>{try{window.$screeb("survey.start","5d850959-8e04-425c-b6fe-df5c7dafd4f9",{distribution_id:"dc76b85e-e248-4ac1-a988-30250b4abb80"})}catch(e){console.error("Error while starting survey",e)}})}})(e)))};var Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qt,Zt,Jt={exports:{}},Yt={};var Xt=(Zt||(Zt=1,Jt.exports=function(){if(Qt)return Yt;Qt=1;var t=e,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var s,l={},c=null,u=null;for(s in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:r,type:e,key:c,ref:u,props:l,_owner:o.current}}return Yt.Fragment=n,Yt.jsx=s,Yt.jsxs=s,Yt}()),Jt.exports);function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tr,rr={exports:{}};var nr,ir=(tr||(tr=1,nr=rr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=n(e,r(i)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var i="";for(var o in r)e.call(r,o)&&r[o]&&(i=n(i,o));return i}function n(e,t){return t?e?e+" "+t:e+t:e}nr.exports?(t.default=t,nr.exports=t):window.classNames=t}()),rr.exports);const or=er(ir),ar=({adUnitCompletePath:e,variant:t,isFullscreenMobile:r=!1,hasNoBgColorMobile:n=!1,...i})=>{const o=e.split("/").pop(),a=e.substring(0,e.lastIndexOf("/")),s="string"==typeof o&&o.startsWith("ban_mtf"),l=Xt.jsx(Ur,{...s?{}:i,id:`dfp_${o}`,"data-dfp-name":o,"data-dfp-path":a,className:or("c-4b8m1ese3e",{"c-placeolder--article":"ARTICLE"===t},{"c-placeolder--ban":"BAN"===t||"ATF"===t},{"c-placeolder--ban-atf":"ATF"===t},{"c-placeolder--header-ad":"HEADER"===t},{"c-placeolder--inread":"INREAD"===t},{"c-placeolder--pave":"PAVE"===t},{"c-placeolder--com":"COM"===t},{"c-placeolder--mobile-fullscreen":r},{"c-placeolder--mobile-has-no-bg-color":n},i.className)});return s?Xt.jsx(Ur,{className:"c-placeolder--ban",children:l}):l},sr=({img:e,alt:t="",color:r,variant:n="default",streakBadge:i,className:o,...a})=>{const s=!!e,l=or("c-avatar",{[`c-avatar--${n}`]:"default"!==n,[`c-avatar--${r}`]:r,"c-avatar--has-border":s&&r,"c-avatar--with-placeholder":!s},o),c=e||"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%3E%3C/svg%3E";return void 0===i?Xt.jsx(Ur,{...a,as:"img",className:l,src:c,alt:t}):Xt.jsxs(Ur,{...a,className:"c-avatar-container",children:[Xt.jsx(Ur,{as:"img",className:l,src:c,alt:t}),Xt.jsxs($r,{className:"c-avatar-container__badge",alignItems:"center",gap:"xxs-3",bg:"grey-50",px:"xxs-2",children:[Xt.jsx(Ar,{name:"heat",size:10,color:"orange"}),Xt.jsx(ln,{as:"span",color:"ultramarine",size:"xxs",weight:"bold",children:i})]})]})};function lr(t){return e.forwardRef(t)}const cr=lr(({as:e="button",variant:t="primary",children:r,iconProps:n,counter:i,isCentered:o=!1,isSquare:a=!1,isLoading:s=!1,size:l,isCloseWithProgress:c,closeProgressColor:u,...d},p)=>{const f={...d?.style,...u&&{"--button-close-progress-color":`var(--color-theme-${u})`}};return Xt.jsxs($r,{...d,style:f,as:e,ref:p,alignItems:"center",justifyContent:"center",gap:"xxs",inline:"link"===t||"a"===e,radius:a?"0":void 0,className:or("c-btn",{[`c-btn--${t}`]:t,[`c-btn--${l}`]:l,"c-btn--is-centered":o,"c-btn--is-loading":s},d?.className),children:[n&&Xt.jsx(Ar,{...n}),r,(0===i||i)&&Xt.jsx($r,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",children:i}),c&&Xt.jsx("div",{className:"c-btn__close-progress"})]})});cr.displayName="Button";const ur=lr(({text:e,color:t="black",thickness:r="thin",...n},i)=>{const o=Xt.jsx(Kr,{bg:t,align:"center",className:or("c-divider__line",{[`c-divider__line--${r}`]:"thin"!==r})});return Xt.jsx($r,{...n,ref:i,className:or("c-divider",{"c-divider--has-text":!!e},n?.className),children:e?Xt.jsxs(Xt.Fragment,{children:[o,Xt.jsx(Kr,{px:"xxs-2",className:"c-divider__text",children:Xt.jsx(ln,{size:"xxs",color:t,textTransform:"uppercase",children:e})}),o]}):o})}),dr=({bg:e="ultramarine",...t})=>Xt.jsx(Ur,{...t,className:or("c-divider-section",t?.className),children:Xt.jsx(Ur,{as:"hr",className:or("c-divider-section__line"),bg:e})});lr(({color:e="black",thickness:t="thin",...r},n)=>Xt.jsx(Ur,{...r,ref:n,bg:e,className:or("c-divider-vertical",{[`c-divider-vertical--${t}`]:"thin"!==t},r?.className)}));const pr={primary:{ultramarine:{value:"#4742FF",key:"{color.primary.ultramarine}"},"ultramarine-light":{value:"#6B72FB",key:"{color.primary.ultramarine-light}"}},secondary:{orange:{value:"#FA9917",key:"{color.secondary.orange}"},yellow:{value:"#F2E500",key:"{color.secondary.yellow}"},green:{value:"#6A9F4F",key:"{color.secondary.green}"},purple:{value:"#AE6BA2",key:"{color.secondary.purple}"},red:{value:"#DC0E19",key:"{color.secondary.red}"},scarlet:{value:"#FF3F3F",key:"{color.secondary.scarlet}"},blue:{value:"#0000FF",key:"{color.secondary.blue}"},"blue-grey":{value:"#253548",key:"{color.secondary.blue-grey}"},"blue-dark":{value:"#16202B",key:"{color.secondary.blue-dark}"},pink:{value:"#EF2A82",key:"{color.secondary.pink}"},sponsoring:{value:"#FFF5F1",key:"{color.secondary.sponsoring}"},"blue-light":{value:"#D4ECFB",key:"{color.secondary.blue-light}"},"blue-ice":{value:"#F0F4F8",key:"{color.secondary.blue-ice}"}},greyscale:{black:{value:"#000",key:"{color.greyscale.black}"},white:{value:"#FFF",key:"{color.greyscale.white}"},"grey-50":{value:"#FFFFFE",key:"{color.greyscale.grey-50}"},"grey-100":{value:"#F7F7F7",key:"{color.greyscale.grey-100}"},"grey-200":{value:"#DDD",key:"{color.greyscale.grey-200}"},"grey-300":{value:"#898A8C",key:"{color.greyscale.grey-300}"},"grey-400":{value:"#6A6A6A",key:"{color.greyscale.grey-400}"},"grey-500":{value:"#484848",key:"{color.greyscale.grey-500}"},"grey-600":{value:"#2F3134",key:"{color.greyscale.grey-600}"},"grey-700":{value:"#181A1E",key:"{color.greyscale.grey-700}"},"grey-800":{value:"#101D25",key:"{color.greyscale.grey-800}"},"grey-900":{value:"#0F1115",key:"{color.greyscale.grey-900}"}},status:{warning:{value:"#FA9917",key:"{color.status.warning}"},error:{value:"#DC0E19",key:"{color.status.error}"},success:{value:"#6A9F4F",key:"{color.status.success}"}},theme:{conso:{value:"#ff8689",key:"{color.theme.conso}"},default:{value:"#4742ff",key:"{color.theme.default}"},entertainment:{value:"#9d61ff",key:"{color.theme.entertainment}"},hightech:{value:"#8f98a9",key:"{color.theme.hightech}"},media:{value:"#4742ff",key:"{color.theme.media}"},"partenaires-externes":{value:"#4742ff",key:"{color.theme.partenaires-externes}"},partner:{value:"#fd8000",key:"{color.theme.partner}"},planet:{value:"#00b482",key:"{color.theme.planet}"},production:{value:"#c5be00",key:"{color.theme.production}"},publicommunique:{value:"#c5be00",key:"{color.theme.publicommunique}"},publishing:{value:"#c5be00",key:"{color.theme.publishing}"},sport:{value:"#6398ab",key:"{color.theme.sport}"},tempo:{value:"#ecb200",key:"{color.theme.tempo}"},"vie-pro":{value:"#b49b56",key:"{color.theme.vie-pro}"},infolocale:{value:"#4742ff",key:"{color.theme.infolocale}"},gaming:{value:"#fa6ee5",key:"{color.theme.gaming}"},jeux:{value:"#4742ff",key:"{color.theme.jeux}"}}},fr={base:{value:"Arial",key:"{font-family.base}"},obviously:{value:"'Obviously', sans-serif",key:"{font-family.obviously}"},"source-serif-pro":{value:"'Source Serif Pro', serif",key:"{font-family.source-serif-pro}"}};Object.keys(fr).filter(e=>!["base"].includes(e));const hr={sad:"😢",interesting:"😍",laughing:"😂",shock:"😮",solidary:"🤝",angry:"😠",heart:"❤️",down:"👎",up:"👍"},mr=[{name:"Paris",id:"75056"},{name:"Marseille",id:"13055"},{name:"Lyon",id:"69123"},{name:"Toulouse",id:"31555"},{name:"Nice",id:"06088"},{name:"Nantes",id:"44109"},{name:"Montpellier",id:"34172"},{name:"Strasbourg",id:"67482"},{name:"Bordeaux",id:"33063"},{name:"Lille",id:"59350"},{name:"Rennes",id:"35238"},{name:"Reims",id:"51454"},{name:"Le Havre",id:"76351"},{name:"Grenoble",id:"38185"},{name:"Dijon",id:"21231"},{name:"Brest",id:"29019"}],gr={PARIS:{label:"Paris",viewBox:"249.8 112.2 10 10",ids:Array.from({length:20},(e,t)=>`75056AR${(t+1).toString().padStart(2,"0")}`)},MARSEILLE:{label:"Marseille",viewBox:"360.4 391.2 12 12",ids:Array.from({length:16},(e,t)=>`13055AR${(t+1).toString().padStart(2,"0")}`)},LYON:{label:"Lyon",viewBox:"338.9 269 6 6",ids:Array.from({length:9},(e,t)=>`69123AR0${t+1}`)}},yr={"01":"Ain","02":"Aisne","03":"Allier","04":"Alpes-de-Haute-Provence","05":"Hautes-Alpes","06":"Alpes-Maritimes","07":"Ardèche","08":"Ardennes","09":"Ariège",10:"Aube",11:"Aude",12:"Aveyron",13:"Bouches-du-Rhône",14:"Calvados",15:"Cantal",16:"Charente",17:"Charente-Maritime",18:"Cher",19:"Corrèze","2A":"Corse-du-Sud","2B":"Haute-Corse",21:"Côte-d'Or",22:"Côtes-d'Armor",23:"Creuse",24:"Dordogne",25:"Doubs",26:"Drôme",27:"Eure",28:"Eure-et-Loir",29:"Finistère",30:"Gard",31:"Haute-Garonne",32:"Gers",33:"Gironde",34:"Hérault",35:"Ille-et-Vilaine",36:"Indre",37:"Indre-et-Loire",38:"Isère",39:"Jura",40:"Landes",41:"Loir-et-Cher",42:"Loire",43:"Haute-Loire",44:"Loire-Atlantique",45:"Loiret",46:"Lot",47:"Lot-et-Garonne",48:"Lozère",49:"Maine-et-Loire",50:"Manche",51:"Marne",52:"Haute-Marne",53:"Mayenne",54:"Meurthe-et-Moselle",55:"Meuse",56:"Morbihan",57:"Moselle",58:"Nièvre",59:"Nord",60:"Oise",61:"Orne",62:"Pas-de-Calais",63:"Puy-de-Dôme",64:"Pyrénées-Atlantiques",65:"Hautes-Pyrénées",66:"Pyrénées-Orientales",67:"Bas-Rhin",68:"Haut-Rhin",69:"Rhône",70:"Haute-Saône",71:"Saône-et-Loire",72:"Sarthe",73:"Savoie",74:"Haute-Savoie",75:"Paris",76:"Seine-Maritime",77:"Seine-et-Marne",78:"Yvelines",79:"Deux-Sèvres",80:"Somme",81:"Tarn",82:"Tarn-et-Garonne",83:"Var",84:"Vaucluse",85:"Vendée",86:"Vienne",87:"Haute-Vienne",88:"Vosges",89:"Yonne",90:"Territoire de Belfort",91:"Essonne",92:"Hauts-de-Seine",93:"Seine-Saint-Denis",94:"Val-de-Marne",95:"Val-d'Oise",971:"Guadeloupe",972:"Martinique",973:"Guyane",974:"La Réunion",976:"Mayotte"},vr=["extreme-gauche","parti-revolutionnaire-communiste","lutte-ouvriere","npa","parti-des-travailleurs","association-nationale-communistes","france-insoumise","divers-extreme-gauche","gauche","parti-communiste-francais","parti-des-citoyens-europeens","nouvelle-donne","parti-socialiste","parti-radical-de-gauche","nouveau-front-populaire","union-gauche","divers-gauche","ecologie","europe-ecologie-les-verts","equinoxe","ecologie-positive","ecologie-au-centre","ecologistes","les-ecologistes","centristes","renaissance","ensemble","modem","horizons","udi","union-centre","divers-centre","droite","les-republicains","droite-souverainiste","union-droite","divers-droite","extreme-droite","rassemblement-national","reconquete","les-patriotes","rester-libre","les-nationalistes","les-republicains-union-extreme-droite","udr","union-extreme-droite","divers-extreme-droite","divers","changement-citoyen","decidons-nous-meme","parti-animaliste","parti-pirate","union-des-democrates-musulmans","ecologie-politique","federation-citoyenne","republique-souveraine","resistons","france-libre","la-ruche-citoyenne","defendre-les-enfants","democratie-representative","europe-democratie-esperanto","union-populaire-republicaine","regionalistes"],br={alignItems:["align-items"],alignContent:["align-content"],justifyContent:["justify-content"],gap:["gap"],gapX:["row-gap"],gapY:["col-gap"],inline:["inline"],direction:["direction"],wrap:["wrap"],flexGrow:["flex-grow"]},wr={align:["align-self"],basis:["flex-basis"],shrink:["flex-shrink"],grow:["flex-grow"]},_r={radius:["border-radius"]},xr={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},Sr={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],...xr},Er={...Sr,borderColor:["border-color"],bg:["background-color"],color:["color"],..._r},kr={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"],whiteSpace:["white-space"]},Cr=Object.keys(pr.theme);Object.keys(pr.primary),Object.keys(pr.secondary),Object.keys(pr.greyscale),Object.keys(pr.status),Object.keys(pr.theme);const Ar=lr(({name:e,size:t=28,isRounded:r=!1,border:n,rotation:i,svgTitle:o,color:a,...s},l)=>{const c=Array.isArray(t)?t?.[0]:t,u=Array.isArray(t)?t?.[1]:t,d=!o,p=(e=>"string"==typeof e&&vr.includes(e))(a);return Xt.jsx(Ur,{...s,ref:l,color:p?void 0:a,className:or("c-icon",{[`c-icon--has-border-${n}`]:n,"c-icon--is-rounded":r,[`c-icon--${i}`]:i,[`c-icon--${a}`]:p},s?.className),children:Xt.jsxs("svg",{width:c,height:u,role:"img","aria-label":o||void 0,"aria-hidden":d?"true":void 0,children:[o&&Xt.jsx("title",{children:o}),"circle"===e?Xt.jsx("circle",{}):Xt.jsx("use",{xlinkHref:`#${e}`})]})})}),Tr=({text:e,...t})=>Xt.jsx(ln,{as:"span",role:"tooltip",className:"c-icon-tooltip",size:"xxs",weight:"bold",color:"grey-600",bg:"grey-100",px:"xxs",py:"xxs-2",mt:"xxs-2",radius:"xxs-2",tabIndex:0,...t,children:e}),Lr=({src:e,format:t})=>e.replace(/%format/,t),Dr=({id:e="",src:t="",defaultFormat:r,formats:n,alt:i="",sizes:o,lazyLoad:a=!1,fetchPriority:s,isPortrait:l=!1,enableHD:c=!1,...u})=>{const d=a?"lazy":"eager",p={...u,id:e||void 0,alt:i,className:or("c-img",u?.className,{"c-img--is-portrait":l}),loading:d,fetchpriority:s};if(!r)return Xt.jsx(Ur,{as:"img",src:t,...p});const f=r.split("x"),h=f[0],m=f[1];let g,y=`data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='${h}'%20height='${m}'%3E%3C/svg%3E`;if(t&&(y=Lr({src:t,format:r}),g=(({src:e,formats:t})=>{if(void 0!==t&&t.length>0)return t.map(t=>`${e.replace(/%format/,t)} ${t.split("x")[0]}w`).join(", ")})({formats:n,src:t})??""),c){const e=2*Number(h),r=2*Number(m),n=Lr({src:t,format:`${e}x${r}`});g=g?`${g}, ${n} 2x`:`${n} 2x`}return p.width=h||void 0,p.height="0"!==m?m:void 0,p.sizes=o||void 0,Xt.jsx(Ur,{...p,as:"img",src:y,...g?{srcSet:g}:{}})},Nr=({size:e,...t})=>Xt.jsx(ln,{as:"span",size:e||"s",...t,children:"•"}),Ir=lr(({id:e,className:t,color:r,required:n,label:i,icon:o,positionIcon:a="right",isIconButton:s=!1,iconButtonProps:l,variant:c,msg:u,containerProps:d,isRounded:p,isTransparent:f,isLarge:h,children:m,hint:g,error:y,...v},b)=>{const w=o&&Xt.jsx(cr,{className:"c-input-container__icon",iconProps:{name:o,size:18},variant:"ghost",color:r||"black",...l}),_=o&&Xt.jsx(Ar,{className:"c-input-container__icon",name:o,size:18,color:r||"black"});return Xt.jsxs($r,{direction:"column",...d,className:or("c-input",d?.className),children:[i&&Xt.jsxs("label",{htmlFor:e,className:"c-input__label",children:[i,n&&Xt.jsxs(ln,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),g&&Xt.jsx(ln,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:g}),Xt.jsxs($r,{gap:o&&m?"xs":void 0,className:or("c-input-container",{[`c-input-container--${c}`]:c,"c-input-container--rounded":p,"c-input-container--transparent":f,"c-input-container--large":h,[`c-input-container--${a}`]:o||m}),children:[(o||m)&&Xt.jsxs($r,{gap:"s",children:[s?w:_,m]}),Xt.jsx("input",{id:e,className:or("c-input-container__input",t),required:n,ref:b,"aria-describedby":[g?`${e}-hint`:null,y?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...v})]}),u?.length&&Xt.jsx($r,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:u.map(({iconProps:e,textProps:t,value:r},n)=>Xt.jsxs($r,{alignItems:"center",gap:"xxs",children:[e&&Xt.jsx(Ar,{...e}),Xt.jsx(ln,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),y&&Xt.jsx(ln,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:y})]})}),Pr=({children:e,bg:t,color:r,hasDot:n=!1,isUppercase:i=!0,size:o,className:a,textProps:s,...l})=>{const c={...l.style,...t?.includes("#")&&{backgroundColor:t},...r?.includes("#")&&{color:r}};return Xt.jsxs(ln,{...l,...s,as:t?$r:"span",...t&&{inline:!0,alignItems:"center",radius:"xxs-2",p:"xxs-2"},style:c,...!t?.includes("#")&&{bg:t},...!r?.includes("#")&&{color:r},size:o||"xxs",weight:"bold",...i&&{textTransform:"uppercase"},className:or("c-label",{"c-label--no-background":!t},a),children:[n&&Xt.jsx(Ar,{name:"dot",size:4,mr:"xxs-2"}),e]})},Or=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const t=qr({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return t?[t]:[]}return Object.entries(e.propValue).reduce((t,[r,n])=>{const i=qr({className:e.className,defaultModifier:r,propValue:n});return i&&t.push(i),t},[])},qr=e=>{if(void 0!==e.propValue){if("boolean"!=typeof e.propValue){const t=(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase())("number"==typeof e.propValue?e.propValue.toString():e.propValue);return e.className?`${e.className}-${t}@${e.defaultModifier}`:`${t}@${e.defaultModifier}`}if(!e.className)throw new Error('It is necessary to define the argument "className" !');return`${e.className}@${e.defaultModifier}`}},jr=({basis:e,shrink:t,grow:r,...n})=>or(...Or({propValue:e,className:"basis"}),...Or({propValue:t,className:"shrink"}),...Or({propValue:r,className:"grow"}),Fr(n)),Mr=({inline:e=!1,direction:t,wrap:r,...n})=>or(...Or({propValue:e,className:e?"inline-flex":"flex"}),...Or({propValue:t,className:"direction"}),...Or({propValue:r}),Rr(n)),Rr=e=>or(...Or({propValue:e.alignItems,className:"items"}),...Or({propValue:e.alignContent,className:"content"}),...Or({propValue:e.justifyContent,className:"justify"}),...Or({propValue:e.gap,className:"gap"}),...Or({propValue:e.gapX,className:"gap-x"}),...Or({propValue:e.gapY,className:"gap-y"}),...Or({propValue:e.flexGrow,className:"grow"})),Fr=e=>or(...Or({propValue:e.align,className:"self"})),Br=e=>"object"==typeof e.props?Object.keys(e.props).reduce((t,r)=>(e.systemPropNames.includes(r)||(t[r]=e.props[r]),t),{}):{},zr=e=>or(Object.entries(e).filter(([e])=>Object.keys(Sr).includes(e)).reduce((e,[t,r])=>(e.push(...Or({className:t,propValue:r})),e),[])),Hr=e=>or(zr(e),(e=>or({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>or(Object.entries(e).filter(([e])=>Object.keys(_r).includes(e)).reduce((e,[t,r])=>(e.push(...Or({className:t,propValue:r})),e),[])))(e)),Vr=({textAlign:e,weight:t,textTransform:r,textDecoration:n,italic:i,fontFamily:o,whiteSpace:a})=>or(Or({className:"text",propValue:e}),Or({className:"font-weight",propValue:t}),{[`white-space-${a}`]:!!a,[`text-transform-${r}`]:!!r,[`text-decoration-${n}`]:!!n,"text-italic":!!i,[`font-${o}`]:!!o}),Ur=lr(({as:e="div",children:t,...r},n)=>Xt.jsx(e,{...Br({props:r,systemPropNames:Object.keys(Er)}),ref:n,className:or(Hr(r),r?.className),children:t}));Ur.displayName="Box";const $r=lr(({as:e="div",children:t,...r},n)=>Xt.jsx(Ur,{...Br({props:r,systemPropNames:Object.keys(br)}),as:e,ref:n,className:or(Mr(r),r?.className),children:t})),Kr=lr(({as:e="div",children:t,...r},n)=>Xt.jsx(Ur,{...Br({props:r,systemPropNames:Object.keys(wr)}),as:e,ref:n,className:or(jr(r),r?.className),children:t})),Gr=({colsNumber:t,gap:r,gapX:n,gapY:i,children:o,...a})=>e.createElement(Ur,{...Br({props:a,systemPropNames:Object.keys(br)}),className:or("grid",...Or({className:"grid-cols-number",propValue:t}),...Or({className:"grid-gap",propValue:r}),...Or({className:"grid-gap-row",propValue:n}),...Or({className:"grid-gap-col",propValue:i}),or(Rr(a),a?.className)),children:o}),Wr=lr(({as:e="a",children:t,color:r,size:n,variant:i,weight:o,whiteSpace:a,tabIsSelected:s,tabVariant:l,tabColor:c,defaultColor:u="ultramarine",isUnderlined:d,...p},f)=>{if(i&&r)throw new Error("You can't use color and variant props together");const h=l||c?or("c-tab",{[`c-tab--${l}`]:l,[`c-tab--${c}`]:c,"c-tab--selected":s,"c-tab--unselected":!s},Vr({weight:o,whiteSpace:a}),p?.className):or("c-link",{[`c-btn c-btn--${i}`]:i&&!r},Vr({weight:o,whiteSpace:a}),Or({className:"text",propValue:n}),{"c-link--is-underlined":d},p?.className);return Xt.jsx(Ur,{...p,as:e,ref:f,color:l||c||i?void 0:r||("inherit"===u?void 0:u),className:h,children:t})}),Qr=({isWhite:e})=>Xt.jsx("div",{className:or("c-pipe",{"c-pipe--is-white":e})}),Zr=({rating:e,ratingMax:t=5,iconProps:r,...n})=>{const i=e=>Xt.jsx(Ar,{name:"star",color:"ultramarine",...r},e),o=e=>Xt.jsx(Ar,{name:"star",color:"grey-200",...r},e),a=e=>Xt.jsx(Ar,{name:"halfstar",color:"grey-200",...r},e),s=[];for(let r=0;r<t;r+=1){const t=r+.5===e;r<e&&!t?s.push(i(r)):t?s.push(a(r)):s.push(o(r))}return Xt.jsx(Ur,{...n,children:s})},Jr=({title:e,link:t,image:r,isTargetBlank:n,isNofollow:i,isSponsored:o,isInArticle:a,...s})=>Xt.jsxs(Ur,{...s,className:or("c-read-also",{"c-read-also--in-article":a},s?.className),children:[Xt.jsxs("div",{children:[a?Xt.jsx(ln,{fontFamily:"base",color:"ultramarine",weight:"bold",textTransform:"uppercase",size:"xs",pb:"xxs-2",children:"Lire aussi"}):Xt.jsx(Pr,{color:"grey-400",textProps:{fontFamily:"base"},children:"Lire aussi"}),!a&&Xt.jsx(Qr,{}),Xt.jsx(Wr,{href:t,className:"c-read-also__link",target:n?"_blank":void 0,rel:(i?"isNofollow":o&&"isSponsored")||void 0,...a&&{color:"black"},children:e})]}),r&&Xt.jsx(Dr,{src:r,defaultFormat:"110x70",formats:["110x70"],sizes:"110px",alt:e,className:"c-read-also__visual"})]});lr(({variant:e,progressColor:t="ultramarine"},r)=>Xt.jsx(Ur,{ref:r,bg:"grey-100",className:or("c-progress",{[`c-progress--${e}`]:e}),children:Xt.jsx(Ur,{className:"c-progress__bar",bg:t,style:{width:"0%"}})}));const Yr=lr(({id:e,className:t,required:r,label:n,defaultValue:i,options:o,placeholder:a,containerProps:s,variant:l="default",icon:c,isLarge:u,hint:d,error:p,...f},h)=>Xt.jsxs($r,{...s,ref:h,direction:"column",className:or("c-select",s?.className),children:[n&&Xt.jsxs("label",{htmlFor:e,className:"c-select__label",children:[n,r&&Xt.jsxs(ln,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),d&&Xt.jsx(ln,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:d}),Xt.jsxs("div",{className:"c-select__container",children:[c&&Xt.jsx(Ar,{className:"c-select__icon",name:c,size:18}),Xt.jsx(Ar,{className:`c-select__caret c-select__caret--${l}`,name:"arrow",size:12}),Xt.jsxs("select",{id:e,className:or("c-select__select",`c-select__select--${l}`,{"c-select__select--has-icon":!!c},{"c-select__select--large":u},zr(f),t),required:r,defaultValue:i||o.filter(e=>e.isSelected)?.pop()?.value||"","aria-describedby":[d?`${e}-hint`:null,p?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...Br({props:f,systemPropNames:Object.keys(xr)}),children:[a&&Xt.jsx("option",{value:"",disabled:!0,hidden:!0,children:a}),o.map(e=>Xt.jsx("option",{value:e.value,children:e.title},e.value))]})]}),p&&Xt.jsx(ln,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:p})]}));var Xr=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(Xr||{}),en=(e=>(e.embed="embed",e.photo="photo",e.podcast="podcast",e.video="video",e))(en||{});const tn=lr(({layout:e,children:t,itemsGap:r,hasSpaceAroundButtons:n=!1,buttonsVariant:i,colorVariant:o,sliderVariant:a="default",auto:s=!1,delay:l=3e3,...c},u)=>Xt.jsxs(Ur,{...c,ref:u,className:or("c-slider js-navigation-container",c?.className),"data-slider-variant":a,"data-slider-auto":s,"data-slider-delay":l,children:[Xt.jsx(Ur,{className:"c-slider__viewport js-navigation-container__list",children:Xt.jsx($r,{className:"c-slider__list",alignItems:"center",gap:r,children:t})}),e===Xr.DESKTOP&&Xt.jsx(Ur,{className:"c-slider__buttons-container",children:Array.from(["previous","next"],e=>Xt.jsx(Ur,{pr:n&&"previous"===e&&("round-small-transparent-bg"===i?"m":"l")||void 0,pl:n&&"next"===e&&("round-small-transparent-bg"===i?"m":"l")||void 0,className:or(`c-slider__button-container c-slider__button-container--${e} o-nav-button o-nav-button--${e}-button`,{"c-slider__button-container--has-space-around":n},{[`c-slider__button-container--${a}`]:a}),children:Xt.jsx(cr,{variant:i||"round",color:o,..."videos"===a&&{p:"m"},iconProps:{name:"chevron",size:"videos"===a?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"}})},e))})]})),rn=({containerProps:e,labelPosition:t="before",label:r,icon:n,id:i,...o})=>{const a=o.checked??o.defaultChecked??!1,s=Xt.jsxs($r,{as:"label",alignItems:"center",htmlFor:i,children:["before"===t&&n&&Xt.jsx(Ar,{mr:"xs",...n}),r,"after"===t&&n&&Xt.jsx(Ar,{ml:"xs",...n})]});return Xt.jsxs($r,{gap:"xs",...e,className:"c-switch",children:["before"===t&&r&&s,Xt.jsx("input",{...o,role:"switch",type:"checkbox",id:i,"aria-checked":a,className:or("c-switch__input",o.className)}),"after"===t&&r&&s]})},nn=({variant:e="default",name:t,children:r,tabColor:n="default",isSelected:i=!1,index:o=-1,isNoWrap:a,color:s,...l})=>Xt.jsx("button",{type:"button",role:"tab",id:`tab-${t}`,className:or("c-tab",{[`c-tab--${e}`]:e,[`c-tab--${n}`]:n,[`color-${s}`]:s,"c-tab--no-wrap":a}),"aria-controls":`tabpanel-${t}`,"aria-selected":i,tabIndex:o,...l,children:r}),on=({name:e,children:t,className:r,isHidden:n=!0})=>Xt.jsx("div",{id:`tabpanel-${e}`,className:or(r,"c-tabpanel"),role:"tabpanel","aria-hidden":n,"aria-labelledby":`tab-${e}`,children:t}),an=lr(({as:e="a",id:t,variant:r="primary",size:n,children:i,...o},a)=>Xt.jsx(Ur,{...o,as:"span"===r?"span":e,href:"span"===r?void 0:o?.href,ref:a,className:or("c-tags",`c-tags--${r}`,{[`c-tags--${n}`]:n},o?.className),"data-id":t,px:o?.px,children:i}));lr(({id:e,required:t,label:r,variant:n,msg:i,rows:o=5,containerProps:a,hint:s,error:l,...c},u)=>Xt.jsxs($r,{direction:"column",ref:u,...a,className:or("c-textarea",a?.className),children:[r&&Xt.jsxs("label",{htmlFor:e,className:"c-textarea__label",children:[r,t&&Xt.jsxs(ln,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),s&&Xt.jsx(ln,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:s}),Xt.jsx($r,{className:"c-textarea-container",children:Xt.jsx("textarea",{rows:o,placeholder:"Votre message...",required:t,...c,id:e,name:e,className:or("c-textarea-container__input",{[`c-textarea-container__input--${n}`]:n,"c-textarea-container__input--hint":!!s,"c-textarea-container__input--error":!!l},c?.className),"aria-describedby":[s?`${e}-hint`:null,l?`${e}-error`:null].filter(Boolean).join(" ")||void 0})}),i?.length&&Xt.jsx($r,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:i.map(({iconProps:e,textProps:t,value:r},n)=>Xt.jsxs($r,{alignItems:"center",gap:"xxs",children:[e&&Xt.jsx(Ar,{...e}),Xt.jsx(ln,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),l&&Xt.jsx(ln,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:l})]}));const sn=lr(({as:e="h1",size:t,children:r,...n},i)=>Xt.jsx(cn,{...n,as:e,ref:i,className:or(Or({className:"heading",propValue:t}),n?.className),children:r})),ln=lr(({as:e="p",size:t,highlighted:r,children:n,...i},o)=>Xt.jsx(cn,{as:r?"span":e,bg:r?"sponsoring":i.bg,p:r?"xxs":i.p,color:r?"grey-800":i.color,...i,ref:o,className:or(Or({className:"text",propValue:t}),{"text-highlighted":r},i?.className),children:n})),cn=lr(({as:e="p",children:t,...r},n)=>t&&t.toString().length||r?.dangerouslySetInnerHTML?Xt.jsx(Ur,{...Br({props:r,systemPropNames:Object.keys(kr)}),as:e,ref:n,className:or(Vr(r),r?.className),children:t}):null),un=({cover:e,description:t,title:r,link:n,closeButton:i,...o})=>Xt.jsx($r,{...o,className:or("c-info-banner","c-info-banner--alert",o?.className),alignItems:"center",justifyContent:"center",gap:"s",color:"white",bg:"red",p:"s",children:Xt.jsxs($r,{className:"c-info-banner__container",gap:"s",alignItems:"start",children:[e&&Xt.jsx($r,{as:"a",className:"c-info-banner__visual",...n||{},children:Xt.jsx(Dr,{src:e,defaultFormat:"130x82",formats:["130x82"],sizes:"130px",alt:r,className:"c-info-banner__cover"})}),Xt.jsxs($r,{className:"c-info-banner__content",direction:"column",justifyContent:{xs:"between"},children:[Xt.jsx(ln,{className:"c-info-banner__title",color:"red",bg:"white",px:"xxs-2",mb:"xxs-2",size:"s",weight:"bold",children:r}),Xt.jsx(ln,{as:n?"a":void 0,size:"s",color:"white",...n||{},children:t}),i&&Xt.jsx(cr,{...i,variant:"ghost",className:"c-info-banner__close",children:Xt.jsx(Ar,{name:"close",size:12,color:"white"})})]})]})}),dn=({html:e,caption:t=""})=>Xt.jsxs("figure",{className:"c-media",children:[Xt.jsx("div",{className:"c-media__content c-media__content--video",dangerouslySetInnerHTML:{__html:e}}),t&&Xt.jsx(ln,{as:"figcaption",size:"xs",mt:"s",color:"grey-300",className:"c-media__caption",children:t})]}),pn=({html:e})=>Xt.jsx("div",{dangerouslySetInnerHTML:{__html:e}}),fn={defaultFormat:"1444x920",formats:["1444x920","722x460","640x408","320x204"],sizes:"(min-width: 722px) 722px, 100vw"},hn={defaultFormat:"1444x920",formats:["1444x920","722x460","640x408","320x204"],sizes:"100vw"},mn=({type:e=en.photo,src:t,caption:r,source:n,credits:i,layout:o=Xr.MOBILE,imgProps:a,imagesNumber:s,videoIs16by9:l=!1,isGallery:c=!1,...u})=>{let d=hn;return o===Xr.DESKTOP&&(d=fn),Xt.jsxs(Ur,{...u,as:"figure",className:"c-media",children:[e===en.photo&&Xt.jsxs("div",{className:"c-media__content",children:[Xt.jsx(Dr,{...a,src:t,defaultFormat:a?.defaultFormat||d.defaultFormat,formats:a?.formats||d.formats,sizes:a?.sizes||d.sizes,alt:r,fetchPriority:a?.fetchPriority||"auto",lazyLoad:a?.lazyLoad||!0}),c&&s&&s>=2&&Xt.jsx(cr,{variant:"half-opacity-dark-bg",iconProps:{name:"diaporama-outlined",size:21},isCentered:!0,counter:s,children:Xt.jsx(ln,{as:"span",size:"m",whiteSpace:"nowrap",children:"Lancer le diaporama"})})]}),[en.video,en.podcast,en.embed].includes(e)&&Xt.jsx("div",{className:or("c-media__content",{[`c-media__content--${e}`]:e,"c-media__content--video-is-16-by-9":e===en.video&&l}),dangerouslySetInnerHTML:{__html:t}}),r&&Xt.jsxs(ln,{className:or({"caption-content":c}),as:"figcaption",size:"xs",mt:"s",color:"grey-400",mx:{xs:"m",md:"0"},children:[r,i&&Xt.jsxs(ln,{as:"span",color:"grey-300",size:"xs",className:"text-italic",children:[" - ",i]}),n&&Xt.jsxs(ln,{as:"span",color:"grey-300",size:"xs",className:"text-italic",children:[" / ",n]})]})]})},gn=({avatars:e,maxAvatar:t=4,themeColor:r,...n})=>Xt.jsx($r,{...n,className:"c-avatar-group",children:e.slice(0,t).map(e=>Xt.jsx(sr,{img:e.path,alt:e.title,color:e.color??(e.path?void 0:r)},e.title))}),yn=lr(({as:e="article",children:t,className:r,clickable:n=!1,...i},o)=>Xt.jsx($r,{...i,as:e,ref:o,justifyContent:i?.justifyContent||"between",className:or("c-card-container",{"c-card-container--clickable":n},r),children:t})),vn=({text:e,avatarAlt:t,avatarUrl:r,secondaryText:n,bg:i,...o})=>{const a={as:"span",size:"xs",bg:i||void 0,p:i?"xxs":void 0,color:i?"grey-900":void 0},s=Xt.jsxs($r,{gap:"xxs",children:[Xt.jsx(sr,{variant:"xsmall",img:r,alt:t}),Xt.jsx(ln,{...a,mt:"xxs-2",children:e})]});return Xt.jsxs($r,{...o,justifyContent:"between",alignItems:"center",gap:"s",children:[r?s:Xt.jsx(ln,{...a,children:e}),n&&Xt.jsx(ln,{as:"span",size:"xxs-3",color:"grey-300",textTransform:"uppercase",children:n})]})},bn=({headline:e,liveTime:t,rightSubheader:r,location:n,...i})=>{const o=Xt.jsx(Pr,{color:e.color||"grey-400",isUppercase:e.isUppercase,size:"xs",...!n&&!t&&!r&&i,children:e.text}),a=t||r?Xt.jsxs($r,{...!n&&i,alignItems:"center",gap:"xxs-2",color:"grey-400",children:[t&&Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(ln,{as:"span",size:"xs",color:"red",weight:"bold",children:t}),Xt.jsx(Nr,{size:"xs",color:"red"})]}),o,r&&Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(Nr,{size:"xs",color:e.color||"grey-400"}),Xt.jsx(ln,{as:"time",size:"xs",color:r.color,children:r.text})]})]}):o;return n?Xt.jsxs($r,{...i,direction:"column",children:[a,Xt.jsxs($r,{color:"ultramarine",mt:"xxs-2",children:[Xt.jsx(Ar,{name:"local",size:13,mr:"xxs-2"}),Xt.jsx(ln,{size:"xxs",weight:"bold",textTransform:"uppercase",children:n})]})]}):a},wn=({iconProps:e,iconSize:t,iconColor:r,iconBackground:n,count:i,countColor:o,countBg:a,countSize:s,countStyle:l="rounded",label:c,ariaLabel:u,anchor:d,link:p,isClickable:f=!0,isHighlighted:h=!1,isInToolbar:m=!1,children:g,variant:y,...v})=>{const b=()=>{if(e?.size)return e.size;if(void 0!==t){if("string"==typeof t)switch(t){case"small":return 10;case"medium":return 15;default:return 20}return t}return y&&"secondary"===y?15:20},w=()=>{const c=Xt.jsx($r,{as:"span",className:or("c-icon-item__icon",{"c-icon-item__icon--in-toolbar":m,[`c-icon-item__icon--${t}`]:t}),alignItems:"center",justifyContent:"center",bg:void 0!==n?"none"===n?void 0:n:y&&"secondary"===y?"grey-100":void 0,color:r,children:Xt.jsx(Ar,{size:b(),...e})});return void 0!==i?Xt.jsxs($r,{className:"c-icon-item",alignItems:"center",children:[c,Xt.jsx(ln,{as:"span",size:"small"===s?"xxs-2":y&&"secondary"===y?"xxs":"xxs-2",color:o||(y&&"secondary"===y?"black":"white"),bg:a||(y&&"secondary"===y?void 0:"default"),ml:"inline"===l&&"none"!==n?"xxs-2":void 0,className:or("c-icon-item__count",{[`c-icon-item__count--${l}`]:l,[`c-icon-item__count--${s}`]:s}),children:0===i?"0":i})]}):c};return Xt.jsxs($r,{...v,inline:!0,direction:"column",alignItems:"center",className:or("c-icon-item__container",{"c-icon-item__container--is-clickable":f},{"c-icon-item__container--is-highlighted":h},{"c-icon-item__container--has-children":g},v?.className),"aria-label":u,children:[d||p?Xt.jsx("a",{href:d?`#${d}`:p,children:w()}):w(),Xt.jsx(ln,{size:"xxs-2",children:c}),g]})},_n=e=>{switch(e){case"small":return 20;case"medium":return 28;default:return 40}},xn=({cover:e,id:t,defaultFormat:r,formats:n,sizes:i,alt:o,caption:a,lazyLoad:s=!1,fetchPriority:l="auto",withShadow:c=!1,isFavorite:u,enableHD:d=!1,dataId:p="",hasFlag:f=!1,title:h,className:m,radius:g,...y})=>{const v=Xt.jsx(Dr,{...t?{id:t}:{},src:e,defaultFormat:r,formats:n,sizes:i,alt:o,lazyLoad:s,fetchPriority:l,radius:g,enableHD:d});return Xt.jsx(Ur,{...y,className:or("c-card-img",m),children:Xt.jsxs("div",{className:or("c-card-img__inner",{"c-card-img__inner--with-shadow":c||!!a||f,"c-card-img__inner--with-interaction":void 0!==u}),children:[a&&Xt.jsxs($r,{color:"white",alignItems:"center",gap:"small"===a.size?"xxs-2":"xxs",className:or("c-card-img__caption",{[`c-card-img__caption--${a.size||"big"}`]:!0}),children:[Xt.jsx(Ar,{name:a.iconName,size:_n(a.size||"big")}),Xt.jsx(ln,{size:"small"===a.size?"xxs-2":"xxs",weight:"bold",children:a.text})]}),h&&Xt.jsx(ln,{size:"xxl",weight:"bold",color:"white",className:"c-card-img__title",children:h}),void 0!==u&&Xt.jsx(wn,{className:"c-card-img__favorite",variant:"secondary",iconProps:{size:20,name:u?"star":"star-outlined"},color:"grey-500","data-event-name":"mbrs-game-save-favorite",...p?{"data-id":p}:{}}),v,f&&Xt.jsx("span",{className:or("c-card-img__flag",{"c-card-img__flag--has-radius":"0"!==g})})]})})},Sn=e=>{switch(e){case"alert":return{label:"alerte info",color:"red"};case"live":return{label:"live",color:"red"};case"info":return{label:"info en série",color:"ultramarine"};case"with-you":return{label:"avec vous",color:"entertainment"};case"magazine":return{label:"magazine",color:"publishing"};default:return{label:"exclusif",color:"ultramarine"}}},En=({cartridge:e,cartridgeIsCentered:t,maxRows:r,as:n,size:i,fontFamily:o,weight:a,children:s,...l})=>Xt.jsx(Ur,{pb:"xxs-3",...l,className:or("c-card-title",{"c-card-title--has-max-rows":r,[`c-card-title--has-${r}-rows`]:r},l?.className),children:Xt.jsxs(sn,{as:n||"h1",size:i||"m",fontFamily:o||"source-serif-pro",weight:a||"semi-bold",children:[e&&Xt.jsx(Pr,{bg:Sn(e).color,color:"white",hasDot:"live"===e||!1,mr:"xxs",textProps:{fontFamily:"base"},className:or("c-card-title__cartridge-heading",{"c-card-title__cartridge-heading--is-centered":t}),children:Sn(e).label}),s]})}),kn=({link:e,title:t,summaryProps:r,cardHeaderProps:n,cardTitleProps:i,cardImageProps:o,layout:a,signatureProps:s,socialBarProps:l,follows3ColumnsGrid:c=!1,mediaSrc:u,linkProps:d,...p})=>{const{cardFooterProps:f,...h}=p,m=["722x460","640x408","320x204"];return Xt.jsx(yn,{...h,className:or("c-card-extra-large",h.className),direction:"column",clickable:!0,children:a===Xr.DESKTOP?Xt.jsxs($r,{gap:c?"s":"xl",className:or({"o-lt-show":!c,"o-columns-by-3":c}),children:[o||u?Xt.jsx(Ur,{className:or({"o-lt-show__main":!c,"o-columns-by-3__first-2-columns":c}),children:o&&Xt.jsx(xn,{...o,formats:m,defaultFormat:"722x460",sizes:"(min-width: 1024px) 722px, (min-width: 480px) 640px, 320px",alt:t})||u&&Xt.jsx(mn,{type:en.video,src:u,videoIs16by9:!0})}):null,Xt.jsxs($r,{direction:"column",justifyContent:"between",pl:c?"s":"0",className:or({"o-lt-show__aside":!c,"o-columns-by-3__last-1-column":c}),children:[Xt.jsxs($r,{direction:"column",flexGrow:1,children:[n&&Xt.jsx(bn,{...n,rightSubheader:void 0,mb:"xxs-2"}),Xt.jsx(En,{as:"h2",size:"l",weight:"bold",cartridgeIsCentered:!0,...i,children:Xt.jsx("a",{href:e,children:t})}),r&&Xt.jsx(ln,{...r,size:"xl",fontFamily:"source-serif-pro",color:r.color||"grey-600",mt:"xs",children:r.children})]}),l&&Xt.jsx(mi,{...l,variant:"card",mt:"s",className:"c-card-element--is-clickable"})]})]}):Xt.jsxs(Xt.Fragment,{children:[Xt.jsxs("div",{children:[n&&Xt.jsx(bn,{...n,rightSubheader:void 0,mx:"m",mb:"xxs-2"}),Xt.jsx(En,{as:"h2",weight:"bold",...i,mx:"m",children:Xt.jsx("a",{href:e,children:t})}),o&&Xt.jsx(xn,{...o,formats:m,defaultFormat:"640x408",alt:t,mt:"xs",radius:"0"}),s&&Xt.jsx(di,{...s,mx:"m",mt:"xs",className:"c-card-element--is-clickable"}),r&&Xt.jsx(Ur,{as:"p",color:r.color||"grey-600",className:"c-card-extra-large__summary",mx:"m",mt:"xs",children:r.children})]}),l&&Xt.jsx(mi,{...l,variant:"card",mt:"s",mx:"m",className:"c-card-element--is-clickable"}),d&&!l&&Xt.jsx($r,{mt:"s",justifyContent:"center",children:Xt.jsx(Wr,{variant:"primary",...d})})]})})},Cn=({link:e,title:t,cardHeaderProps:r,cardTitleProps:n,cardImageProps:i,cardFooterProps:o,layout:a,socialBarProps:s,reverseCard:l,...c})=>{const{summaryProps:u,signatureProps:d,...p}=c;return Xt.jsxs(yn,{...p,p:c?.bg?"s":void 0,direction:"column",className:or("c-card-extra-small",c?.className),justifyContent:"start",clickable:!0,children:[r&&Xt.jsx(bn,{...r,mb:"xxs-2"}),Xt.jsxs($r,{justifyContent:l?"end":"between",gap:"xs",direction:l?"row-reverse":"row",children:[Xt.jsx(En,{as:"h4",fontFamily:"source-serif-pro",weight:"semi-bold",maxRows:5,size:"xxs-2",pb:void 0,cartridgeIsCentered:!0,...n,children:Xt.jsx("a",{href:e,children:t})}),i&&Xt.jsx(xn,{...i,...i.caption&&{caption:{size:"small",...i.caption}},defaultFormat:a===Xr.DESKTOP?"130x82":"260x164",formats:["260x164","130x82"],sizes:a===Xr.DESKTOP?"130px":"260px",alt:t,className:"c-card-extra-small__img"})]}),o&&Xt.jsx(vn,{...o,mt:"xs"}),s&&Xt.jsx(mi,{...s,variant:"card",mt:"xs",className:"c-card-element--is-clickable"})]})},An=({link:e,title:t,layout:r,summaryProps:n,cardHeaderProps:i,cardTitleProps:o,cardImageProps:a,socialBarProps:s,mediaSrc:l,...c})=>{const{cardFooterProps:u,signatureProps:d,...p}=c;return Xt.jsx(yn,{...p,className:"c-card-large",direction:"column",children:r===Xr.DESKTOP?Xt.jsxs("a",{href:e,children:[a&&Xt.jsx(xn,{...a,defaultFormat:"722x460",formats:["722x460","320x204"],alt:t}),Xt.jsxs(Ur,{className:or("c-card-large__summary",{"c-card-large__summary--has-flag":a?.hasFlag}),color:"white",children:[i&&Xt.jsx(Pr,{size:"xs",children:i.headline.text}),Xt.jsx(En,{size:"l",weight:"bold",cartridgeIsCentered:!0,...o,children:t}),n&&Xt.jsx(ln,{...n,as:"span",size:"l",fontFamily:"source-serif-pro",children:n.children})]})]}):Xt.jsxs(Xt.Fragment,{children:[Xt.jsxs("a",{href:e,children:[a&&Xt.jsx(xn,{...a,defaultFormat:"722x460",formats:["722x460","320x204"],alt:t,mb:"xs",radius:"0"})||l&&Xt.jsx(mn,{type:en.video,src:l,videoIs16by9:!0,mb:"xs"})||null,i&&Xt.jsx(Pr,{color:i.headline.color||"grey-400",size:"xs",mx:"m",mb:"xxs",children:i.headline.text}),Xt.jsx(En,{mx:"m",weight:"bold",...o,children:t}),l&&n&&Xt.jsx(ln,{...n,size:"m",mx:"m",fontFamily:"source-serif-pro",color:n.color||"grey-600",mt:"xs",children:n.children})]}),s&&Xt.jsx(mi,{...s,variant:"card",mx:"m",mt:"s",className:"c-card-element--is-clickable"})]})})},Tn=({link:e,title:t,cardHeaderProps:r,cardTitleProps:n,cardImageProps:i,socialBarProps:o,cardFooterProps:a,bg:s,radius:l,...c})=>{const{summaryProps:u,signatureProps:d,...p}=c;return Xt.jsxs(yn,{...p,direction:"column",bg:s,radius:s?l||"xxs":void 0,clickable:!0,children:[i&&Xt.jsx(xn,{...i,formats:["480x308","346x222"],defaultFormat:"480x308",alt:t,mb:"xs",className:s?"c-card-img--with-bg":void 0}),r&&Xt.jsx(bn,{...r,...s&&{color:"grey-500",px:"s"},mb:"xxs-2"}),Xt.jsx(En,{as:"h3",maxRows:3,fontFamily:"source-serif-pro",weight:"semi-bold",size:"xs",cartridgeIsCentered:!0,...s&&{color:"grey-900",px:"s"},...n,className:or("c-card-medium__title",n?.className),children:Xt.jsx("a",{href:e,children:t})}),a&&Xt.jsx(vn,{...a,mt:"l",p:s?"s":void 0,bg:a?.bg||s}),o&&Xt.jsx(mi,{mt:"xs",...o,variant:"card",className:"c-card-element--is-clickable"})]})},Ln=(e,t="fr-FR")=>Intl.NumberFormat(t).format(e),Dn=({link:e,title:t,cardHeaderProps:r,cardTitleProps:n,cardImageProps:i,cardNumber:o,layout:a,summaryProps:s,commentCount:l,variant:c,shareCount:u,viewCount:d,...p})=>{const{cardFooterProps:f,signatureProps:h,socialBarProps:m,...g}=p;return Xt.jsxs(yn,{...g,clickable:!0,className:or("c-card-most",{[`c-card-most--${c}`]:c}),justifyContent:"start",children:[Xt.jsx(ln,{as:"span",color:"ultramarine",weight:"semi-bold",className:or("c-card-most__card-number",{[`c-card-most__card-number--${o.size||"default"}-size`]:!0}),mr:"small"===c?"xs":"m",children:o.value}),Xt.jsxs(Ur,{className:"c-card-most__content",children:[r&&Xt.jsx(bn,{mb:"xxs-2",...r}),Xt.jsx(En,{as:"h3",size:{xs:"xxs-2",md:"small"===c?"xxs-3":"xs"},fontFamily:"source-serif-pro",weight:"semi-bold",cartridgeIsCentered:!0,...n,children:Xt.jsx("a",{href:e,children:t})}),s&&Xt.jsx(ln,{color:"grey-600",fontFamily:"source-serif-pro",size:"m",mt:"xs",...s,children:s.children}),i?.cover&&a===Xr.MOBILE&&Xt.jsx(xn,{...i,...i.caption&&{caption:{size:"medium",...i.caption}},defaultFormat:"297x204",enableHD:!0,alt:t,mt:"xs",className:"c-card-most__img"}),!!l&&Xt.jsxs($r,{gap:"xs",alignItems:"center",mt:"xs",children:[Xt.jsx(Ar,{size:22,name:"comment"}),Xt.jsx(ln,{size:"m",weight:"bold",children:Ln(l)})]}),!!u&&Xt.jsxs($r,{gap:"xs",alignItems:"center",mt:"xs",children:[Xt.jsx(Ar,{size:22,name:"share"}),Xt.jsx(ln,{size:"m",weight:"bold",children:Ln(u)})]}),!!d&&Xt.jsxs($r,{gap:"xs",alignItems:"center",mt:"xs",children:[Xt.jsx(Ar,{size:22,name:"view"}),Xt.jsx(ln,{size:"m",weight:"bold",children:Ln(d)})]})]}),i?.cover&&a===Xr.DESKTOP&&Xt.jsx(xn,{...i,...i.caption&&{caption:{size:"small",...i.caption}},className:"c-card-most__img",defaultFormat:"small"===c?"72x46":"150x95",enableHD:!0,alt:t,ml:"small"===c?"xs":"m"})]})},Nn=({title:e,summary:t,cardTitleProps:r,cardImageProps:n,link:i,layout:o,directedBy:a,castings:s,genres:l,releaseDate:c,seeMoreLink:u,reviewLink:d,rating:p,containerSpacing:f,...h})=>{const m=a||s||p?Xt.jsx($r,{alignContent:"end",mt:"l",children:Xt.jsxs($r,{gap:"xxs-2",direction:"column",flexGrow:1,bg:"grey-100",px:"s",py:"xs",children:[a&&Xt.jsxs("div",{children:[Xt.jsxs(ln,{as:"span",weight:"bold",children:["Réalisé par :"," "]}),Xt.jsx("span",{children:a})]}),(s??[]).length>0&&Xt.jsxs("div",{children:[Xt.jsxs(ln,{as:"span",weight:"bold",children:["Avec :"," "]}),Xt.jsx("span",{children:s?.join(", ")})]}),p&&Xt.jsxs($r,{alignItems:"center",gap:"xxs",children:[Xt.jsxs(ln,{as:"span",weight:"bold",children:["La note 20 Minutes :"," "]}),Xt.jsx(Zr,{rating:p,iconProps:{size:19}})]})]})}):null;return Xt.jsxs(yn,{...h,className:"c-card-movie",direction:"column",children:[Xt.jsxs($r,{direction:"row",gap:{xs:"m",md:"l"},...f,children:[Xt.jsxs("div",{className:"c-card-movie__side",children:[n&&Xt.jsx(xn,{...n,radius:"xs",alt:e}),o===Xr.DESKTOP&&Xt.jsxs($r,{direction:"column",gap:"xs",mt:"xs",children:[d&&Xt.jsx(Wr,{variant:"primary",...d}),Xt.jsx(Wr,{variant:"secondary",...u})]})]}),Xt.jsxs($r,{direction:"column",justifyContent:"between",className:"c-card-movie__content",children:[Xt.jsxs($r,{direction:"column",flexGrow:1,children:[Xt.jsx(En,{as:"h2",size:"s",fontFamily:"source-serif-pro",weight:"bold",...r,children:Xt.jsx("a",{href:i,children:e})}),Xt.jsxs(ln,{mt:"xxs-2",size:"s",children:[Xt.jsxs(ln,{as:"span",weight:"bold",children:["Sortie :"," "]}),Xt.jsx("span",{children:c}),l&&l.length>0&&Xt.jsxs(Xt.Fragment,{children:[" ",Xt.jsx(Nr,{size:"xs"})," ",Xt.jsxs(ln,{as:"span",weight:"bold",children:["Genre :"," "]}),Xt.jsx("span",{children:l.join(", ")})]})]}),o===Xr.DESKTOP&&t&&Xt.jsx(ln,{size:"m",mt:"xs",dangerouslySetInnerHTML:{__html:t}})]}),o===Xr.DESKTOP&&m]})]}),o===Xr.MOBILE&&t&&Xt.jsx(ln,{...f,size:"m",mt:"xs",dangerouslySetInnerHTML:{__html:t}}),o===Xr.MOBILE&&Xt.jsxs(Xt.Fragment,{children:[m,Xt.jsxs($r,{direction:"column",gap:"xs",mt:"l",mx:"auto",className:"c-card-movie__footer",children:[d&&Xt.jsx(Wr,{variant:"primary",...d}),Xt.jsx(Wr,{variant:"secondary",...u})]})]})]})},In=({link:e,title:t,summaryProps:r,cardHeaderProps:n,cardTitleProps:i,cardImageProps:o,linkProps:a,...s})=>Xt.jsxs(yn,{...s,direction:"row",clickable:!0,gap:"xl",className:or("o-lt-show",s.className),children:[Xt.jsx(Ur,{className:or("o-lt-show__main"),children:o&&Xt.jsx(xn,{...o,formats:["480x308","346x222"],defaultFormat:"480x308",sizes:"(min-width: 1024px) 480px, (min-width: 480px) 346px",alt:t})}),Xt.jsxs($r,{direction:"column",justifyContent:"between",className:or("o-lt-show__aside"),children:[Xt.jsxs($r,{direction:"column",children:[n&&Xt.jsx(bn,{...n,rightSubheader:void 0,mb:"xxs-2"}),Xt.jsx(En,{as:"h2",size:"m",pb:"xxs",weight:"bold",cartridgeIsCentered:!0,...i,children:Xt.jsx("a",{href:e,children:t})}),Xt.jsx(ln,{size:"xl",fontFamily:"source-serif-pro",color:r?.color||"grey-600",...r,children:r?.children})]}),Xt.jsx($r,{mt:"s",children:Xt.jsx(Wr,{variant:"primary",...a})})]})]}),Pn=({className:e,...t})=>Xt.jsx(Ur,{className:or("c-card-skeleton__block",e),bg:"grey-200",...t}),On=e=>Xt.jsxs(yn,{...e,direction:"column",gap:"xxs",children:[Xt.jsx(Pn,{className:"c-card-skeleton__block--image"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--meta"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--title"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--subtitle"})]}),qn=e=>Xt.jsx(yn,{...e,direction:"column",className:or("c-card-skeleton",e.className),children:Xt.jsxs($r,{gap:"xs",children:[Xt.jsxs($r,{direction:"column",gap:"xxs",flexGrow:1,children:[Xt.jsx(Pn,{className:"c-card-skeleton__block--meta"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--title"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--subtitle"})]}),Xt.jsx(Pn,{className:"c-card-skeleton__block--image"})]})}),jn=({variant:e,className:t,...r})=>{const n=or("c-card-skeleton",{[`c-card-skeleton--${e}`]:e},t);return"medium"===e?Xt.jsx(On,{...r,className:n}):Xt.jsx(qn,{...r,className:n})},Mn=({link:e,title:t,cardHeaderProps:r,cardTitleProps:n,cardImageProps:i,summaryProps:o,layout:a,variant:s="default",...l})=>{const{cardFooterProps:c,signatureProps:u,socialBarProps:d,...p}=l,f=Xt.jsxs(Xt.Fragment,{children:[i&&Xt.jsx(xn,{sizes:"(min-width: 480px) 252px, 160px",defaultFormat:a===Xr.DESKTOP?"252x162":"160x102",formats:["252x162","160x102"],alt:t,mb:"title-on-image"===s?"0":"xxs",withShadow:"title-on-image"===s,...i,...i.caption&&{caption:{size:a===Xr.DESKTOP?"medium":"small",...i.caption}}}),r&&Xt.jsx(bn,{mb:"xxs-2",...r}),Xt.jsx(En,{as:"h4",className:or("c-card-small__title",{"c-card-small__title--is-on-image":"title-on-image"===s}),size:"xxs-2",fontFamily:"source-serif-pro",cartridgeIsCentered:!0,...n,children:"title-on-image"===s?t:Xt.jsx("a",{href:e,children:t})}),o&&Xt.jsx(ln,{...o,size:{xs:"s",md:"m"},mt:"xxs-3",className:"c-card-small__summary",children:o.children})]});return Xt.jsx(yn,{...p,direction:"column",clickable:!0,children:"title-on-image"===s?Xt.jsx("a",{href:e,children:f}):f})},Rn=({link:e,title:t,cardImageProps:r,...n})=>Xt.jsx(Ur,{...n,as:"a",href:e,className:or("c-card-container","c-card-container--with-opacity-hover","c-card-container--clickable"),children:r&&Xt.jsx(xn,{...r,defaultFormat:"196x234",formats:["196x234"],radius:"xxs",title:t,alt:t})}),Fn=({link:e,title:t,cardImageProps:r,layout:n,...i})=>Xt.jsx(Ur,{...i,as:"a",href:e,className:or("c-card-container","c-card-container--with-opacity-hover","c-card-container--clickable"),children:r&&Xt.jsx(xn,{sizes:"(min-width: 480px) 183px, 223px",...r,defaultFormat:n===Xr.DESKTOP?"183x215":"223x262",formats:["183x215","223x262"],alt:t})}),Bn=({title:e,summaryProps:t,cardTitleProps:r,link:n,linkProps:i,location:o,...a})=>Xt.jsxs(yn,{...a,direction:{xs:"column",md:"row"},gap:"l",alignItems:{xs:"baseline",md:"center"},children:[Xt.jsxs(Kr,{grow:1,children:[Xt.jsxs($r,{color:"ultramarine",children:[Xt.jsx(Ar,{name:"local",size:13,mr:"xxs-2",mb:"xxs-2"}),Xt.jsx(ln,{size:"xxs",weight:"bold",textTransform:"uppercase",children:o})]}),e&&Xt.jsx(En,{size:"xxs-2",fontFamily:"base",...r,children:e}),t&&Xt.jsx(ln,{...t,as:"span",color:"grey-400",size:"m",children:t.children})]}),Xt.jsx(Wr,{...i,variant:"primary",href:n,whiteSpace:"nowrap",children:i.children})]}),zn=({link:e,title:t,summaryProps:r,cardHeaderProps:n,cardTitleProps:i,cardImageProps:o,socialBarProps:a,layout:s,...l})=>{const{cardFooterProps:c,signatureProps:u,...d}=l;return Xt.jsxs(yn,{...d,direction:"column",className:"c-card-with-summary",clickable:!0,children:[Xt.jsxs($r,{mb:"xs",className:"c-card-with-summary__content",gap:"xs",children:[Xt.jsxs(Kr,{grow:1,children:[n&&Xt.jsx(bn,{...n,mb:"xxs-2"}),Xt.jsx(En,{size:{xs:"xxs-2",md:"xs"},fontFamily:"source-serif-pro",cartridgeIsCentered:!0,...i,children:Xt.jsx("a",{href:e,children:t})}),s===Xr.DESKTOP&&r&&Xt.jsx(ln,{...r,as:"span",size:"m",fontFamily:"source-serif-pro",children:r.children})]}),Xt.jsx("div",{children:o&&Xt.jsx(xn,{...o,...o.caption&&{caption:{size:"small",...o.caption}},className:"c-card-with-summary__image",defaultFormat:"150x90",alt:t,mb:"xs"})})]}),a&&Xt.jsx(mi,{...a,variant:"card",className:or("c-card-element--is-clickable","c-card-with-summary__social-bar")})]})},Hn=({articles:e,layout:t,label:r,description:n,labelLink:i,iconProps:o,headingProps:a,sliderProps:s,themeColor:l,titleUnderlined:c=!0,isSponsored:u,seeMoreLink:d,...p})=>{const f=e=>{switch(s?.sliderVariant){case"videos":return Xt.jsx(Fn,{...e});case"vertical-cards":return Xt.jsx(Rn,{...e});default:return Xt.jsx(Mn,{...e,layout:t,...e.cardHeaderProps&&{cardHeaderProps:{...u&&{color:"grey-500"},...e.cardHeaderProps}},cardTitleProps:{weight:"semi-bold",maxRows:5,...u&&{color:"grey-900"},...e.cardTitleProps},...e.cardImageProps&&{cardImageProps:{sizes:"(min-width: 1840px) 267px, (min-width: 1440px) calc(4.74vw + 181px), (min-width: 1120px) 235px, (min-width: 780px) 20.94vw, calc(50vw - 25px)",...e.cardImageProps}}})}},h=Xt.jsx(li,{label:r||"",mb:(o?"0":(!c||u)&&"m")||"xxl",labelLink:i,themeColor:l,isUnderlined:c,...u&&{color:"grey-900"},...a});return e.length>0?Xt.jsxs(Ur,{as:"section",...p,className:or("c-carousel",p?.className),bg:u?"sponsoring":void 0,py:u?"m":void 0,children:[r&&!o&&h,r&&o&&Xt.jsxs($r,{as:"header",direction:{xs:"column-reverse",md:"row"},justifyContent:"between",alignItems:{xs:"start",md:"end"},mx:{xs:"m",md:"0"},mb:{xs:"l",md:"0"},gap:{xs:"xs",md:"0"},children:[h,Xt.jsx(Ar,{...o})]}),u&&Xt.jsx(ln,{as:Ur,size:"xs",color:"grey-900",mb:"xs",children:"Articles sponsorisés"}),t===Xr.DESKTOP&&n&&Xt.jsx(ln,{size:"m",color:"grey-400",mb:"xl",...n,className:n.className,children:n.children}),Xt.jsx(tn,{...s,sliderVariant:s?.sliderVariant||"rubrics",itemsGap:"videos"===s?.sliderVariant?"l":"xs",layout:t,children:e.map(t=>Xt.jsx(Kr,{as:"article",grow:0,shrink:0,align:"start",className:or(`c-carousel__${s?.sliderVariant&&["videos","vertical-cards","sport","movies"].includes(s?.sliderVariant)?s?.sliderVariant:"article"}`,{[`c-carousel__${s?.sliderVariant&&["videos","vertical-cards","movies"].includes(s?.sliderVariant)?s?.sliderVariant:"article"}--in-long-list`]:"sport"!==s?.sliderVariant&&e.length>4,"c-carousel__sport--in-long-list":"sport"===s?.sliderVariant&&e.length>5}),children:f(t)},t.title))}),d&&Xt.jsx($r,{justifyContent:"center",mt:"xl",children:Xt.jsx(Wr,{variant:"secondary",...d})})]}):null},Vn=({citationText:e,citationAuthor:t,...r})=>Xt.jsxs(Ur,{...r,as:"blockquote",color:"ultramarine",className:"c-citation",children:[Xt.jsxs(ln,{fontFamily:"source-serif-pro",italic:!0,size:"l",weight:"regular",className:"c-citation__content",children:[Xt.jsx(ln,{as:"span",size:"xxl",weight:"bold",children:"« "}),e,Xt.jsx(ln,{as:"span",size:"xxl",weight:"bold",children:" »"})]}),t&&Xt.jsx(ln,{as:"footer",mt:{xs:"m",md:"xl"},size:"m",weight:"bold",className:"c-citation__footer",children:t})]}),Un=lr(({index:e,textTitleProps:t,headingTitleProps:r,titleIconProps:n,isOpen:i,contentWithBorder:o=!0,contentProps:a,iconProps:s,btnProps:l,children:c,isDropdown:u,...d},p)=>Xt.jsxs(Ur,{...d,className:or("c-collapse js-collapse",{"c-collapse--dropdown":u}),ref:p,children:[Xt.jsxs(Ur,{...l,as:"button",type:"button",id:`c-collapse__button-${e}`,pl:l?.pl||"l",py:l?.py||"xxs",className:or("c-collapse__button js-collapse__button",l?.className),"aria-controls":`c-collapse__content-${e}`,"aria-expanded":i||"false",children:[n?Xt.jsxs($r,{alignItems:"center",children:[Xt.jsx(Ar,{size:34,mr:"xs",...n}),t?.children]}):r?Xt.jsx(sn,{as:"h3",size:"xxs",color:"black",...r,children:r?.children}):Xt.jsx(ln,{size:"l",color:"black",...t,children:t?.children}),Xt.jsx(Ar,{name:"chevron",size:16,...s,className:or("c-collapse__icon",s?.className)})]}),Xt.jsx($r,{...a,direction:"column",p:a?.p||"xl",id:`c-collapse__content-${e}`,"aria-hidden":i?!i:"true","aria-labelledby":`c-collapse__button-${e}`,className:or("c-collapse__content",{"c-collapse__content--with-border":o}),role:"tabpanel",children:c})]})),$n=({layout:e,searchFormProps:t,title:r,titleHref:n,breadcrumbProps:i,selectProps:o,variant:a,isOpen:s=!0,hasTopBorder:l=!1})=>{const c=Xt.jsx(cr,{variant:"ghost",iconProps:{name:"chevron",color:"white",size:18},id:"js-search-banner-expand-button",className:"c-search-banner__expand-button"}),u=o&&Xt.jsx(Yr,{...o,defaultValue:o?.options.find(e=>e.isSelected)?.value,containerProps:{...o?.containerProps,px:{xs:"m",md:"0"}}}),d=Xt.jsx($r,{mt:{xs:"0",md:"xs"},gap:{xs:"xs",lg:"m"},className:or("c-search-banner__breadcrumb",{"c-search-banner__breadcrumb--mobile":e===Xr.MOBILE}),"data-search-banner-collapse":!0,...e===Xr.DESKTOP&&{"aria-hidden":s?!s:"true"},children:i?.map(({label:e,link:t},r)=>Xt.jsx(an,{variant:"tertiary",size:"small",py:"xxs-2",px:"l",ml:0===r?{xs:"m",md:"0"}:void 0,href:t,children:e},t))}),p=!u;return Xt.jsx(Ur,{bg:"ultramarine",py:{xs:"xxs",md:"0"},className:or("c-search-banner",{"c-search-banner--has-top-border":l}),children:e===Xr.DESKTOP?Xt.jsxs($r,{px:p?void 0:"m",gap:{xs:"m",lg:"l"},"aria-expanded":s||"false","data-search-banner-expanded-source":!0,className:or({"o-page-wrap":p,"c-search-banner__large-container":!p}),pt:p?"0":void 0,children:["municipales-2026"===a?Xt.jsx("div",{className:or("c-search-banner__name",{"c-search-banner__name--is-hidden-under-xl":u}),children:Xt.jsxs(ln,{as:n?"a":"span",weight:"bold",className:"u-relative",...n?{href:n}:{},children:["Élections municipales"," ",Xt.jsx(ln,{as:"span",weight:"regular",children:"2026"}),Xt.jsx("span",{className:"c-search-banner__flag"})]})}):Xt.jsx(Ar,{name:"ballot-box",size:55,className:"c-search-banner__default-icon"}),Xt.jsxs($r,{flexGrow:1,direction:"column",py:"m",children:[Xt.jsxs($r,{gap:{xs:"m",lg:"l"},justifyContent:"end",children:[Xt.jsx(Kr,{grow:1,children:Xt.jsx(Ur,{as:si,...t})}),!!o?.options.length&&u,!!i?.length&&c]}),!!i?.length&&d]}),"municipales-2026"===a&&u&&Xt.jsx("span",{className:"c-search-banner__flag c-search-banner__flag--at-the-bottom"})]}):Xt.jsxs($r,{justifyContent:"center",direction:"column","aria-expanded":s||"false","data-search-banner-expanded-source":!0,children:[r&&Xt.jsx(ln,{as:"span",px:"m",weight:"bold",color:"white",mb:"xxs",children:n?Xt.jsx("a",{href:n,children:r}):r}),Xt.jsxs($r,{gap:"s",px:{xs:"m",md:"0"},children:[Xt.jsx(Kr,{as:si,grow:1,...t}),!(!i?.length&&!o?.options.length)&&c]}),!(!i?.length&&!o?.options.length)&&Xt.jsxs($r,{direction:"column",gap:"xxs",mt:"xxs","aria-hidden":s?!s:"true","data-search-banner-collapse":!0,children:[!!i?.length&&d,!!o?.options.length&&u]}),"municipales-2026"===a&&Xt.jsx("span",{className:"c-search-banner__flag c-search-banner__flag--at-the-bottom"})]})})},Kn=({label:e,heading:t,source:r,subtitle:n,isExpandable:i=!1,contentProps:o,embedButton:a,...s})=>{const l=Xt.jsx(ln,{color:"grey-400",size:"xs",mt:a?void 0:"xxs",mx:a?void 0:{xs:"m",md:"0"},children:r});return Xt.jsxs(Ur,{as:"header",...s,className:or("c-nodeheader",{"c-nodeheader--is-expandable":i},s?.className),children:[Xt.jsx(Pr,{color:"grey-400",size:"xs",mx:{xs:"m",md:"0"},children:e}),Xt.jsx(sn,{...t,size:{xs:"xxs",md:"m"},fontFamily:"obviously",mx:{xs:"m",md:"0"},children:t.children}),r&&(a?Xt.jsxs($r,{alignItems:"center",mt:"xxs",mx:{xs:"m",md:"0"},children:[l,Xt.jsx(cr,{...a,inline:!0,variant:"ghost",iconProps:{name:"embed",size:20},color:"grey-200",ml:"xs"})]}):l),n&&Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(ln,{...o,as:"div",size:o?.size||{xs:"m",md:"l"},mx:{xs:"m",md:"0"},mt:"xs",className:"c-nodeheader__subtitle c-content c-content--resume js-expand-target","aria-hidden":i,children:n}),i&&Xt.jsxs(cr,{variant:"ghost",className:"c-nodeheader__btn js-expand-button","aria-expanded":"false",mt:"xs",mx:{xs:"m",md:"0"},children:[Xt.jsx(Ar,{isRounded:!0,name:"chevron",size:12,p:"xs",bg:"grey-100"}),Xt.jsx(ln,{as:"span",size:"xs",className:"js-expand-button__label",children:"Voir plus"})]})]})]})},Gn=({children:e,iconProps:t,isCentered:r,...n})=>Xt.jsx(sn,{className:or("c-header-title",{"c-header-title--has-icon":!!t,"c-header-title--has-icon-and-centered":!!t&&r}),fontFamily:"obviously",size:{xs:"l",md:"xxl"},...n,children:t?Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(Ar,{className:"c-header-title__icon",mr:"xxs",...t}),Xt.jsx(Ur,{className:"c-header-title__text-with-icon",children:e})]}):e});lr(({icon:e,title:t,content:r,...n},i)=>Xt.jsxs(Ur,{...n,ref:i,className:or("c-horoscope-topic-card",n?.className),children:[Xt.jsxs($r,{alignItems:"center",mb:"s",children:[Xt.jsx(Ar,{className:"c-horoscope-topic-card__icon",name:e,size:21}),Xt.jsx(sn,{as:"h3",size:"xs",children:t})]}),Xt.jsx(ln,{size:"m",children:r})]}));const Wn=({items:e,...t})=>{const r=e=>Xt.jsx(ln,{size:"xs",weight:"bold",mb:"xs",children:e});return Xt.jsx(Gr,{as:"ul",...t,colsNumber:{xs:1,md:3},className:"c-legend",children:e.map((e,t)=>Xt.jsxs($r,{as:"li","data-color":e.color,gap:"s",pr:{xs:void 0,md:t%3!=2?"m":void 0},pt:{xs:t>0?"m":void 0,md:t>2?"m":"0"},className:"c-legend__item",children:[Xt.jsx(Ar,{name:"dot",size:12,mt:"xxs-3",className:or("c-legend__dot",{[`c-legend__dot--${e.color}`]:e.color})}),e.subLegend?Xt.jsxs("div",{children:[r(e.name.toUpperCase()),Xt.jsx(ln,{color:"grey-400",weight:"bold",children:e.subLegend})]}):r(e.name.toUpperCase())]},e.name))})},Qn=({variant:e,isOver:t=!1,updatedAt:r,timeSlot:n,...i})=>"elections"===e&&t?null:Xt.jsxs($r,{...i,alignItems:"center",className:"c-live-indicator",children:[Xt.jsx(Pr,{bg:"red",color:"white",hasDot:"elections"!==e,mr:"s",size:{xs:"xxs",md:"xs"},children:("elections"===e?"estimations":"tv"===e&&"en direct")||"live"}),Xt.jsx(Ar,{name:"clock",size:15,color:"tv"===e&&(n?.color||"grey-500")||"live"===e&&t&&"grey-300"||"red",mr:"xxs",className:or("c-live-indicator__icon",{"c-live-indicator__text--over":t})}),Xt.jsx(ln,{size:"xs",color:n&&(n.color||"grey-500")||t&&"grey-300"||"red",className:or("c-live-indicator__text",{"c-live-indicator__text--over":t}),children:n?.children||t&&"Terminé"||`Mis à jour ${r}`})]}),Zn=({question:e,author:t,response:r,...n})=>Xt.jsxs(Ur,{...n,className:"c-live-talk",children:[Xt.jsxs(Ur,{bg:"grey-100",p:"s",mb:"xl",radius:"m",className:"c-live-talk__question",children:[Xt.jsx(ln,{color:"grey-600",mb:"s",fontFamily:"source-serif-pro",size:"l",dangerouslySetInnerHTML:{__html:e}}),Xt.jsx(ln,{color:"black",weight:"bold",size:"xs",children:t})]}),r&&Xt.jsx(ln,{color:"grey-600",fontFamily:"source-serif-pro",size:"l",children:r})]}),Jn=({status:e,header:t,title:r,img:n,...i})=>Xt.jsxs(Ur,{as:"header",...i,children:[Xt.jsxs($r,{gap:"xs",alignItems:"center",mb:"xs",children:[Xt.jsx(ln,{size:"xl",fontFamily:"source-serif-pro",weight:"semi-bold",children:t}),n&&Xt.jsx("img",{alt:n.name,src:n.src,width:"32",height:"32"})]}),Xt.jsx(sn,{as:"h2",color:{crucial:"red",important:"ultramarine",community:"entertainment",faq:"black",default:"black",bold:"black"}[e]||"black",size:"xs",fontFamily:"source-serif-pro",weight:"default"===e?"regular":"semi-bold",className:"break-word",children:r})]}),Yn=({electionName:e,electionYear:t,resultsPerDepartment:r,mapDepartmentsData:n,...i})=>{const o=r.reduce((e,t)=>{const{name:r,color:n}=t.politicalParty;return e.some(e=>e.name===r)||e.push({name:r,color:n}),e},[]);return Xt.jsxs(Ur,{...i,children:[Xt.jsxs("svg",{className:"c-map-departments",viewBox:"0 0 525 600",width:"525",children:[Xt.jsx("title",{children:"Carte des départements français avec DOM"}),Xt.jsx("desc",{children:"Carte des résultats département par département. Cliquez sur un département pour en voir le détail"}),Object.entries(n??{}).map(([n,i])=>{const o=r.find(e=>e.numDept===n);return Xt.jsx("g",{children:Xt.jsxs("a",{className:"c-map-departments__link",href:`/elections/resultats/${i.slug}/?scrutin=${e}&annee=${t}`,target:"_parent",children:[Xt.jsx("path",{className:or("c-map-departments__path",{[`c-map-departments__path--${o?.politicalParty.color}`]:o}),d:i.path,children:Xt.jsx("title",{children:i.title})}),i.path_s&&Xt.jsx("path",{className:or("c-map-departments__path",{[`c-map-departments__path--${o?.politicalParty.color}`]:o}),d:i.path_s,children:Xt.jsx("title",{children:i.title})})]})},n)})]}),o.length>0&&Xt.jsx(Wn,{items:o,mt:"xxl"})]})},Xn=({electionName:e,electionYear:t,resultsPerDistrict:r,mapDistrictsData:n,...i})=>{const o=["75","77","78","91","92","93","94","95"],a=Object.entries(n??{}).reduce((n,[i,a])=>{const s=Xt.jsx("g",{className:"c-map-districts__zoomable",type:"button",...a.text&&!a.text.transform&&a.text.label&&{"data-info":`${i} - ${a.text.label}`},children:Object.entries(a).map(([n,i])=>{const o=r.find(e=>e.numDistrict===n);return"text"===n&&i.transform?Xt.jsx("text",{transform:`matrix(${i.transform})`,className:"c-map-districts__text",children:i.label},n):Xt.jsx("a",{href:`/elections/resultats${i.url}/?scrutin=${e}&annee=${t}`,target:"_parent",children:Xt.jsxs("path",{id:n,className:or("c-map-districts__path",{[`c-map-districts__path--${o?.politicalParty.color}`]:o}),d:i.path,children:[Xt.jsx("title",{children:i.title}),Xt.jsx("desc",{children:i.desc})]})},n)})},i);return o.includes(i)?n.idf.push(s):n.others.push(s),n},{idf:[],others:[]}),s=r.reduce((e,t)=>{const{name:r,color:n}=t.politicalParty;return e.some(e=>e.name===r)||e.push({name:r,color:n}),e},[]);return Xt.jsxs(Ur,{...i,children:[Xt.jsxs("div",{className:"c-map-districts-container",children:[Xt.jsxs(ln,{weight:"bold",textAlign:"center",className:"c-map-districts-container__description",children:["Cliquez sur un département",Xt.jsx("br",{}),"puis une circonscription pour accéder aux résultats"]}),Xt.jsx(an,{variant:"span",color:"ultramarine",className:"c-map-districts-container__department u-hidden"}),Xt.jsx(cr,{iconProps:{name:"close",size:15},variant:"close",className:"c-map-districts-container__unzoom-button u-hidden"}),Xt.jsxs("svg",{className:"c-map-districts js-selected-area",viewBox:"0 0 1400 1400",width:"1400",children:[Xt.jsx("title",{children:"Carte des circonsciptions"}),Xt.jsx("g",{type:"button",className:"c-map-districts__zoomable c-map-districts__idf",children:a.idf}),a.others]})]}),s.length>0&&Xt.jsx(Wn,{items:s,mt:"xxl"})]})},ei=({electionName:e,electionYear:t,resultsPerCountry:r,mapEuCountriesData:n,mapNonEuCountriesData:i,...o})=>{const a=r.reduce((e,t)=>{const{name:r,color:n}=t.politicalParty;return e.some(e=>e.name===r)||e.push({name:r,color:n}),e},[]);return Xt.jsxs(Ur,{...o,children:[Xt.jsxs("svg",{className:"c-map-europe",width:"460",viewBox:"0 0 460 445",children:[Xt.jsx("title",{children:`Carte de l'Europe - Élections ${e}`}),Xt.jsx("desc",{children:`Carte des résultats aux élections ${e} ${t} par pays`}),Xt.jsx("g",{className:"c-map-europe__eu-countries",children:Object.entries(n??{}).map(([e,t])=>{const n=r.find(t=>t.key===e);return Xt.jsx("path",{d:t.path,className:or("c-map-europe__path",{[`c-map-europe__path--${n?.politicalParty.color}`]:n}),children:Xt.jsx("title",{children:t.title})},e)})}),Xt.jsx("g",{className:"c-map-europe__non-eu-countries",children:Object.entries(i??{}).map(([e,t])=>Xt.jsx("path",{d:t.path,className:"c-map-europe__path c-map-europe__path--non-eu-country",children:Xt.jsx("title",{children:t.title})},e))})]}),a.length>0&&Xt.jsx(Wn,{items:a,mt:"xxl"})]})},ti=/<path\b([^>]*?)\/>/g,ri=/\b([:\w-]+)="([^"]*)"/g,ni=e=>`/elections/resultats/${(e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/'/g,"-").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase())(e)}/`,ii=({layout:t,resultsPerTown:r,departmentsPaths:n,dromsConfig:i,townsSprite:o,className:a,...s})=>{if(!n)return Xt.jsx("output",{"aria-live":"polite",children:"Chargement de la carte…"});const l=t===Xr.MOBILE,c=new Map(r.map(e=>[e.id,e])),u=new Map,d=e.useMemo(()=>o?(e=>new Map(e.map(e=>[e.id,e])))((e=>{const t=[];for(const r of e.matchAll(ti)){const e=r[1];if(!e)continue;const n=new Map;for(const t of e.matchAll(ri)){const[,e,r]=t;e&&n.set(e,r||"")}const i=n.get("id"),o=n.get("d"),a=n.get("data-name"),s=n.get("data-url");!i||!o||!a||!s||t.push({id:i,path:o,name:a,url:s})}return t})(o)):new Map,[o]),p=e.useMemo(()=>new Map(mr.map(e=>{const t=d.get(`town-${e.id}`);return t?[e.name,t.url]:null}).filter(e=>null!==e)),[d]);r.forEach(e=>{const{name:t,color:r}=e.politicalParty;u.has(t)||u.set(t,{name:t,color:r})});const f=e=>{const t=p.get(e.label);return Xt.jsxs("div",{className:"c-map-towns__zoom-item",role:"group","aria-label":`Zoom sur les arrondissements de ${e.label}`,"data-city-url":l?t:void 0,children:[Xt.jsx(ln,{as:"div",size:"xs",weight:"bold",pb:"xxs",children:e.label}),Xt.jsxs("svg",{viewBox:e.viewBox,className:"c-map-towns__zoom-map",children:[Xt.jsxs("title",{children:["Arrondissements de ",e.label]}),Xt.jsx("g",{children:e.ids.map(e=>{const t=c.get(e),r=d.get(`town-${e}`);return r?Xt.jsx("g",{role:"button","aria-label":`Arrondissement ${e}`,onClick:()=>{l||(window.location.href=r.url)},children:Xt.jsx("path",{d:r.path,className:or("c-map-towns__path c-map-towns__path--borough",{[`c-map-towns__path--${t?.politicalParty.color}`]:t})})},`zoom-${e}`):null})})]})]})},h=Array.from(u.values());return Xt.jsxs(Ur,{...s,className:or("c-map-towns",a,{"c-map-towns--is-mobile":l}),children:[o&&Xt.jsx("script",{id:"js-town-sprite-data",className:"c-map-towns__sprite",type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}}),Xt.jsxs("svg",{viewBox:"0 0 525 488",className:"c-map-towns__map",role:"img","aria-label":"Carte des résultats électoraux par commune en France métropolitaine",children:[Xt.jsx("g",{className:"c-map-towns__layer-bg","aria-hidden":"true",children:Object.entries(n).map(([e,t])=>Xt.jsx("path",{d:t.path,className:"c-map-towns__dept-bg"},`bg-${e}`))}),Xt.jsx("g",{className:"c-map-towns__layer-towns",children:r.map(e=>{const t=d.get(`town-${e.id}`);return t?Xt.jsx("path",{d:t.path,"data-town-id":`town-${e.id}`,"data-url":t.url,"data-name":t.name,className:or("c-map-towns__path",{[`c-map-towns__path--${e?.politicalParty.color}`]:e})},e.id):null})}),Xt.jsx("g",{className:"c-map-towns__layer-departments","aria-hidden":"true",children:Object.entries(n).map(([e,t])=>{const r=yr[e];return Xt.jsx("path",{id:`out-${e}`,d:t.path,"data-name":r,"data-url":l?ni(r):void 0,className:"c-map-towns__dept-trigger",children:Xt.jsx("title",{children:r})},`out-${e}`)})}),Xt.jsx("g",{className:"c-map-towns__layer-markers",children:mr.map(e=>(()=>{const t=d.get(`town-${e.id}`);return t?Xt.jsxs("g",{className:"js-city-marker c-map-towns__city-marker","data-url":t.url,"data-name":e.name,"aria-hidden":"true",children:[Xt.jsx("path",{d:t.path,className:"js-city-anchor c-map-towns__city-anchor"}),Xt.jsx("circle",{r:"5",fill:"white",stroke:"black",strokeWidth:"1"}),Xt.jsx("rect",{className:"js-city-bg",fill:"white",rx:"4",ry:"4"}),Xt.jsx("text",{className:"js-city-text c-map-towns__city-text",fill:"black",children:e.name})]},e.name):null})())})]}),Xt.jsxs($r,{className:"c-map-towns__zooms",direction:{xs:"row",md:"column"},gap:{md:"l"},justifyContent:{xs:"between",md:"start"},children:[f(gr.PARIS),f(gr.MARSEILLE),f(gr.LYON)]}),i&&Xt.jsxs("div",{className:"c-map-towns__droms",children:[Xt.jsx(ln,{as:"div",size:"xs",weight:"bold",pb:"xxs",children:"Outre-mer"}),Xt.jsx($r,{gap:{md:"xl"},wrap:"wrap",justifyContent:{xs:"between",md:"start"},children:Object.entries(i).map(([e,t])=>Xt.jsx("div",{children:Xt.jsxs("svg",{className:"c-map-towns__map-drom",viewBox:t.viewBox,children:[Xt.jsx("title",{children:t.name}),Xt.jsx("path",{d:t.deptPath,className:"c-map-towns__layer-bg c-map-towns__dept-bg"}),Xt.jsx("g",{className:"c-map-towns__layer-towns",children:t.towns.map(e=>{const t=c.get(e.id.replace(/^town-/,""));return Xt.jsx("path",{id:`${e.id}-drom`,d:e.path,"data-url":e.url,"data-name":e.name,className:or("c-map-towns__path c-map-towns__path--drom",{[`c-map-towns__path--${t?.politicalParty.color}`]:t})},e.id)})}),Xt.jsx("path",{id:`out-${e}`,d:t.deptPath,"data-name":t.name,"data-url":ni(t.name),className:"c-map-towns__dept-trigger"})]})},e))})]}),h.length>0&&Xt.jsx(Wn,{items:h,mt:"xxl"}),Xt.jsxs("div",{id:"js-zoom-overlay",className:"c-map-towns__overlay","aria-hidden":"true",children:[Xt.jsxs("button",{id:"js-zoom-close",className:"c-map-towns__close-btn",type:"button",children:[Xt.jsx(Ar,{name:"close",size:20}),"Fermer"]}),Xt.jsxs($r,{id:"js-zoom-content",direction:"column",alignItems:"center",className:"c-map-towns__zoom-content",children:[Xt.jsx(ln,{as:"div",weight:"bold",size:"l",id:"js-zoom-label",className:"c-map-towns__zoom-label",children:" "}),Xt.jsxs("svg",{id:"js-zoom-svg",className:"c-map-towns__zoom-svg",viewBox:"0 0 525 488","aria-hidden":"true",role:"img",children:[Xt.jsx("title",{id:"js-zoom-title",children:"Carte détaillée du département"}),Xt.jsx("g",{id:"js-zoom-group",className:"c-map-towns__zoom-group"})]})]})]})]})},oi=({totalArticles:e,currentPage:t,pagePath:r,archivesUrl:n,...i})=>e>0?Xt.jsxs($r,{justifyContent:"center",gap:"l",...i,children:[1===Number(t)?1:Xt.jsx(Wr,{color:"grey-300",href:`${r}`,children:"1"}),e>17&&(2===Number(t)?2:Xt.jsx(Wr,{color:"grey-300",href:`${r}?page=2`,children:"2"})),e>25&&1!==Number(t)&&Xt.jsx(Wr,{color:2!==Number(t)?"black":"grey-300",href:n,children:"Archives"})]}):null,ai=({color:e,count:t=0,countColor:r,countBg:n,countStyle:i,iconItemProps:o,placement:a="right",reactListItems:s,reactListItemThemeColor:l,userReaction:c,variant:u,layout:d,contentId:p,contentLegacyId:f,...h})=>{const m=Xt.jsx($r,{as:"ul",direction:"row-reverse",alignItems:"center",className:"c-react-button__list",children:s?.sort((e,t)=>t.count-e.count).map((e,t)=>Xt.jsx(Ur,{as:"li",className:or("c-react-button__list-item",{"c-react-button__list-item--show":e.count>0&&t<=1}),bg:"grey-100","data-reaction-item":e.type,children:Xt.jsx(ln,{as:"span",size:"xxs",children:hr[e.type]})},e.type))});return Xt.jsxs($r,{...h,gap:"xxs-2",alignItems:"center",role:"button","data-placement":a,className:or("mbrs-social-react-container","c-react-button",{[`c-react-button--${u}`]:u,[`c-react-button--${l}`]:l},h.className),...s&&s.length>0&&s.reduce((e,t)=>(e[`data-content-${t.type}`]=t.count,e),{}),...c&&{"data-user-reaction":c.type,"data-user-reaction-id":c.id},children:[Xt.jsx(wn,{className:"c-react-button__icon",...(()=>{switch(u){case"horizontal":case"vertical":return{color:e,count:t,countColor:r,countBg:n,countStyle:i};default:return{}}})(),...o,ariaLabel:"Reagir au contenu",iconProps:{name:"thumb","aria-hidden":!0,...(()=>{switch(u){case"horizontal":case"vertical":return{size:26};default:return{size:20}}})()},"aria-describedby":d===Xr.DESKTOP?`react-tooltip-${f||p}`:void 0,children:d===Xr.DESKTOP&&Xt.jsx(Tr,{id:`react-tooltip-${f||p}`,text:"Réagir"})}),"card"===u&&Xt.jsxs(Xt.Fragment,{children:[m,Xt.jsx(ln,{as:"span",size:"xxs",color:e,className:or("c-react-button__count",{"c-react-button__count--show":t>0}),children:String(t).padStart(2,"0")})]})]})},si=({id:e,url:t,inputProps:r,autocompleteResults:n,ariaLabel:i,...o})=>Xt.jsxs(Ur,{...o,as:"form",autoComplete:n&&n.length>0?"off":"on",id:e,className:or("c-search-form",o?.className),action:t,method:"GET",role:"search",children:[Xt.jsx("label",{htmlFor:`${e}-search`,className:"u-mask",children:i||r?.placeholder||"Recherche"}),Xt.jsx(Ir,{id:`${e}-search`,className:"c-search-form__input",type:"text",placeholder:r?.placeholder||"Rechercher...",name:r?.name||"q",isIconButton:!0,icon:"search",iconButtonProps:{type:"submit",children:Xt.jsx("span",{className:"u-mask",children:"Ok"})},isRounded:r?.isRounded??!0,...r}),n&&n.length>0&&Xt.jsx("ul",{className:"c-search-form__autocomplete u-hidden",children:n.slice(0,8).map(e=>Xt.jsx("li",{children:Xt.jsx("a",{href:e.url,tabIndex:-1,children:e.value})},e.value))})]}),li=({label:e,labelLink:t,themeColor:r,isUnderlined:n=!0,...i})=>Xt.jsxs(sn,{...t&&{as:"a",href:t},size:"xxs",weight:"bold",...i,className:or("c-section-title",{"c-section-title--is-link":t}),children:[n?Xt.jsx(ln,{as:"span",role:"presentation",pb:"xxs",className:or("c-section-title__underline",{"c-section-title__underline--default":!r,[`c-section-title__underline--${r}`]:r}),children:e}):e,t&&Xt.jsx(Ar,{name:"chevron",size:14,color:"ultramarine",mt:"xxs-2",ml:"xxs"})]});var ci,ui={};!function(){if(ci)return ui;ci=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.StickyShareButtons=ui.InlineShareButtons=ui.InlineReactionButtons=ui.InlineFollowButtons=void 0;var t=function(e){return e&&e.__esModule?e:{default:e}}(e);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,i=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e,t){var r=e.props.config||{enabled:!0};r=JSON.parse(JSON.stringify(r));var n=window.onShareThisLoaded;if(window.onShareThisLoaded=function i(){if(!i.complete){if(!r.id){var o="sharethis-"+Date.now();r.id=o}e.buttons.current&&(e.buttons.current.id=r.id,window.__sharethis__.load(t,r)),n&&n(),i.complete=!0}},document.getElementById("sharethis-js"))window.__sharethis__&&window.onShareThisLoaded();else{var i=document.createElement("script");i.setAttribute("id","sharethis-js");var o={property:r.property||"",product:t,source:"reactjs"},a=Object.keys(o).map(function(e){return e+"="+o[e]}).join("&");i.src="https://platform-api.sharethis.com/js/sharethis.js?"+a,i.async=!0,document.body.appendChild(i)}},u=function(e){o(a,e);var r=s(a);function a(e){var i;return n(this,a),(i=r.call(this,e)).buttons=t.default.createRef(),i}return i(a,[{key:"componentDidMount",value:function(){c(this,"inline-follow-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),a}(t.default.Component);ui.InlineFollowButtons=u;var d=function(e){o(a,e);var r=s(a);function a(e){var i;return n(this,a),(i=r.call(this,e)).buttons=t.default.createRef(),i}return i(a,[{key:"componentDidMount",value:function(){c(this,"inline-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),a}(t.default.Component);ui.InlineShareButtons=d;var p=function(e){o(a,e);var r=s(a);function a(e){var i;return n(this,a),(i=r.call(this,e)).buttons=t.default.createRef(),i}return i(a,[{key:"componentDidMount",value:function(){c(this,"inline-reaction-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),a}(t.default.Component);ui.InlineReactionButtons=p;var f=function(e){o(a,e);var r=s(a);function a(e){var i;return n(this,a),(i=r.call(this,e)).buttons=t.default.createRef(),i}return i(a,[{key:"componentDidMount",value:function(){c(this,"sticky-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),a}(t.default.Component);ui.StickyShareButtons=f}();const di=({avatars:e,authors:t,layout:r,publicationProps:n,publishedAt:i,editedAt:o,userlink:a,authorHighlighted:s=!1,disableAvatar:l=!1,themeColor:c,sponsor:u,...d})=>{const p=Xt.jsxs($r,{...d,as:"address",alignItems:"start",gap:"s",children:[!l&&Xt.jsx(gn,{avatars:e,themeColor:c}),Xt.jsxs(Kr,{grow:1,align:i?"start":"center",children:[s?Xt.jsx("div",{children:Xt.jsx(ln,{as:"span",size:"s",weight:"bold",px:"xxs",bg:"sponsoring",color:"grey-900",children:t})}):Xt.jsx(ln,{size:"s",weight:"bold",children:t}),i&&Xt.jsxs(ln,{size:"xxs",color:"grey-400",mt:"xxs-2",...n,children:[Xt.jsxs("time",{children:["Publié le ",i]}),o&&Xt.jsxs("time",{children:[" • Mis à jour le ",o]})]})]}),u&&r===Xr.MOBILE&&Xt.jsx(gi,{sponsor:u,variant:"signature"})]});return a?Xt.jsx("a",{href:a,children:p}):p},pi=e=>"card"===e?"secondary":"primary",fi=e=>"card"===e?"inline":"rounded",hi=e=>"vertical"===e?"right":"top",mi=({commentCount:e,shareCount:t,reactionCount:r,variant:n="horizontal",countColor:i,themeColor:o,contentId:a,contentLegacyId:s,contentModel:l,contentLink:c,withReport:u=!0,withChatbotButton:d=!1,commentAnchor:p,disableComment:f,blockVariant:h,reactListItems:m,userReaction:g,layout:y,...v})=>{const b=!f&&Xt.jsx(wn,{role:"button",ariaLabel:"Accéder aux commentaires",iconProps:{name:"comment","aria-hidden":!0},..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"},variant:pi(n),count:e,countColor:i,countBg:o,countStyle:fi(n),..."horizontal"===n&&{id:"mbrs-social-comment-container"},..."card"!==n&&{anchor:p},..."card"===n&&c&&{link:`${c}#${p}`},color:"blue-grey"===h?"white":"black","aria-describedby":y===Xr.DESKTOP?`comment-tooltip-${s||a}`:void 0,children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`comment-tooltip-${s||a}`,text:"Commenter"})}),w=t>0&&Xt.jsx(wn,{role:"button",ariaLabel:"Partager le contenu",iconProps:{name:"share","aria-hidden":!0},..."card"===n&&{iconBackground:"none"},..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"},variant:pi(n),count:t,countColor:i,countBg:o,countStyle:fi(n),isClickable:"card"!==n,className:or({"js-mobile-share-button":"horizontal"===n}),..."card"!==n&&{id:"mbrs-social-share-container"},color:h&&["dark","blue-grey"].includes(h)?"white":"black","aria-describedby":y===Xr.DESKTOP?`share-tooltip-${s||a}`:void 0,children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`share-tooltip-${s||a}`,text:"Partager l'article"})}),_=!f&&a&&!!m&&Xt.jsx(ai,{color:"blue-grey"===h?"white":"black",count:r,countColor:i,countBg:o,countStyle:fi(n),iconItemProps:{variant:pi(n),..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"}},userReaction:g,reactListItems:m,reactListItemThemeColor:"card"===n?h:void 0,variant:n,placement:hi(n),layout:y,contentId:a,contentLegacyId:s,"data-content-id":a||s,"data-content-model":l}),x=s&&Xt.jsx(wn,{role:"button",ariaLabel:"Mettre le contenu en favori",iconProps:{name:"bookmark","aria-hidden":!0},..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"},variant:pi(n),countStyle:fi(n),"data-id":s,"data-delayed":!0,"data-distance-visible":0,"data-event-name":"mbrs-social-save-content",color:"blue-grey"===h?"white":"black","aria-describedby":y===Xr.DESKTOP?`bookmark-tooltip-${s||a}`:void 0,children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`bookmark-tooltip-${s||a}`,text:"Sauvegarder l'article"})}),S=u&&Xt.jsx(wn,{role:"button",ariaLabel:"Signaler une faute dans le contenu",..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"},variant:pi(n),iconProps:{name:"report","aria-hidden":!0},className:"mbrs-social-report-container",color:"black","aria-describedby":y===Xr.DESKTOP?`report-tooltip-${s||a}`:void 0,children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`report-tooltip-${s||a}`,text:"Signaler une faute"})}),E=d&&Xt.jsx(wn,{role:"button",ariaLabel:"Poser une question au Chatbot",iconProps:{name:"ia",size:26,"aria-hidden":!0},color:"black","data-a11y-dialog-show":"dialog-chatbot","aria-describedby":y===Xr.DESKTOP?`chatbot-tooltip-${s||a}`:void 0,pl:"xxs-3",children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`chatbot-tooltip-${s||a}`,text:"Poser une question"})}),k=(u||d||!!s)&&Xt.jsx(Qr,{});return Xt.jsx($r,{as:"ul",...v,alignItems:"center",gap:"card"===n?"xxs":"xl",direction:"vertical"===n?"column":"row",className:or("c-social-bar",{[`c-social-bar--${n}`]:"card"!==n},v.className),bg:"horizontal"===n?"grey-50":void 0,"data-block-variant":h,children:(()=>{switch(n){case"card":return Xt.jsxs(Xt.Fragment,{children:[b&&Xt.jsx("li",{children:b}),x&&Xt.jsx("li",{children:x}),_&&Xt.jsx("li",{children:_})]});case"horizontal":return Xt.jsxs(Xt.Fragment,{children:[b&&Xt.jsx("li",{children:b}),w&&Xt.jsx("li",{children:w}),x&&Xt.jsx("li",{children:x}),_&&Xt.jsx("li",{children:_}),S&&Xt.jsx("li",{children:S})]});case"vertical":return Xt.jsxs(Xt.Fragment,{children:[b&&Xt.jsx("li",{children:b}),w&&Xt.jsx("li",{children:w}),_&&Xt.jsx("li",{children:_}),Xt.jsx("li",{"aria-hidden":"true",children:k}),E&&Xt.jsx("li",{children:E}),x&&Xt.jsx("li",{children:x}),S&&Xt.jsx("li",{children:S})]});default:return null}})()})},gi=({sponsor:e,variant:t,hasText:r=!1,...n})=>Xt.jsxs($r,{...n,gap:r?n?.gap||"l":void 0,children:[r&&Xt.jsx(Kr,{align:"end",children:Xt.jsx(ln,{as:"span",weight:"bold",children:"avec"})}),Xt.jsx("img",{alt:e.name,src:e.logoUrl,className:or({[`c-sponsor__img--${t}`]:!!t})})]}),yi=({hasHeader:e,tableProps:t,...r})=>{if(!t?.length)return null;const n=e?t[0]:null,i=e?t.slice(1):t;return Xt.jsxs(Ur,{as:"table",...r,children:[e&&n&&Xt.jsx("thead",{children:Xt.jsx("tr",{children:n.map((e,t)=>Xt.jsx(Ur,{as:"th",p:"s",children:e},t))})}),Xt.jsx("tbody",{children:i.map((e,t)=>Xt.jsx("tr",{children:e.map((e,t)=>Xt.jsx(Ur,{as:"td",p:"s",children:e},t))},t))})]})},vi=({tabItems:e,name:t="default",fitContainer:r,tabItemActive:n,tabVariant:i="primary",className:o,tabProps:a,tabTitlesColor:s,...l})=>{const c=e.filter(({content:e})=>Array.isArray(e)?e.length>0:!!e);if(0===c.length)return null;const u=n||c[0].name;return Xt.jsxs(Ur,{className:or(o,"js-tabs",{"c-tabs-fit-container":r}),"data-tabs-name":t,...l,children:[Xt.jsx($r,{className:"c-tablist",role:"tablist",mb:"l",gap:"primary"===i?"l":void 0,...a,children:c.map(e=>Xt.jsx(nn,{name:e.name,variant:i,isSelected:u===e.name,tabIndex:u===e.name?0:-1,tabColor:e.tabColor,isNoWrap:e.isNoWrap,color:s,children:e.title},e.name))}),c.map(e=>Xt.jsx(on,{className:or({"c-tabs-fit-container__panel":r}),name:e.name,isHidden:u!==e.name,children:e.content},e.name))]})},bi=e.forwardRef(({href:e,children:t,...r},n)=>Xt.jsx("a",{href:e,className:or("c-skip-link",Hr(r),r?.className),ref:n,...r,children:t}));bi.displayName="SkipLink";const wi=({tabItems:t,layout:r,fitContainer:n,tabItemActive:i,isScrollable:o=!1,hasButton:a=!1,seeMoreLinkBoxProps:s,...l})=>{const c=(e,t)=>e.slice(0,t),u=t.map(e=>({...e,body:c(e.body,r===Xr.DESKTOP?"le-direct"===e.name?25:10:5)})).filter(e=>e.body&&e.body.length>0).map(t=>{const i="le-direct"===t.name;return{name:t.name,title:t.title,tabColor:t.tabColor,content:Xt.jsxs(Xt.Fragment,{children:[Xt.jsx("div",{className:or({"c-most-read-articles-is-scrollable":o&&r===Xr.DESKTOP,"c-most-read-articles-fit-container":n&&r===Xr.DESKTOP}),children:Xt.jsx("div",{children:t.body.map((n,a)=>Xt.jsxs(e.Fragment,{children:[i?Xt.jsx(Cn,{link:n.url,title:n.title,cardHeaderProps:{headline:{text:n.rubricName},liveTime:n.liveTime},cardTitleProps:{size:{xs:"xxs-2",md:"xxs-3"},cartridge:n.cartridge},layout:r,mr:o&&r===Xr.DESKTOP&&t.body.length>3?"s":void 0}):Xt.jsx(Dn,{link:n.url,title:n.title,cardHeaderProps:{headline:{text:n.rubricName}},...r===Xr.DESKTOP&&{cardImageProps:n.cardImageProps},cardTitleProps:{size:"xxs-3",cartridge:n.cartridge},cardNumber:{value:a+1,size:"small"},layout:r,mr:o&&r===Xr.DESKTOP?"s":void 0,variant:"small"}),a!==t.body.length-1&&Xt.jsx(ur,{color:"grey-200",my:"s"})]},n.title))})}),a&&Xt.jsx($r,{mt:"xl",justifyContent:"center",...s,children:Xt.jsx(Wr,{variant:"secondary",...i?{href:"https://www.20minutes.fr/actus",children:"Suivre l'info en direct"}:{href:"https://www.20minutes.fr/les-plus-lus",children:"Voir les articles les + lus"}})})]})}});return 0===u.length?null:Xt.jsx(vi,{tabItemActive:i||u[0].name,tabItems:u,fitContainer:n&&r===Xr.DESKTOP,...l})},_i=e=>{const t=document.cookie.split(";").filter(t=>-1!==t.indexOf(e))[0];return t?t.split("=")[1]:"{}"},xi=e=>{const t=e=>`${e}`.padStart(2,"0");return`${t(Math.floor(e/60))}:${t(e%60)}`},Si=new Intl.RelativeTimeFormat("fr",{numeric:"auto"}),Ei=new Intl.DateTimeFormat("fr",{year:"numeric",month:"short",day:"numeric",timeZone:"Europe/Paris"}),ki=e=>{const t=Date.now(),r=new Date(e).getTime(),n=(r-t)/6e4;let i=Si.format(Math.round(n),"minutes");return n<=-60&&(i=Si.format(Math.ceil(n/60),"hours"),n<=-1440&&(i=Ei.format(r))),"cette minute-ci"===i?"à l'instant":i};function Ci(e,t=!0){const r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0");let i=e.getFullYear();return t||(i=Number(e.getFullYear().toString().slice(2))),`${r}/${n}/${i}`}function Ai(e){const[t,r,n]=e.split("-");return`${n}/${r}/${t.slice(-2)}`}const Ti=e=>{const t=new Date(e);return`${t.getFullYear()}${String(t.getMonth()+1).padStart(2,"0")}${String(t.getDate()).padStart(2,"0")}`};var Li=(e=>(e.Article="Article",e.ExternalContent="ExternalContent",e.Live="Live",e.Page="Page",e.StaticPage="StaticPage",e.Story="Story",e))(Li||{}),Di=(e=>(e.bold="bold",e.community="community",e.default="default",e.faq="faq",e.important="important",e.summary="summary",e.very_important="very_important",e))(Di||{}),Ni=(e=>(e.closed="closed",e.open="open",e))(Ni||{}),Ii=(e=>(e.embed="embed",e.photo="photo",e.podcast="podcast",e.video="video",e))(Ii||{}),Pi=(e=>(e.CREATED_AT="CREATED_AT",e.EXPECTATION_LEVEL="EXPECTATION_LEVEL",e.RELEASE_DATE="RELEASE_DATE",e.TITLE_FR="TITLE_FR",e))(Pi||{}),Oi=(e=>(e.ASC="ASC",e.DESC="DESC",e))(Oi||{}),qi=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(qi||{});const ji=[qi.up,qi.down,qi.sad,qi.heart,qi.laughing,qi.shock],Mi=e=>{if(e)return ji.reduce((t,r)=>t+(e[r]??0),0)},Ri=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):void 0},Fi=(e,t)=>{let r=e.toLowerCase().replace(/[\s-]+/g,t??"-");return r=(e=>{let t=e;const r="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(r.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(r),r.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},Bi=e=>{const t=JSON.stringify(e).replaceAll("<\/script>","<\\\\/script>");return JSON.parse(t)},zi=e=>{const t=JSON.stringify(e).replaceAll("<\\\\/script>","<\/script>");return JSON.parse(t)},Hi=(e,t=75)=>e.length>75?`${e.substring(0,t)}…`:e,Vi=e=>{const t={click:Fi(e.name),click_chapter1:e?.chapter1||null,click_chapter2:e?.chapter2||null,click_chapter3:e?.chapter3||null},r=`click.${e.type}`;if(window.pa?(e.customProps&&Object.keys(e.customProps).length>0&&window.pa.setProperties(e.customProps,{persistent:!1,events:[r]}),window.pa.sendEvent(r,t)):window._paq&&(e.customProps&&Object.keys(e.customProps).length>0&&window._paq.push(["setProperties",e.customProps,{persistent:!1,events:[r]}]),window._paq.push(["sendEvent",r,t])),!window.edgee?.track)return;const n=document.getElementById("__EDGEE_DATA_LAYER__");let i={};if(n)try{const e=JSON.parse(n.textContent||"");e.data_collection.context=e.data_collection.context||{},i=e.data_collection.context.page?.properties||{}}catch{i={}}window.edgee.track({name:r,properties:{...i,click:t.click,click_chapter1:t.click_chapter1,click_chapter2:t.click_chapter2,click_chapter3:t.click_chapter3,click_type:e?.type??"navigation",...e.customProps}},{"edgee/piano-analytics":!0})},Ui=e=>{window._paq&&window._paq.push(["sendEvent","page.display",{page:e?.name??window.PianoPageInfo?.name,page_chapter1:e?.chapter1??window.PianoPageInfo?.chapter1,page_chapter2:e?.chapter2??window.PianoPageInfo?.chapter2,page_chapter3:e?.chapter3??window.PianoPageInfo?.chapter3,page_chapter4:e?.chapter4??window.PianoPageInfo?.chapter4}]),window.edgee?.page&&!1!==e?.enableEdgee&&window.edgee.page()},$i=e=>{if("undefined"==typeof window&&"undefined"!=typeof Buffer){return Buffer.from(e,"utf-8").toString("base64")}return window.btoa(unescape(encodeURIComponent(e)))},Ki="20mnReactions",Gi=e=>e in hr,Wi=Object.values(qi).filter(e=>Gi(e)),Qi=e=>{const t=e?.reaction?.associated_content?.node?.reactions_count;if(!t)return null;return Wi.some(e=>"number"==typeof t[e])?t:null},Zi=()=>{try{const e=localStorage.getItem(Ki);return e?JSON.parse(e):[]}catch{return[]}},Ji=e=>{try{localStorage.setItem(Ki,JSON.stringify(e))}catch{console.error("Error setting stored reactions")}},Yi=e=>Zi().find(t=>t.contentId===e)??null,Xi=(e,t,r)=>{const n=Zi().filter(t=>t.contentId!==e);n.push({id:t,contentId:e,type:r,timestamp:Date.now()}),Ji(n)},eo=()=>{const e=_i("20mnUserDataLayer");if(!e||"{}"===e)return null;try{return JSON.parse(decodeURIComponent(e))}catch{return null}},to=()=>{let e=localStorage.getItem("20mn_anonymous_id");return e||(e=crypto.randomUUID(),localStorage.setItem("20mn_anonymous_id",e)),e},ro=async(e,t)=>{const r=document.body.getAttribute("data-api-host");if(!r)return console.error("API host not found"),null;try{const n=new Headers;n.append("Content-Type","application/json"),n.append("auth-key",window.envVariables?.apiAuthKey);const i=await fetch(r,{method:"POST",headers:n,credentials:"include",body:JSON.stringify({query:e,variables:t})});if(!i.ok)throw new Error(`HTTP error: ${i.status}`);const o=await i.json();return o.errors&&o.errors.length>0?(console.error("GraphQL errors:",o.errors),null):o.data??null}catch(e){return console.error("Error executing GraphQL mutation:",e),null}},no=()=>{const e=document.querySelector(".mbrs-social-emoji-toolbar");if(!e)return;const t=new Set;(()=>{const e=Date.now(),t=Zi(),r=t.filter(t=>e-t.timestamp<6e5);r.length!==t.length&&Ji(r)})(),e.style.position="fixed",e.style.display="none",e.style.zIndex="1000";let r=null,n=!1;const i=(e,t)=>{const r=e.querySelector(".c-react-button__icon .c-icon-item__icon");if(r)if(t){const e=(e=>Gi(e)?hr[e]??null:null)(t);e&&(r.innerHTML=`<span style="font-size: 1.25rem; line-height: 1;">${e}</span>`)}else r.innerHTML='\n <div aria-hidden="true" class="c-icon">\n <svg height="20" width="20">\n <use xlink:href="#thumb"></use>\n </svg>\n </div>\n '},o=t=>{const r=t.getBoundingClientRect(),n=t.getAttribute("data-placement")||"right",i=e.getBoundingClientRect();if("top"===n){const t=r.top-i.height-10,n=r.left+r.width/2,o=t<24,a=n-i.width/2<24,s=n+i.width/2>window.innerWidth-24;e.style.top=o?"24px":`${t}px`,a?(e.style.left="24px",e.style.transform="translateX(0)"):s?(e.style.left=window.innerWidth-24+"px",e.style.transform="translateX(-100%)"):(e.style.left=`${n}px`,e.style.transform="translateX(-50%)")}else{const t=r.right+18,n=t+i.width>window.innerWidth;e.style.top=`${r.top+r.height/2}px`,n?(e.style.left=window.innerWidth-24+"px",e.style.transform="translate(-100%, -50%)"):(e.style.left=`${t}px`,e.style.transform="translateY(-50%)")}},a=e=>{const t=[];ji.forEach(r=>{const n=Number.parseInt(e.getAttribute(`data-content-${r}`)||"0",10),i=e.querySelector(`[data-reaction-item="${r}"]`);i&&t.push({element:i,type:r,count:n})});const r=t.filter(({count:e})=>e>0),n=t.reduce((e,{count:t})=>e+t,0),i=e.querySelector(".c-react-button__count");if(i&&(n>0?i.classList.add("c-react-button__count--show"):i.classList.remove("c-react-button__count--show")),t.forEach(({element:e})=>{e.classList.remove("c-react-button__list-item--show")}),0===r.length)return;const o=[...r].sort((e,t)=>t.count-e.count);o.slice(0,2).forEach(({element:e})=>{e.classList.add("c-react-button__list-item--show")})},s=t=>{const r=Object.values(qi),n=t.getAttribute("data-user-reaction");r.forEach(r=>{const i=t.getAttribute(`data-content-${r}`);if(!i)return;const o=e.querySelector(`[data-reaction-id="${r}"]`);if(!o)return;const a=o.querySelector(".c-emoji-toolbar__count");if(a){const e=String(i).padStart(2,"0");a.textContent=e}n===r?o.classList.add("c-emoji-toolbar__button--is-active"):o.classList.remove("c-emoji-toolbar__button--is-active")})},l=(e,t,r)=>{const n=Yi(t);let i=0;Wi.forEach(t=>{let o="number"==typeof(a=r[t])?Math.max(0,Math.trunc(a)):0;var a;n?.type===t&&(o+=1),e.setAttribute(`data-content-${t}`,String(o)),i+=o});const o=String(i),l=e.querySelector(".c-react-button__count");l&&(l.textContent=o);const c=e.querySelector(".c-icon-item__count");c&&(c.textContent=o),a(e),s(e)},c=t=>{if(!t)return void console.error("Missing editorial content information for reaction");e.querySelectorAll("[data-reaction-id]").forEach(e=>{const t=e.cloneNode(!0);e.parentNode&&t instanceof HTMLElement&&e.parentNode.replaceChild(t,e)});const o=e.querySelectorAll("[data-reaction-id]");o.forEach(s=>{s.addEventListener("click",()=>{if(!r)return;const c=s.getAttribute("data-reaction-id");if(!c)return;const u=r.getAttribute("data-content-model")||"",d=u.charAt(0).toUpperCase()+u.slice(1),p=r.getAttribute("data-user-reaction-id"),f=s.classList.contains("c-emoji-toolbar__button--is-active"),h=r.getAttribute("data-user-reaction");Vi({name:c,type:"action",customProps:{cta_context:"toolbar_react",cta_type:"icon",cta_engagement:2}});((t,n,o,a,s)=>{if(!r)return;const l=t.classList.contains("c-emoji-toolbar__button--is-active"),c=t.querySelector(".c-emoji-toolbar__count");if(c){const e=Number.parseInt(c.textContent||"0",10),t=String(Math.max(0,e+o)).padStart(2,"0");c.textContent=t}const u=r.getAttribute(`data-content-${n}`),d=Number.parseInt(u||"0",10),p=Math.max(0,d+o);if(r.setAttribute(`data-content-${n}`,String(p)),!l&&a&&a!==n){const t=e.querySelector(`[data-reaction-id="${a}"]`);if(t){t.classList.remove("c-emoji-toolbar__button--is-active");const e=t.querySelector(".c-emoji-toolbar__count");if(e){const t=Number.parseInt(e.textContent||"0",10);e.textContent=String(Math.max(0,t-1)).padStart(2,"0")}}const n=r.getAttribute(`data-content-${a}`),i=Number.parseInt(n||"0",10);r.setAttribute(`data-content-${a}`,String(Math.max(0,i-1)))}else{const e=r.querySelector(".c-icon-item__count");if(e){const t=Number.parseInt(e.textContent||"0",10);e.textContent=String(Math.max(0,t+o))}const t=r.querySelector(".c-react-button__count");if(t){const e=Number.parseInt(t.textContent||"0",10);t.textContent=String(Math.max(0,e+o))}}l?(t.classList.remove("c-emoji-toolbar__button--is-active"),r.removeAttribute("data-user-reaction"),r.removeAttribute("data-user-reaction-id"),i(r,null)):(s.forEach(e=>{e.classList.remove("c-emoji-toolbar__button--is-active")}),t.classList.add("c-emoji-toolbar__button--is-active"),r.setAttribute("data-user-reaction",n),i(r,n))})(s,c,f?-1:1,h,o),a(r);const m=r;e.style.display="none",n=!1,r=null;(async()=>{try{if(f&&p){await(async e=>{const t={id:e},r=await ro("\n mutation DeleteReaction($input: GlobalIdInputType!) {\n deleteReaction(input: $input) {\n resolveInfo {\n status\n }\n }\n }\n ",{input:t}),n=r?.deleteReaction?.resolveInfo?.status;return"string"!=typeof n||!n.startsWith("2")})(p)?(e=>{const t=Zi().filter(t=>t.contentId!==e);Ji(t)})(t):console.error("Failed to delete reaction")}else if(h&&p){const e=c,r=await(async(e,t,r)=>{const n=`\n mutation UpdateReaction($input: UpdateReactionType!) {\n updateReaction(input: $input) {\n reaction {\n id\n associated_content: ${r.toLowerCase()} {\n node {\n reactions_count {\n down\n heart\n laughing\n sad\n up\n }\n }\n }\n }\n resolveInfo {\n status\n }\n }\n }\n `,i={id:e,content:t},o=await ro(n,{input:i});return{id:o?.updateReaction?.reaction?.id??null,reactionCounts:Qi(o?.updateReaction)}})(p,e,d);r.id?(Xi(t,p,e),r.reactionCounts&&l(m,t,r.reactionCounts)):console.error("Failed to update reaction")}else{const e=c,r=await(async(e,t,r)=>{const n=eo(),i=n?.i?String(n.i):null,o=i?null:to(),a=`\n mutation CreateReaction($input: CreateReactionType!) {\n createReaction(input: $input) {\n reaction {\n id\n associated_content: ${t.toLowerCase()} {\n node {\n reactions_count {\n down\n heart\n laughing\n sad\n up\n }\n }\n }\n }\n resolveInfo {\n status\n }\n }\n }\n `,s={associated_content:{editorial_id:e,editorial_model:t},content:r};i?s.user_front_id=i:o&&(s.anonymous_id=o);const l=await ro(a,{input:s});return{id:l?.createReaction?.reaction?.id??null,reactionCounts:Qi(l?.createReaction)}})(t,d,e);r.id?(m.setAttribute("data-user-reaction-id",r.id),Xi(t,r.id,e),r.reactionCounts&&l(m,t,r.reactionCounts)):console.error("Failed to create reaction")}}catch(e){console.error("Error executing reaction mutation:",e)}})().catch(e=>{console.error("Unexpected error in reaction API call:",e)})})})},u=l=>{if(t.has(l))return;t.add(l),(e=>{const t=e.getAttribute("data-content-id");if(!t)return;const r=Yi(t);if(!r)return;e.setAttribute("data-user-reaction",r.type),e.setAttribute("data-user-reaction-id",r.id),i(e,r.type);const n=Number.parseInt(e.getAttribute(`data-content-${r.type}`)||"0",10);e.setAttribute(`data-content-${r.type}`,String(n+1));const o=e.querySelector(".c-react-button__count");if(o){const e=Number.parseInt(o.textContent||"0",10);o.textContent=String(e+1)}const a=e.querySelector(".c-icon-item__count");if(a){const e=Number.parseInt(a.textContent||"0",10);a.textContent=String(e+1)}})(l);const u=l.getAttribute("data-user-reaction");u&&i(l,u),a(l),l.addEventListener("click",()=>{if(n&&r===l)e.style.display="none",n=!1,r=null;else{Vi({name:"reaction",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:1}}),r=l,e.style.display="flex",o(l),s(l),c(r.getAttribute("data-content-id")),n=!0;if(!l.getAttribute("data-user-reaction")){const e=l.getAttribute("data-content-id");e&&(async(e,t)=>{const r=eo(),n=r?.i?String(r.i):null,i=n?null:to();if(!n&&!i)return null;const o=document.body.getAttribute("data-brand-id");if(!o)return console.error("Brand ID not found"),null;const a=$i(`Brand:${o}`),s={};n?s.user_front_id={eq:n}:i&&(s.anonymous_id={eq:i});const l=t.toLowerCase(),c=`${l}_id`,u=`\n query GetUserReaction($brandId: ID!, $${c}: ID!, $reactionFilter: ReactionFilter) {\n brand(id: $brandId) {\n node {\n ${l}(${c}: $${c}) {\n node {\n id\n reactions(first: 1, filter: $reactionFilter, orderBy: { field: CREATED_AT, direction: ASC }) {\n edges {\n node {\n id\n content\n }\n }\n }\n }\n resolveInfo {\n status\n }\n }\n }\n }\n }\n `,d={brandId:a,reactionFilter:s,[c]:e},p=await ro(u,d),f=p?.brand?.node?.[l]?.node?.reactions,h=f?.edges?.[0]?.node;return h?{id:h.id,type:h.content}:null})(e,Li.Article).then(e=>{e&&r===l&&(l.setAttribute("data-user-reaction",e.type),l.setAttribute("data-user-reaction-id",e.id),i(l,e.type),s(l))}).catch(e=>{console.error("Error fetching user reaction:",e)})}}})};document.querySelectorAll(".mbrs-social-react-container").forEach(u);new MutationObserver(e=>{e.forEach(e=>{Array.from(e.addedNodes).forEach(e=>{if(!(e instanceof HTMLElement))return;e.matches(".mbrs-social-react-container")&&u(e);e.querySelectorAll(".mbrs-social-react-container").forEach(u)})})}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("scroll",()=>{n&&r&&o(r)}),document.addEventListener("click",({target:t})=>{t instanceof HTMLElement&&n&&!e.contains(t)&&!t.closest(".mbrs-social-react-container")&&(e.style.display="none",n=!1,r=null)})},io=()=>{"home"===window.datalayerInfo?.pageName&&document.querySelectorAll("div#local-news-container div.c-card-container a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"local_news_content",type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:t,cta_engagement:1}}),window.location.href=t})})},oo=()=>{window.datalayerInfo?.pageName&&["article","live"].includes(window.datalayerInfo?.pageName)&&document.querySelectorAll("div.c-tabpanel article a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"most_read_content",type:"action",customProps:{cta_context:"content",cta_type:"link",cta_destination:t,cta_engagement:1},chapter1:"widget"}),window.location.href=t})})};var ao=()=>{"guide-achat"===window.datalayerInfo?.subType&&document.querySelectorAll(".c-content a.c-btn").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),Vi({name:"affiliation",type:"action",chapter1:"guide_achat"}),e.target instanceof HTMLAnchorElement&&(window.location.href=e.target.href)})}),"article"===window.datalayerInfo?.pageName&&document.querySelectorAll("footer article a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"read_also",type:"action",customProps:{cta_context:"content",cta_type:"card",cta_destination:t,cta_engagement:2}}),window.location.href=t})}),(()=>{const e=document.querySelector("a.c-tiles--has-advent-bg");e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"advent-calendar",type:"action",customProps:{cta_context:"menu",cta_type:"button",cta_destination:t,cta_engagement:2}}),window.location.href=t})})(),(()=>{if("mobile"!==window.layout)return;const e=document.querySelector("a.js-header-btn-back");e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"back",type:"action",customProps:{cta_context:"header",cta_type:"icon",cta_destination:t,cta_engagement:1}}),window.location.href=t})})(),(()=>{const e=document.querySelector('.c-btn--ghost:not(.u-hidden)[data-a11y-dialog-show="dialog-menu"]');e&&e.addEventListener("click",()=>{Vi({name:"menu",type:"action",customProps:{cta_context:"header",cta_type:"button",cta_destination:window.location.href,cta_engagement:1}})})})(),(()=>{if(window.datalayerInfo?.pageName&&["game","gamehome"].includes(window.datalayerInfo?.pageName)){let e=document.querySelectorAll("main#page-wrap div.c-collapse__content a");"desktop"===window.layout&&(e=document.querySelectorAll("header.c-header-page div.c-collapse__content a")),e.forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement&&(t=e.target.href),Vi({name:"view_all_games",type:"action",customProps:{cta_context:"home_game",cta_type:"link",cta_destination:t,cta_engagement:1}}),window.location.href=t})})}})(),(()=>{let e=document.querySelector("article.c-card-large a");"mobile"===window.layout&&(e=document.querySelector("article.c-card-extra-large a")),e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"headline_content",type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:t,cta_engagement:1}}),window.location.href=t})})(),window.datalayerInfo?.pageName&&["home","tag"].includes(window.datalayerInfo?.pageName)&&(document.querySelectorAll("div.c-icon-item__container--is-clickable a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:(e.target instanceof HTMLElement||e.target instanceof SVGElement)&&(t=e.target.closest("a")?.href||""),Vi({name:"comment_content",type:"action",customProps:{cta_context:"home"===window.datalayerInfo?.pageName?"home":"tag",cta_type:"icon",cta_destination:t,cta_engagement:2}}),window.location.href=t})}),document.querySelectorAll('div.c-icon-item__container--is-clickable[data-event-name="mbrs-social-save-content"]').forEach(e=>{e.addEventListener("click",()=>{Vi({name:"save_content",type:"action",customProps:{cta_context:"home"===window.datalayerInfo?.pageName?"home":"tag",cta_type:"icon",cta_destination:window.location.href,cta_engagement:3}})})})),"home"===window.datalayerInfo?.pageName&&document.querySelectorAll(".c-carousel__movies--in-long-list a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="",r="";e.target instanceof HTMLAnchorElement?(r=e.target.href,t=e.target.closest("section.c-carousel")?.querySelector("h2")?.textContent||""):e.target instanceof Element&&(r=e.target.closest("a")?.href||"",t=e.target.closest("section.c-carousel")?.querySelector("h2")?.textContent||"");let n="";switch(t){case"Idées de sorties à Paris":n="ticketNunc_content";break;case"On regarde quoi ce soir ?":n="program_tv_content";break;default:n="cinema_content"}Vi({name:n,type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:r,cta_engagement:1}}),window.location.href=r})}),[{name:"games",id:"#entertainment-item-game"},{name:"horoscope",id:"#entertainment-item-horoscope"}].forEach(e=>{const t=document.querySelector(e.id);t&&t instanceof HTMLAnchorElement&&t.addEventListener("click",r=>{r.stopPropagation(),r.preventDefault(),Vi({name:e.name,type:"action",customProps:{cta_context:"widget_entertainment",cta_type:"link_with_icon",cta_destination:t.href,cta_engagement:2}}),window.location.href=t.href})}),(()=>{const e=document.querySelector("ul.c-header__links-container li:first-child a");e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"house",type:"action",customProps:{cta_context:"header",cta_type:"icon",cta_destination:"/",cta_engagement:1}}),window.location.href=t})})(),"home"===window.datalayerInfo?.pageName&&document.querySelectorAll("#tabpanel-le-direct article.c-card-container a").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"live",type:"action",customProps:{cta_context:"home",cta_type:"link",cta_destination:window.location.href,cta_engagement:1}}),window.location.href=e.target.href)})}),(()=>{const e=document.querySelector("#tab-resume");e&&e.addEventListener("click",()=>{Vi({name:"context",type:"action",customProps:{cta_context:"content",cta_type:"link",cta_destination:window.location.href,cta_engagement:1},chapter1:"live"})});const t=document.querySelector("#tab-temps-forts");t&&t.addEventListener("click",()=>{Vi({name:"highlights",type:"action",customProps:{cta_context:"content",cta_type:"link",cta_destination:window.location.href,cta_engagement:1},chapter1:"live"})})})(),"home"===window.datalayerInfo?.pageName&&document.querySelectorAll(".c-vertical-timeline a").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"live_post",type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:e.target.href,cta_engagement:1}}),window.location.href=e.target.href)})}),io(),document.querySelectorAll("a.c-header-mobile__logo, a.c-header__logo, .c-header-mobile__logo a.c-link, .c-header__logo a.c-link, .c-header-mini__container > div:not(.c-header-mini__content) a.c-link").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"logo",type:"action",customProps:{cta_context:"header",cta_type:"image",cta_destination:t,cta_engagement:1}}),window.location.href=t})}),(()=>{const e=(e,t,r)=>{let n="";r.target instanceof HTMLAnchorElement?n=r.target.href:r.target instanceof Element&&(n=r.target.closest("a")?.href||""),n&&(r.stopPropagation(),r.preventDefault(),Vi({name:t,type:"action",customProps:{cta_context:"header",cta_type:"button",cta_destination:n,cta_engagement:1}}),"_blank"===e.target?window.open(n,"_blank")?.focus():window.location.href=n)};document.querySelectorAll(".c-header__container a.c-media-link").forEach(t=>{switch(t.title){case"Consulter la page 20 Minutes TV live":t.addEventListener("click",r=>{e(t,"20mn_tv",r)});break;case"Consulter la page 20 Minutes TV":t.addEventListener("click",r=>{e(t,"videos",r)})}})})(),oo(),document.querySelectorAll(".c-overview-bar__article a").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"summary_banner",type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:e.target.href,cta_engagement:1}}),window.location.href=e.target.href)})}),document.querySelectorAll("div.c-read-also-banner a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"read_also_banner",type:"action",customProps:{cta_context:"content",cta_type:"card",cta_destination:t,cta_engagement:2},chapter1:"banner"}),window.location.href=t})}),(()=>{const e=document.getElementById("footer-recrutement-link");e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),Vi({name:"recrutement",type:"action"}),e.target instanceof HTMLAnchorElement&&(window.location.href=e.target.href)})})(),(()=>{if("rewind"===window.datalayerInfo?.pageName){const e=document.querySelector('#page-wrap a[href*="/rewind/2025"]');e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"rewind_2025",type:"action",customProps:{cta_context:"my_rewinds",cta_type:"card",cta_destination:t,cta_engagement:2}}),window.location.href=t})}const e=document.querySelector('div.c-header a[href*="/rewind/2025"]');e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"rewind",type:"action",customProps:{cta_context:"header",cta_type:"icon",cta_destination:t,cta_engagement:2}}),window.location.href=t});const t=document.querySelector('#dialog-menu a[href*="/rewind/2025"]');t&&t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"rewind",type:"action",customProps:{cta_context:"menu",cta_type:"banner",cta_destination:t,cta_engagement:2}}),window.location.href=t})})(),"desktop"===window.layout&&document.querySelectorAll("li.c-header__link-and-submenu-container a.c-header__link").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"section_tag",type:"action",customProps:{cta_context:"header",cta_type:"link",cta_destination:e.target.href,cta_engagement:1}}),window.location.href=e.target.href)})}),(()=>{if("home"!==window.datalayerInfo?.pageName)return;const e=document.querySelector("div.c-scroll-to-top button");e&&e.addEventListener("click",()=>{Vi({name:"scroll_to_top",type:"action",customProps:{cta_context:"home",cta_type:"button",cta_destination:window.location.href,cta_engagement:1}})})})(),(()=>{const e=document.querySelector('.c-social-bar a[href="#mbrs-comments-container"]');e&&e.addEventListener("click",()=>{Vi({name:"content_comments",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:3}})});const t=document.querySelector("#mbrs-social-comment-container");t&&t.addEventListener("click",()=>{Vi({name:"content_comments",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:3}})})})(),(()=>{const e=document.querySelector(".c-social-bar div.mbrs-social-report-container");e&&e.addEventListener("click",()=>{Vi({name:"content_correction",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:3}})})})(),(()=>{const e=document.querySelector('.c-social-bar div[data-event-name="mbrs-social-save-content"]');e&&e.addEventListener("click",()=>{Vi({name:"save_content",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:3}})})})(),document.querySelectorAll("div.c-sub-menu__right a").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"content",type:"action",customProps:{cta_context:"sub_nav",cta_type:"card",cta_destination:e.target.href,cta_engagement:1}}),window.location.href=e.target.href)})}),(()=>{const e=(e,t)=>{let r="";t.target instanceof HTMLAnchorElement?r=t.target.href:t.target instanceof HTMLElement&&t.target.closest("a")instanceof HTMLAnchorElement&&(r=t.target.closest("a")?.href||""),r&&(t.stopPropagation(),t.preventDefault(),Vi({name:e,type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_destination:"home"===e?window.location.href:r,cta_engagement:1}}),window.location.href=r)};document.querySelectorAll(".c-toolbar a").forEach(t=>{const r=t.nextSibling;if(r instanceof HTMLParagraphElement)switch(r.innerText){case"À la Une":t.addEventListener("click",t=>{e("home",t)});break;case"Le Direct":t.addEventListener("click",t=>{e("live_feed",t)});break;case"Jeux":t.addEventListener("click",t=>{e("games",t)})}});const t=document.querySelector(".c-toolbar div.dtk-videofeed");t&&t.addEventListener("click",()=>{Vi({name:"video_feed",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_destination:window.location.href,cta_engagement:1}})})})(),(()=>{const e=(e,t)=>{let r="";t.target instanceof HTMLAnchorElement?r=t.target.href:t.target instanceof HTMLElement&&t.target.closest("a")instanceof HTMLAnchorElement&&(r=t.target.closest("a")?.href||""),r&&(t.stopPropagation(),t.preventDefault(),Vi({name:e,type:"action",customProps:{cta_context:"menu",cta_destination:r,cta_engagement:1,cta_type:"button"}}),window.location.href=r)};document.querySelectorAll("a.c-menu__tiles-items").forEach(t=>{switch(t.innerText){case"Jeux":t.addEventListener("click",t=>{e("games",t)});break;case"Horoscope":t.addEventListener("click",t=>{e("horoscope",t)})}})})()},so=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.HOROSCOPE="horoscope",e.HOROSCOPE_HOME="horoscopehome",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(so||{}),lo=(e=>(e.POOOL_ACCESS="poool-access",e.POOOL_ENGAGE="poool-engage",e.AUDION="audion",e.GOOGLE_SEARCH="google-search",e.DIGITEKA_VISIBLE_PLAYER="digiteka-visible-player",e.DIGITEKA_VIDEO_FEED="digiteka-video-feed",e.IDALGO="idalgo",e.NONLI="nonli",e.TABOOLA="taboola-sdk",e.MEDIEGO="mediego",e))(lo||{});var co=()=>{(()=>{const e=document.getElementById("dialog-menu");e&&"mobile"===window.layout&&e.addEventListener("show",()=>{Ui({name:"menu",chapter1:"menu",chapter2:""})})})(),(()=>{const e=document.getElementById("dialog-comment");if(e&&"mobile"===window.layout){const{datalayerInfo:t={}}=window;e.addEventListener("show",()=>{Ui({name:`${t?.contentId}_${t?.contentTitle}`,chapter1:"commentaires"})})}})(),(()=>{if(window.datalayerInfo?.pageName!==so.STORY||!window.history)return;const e=[],t=new IntersectionObserver(t=>{t.forEach(t=>{if(!t.isIntersecting)return;const r=t.target.getAttribute("id");r&&t.intersectionRatio>=0&&(e.includes(r)||(e.push(r),Ui({name:`${window.PianoPageInfo?.name}-${e.length}`})),window.history.pushState({},"",`#${r}`))})},{rootMargin:"-70px 0px -25% 0px"});document.querySelectorAll(".u-story-container").forEach(e=>{t.observe(e)})})()};const uo=e=>{const t=document.createElement("script");if(t.type="text/javascript","async"===e.load?t.async=!0:"defer"===e.load&&(t.defer=!0),"src"in e&&e.src){const r=eval;t.src=e.src?.replace(/%(.*?)%/,(e,t)=>r(t))}e.name&&(performance.mark(`20mn:${e.name}:Start`),t.onerror=r=>{performance.mark(`20mn:${e.name}:Error`),console.error(`Script failed to load: ${e.name}${t.src?` (${t.src})`:""}`,r)}),(e.name||e.onLoad)&&(t.onload=()=>{e.name&&performance.mark(`20mn:${e.name}:End`),e.onLoad&&e.onLoad()}),"text"in e&&e.text&&(t.innerHTML=e.text),e.id&&(t.id=e.id),e.dataAttributes&&Object.entries(e.dataAttributes).forEach(([e,r])=>{var n;t.setAttribute(`data-${n=e,n.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}`,r)}),"head"===e.target&&document.head?document.head.appendChild(t):document.body?document.body.appendChild(t):(window.bodyScripts=window.bodyScripts||[],window.bodyScripts.push(t))},po=(e,t)=>{const r=(r,n)=>{if(n&&window.__tcfapi&&("tcloaded"===r.eventStatus||"useractioncomplete"===r.eventStatus))try{t(),window.__tcfapi("removeEventListener",2,null,r.listenerId)}catch(t){t instanceof Error&&console.error(`Failed to initialize ${e}: ${t.message}`)}};window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{window.__tcfapi("addEventListener",2,r)})},fo=(e,t)=>{const r=window.thirdPartiesConfig?.conditional?.find(t=>Fi(t.name)===e);if(!r)throw new Error(`Script with name ${e} not found`);uo({...r,...t})},ho=()=>{po("Mediego",()=>{const e=window.Didomi;e.getCurrentUserStatus().purposes.cookies?.enabled&&e.getCurrentUserStatus().purposes.select_personalized_ads?.enabled&&fo(lo.MEDIEGO)})},mo=()=>{if(/Android/i.test(navigator.userAgent)){const e=document.createElement("div");e.setAttribute("id","bandeau-app-android"),document.body.appendChild(e)}else if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){const e=document.createElement("div");e.setAttribute("id","bandeau-app-ios"),document.body.appendChild(e)}},go=()=>{po("Poool",()=>{const e=window.Didomi;e.getCurrentUserStatus().purposes.select_personalized_ads?.enabled||"article"!==window.datalayerInfo?.pageName||["production","publicommunique","magazine","guide-achat"].includes(window.datalayerInfo?.subType||"")||(e=>{try{fo(lo.POOOL_ACCESS)}catch(e){e instanceof Error&&console.error(e.message)}const t=document.querySelector('[src="https://static.20mn.fr/apps/poool/access.min.js"]');t?.addEventListener("load",()=>{const t=document.querySelector(".c-content"),r=document.createElement("div");r.setAttribute("id","paywall"),t?.parentNode?.insertBefore(r,t.nextSibling);const n=window.Access.init("C7B0O-ENPDW-DIJOO-VJO1M").config("locale","fr",!0).config({cookies_enabled:e.getCurrentUserStatus().purposes.select_personalized_ads?.enabled,debug:!0,context:"cookie-wall",default_widget:"gift",app_name:"Poool"}).config("ati_auto_tracking_enabled",!0).config("ati_tracking_method","events").config("auto_tracking_spec_v2",!0);n.on("consent",()=>{let e=new Date;const t=e.getTimezoneOffset();e=new Date(e.getTime()-60*t*1e3),localStorage.setItem("consent_validity_date",e.toISOString().split("T")[0]),window.Didomi.setUserAgreeToAll()});let i=!1;const o=document.querySelector("#cookie-banner");window.didomiEventListeners.push({event:"notice.hidden",listener(){window.didomiOnReady.push(e=>{i||(i=!0,n.config("cookies_enabled",e.getCurrentUserStatus().vendors["c:poool-VyhCit7N"]?.enabled),o&&o.setAttribute("style","position: fixed; z-index: 2; left: 0; right: 0; bottom: 0;"),n.createPaywall({target:"#cookie-banner",pageType:"premium"}))})}}),window.didomiOnReady.push(e=>{const t=e.getCurrentUserStatus().vendors["c:poool-VyhCit7N"]?.enabled;t&&(n.config("cookies_enabled",!0),o&&o.setAttribute("style","position: fixed; z-index: 3; left: 0; right: 0; bottom: 0;"),n.createPaywall({target:"#cookie-banner",pageType:"premium"}))}),o&&o.setAttribute("style","position: fixed; z-index: 3; left: 0; right: 0; bottom: 0;"),n.createPaywall({target:"#cookie-banner",pageType:"premium"})})})(e),(()=>{try{fo(lo.POOOL_ENGAGE)}catch(e){e instanceof Error&&console.error(e.message)}const e=_i("20mnUserInfo");mo();const t=document.querySelector('[src="https://assets.poool.fr/engage.min.js"]'),r=JSON.parse(decodeURIComponent(e?.replace(/'/g,'"')||"")).newsletters_registration??[];t?.addEventListener("load",()=>{const t=window.Engage.noConflict();window.Engage=t||window.Engage,window.Engage.init("C7B0O-ENPDW-DIJOO-VJO1M").autoCreate({filters:["{}"!==e?"connected":"disconnected",...r]})})})()})},yo=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>window.__tcfapi("addEventListener",2,(e=>(t,r)=>{if(r&&("tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus)&&e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&e.getCurrentUserStatus().vendors["20minutes-bfbzKmzq"]?.enabled){const e=document.querySelector("#game-help-button");e&&e.addEventListener("click",()=>{try{window.$screeb("survey.start","9beafda1-5240-40eb-975f-fa2be61d1a38",{distribution_id:"1f117b33-3bc3-4136-baa6-f0ac2be83ef0"})}catch(e){console.error("Error while starting survey",e)}})}})(e)))},vo=()=>{document.querySelectorAll(".taboola").length>0&&po("Taboola",()=>{window._taboola=window._taboola||[],"article"===window.datalayerInfo?.pageName?window._taboola.push({article:"auto"}):window._taboola.push({other:"auto"}),fo(lo.TABOOLA,{dataAttributes:{darkMode:"dark"===document.documentElement.getAttribute("data-theme")?.toString()?"true":"false"}}),document.querySelectorAll(".taboola").forEach(e=>{const t=e.getAttribute("data-mode"),r=e.getAttribute("id"),n=e.getAttribute("data-placement"),i=e.getAttribute("data-target-type");t&&r&&n&&i?window._taboola.push({mode:t,container:r,placement:n,target_type:i}):console.log("Issue with taboola placement")}),window._taboola.push({flush:!0})})},bo=(e=document)=>e.querySelectorAll('iframe[src*="www.ultimedia.com"], iframe[data-src*="www.ultimedia.com"]'),wo=()=>bo().length+document.querySelectorAll('[src*="www.youtube.com"], [data-src*="www.youtube.com"]').length+document.querySelectorAll('[src*="www.dailymotion.com"], [data-src*="www.dailymotion.com"]').length+document.querySelectorAll('[src*="www.brut.media"], [data-src*="www.brut.media"]').length,_o=()=>{const e=[];return wo()>0&&e.push("video"),(()=>{let e;switch(window.datalayerInfo?.pageName){case so.ARTICLE:e=document.querySelectorAll(".c-content");break;case so.LIVE:e=document.querySelectorAll(".js-post")}return!!e&&Array.from(e).some(e=>e.querySelectorAll("img").length>0)})()&&e.push("photo"),document.querySelectorAll('.pi-player, a[href*="https://play.acast.com/"], iframe[src*="https://embed.acast.com/"], iframe[data-src*="https://embed.acast.com/"], iframe[src*="https://podcasts.20minutes.fr/"], iframe[data-src*="https://podcasts.20minutes.fr/"]').length>0&&e.push("podcast"),e},xo=()=>_i("20mnUserDataLayer")?JSON.parse(decodeURIComponent(_i("20mnUserDataLayer"))):null,So=async()=>{const e=xo();return e?.i?(async e=>{const t=(new TextEncoder).encode(e),r=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(r)).map(e=>e.toString(16).padStart(2,"0")).join("")})(String(e.i)):""},Eo=async()=>{const e=xo();if(!e?.d)return"";const t=e.d;if(!t||"string"!=typeof t)return"";let r=t;t.length>6&&t.startsWith("000")&&t.endsWith("000")&&(r=t.slice(3,-3));const n=parseInt(r,10);return Number.isNaN(n)?"":n>=18&&n<=24?"1":n>=25&&n<=34?"2":n>=35&&n<=49?"3":n>=50&&n<=64?"4":n>=65?"5":""},ko=async()=>{const e=xo(),t=e?.g;if(!t)return"";switch(Number(t)){case 1:return"B";case 2:return"A";default:return""}},Co=async()=>{const e=xo(),t=e?.l;if(!t||"string"!=typeof t)return"";if(t.length>4&&t.startsWith("00")&&t.endsWith("00")){return t.slice(2,-2)}return t},Ao=()=>{let e=0;switch(window.datalayerInfo?.pageName){case so.ARTICLE:t=".c-content",e=document.querySelectorAll(`${t} > p`).length;break;case so.LIVE:e=window.datalayerInfo?.livePosts??0}var t;return e.toString()},To=()=>{return window.datalayerInfo?.pageName===so.ARTICLE?(e=".c-content",[...document.querySelectorAll(`${e} > p`)].reduce((e,t)=>e+t.innerHTML.length,0)).toString():"0";var e},Lo=()=>{const e=window.datalayerInfo;return e?e.pageName&&[so.GAMEHOME,so.GAME_APP,so.GAME].includes(e.pageName)?["categorie-jeux"]:e.tagsSlug?e.tagsSlug.split("|").filter(e=>e):[]:[]},Do=()=>{const e=window.datalayerInfo;return e?e.pageName&&[so.GAMEHOME,so.GAME_APP,so.GAME].includes(e.pageName)?["services","jeux"]:e.breadcrumb?e.breadcrumb:[]:[]},No=async()=>{try{window.wamid="10069",window.typ="1",window.WfirstParty=!0,window.Wam2gamConf={token:"Gi2z6jGZBNYt",cookieless:!1,useXdevice:!0},window.WextraIDsConfs=[{name:"firstId"},{name:"utiqId"}],await(async()=>{const e=window.datalayerInfo;if(!e)return;const t={URL:e.pageUri||"",title_article:e.contentTitle||"",editor_group:"20minutes",environnement:"20minutes",keywords:`[${Lo().join(",")}]`,topics:`[${Do().join(",")}]`,publication_date:e.publicationDate?Ti(e.publicationDate):"",media_enrichment:`[${_o().join(",")}]`,blocked_article:"0",premium_article:"0",length_words:To(),nb_paragraph:Ao(),reading_time:"",sponsored:["production","publicommunique","magazine","guide-achat"].includes(window.datalayerInfo?.subType||"")?"1":"0",sponsored_by:"",editor_user_id:"",website_user_id:await So()||"",inscription_date:"",user_connected:"{}"!==_i("20mnUserInfo")?"1":"0",user_subscriber:"0",type_subscription:"[]",navigation:window.layout||"",INSEE_code:e.inseeCode||"",zipcode:"",departement_id:"",departement_label:"",city:"",id_crm:await So()||"",email_hashed:"",TRE:await ko()||"",TGE:await Eo()||"",IDP:await Co()||"",consent_366:"1"};window.Wvar=[];for(const[e,r]of Object.entries(t))window.Wvar.push(e,r)})()}catch(e){console.error("Error initializing Weborama data:",e)}},Io=async()=>{await No();try{po("Weborama",()=>{window.Didomi.getCurrentUserStatus().purposes["publicite-9qedKJMX"].enabled&&window.Didomi.getCurrentUserStatus().vendors.weborama?.enabled&&window.Didomi.getCurrentUserStatus().vendors["366sas-U9KhdfCC"]?.enabled&&["4198576","4008938"].includes(window.datalayerInfo?.contentId||"")&&uo({name:"Weborama SDK",load:"async",src:`//cstatic.weborama.fr/js/wam/customers/wamfactory_dpm.wildcard.min.js?rnd=${Date.now()}`})})}catch(e){console.error("Error initializing Weborama:",e)}};var Po=()=>{(()=>{const e=document.querySelector(".js-close-article-btn");e&&window?.location&&window?.envVariables?.pageEndpoint&&e.addEventListener("click",()=>{Vi({name:"close_content",type:"action",customProps:{cta_context:"content",cta_type:"button",cta_destination:"home",cta_engagement:1}}),window.location.assign(window.envVariables.pageEndpoint)})})()};const Oo=async({url:e,options:t})=>{const r={...t||{}},n=new Headers(r.headers);n.has("Content-Type")||n.set("Content-Type","application/json"),r.headers=n;const i=await fetch(e,r).then(e=>{if(e.ok)return e;throw new Error(`Fetch error: ${e.statusText}`)}).then(e=>n.get("Content-Type")?.toLowerCase()?.includes("image/svg+xml")?e.text():e.json());return"object"==typeof i&&null!==i&&"data"in i?i.data:i};var qo=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e.HOROSCOPE="horoscope",e.JOBS="home_metier",e.JOB_DETAILS="fiche_metier",e.WEATHER="weather",e.TRAFFIC="traffic",e.HOROSCOPE_HOME="horoscopehome",e))(qo||{});const jo=e=>{switch(e){case"page_type":case"content_type":if(window.datalayerInfo?.pageName&&Object.values(so).includes(window.datalayerInfo?.pageName))switch(window.datalayerInfo?.pageName){case so.HOME:return"homepage";case so.TAG:return qo.HOME;case so.JOBS:return qo.JOBS;case so.JOB_DETAILS:return qo.JOB_DETAILS;default:return window.datalayerInfo?.pageName}return qo.MISC;case"content_id":return window.datalayerInfo?.contentId??window.datalayerInfo?.tagId??window.datalayerInfo?.jobId??void 0;case"tags":if(window.datalayerInfo?.elections&&(window.datalayerInfo?.pageName===so.ELECTIONS||window.datalayerInfo?.pageName===so.ELECTIONSHOME)){const{national:e,region:t,department:r,town:n}=window.datalayerInfo.elections||{};return[e?"national":void 0,t,r,n].filter(Boolean).join(",")}return window.datalayerInfo?.tagsSlug?window.datalayerInfo.tagsSlug.replace(/\|/g,","):Fi(window.datalayerInfo?.tagName??"","_")||void 0;case"category":return!window.datalayerInfo?.elections||window.datalayerInfo?.pageName!==so.ELECTIONS&&window.datalayerInfo?.pageName!==so.ELECTIONSHOME?window.datalayerInfo?.breadcrumb?.[0]?"Divertissement"===window.datalayerInfo?.breadcrumb[0]?"arts-stars":Fi(window.datalayerInfo?.breadcrumb[0]):window.datalayerInfo?.pageName===so.HOROSCOPE||window.datalayerInfo?.pageName===so.HOROSCOPE_HOME?Fi(window.datalayerInfo?.pageName):window.datalayerInfo?.sectionLabel?Fi(window.datalayerInfo.sectionLabel):void 0:"elections";case"subcategory":if(window.datalayerInfo?.elections&&(window.datalayerInfo?.pageName===so.ELECTIONS||window.datalayerInfo?.pageName===so.ELECTIONSHOME))return"resultats";if(window.datalayerInfo?.breadcrumb&&window.datalayerInfo?.breadcrumb.length>1){const e=Fi(window.datalayerInfo.breadcrumb[window.datalayerInfo.breadcrumb.length-(window.datalayerInfo?.pageName===so.TAG?2:1)]);return e===Fi(window.datalayerInfo?.breadcrumb[0])?Fi(window.datalayerInfo?.tagName??"")||void 0:e||void 0}return;case"content_slug":return window.datalayerInfo?.contentTitle?Fi(window.datalayerInfo.contentTitle):void 0;case"brand_safety":return window.datalayerInfo?.sentiment;case"has_video":return void 0!==window.partnerFeatures?.enableDisplayOnHeaderAd?window.partnerFeatures.enableDisplayOnHeaderAd.toString():void 0;case"device":return window.layout??void 0;default:return}},Mo=()=>`category=${jo("category")}&sub_category=${jo("subcategory")}&tags=${jo("tags")}&content_id=${jo("content_id")}&brand_safety=${jo("brand_safety")}&page_type=${jo("page_type")}&pos=instream`;var Ro=()=>{(()=>{const e=bo(),t=window.datalayerInfo||{};0!==Object.keys(t).length&&0!==e.length&&e.forEach(e=>{const t=e.getAttribute("data-src");if(!t)return;const{origin:r,pathname:n,searchParams:i}=new URL(t),o=`${r}${n}`,a=Mo();i.append("tagparam",a),e.setAttribute("data-src",`${o}?${i.toString()}`)})})(),window.layout===Xr.MOBILE&&(()=>{const e=bo();e&&e.forEach(e=>{const t=e.getAttribute("data-src");if(!t)return;const{origin:r,pathname:n,search:i}=new URL(t),o=`${r}${n}`.replace(/\/chromeless\/1$/,"").replace(/\/$/,"");e.setAttribute("data-src",`${o}/chromeless/1${i}`)})})(),(()=>{if(window.layout===Xr.DESKTOP&&window.datalayerInfo?.pageName!==so.TV_HOME)return;try{fo(lo.DIGITEKA_VIDEO_FEED)}catch(e){e instanceof Error&&console.error(e.message)}const e=Mo(),t=[`MDTK_videofeed_custparams="${e}";`,`MDTK_videofeed_targetings="${e}";`,'MDTK_videofeed = "01100132";',document.querySelectorAll('div[class*="c-content"] iframe[data-src*="www.ultimedia.com"], div[class*="c-content"] iframe[src*="www.ultimedia.com"]').length>0&&window.layout===Xr.DESKTOP?"CARROUSEL_videofeed=true;":"",'MDTK_videofeed_adunit_path="/31755961/20minutes_webmobile/display_mobile_vertical";','MDTK_videofeed_adunit_path_interstitial="/31755961/20minutes_webmobile/intrastitiel_dtk";'];uo({text:t.join("")})})(),(()=>{const e=bo();0!==e.length&&e.forEach(e=>{const t=e.getAttribute("data-src");t&&(e.setAttribute("src",t),e.removeAttribute("data-src"))})})()};const Fo=({src:e,timeout:t,loadingText:r,theme:n,...i})=>Xt.jsx(Ur,{as:"section","data-theme":n||"light","data-idalgo-loader-src":e,"data-idalgo-timeout":t||"5000","data-idalgo-loader-loading-text":r||"Widget en cours de chargement…",...i}),Bo=({articles:e,linksSize:t,seeMoreButton:r,...n})=>0===e.length?null:Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(Gr,{colsNumber:{xs:1,md:3},...n,as:"ul",gapY:"xxl-2",gapX:"l",px:{xs:"m",md:"0"},children:e.map(e=>Xt.jsx(Wr,{href:e.url,color:"black",size:t||"xs",children:Xt.jsx("li",{children:e.title})},e.title))}),r&&Xt.jsx($r,{justifyContent:"center",px:{xs:"m",md:"0"},mt:"l",children:Xt.jsx(cr,{variant:"secondary",...r})})]});var zo,Ho;var Vo,Uo=(Ho||(Ho=1,zo=function(e,t,r,n,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}),zo),$o=Wt(Uo),Ko={},Go={};function Wo(){if(Vo)return Go;Vo=1;var t=e;function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,i=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,o={},a={};function s(e){return!!n.call(a,e)||!n.call(o,e)&&(i.test(e)?a[e]=!0:(o[e]=!0,!1))}function l(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){c[e]=new l(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];c[t]=new l(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){c[e]=new l(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){c[e]=new l(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){c[e]=new l(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){c[e]=new l(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){c[e]=new l(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){c[e]=new l(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){c[e]=new l(e,5,!1,e.toLowerCase(),null,!1,!1)});var u=/[\-:]([a-z])/g;function d(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){c[e]=new l(e,1,!1,e.toLowerCase(),null,!1,!1)}),c.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){c[e]=new l(e,1,!1,e.toLowerCase(),null,!0,!0)});var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},f=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(e){f.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),p[t]=p[e]})});var h=/["'&<>]/;function m(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=h.exec(e);if(t){var r,n="",i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==r&&(n+=e.substring(i,r)),i=r+1,n+=t}e=i!==r?n+e.substring(i,r):n}return e}var g=/([A-Z])/g,y=/^ms-/,v=Array.isArray;function b(e,t){return{insertionMode:e,selectedValue:t}}var w=new Map;function _(e,t,i){if("object"!=typeof i)throw Error(r(62));for(var o in t=!0,i)if(n.call(i,o)){var a=i[o];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===o.indexOf("--")){var s=m(o);a=m((""+a).trim())}else{s=o;var l=w.get(s);void 0!==l||(l=m(s.replace(g,"-$1").toLowerCase().replace(y,"-ms-")),w.set(s,l)),s=l,a="number"==typeof a?0===a||n.call(p,o)?""+a:a+"px":m((""+a).trim())}t?(t=!1,e.push(' style="',s,":",a)):e.push(";",s,":",a)}}t||e.push('"')}function x(e,t,r,n){switch(r){case"style":return void _(e,t,n);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||"o"!==r[0]&&"O"!==r[0]||"n"!==r[1]&&"N"!==r[1])if(null!==(t=c.hasOwnProperty(r)?c[r]:null)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:!0===n?e.push(" ",r,'=""'):!1!==n&&e.push(" ",r,'="',m(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',m(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',m(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',m(n),'"')}}else if(s(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if("data-"!==(t=r.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",r,'="',m(n),'"')}}function S(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!=typeof t||!("__html"in t))throw Error(r(61));null!=(t=t.__html)&&e.push(""+t)}}function E(e,t,r,i){e.push(A(r));var o,a=r=null;for(o in t)if(n.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":r=s;break;case"dangerouslySetInnerHTML":a=s;break;default:x(e,i,o,s)}}return e.push(">"),S(e,a,r),"string"==typeof r?(e.push(m(r)),null):r}var k=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,C=new Map;function A(e){var t=C.get(e);if(void 0===t){if(!k.test(e))throw Error(r(65,e));t="<"+e,C.set(e,t)}return t}function T(e,i,o,a,l){switch(i){case"select":e.push(A("select"));var c=null,u=null;for(h in o)if(n.call(o,h)){var d=o[h];if(null!=d)switch(h){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:x(e,a,h,d)}}return e.push(">"),S(e,u,c),c;case"option":u=l.selectedValue,e.push(A("option"));var p=d=null,f=null,h=null;for(c in o)if(n.call(o,c)){var g=o[c];if(null!=g)switch(c){case"children":d=g;break;case"selected":f=g;break;case"dangerouslySetInnerHTML":h=g;break;case"value":p=g;default:x(e,a,c,g)}}if(null!=u)if(o=null!==p?""+p:function(e){var r="";return t.Children.forEach(e,function(e){null!=e&&(r+=e)}),r}(d),v(u)){for(a=0;a<u.length;a++)if(""+u[a]===o){e.push(' selected=""');break}}else""+u===o&&e.push(' selected=""');else f&&e.push(' selected=""');return e.push(">"),S(e,h,d),d;case"textarea":for(d in e.push(A("textarea")),h=u=c=null,o)if(n.call(o,d)&&null!=(p=o[d]))switch(d){case"children":h=p;break;case"value":c=p;break;case"defaultValue":u=p;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:x(e,a,d,p)}if(null===c&&null!==u&&(c=u),e.push(">"),null!=h){if(null!=c)throw Error(r(92));if(v(h)&&1<h.length)throw Error(r(93));c=""+h}return"string"==typeof c&&"\n"===c[0]&&e.push("\n"),null!==c&&e.push(m(""+c)),null;case"input":for(u in e.push(A("input")),p=h=d=c=null,o)if(n.call(o,u)&&null!=(f=o[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":p=f;break;case"defaultValue":d=f;break;case"checked":h=f;break;case"value":c=f;break;default:x(e,a,u,f)}return null!==h?x(e,a,"checked",h):null!==p&&x(e,a,"checked",p),null!==c?x(e,a,"value",c):null!==d&&x(e,a,"value",d),e.push("/>"),null;case"menuitem":for(var y in e.push(A("menuitem")),o)if(n.call(o,y)&&null!=(c=o[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:x(e,a,y,c)}return e.push(">"),null;case"title":for(g in e.push(A("title")),c=null,o)if(n.call(o,g)&&null!=(u=o[g]))switch(g){case"children":c=u;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:x(e,a,g,u)}return e.push(">"),c;case"listing":case"pre":for(p in e.push(A(i)),u=c=null,o)if(n.call(o,p)&&null!=(d=o[p]))switch(p){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;default:x(e,a,p,d)}if(e.push(">"),null!=u){if(null!=c)throw Error(r(60));if("object"!=typeof u||!("__html"in u))throw Error(r(61));null!=(o=u.__html)&&("string"==typeof o&&0<o.length&&"\n"===o[0]?e.push("\n",o):e.push(""+o))}return"string"==typeof c&&"\n"===c[0]&&e.push("\n"),c;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var b in e.push(A(i)),o)if(n.call(o,b)&&null!=(c=o[b]))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,i));default:x(e,a,b,c)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return E(e,o,i,a);case"html":return 0===l.insertionMode&&e.push("<!DOCTYPE html>"),E(e,o,i,a);default:if(-1===i.indexOf("-")&&"string"!=typeof o.is)return E(e,o,i,a);for(f in e.push(A(i)),u=c=null,o)if(n.call(o,f)&&null!=(d=o[f]))switch(f){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":_(e,a,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(f)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",f,'="',m(d),'"')}return e.push(">"),S(e,u,c),c}}function L(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(r(395));return e.push(n),e.push('"></template>')}var D=/[<\u2028\u2029]/g;function N(e){return JSON.stringify(e).replace(D,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function I(e,t,r,n){return r.generateStaticMarkup?(e.push(m(t)),!1):(""===t?e=n:(n&&e.push("\x3c!-- --\x3e"),e.push(m(t)),e=!0),e)}var P=Object.assign,O=Symbol.for("react.element"),q=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),B=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),K=Symbol.for("react.scope"),G=Symbol.for("react.debug_trace_mode"),W=Symbol.for("react.legacy_hidden"),Q=Symbol.for("react.default_value"),Z=Symbol.iterator;function J(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case j:return"Fragment";case q:return"Portal";case R:return"Profiler";case M:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B:return(e.displayName||"Context")+".Consumer";case F:return(e._context.displayName||"Context")+".Provider";case z:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:J(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return J(e(t))}catch(e){}}return null}var Y={};function X(e,t){if(!(e=e.contextTypes))return Y;var r,n={};for(r in e)n[r]=t[r];return n}var ee=null;function te(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));te(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ne(e){var t=e.parent;null!==t&&ne(t),e.context._currentValue2=e.value}function ie(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?te(e,t):ie(e,t)}function oe(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?te(e,n):oe(e,n),t.context._currentValue2=t.value}function ae(e){var t=ee;t!==e&&(null===t?ne(e):null===e?re(t):t.depth===e.depth?te(t,e):t.depth>e.depth?ie(t,e):oe(t,e),ee=e)}var se={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function le(e,t,r,n){var i=void 0!==e.state?e.state:null;e.updater=se,e.props=r,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue2:n,"function"==typeof(a=t.getDerivedStateFromProps)&&(i=null==(a=a(r,i))?i:P({},i,a),e.state=i),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&se.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,o,r,n):s)&&(i?(i=!1,o=P({},o,s)):P(o,s))}e.state=o}else o.queue=null}var ce={id:1,overflow:""};function ue(e,t,r){var n=e.id;e=e.overflow;var i=32-de(n)-1;n&=~(1<<i),r+=1;var o=32-de(t)+i;if(30<o){var a=i-i%5;return o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,{id:1<<32-de(t)+i|r<<i|n,overflow:o+e}}return{id:1<<o|r<<i|n,overflow:e}}var de=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(pe(e)/fe|0)|0},pe=Math.log,fe=Math.LN2;var he="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},me=null,ge=null,ye=null,ve=null,be=!1,we=!1,_e=0,xe=null,Se=0;function Ee(){if(null===me)throw Error(r(321));return me}function ke(){if(0<Se)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Ce(){return null===ve?null===ye?(be=!1,ye=ve=ke()):(be=!0,ve=ye):null===ve.next?(be=!1,ve=ve.next=ke()):(be=!0,ve=ve.next),ve}function Ae(){ge=me=null,we=!1,ye=null,Se=0,ve=xe=null}function Te(e,t){return"function"==typeof t?t(e):t}function Le(e,t,r){if(me=Ee(),ve=Ce(),be){var n=ve.queue;if(t=n.dispatch,null!==xe&&void 0!==(r=xe.get(n))){xe.delete(n),n=ve.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);return ve.memoizedState=n,[n,t]}return[ve.memoizedState,t]}return e=e===Te?"function"==typeof t?t():t:void 0!==r?r(t):t,ve.memoizedState=e,e=(e=ve.queue={last:null,dispatch:null}).dispatch=Ne.bind(null,me,e),[ve.memoizedState,e]}function De(e,t){if(me=Ee(),t=void 0===t?null:t,null!==(ve=Ce())){var r=ve.memoizedState;if(null!==r&&null!==t){var n=r[1];e:if(null===n)n=!1;else{for(var i=0;i<n.length&&i<t.length;i++)if(!he(t[i],n[i])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),ve.memoizedState=[e,t],e}function Ne(e,t,n){if(25<=Se)throw Error(r(301));if(e===me)if(we=!0,e={action:n,next:null},null===xe&&(xe=new Map),void 0===(n=xe.get(t)))xe.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ie(){throw Error(r(394))}function Pe(){}var Oe={readContext:function(e){return e._currentValue2},useContext:function(e){return Ee(),e._currentValue2},useMemo:De,useReducer:Le,useRef:function(e){me=Ee();var t=(ve=Ce()).memoizedState;return null===t?(e={current:e},ve.memoizedState=e):t},useState:function(e){return Le(Te,e)},useInsertionEffect:Pe,useLayoutEffect:function(){},useCallback:function(e,t){return De(function(){return e},t)},useImperativeHandle:Pe,useEffect:Pe,useDebugValue:Pe,useDeferredValue:function(e){return Ee(),e},useTransition:function(){return Ee(),[!1,Ie]},useId:function(){var e=ge.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-de(e)-1)).toString(32)+t;var n=qe;if(null===n)throw Error(r(404));return t=_e++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ee(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},qe=null,je=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Me(e){return console.error(e),null}function Re(){}function Fe(e,t,r,n,i,o,a,s){e.allPendingTasks++,null===r?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&et(e)},blockedBoundary:r,blockedSegment:n,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function Be(e,t,r,n,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:i,textEmbedded:o}}function ze(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function He(e,t){var r=e.onShellError;r(t),(r=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ve(e,t,r,n,i){for(me={},ge=t,_e=0,e=r(n,i);we;)we=!1,_e=0,Se+=1,ve=null,e=r(n,i);return Ae(),e}function Ue(e,t,n,i){var o=n.render(),a=i.childContextTypes;if(null!=a){var s=t.legacyContext;if("function"!=typeof n.getChildContext)i=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(r(108,J(i)||"Unknown",l));i=P({},s,n)}t.legacyContext=i,Ge(e,t,o),t.legacyContext=s}else Ge(e,t,o)}function $e(e,t){if(e&&e.defaultProps){for(var r in t=P({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function Ke(e,t,n,i,o){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){o=X(n,t.legacyContext);var a=n.contextType;le(a=new n(i,"object"==typeof a&&null!==a?a._currentValue2:o),n,i,o),Ue(e,t,a,n)}else{o=Ve(e,t,n,i,a=X(n,t.legacyContext));var s=0!==_e;if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof)le(o,n,i,a),Ue(e,t,o,n);else if(s){i=t.treeContext,t.treeContext=ue(i,1,0);try{Ge(e,t,o)}finally{t.treeContext=i}}else Ge(e,t,o)}else{if("string"!=typeof n){switch(n){case W:case G:case M:case R:case j:case V:return void Ge(e,t,i.children);case K:throw Error(r(343));case H:e:{n=t.blockedBoundary,o=t.blockedSegment,a=i.fallback,i=i.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=Be(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var u=Be(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Qe(e,t,i),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,Ye(l,u),0===l.pendingTasks)break e}catch(t){u.status=4,l.forceClientRender=!0,l.errorDigest=ze(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=Fe(e,a,n,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case z:if(i=Ve(e,t,n.render,i,o),0!==_e){n=t.treeContext,t.treeContext=ue(n,1,0);try{Ge(e,t,i)}finally{t.treeContext=n}}else Ge(e,t,i);return;case U:return void Ke(e,t,n=n.type,i=$e(n,i),o);case F:if(o=i.children,n=n._context,i=i.value,a=n._currentValue2,n._currentValue2=i,ee=i={parent:s=ee,depth:null===s?0:s.depth+1,context:n,parentValue:a,value:i},t.context=i,Ge(e,t,o),null===(e=ee))throw Error(r(403));return i=e.parentValue,e.context._currentValue2=i===Q?e.context._defaultValue:i,e=ee=e.parent,void(t.context=e);case B:return void Ge(e,t,i=(i=i.children)(n._currentValue2));case $:return void Ke(e,t,n=(o=n._init)(n._payload),i=$e(n,i),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(a=T((o=t.blockedSegment).chunks,n,i,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=function(e,t,r){switch(t){case"select":return b(1,null!=r.value?r.value:r.defaultValue);case"svg":return b(2,null);case"math":return b(3,null);case"foreignObject":return b(1,null);case"table":return b(4,null);case"thead":case"tbody":case"tfoot":return b(5,null);case"colgroup":return b(7,null);case"tr":return b(6,null)}return 4<=e.insertionMode||0===e.insertionMode?b(1,null):e}(s,n,i),Qe(e,t,a),o.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",n,">")}o.lastPushedText=!1}}function Ge(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case O:return void Ke(e,t,n.type,n.props,n.ref);case q:throw Error(r(257));case $:var i=n._init;return void Ge(e,t,n=i(n._payload))}if(v(n))return void We(e,t,n);if(null===n||"object"!=typeof n?i=null:i="function"==typeof(i=Z&&n[Z]||n["@@iterator"])?i:null,i&&(i=i.call(n))){if(!(n=i.next()).done){var o=[];do{o.push(n.value),n=i.next()}while(!n.done);We(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(i=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,n,e.responseState,i.lastPushedText):"number"==typeof n&&((i=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,""+n,e.responseState,i.lastPushedText))}function We(e,t,r){for(var n=r.length,i=0;i<n;i++){var o=t.treeContext;t.treeContext=ue(o,n,i);try{Qe(e,t,r[i])}finally{t.treeContext=o}}}function Qe(e,t,r){var n=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return Ge(e,t,r)}catch(l){if(Ae(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,ae(o),l;r=l;var a=t.blockedSegment,s=Be(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Fe(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,ae(o)}}function Ze(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Xe(this,t,e)}function Je(e,t,n){var i=e.blockedBoundary;e.blockedSegment.status=3,null===i?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,e=void 0===n?Error(r(432)):n,i.errorDigest=t.onError(e),i.parentFlushed&&t.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(e){return Je(e,t,n)}),i.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(i=t.onAllReady)())}function Ye(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,1===r.status&&Ye(e,r)}else e.completedSegments.push(t)}function Xe(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Re,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Ye(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ze,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Ye(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function et(e){if(2!==e.status){var t=ee,r=je.current;je.current=Oe;var n=qe;qe=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){ae(a.context);try{Ge(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),a.abortSet.delete(a),l.status=1,Xe(s,a.blockedBoundary,l)}catch(e){if(Ae(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=a.ping;e.then(c,c)}else{a.abortSet.delete(a),l.status=4;var u=a.blockedBoundary,d=e,p=ze(s,d);if(null===u?He(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&at(e,e.destination)}catch(t){ze(e,t),He(e,t)}finally{qe=n,je.current=r,r===Oe&&ae(t)}}}function tt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var i=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var o=!0;i=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(o=n[s];a<o.index;a++)t.push(i[a]);o=rt(e,t,o)}for(;a<i.length-1;a++)t.push(i[a]);return a<i.length&&(o=t.push(i[a])),o;default:throw Error(r(390))}}function rt(e,t,n){var i=n.boundary;if(null===i)return tt(e,t,n);if(i.parentFlushed=!0,i.forceClientRender)return e.responseState.generateStaticMarkup||(i=i.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),i&&(t.push(' data-dgst="'),i=m(i),t.push(i),t.push('"')),t.push("></template>")),tt(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<i.pendingTasks){i.rootSegmentID=e.nextSegmentId++,0<i.completedSegments.length&&e.partialBoundaries.push(i);var o=e.responseState,a=o.nextSuspenseID++;return o=o.boundaryPrefix+a.toString(16),i=i.id=o,L(t,e.responseState,i),tt(e,t,n),t.push("\x3c!--/$--\x3e")}if(i.byteSize>e.progressiveChunkSize)return i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),L(t,e.responseState,i.id),tt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=i.completedSegments).length)throw Error(r(391));return rt(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function nt(e,t,n){return function(e,t,n,i){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(r(397))}}(t,n.formatContext)}function it(e,t,n){for(var i=n.completedSegments,o=0;o<i.length;o++)ot(e,t,n,i[o]);if(i.length=0,e=e.responseState,i=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===i)throw Error(r(395));return n=n.toString(16),t.push(i),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function ot(e,t,n,i){if(2===i.status)return!0;var o=i.id;if(-1===o){if(-1===(i.id=n.rootSegmentID))throw Error(r(392));return nt(e,t,i)}return nt(e,t,i),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function at(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var i=e.responseState.bootstrapChunks;for(n=0;n<i.length-1;n++)t.push(i[n]);n<i.length&&t.push(i[n])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var s=a[o];i=t;var l=e.responseState,c=s.id,u=s.errorDigest,d=s.errorMessage,p=s.errorComponentStack;if(i.push(l.startInlineScript),l.sentClientRenderFunction?i.push('$RX("'):(l.sentClientRenderFunction=!0,i.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(r(395));if(i.push(c),i.push('"'),u||d||p){i.push(",");var f=N(u||"");i.push(f)}if(d||p){i.push(",");var h=N(d||"");i.push(h)}if(p){i.push(",");var m=N(p);i.push(m)}if(!i.push(")<\/script>"))return e.destination=null,o++,void a.splice(0,o)}a.splice(0,o);var g=e.completedBoundaries;for(o=0;o<g.length;o++)if(!it(e,t,g[o]))return e.destination=null,o++,void g.splice(0,o);g.splice(0,o);var y=e.partialBoundaries;for(o=0;o<y.length;o++){var v=y[o];e:{a=e,s=t;var b=v.completedSegments;for(l=0;l<b.length;l++)if(!ot(a,s,v,b[l])){l++,b.splice(0,l);var w=!1;break e}b.splice(0,l),w=!0}if(!w)return e.destination=null,o++,void y.splice(0,o)}y.splice(0,o);var _=e.completedBoundaries;for(o=0;o<_.length;o++)if(!it(e,t,_[o]))return e.destination=null,o++,void _.splice(0,o);_.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function st(e,t){try{var r=e.abortableTasks;r.forEach(function(r){return Je(r,e,t)}),r.clear(),null!==e.destination&&at(e,e.destination)}catch(t){ze(e,t),He(e,t)}}function lt(){}function ct(e,t,n,i){var o=!1,a=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){o=!0,a=e}},c=!1;if(e=function(e,t,r,n,i,o,a){var s=[],l=new Set;return(r=Be(t={destination:null,responseState:t,progressiveChunkSize:void 0===n?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:l,pingedTasks:s,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?Me:i,onAllReady:Re,onShellReady:void 0===a?Re:a,onShellError:Re,onFatalError:Re},0,null,r,!1,!1)).parentFlushed=!0,e=Fe(t,e,null,r,l,Y,null,ce),s.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,lt,0,function(){c=!0}),et(e),st(e,i),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{at(e,l)}catch(t){ze(e,t),He(e,t)}}if(o)throw a;if(!c)throw Error(r(426));return s}return Go.renderToNodeStream=function(){throw Error(r(207))},Go.renderToStaticMarkup=function(e,t){return ct(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Go.renderToStaticNodeStream=function(){throw Error(r(208))},Go.renderToString=function(e,t){return ct(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Go.version="18.3.1",Go}var Qo,Zo,Jo={};
|
|
1
|
+
!function(e,t){"use strict";const r=typeof window<"u"&&navigator.userAgent.toLowerCase().includes("firefox"),n=()=>{const e=document.getElementById("js-download-band");e&&/Android/i.test(navigator.userAgent)&&e.setAttribute("href","https://app.adjust.com/15shf6wg?campaign=Bandeau_1&deep_link=20minutes%3A%2F%2Fhome")},i=[{text:"Paris",_index:"town_1717424751904",_id:"75056",_score:1,_source:{output:"Paris (75000)",url:"/elections/resultats/paris/paris-75000"}},{text:"Paris 10ème Arrondissement",_index:"town_1717424751904",_id:"75056AR10",_score:1,_source:{output:"Paris 10ème Arrondissement (75010)",url:"/elections/resultats/paris/paris-75010"}},{text:"Paris 11ème Arrondissement",_index:"town_1717424751904",_id:"75056AR11",_score:1,_source:{output:"Paris 11ème Arrondissement (75011)",url:"/elections/resultats/paris/paris-75011"}}],o=(e,t,r,n,o,a)=>{const s=document.getElementById(e);if(!s)return;const l=s.dataset.storybook,c=s.querySelector(`#${e}-search`),u=c?.getAttribute("data-api-url"),d=s.querySelector(".c-autocomplete__menu");if(!c||!d||!u)return;const p=s.querySelector(".c-autocomplete__input-spinner"),f=c.getAttribute("data-trigger-message"),h=()=>{p?.classList.toggle("u-hidden")},m=async e=>{h(),d.classList.remove("u-hidden");const s=await(async e=>{try{const n=l&&t.includes("20minutes.fr")?i:await fetch(`${u}${r}${encodeURIComponent(e)}`).then(e=>e.json()),o=a&&"object"==typeof n&&null!==n?n[a]:n;return Array.isArray(o)?o:[]}catch(e){return console.error("Error fetching autocomplete results:",e),[]}})(e);d.innerHTML="",0===s.length&&d.classList.add("u-hidden"),s.forEach(e=>{((e,t)=>{const r=document.createElement("li");r.id=`/${e}`,r.textContent=t,r.addEventListener("click",()=>{c instanceof HTMLInputElement&&(c.value=t,d.classList.add("u-hidden"))}),d.appendChild(r)})(e[n],e[o])}),h()};c.addEventListener("input",e=>{if(!(e.target instanceof HTMLInputElement))return;const t=e.target.value;d.classList.remove("u-hidden"),t.length>=3?m(t):(d.innerHTML="",(()=>{const e=document.createElement("li");e.textContent=f,d.appendChild(e)})())}),c.addEventListener("focusout",()=>{setTimeout(()=>d.classList.add("u-hidden"),300)}),c.addEventListener("focusin",()=>{d.childElementCount>0&&d.classList.remove("u-hidden")})},a=(e=document.querySelector(".js-collapse__button"))=>{e&&document.querySelectorAll(".c-collapse__button").forEach(e=>{e.addEventListener("click",e=>{(e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget;if(t instanceof HTMLButtonElement){const e=t.parentElement?.querySelector(`#${t.getAttribute("aria-controls")}`);"true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded","false"),e?.setAttribute("aria-hidden","true")):(t.setAttribute("aria-expanded","true"),e?.setAttribute("aria-hidden","false"))}})(e)})})},s=(e,t)=>{const r=document.querySelector(`#${t}`);if(r){const t=r.querySelector(".js-countdown-days"),n=r.querySelector(".js-countdown-hours"),i=r.querySelector(".js-countdown-minutes"),o=r.querySelector(".js-countdown-seconds");if(!(t&&n&&i&&o))return;window.counters={paralympicsGames:"2024-08-28 20:00:00",winterOlympicsGames:"2026-02-06 20:00:00",eurovision:"2026-05-16 21:00:00",worldFoot2026:"2026-06-11 15:00:00"};const a=window.counters[e],s=new Date(a).getTime(),l=setInterval(()=>{const e=Date.now(),r=s-e;if(r<=0)clearInterval(l);else{const e=Math.floor(r/864e5),a=Math.floor(r%864e5/36e5),s=Math.floor(r%36e5/6e4),l=Math.floor(r%6e4/1e3);t.innerHTML=e.toString(),n.innerHTML=a.toString(),i.innerHTML=s.toString(),o.innerHTML=l.toString()}},1e3)}},l=()=>{const e=document.querySelector(".c-map-districts-container"),t=document.querySelector(".c-map-districts");if(!e||!t)return;const r=document.querySelector(".c-map-districts-container__description"),n=document.querySelector(".c-map-districts-container__department"),i=document.querySelector(".c-map-districts-container__unzoom-button");let o=t;const a=t.getAttribute("viewBox"),s=(e,t)=>e.matches?.call(e,t),l=(s,l)=>{if(l&&i&&r){e.classList.remove("c-map-districts-container--department-view"),r.classList.remove("u-hidden"),n?.classList.add("u-hidden"),i.classList.add("u-hidden"),l!==a&&(r.classList.add("u-hidden"),i.classList.remove("u-hidden")),o.classList.remove("js-selected-area"),o=s;const c=o.getAttribute("data-info");n&&c&&(e.classList.add("c-map-districts-container--department-view"),n.classList.remove("u-hidden"),n.innerHTML=c),o.classList.add("js-selected-area"),t.setAttribute("viewBox",l)}},c=e=>{e.stopPropagation();const r=e.currentTarget;if(o&&t&&r instanceof SVGGraphicsElement){if(r===o)return;if(e.preventDefault(),o!==t&&!((e,t,r)=>{if(!e)return;let n=e.parentElement;for(;n instanceof SVGGraphicsElement&&n!==r;){if(t===n)return!0;n=n.parentElement}return r===t})(r,o,t))return void l(t,a);const n=((e,t,r=".c-map-districts__zoomable:not(.js-selected-area)")=>{if(!e)return;let n,i=e.parentElement;for(;i instanceof SVGGraphicsElement&&i!==t;)s(i,r)&&(n=i),i=i.parentElement;return n})(r,o);l(n||r,(e=>{const t=e.getBBox(),r=t.width/20;return[t.x-r,t.y-r,t.width+2*r,t.height+2*r].join(" ")})(n||r))}},u=()=>{t&&o!==t&&l(t,a)};t.addEventListener("click",u),i&&i.addEventListener("click",u),document.querySelectorAll(".c-map-districts__zoomable").forEach(e=>{e.addEventListener("click",e=>c(e))})},c=()=>{const e=document.getElementById("elections-form-search"),t=document.querySelector(".c-search-form__autocomplete");if(!e||!t)return;e.addEventListener("input",({target:e})=>{if(!(e instanceof HTMLInputElement))return;const r=e.value;if(t.classList.add("u-hidden"),r.length>=3){const e=(e=>{t.classList.remove("u-hidden");const r=t.querySelectorAll("li"),n=[];return r.forEach(t=>{t.querySelector("a")?.innerHTML.toLowerCase().includes(e.toLowerCase())&&n.push(t.innerHTML)}),n})(r);t.innerHTML="",0===e.length&&t.classList.add("u-hidden"),e.forEach(e=>{(e=>{t.innerHTML+=`<li>${e}</li>`})(e)})}}),e.addEventListener("focusout",()=>{setTimeout(()=>t.classList.add("u-hidden"),300)}),e.addEventListener("focusin",()=>{t.childElementCount>0&&t.classList.remove("u-hidden")})},u=(e,t)=>{const r=e.currentTarget;if(e.preventDefault(),r instanceof HTMLButtonElement){const e=t?"u-ellipsis-multiline":"u-ellipsis";return"true"===r.getAttribute("aria-expanded")?((e,t)=>{e.parentNode?.querySelectorAll(".js-ellipsis-target")?.forEach(e=>{e.classList.add(t)}),e.setAttribute("aria-expanded","false");const r=e.querySelector(".js-ellipsis-button__label");r instanceof HTMLSpanElement&&(r.innerHTML="Voir plus")})(r,e):((e,t)=>{e.setAttribute("aria-expanded","true"),e.parentNode?.querySelectorAll(".js-ellipsis-target")?.forEach(e=>{e.classList.remove(t)});const r=e.querySelector(".js-ellipsis-button__label");r instanceof HTMLSpanElement&&(r.innerHTML="Voir moins")})(r,e)}return null},d=e=>{const t=e.currentTarget;return e.preventDefault(),t instanceof HTMLButtonElement?"true"===t.getAttribute("aria-expanded")?(e=>{e.parentNode?.querySelectorAll(".js-expand-target")?.forEach(e=>{e.setAttribute("aria-hidden","true")}),e.setAttribute("aria-expanded","false");const t=e.querySelector(".js-expand-button__label");t instanceof HTMLSpanElement&&(t.innerHTML="Voir plus")})(t):(e=>{e.setAttribute("aria-expanded","true"),e.parentNode?.querySelectorAll(".js-expand-target")?.forEach(e=>{e.setAttribute("aria-hidden","false")});const t=e.querySelector(".js-expand-button__label");t instanceof HTMLSpanElement&&(t.innerHTML="Voir moins")})(t):null},p=()=>{const e=document.querySelector(".c-image-slider__container");if(!e)return()=>{};const t=document.querySelectorAll(".c-image-slider__slide"),r=document.querySelector(".c-image-slider__button-container--previous"),n=document.querySelector(".c-image-slider__button-container--next"),i=document.querySelectorAll(".c-image-slider__indicator");let o=0,a=null,s=!1;const l=(t=!0)=>{if(!(e instanceof HTMLElement))return;e.style.transition=t?"transform 0.3s ease":"none";const r=100*-o;e.style.transform=`translateX(${r}%)`,i.forEach((e,t)=>{e.classList.toggle("c-image-slider__indicator--is-active",t===o)})},c=e=>{o=e,l(!0)},u=()=>{a&&clearInterval(a),a=setInterval(()=>{if(!s){const e=(o+1)%t.length;c(e)}},4e3)},d=()=>{a&&(clearInterval(a),a=null)},p=()=>{s=!0,d()},f=()=>{s=!1,u()};r?.addEventListener("click",()=>{p();const e=(o-1+t.length)%t.length;c(e),setTimeout(f,5e3)}),n?.addEventListener("click",()=>{p();const e=(o+1)%t.length;c(e),setTimeout(f,5e3)}),i.forEach((e,t)=>{e.addEventListener("click",()=>{p(),c(t),setTimeout(f,5e3)})});let h=0,m=0,g=!1;return e.addEventListener("touchstart",t=>{e instanceof HTMLElement&&(p(),h=t.touches[0].clientX,m=h,g=!0,e.style.transition="none")}),e.addEventListener("touchmove",t=>{if(!(e instanceof HTMLElement))return;m=t.touches[0].clientX;const r=m-h,n=-o*window.innerWidth+r;e.style.transform=`translateX(${n}px)`}),e.addEventListener("touchend",()=>{if(!g)return;g=!1;const e=m-h;Math.abs(e)>75&&(e<0?o=Math.min(o+1,t.length-1):e>0&&(o=Math.max(o-1,0))),l(!0),setTimeout(f,5e3)}),l(!0),u(),()=>{d()}},f=e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget,r=document.getElementById("info-button-content");!(t instanceof HTMLButtonElement)||!r||("true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded","false"),r.setAttribute("aria-hidden","true")):(t.setAttribute("aria-expanded","true"),r.setAttribute("aria-hidden","false")))},h=":not([inert]):not([inert] *)",m=':not([tabindex^="-"])',g=":not(:disabled)";var y=[`a[href]${h}${m}`,`area[href]${h}${m}`,`input:not([type="hidden"]):not([type="radio"])${h}${m}${g}`,`input[type="radio"]${h}${m}${g}`,`select${h}${m}${g}`,`textarea${h}${m}${g}`,`button${h}${m}${g}`,`details${h} > summary:first-of-type${m}`,`iframe${h}${m}`,`audio[controls]${h}${m}`,`video[controls]${h}${m}`,`[contenteditable]${h}${m}`,`[tabindex]${h}${m}`];function v(e){(e.querySelector("[autofocus]")||e).focus()}function b(e,t){if(t&&x(e))return e;if(function(e){return(!e.shadowRoot||"-1"!==e.getAttribute("tabindex"))&&!e.matches(":disabled,[hidden],[inert]")}(e))if(e.shadowRoot){let r=w(e.shadowRoot,t);for(;r;){const e=b(r,t);if(e)return e;r=_(r,t)}}else if("slot"===e.localName){const r=e.assignedElements({flatten:!0});t||r.reverse();for(const e of r){const r=b(e,t);if(r)return r}}else{let r=w(e,t);for(;r;){const e=b(r,t);if(e)return e;r=_(r,t)}}return!t&&x(e)?e:null}function w(e,t){return t?e.firstElementChild:e.lastElementChild}function _(e,t){return t?e.nextElementSibling:e.previousElementSibling}const x=e=>!e.shadowRoot?.delegatesFocus&&(e.matches(y.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e));function S(e=document){const t=e.activeElement;return t?t.shadowRoot?S(t.shadowRoot)||document.activeElement:t:null}function E(e,t){const[r,n]=function(e){const t=b(e,!0);return[t,t?b(e,!1)||t:null]}(e);if(!r)return t.preventDefault();const i=S();t.shiftKey&&i===r?(n.focus(),t.preventDefault()):!t.shiftKey&&i===n&&(r.focus(),t.preventDefault())}function k(e,t){return function t(r){if(!r||r===document||r===window)return null;const n=C(r);return n&&(r=n),r.closest(e)||t(r.getRootNode().host)}(t)}function C(e){return e.assignedSlot||(e.parentNode?C(e.parentNode):null)}const A="data-a11y-dialog";class T{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(A)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=S(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():v(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,r){return this.$el.addEventListener(e,t,r),this}off(e,t,r){return this.$el.removeEventListener(e,t,r),this}fire(e,t){const r=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(r),r}handleTriggerClicks(e){const t=e.composedPath()[0],r=k(`[${A}-show="${this.id}"]`,t),n=k(`[${A}-hide="${this.id}"]`,t),i=k(`[${A}-hide]`,t)&&k('[aria-modal="true"]',t)===this.$el;r&&this.show(e),(n||i)&&this.hide(e)}bindKeypress(e){if(k('[aria-modal="true"]',S())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"===e.key&&"alertdialog"!==this.$el.getAttribute("role")&&!t&&(e.preventDefault(),this.hide(e)),"Tab"===e.key&&E(this.$el,e)}maintainFocus(){const e=S();k(`[aria-modal="true"], [${A}-ignore-focus-trap]`,e)||v(this.$el)}}function L(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new T(e)}typeof document<"u"&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",L):L());const D="68px",N="50px",I=({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})=>{const i=e.classList.contains("c-breadcrumb--is-small")?N:D;r.classList.contains("o-nav-button--visible")&&!n.classList.contains("o-nav-button--visible")&&(e.style.paddingRight=i,e.style.paddingLeft=""),n.classList.contains("o-nav-button--visible")&&(e.style.paddingLeft=i,r.classList.contains("o-nav-button--visible")&&(e.style.paddingRight=i),r.classList.contains("o-nav-button--visible")||(e.style.paddingRight="")),!r.classList.contains("o-nav-button--visible")&&!n.classList.contains("o-nav-button--visible")&&(t.style.width="",e.style.paddingRight="")},P=({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n,sliderVariant:i})=>{if(t){const o=t.closest(".js-overview-bar-container")?.querySelector(".c-stepper")?.querySelectorAll(".c-stepper__item");if(o){const e=Array.from(o).findIndex(e=>e.classList.contains("c-stepper__item--loading"));if(e<0)o[0].classList.add("c-stepper__item--loading");else{o[e].classList.remove("c-stepper__item--loading"),o[e].classList.add("c-stepper__item--loaded");const t=o[e].querySelector(".c-stepper__loader");t&&t instanceof HTMLElement&&(t.style.transition="width 0s linear"),e+1<o.length&&o[e+1].classList.add("c-stepper__item--loading")}}if(t.scrollWidth-t.clientWidth>t.clientWidth){let e=t.scrollLeft;switch(i){case"three-columns-articles":e+=t.clientWidth+32;break;case"rubrics":e+=t.clientWidth-36;break;default:e+=Math.ceil(.6*t.clientWidth)}t.scrollTo({left:e,behavior:"smooth"}),n.classList.add("o-nav-button--visible"),e+t.clientWidth>=t.scrollWidth&&r.classList.remove("o-nav-button--visible")}else{const e=t.scrollWidth-t.clientWidth;t.scrollTo({left:e,behavior:"smooth"}),r.classList.remove("o-nav-button--visible"),n.classList.add("o-nav-button--visible")}r.classList.contains("c-slider__button-container--has-space-around")&&n.classList.contains("c-slider__button-container--has-space-around")&&I({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})}},O=({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n,sliderVariant:i,delay:o})=>{if(t){const a=t.closest(".js-overview-bar-container")?.querySelector(".c-stepper")?.querySelectorAll(".c-stepper__item");if(a){const e=Array.from(a).findIndex(e=>e.classList.contains("c-stepper__item--loading"));e<0?a[0].classList.add("c-stepper__item--loading"):(a[e].classList.remove("c-stepper__item--loading"),a[e].classList.remove("c-stepper__item--loaded"),e-1>0&&(a[e-1].classList.remove("c-stepper__item--loading"),a[e-1].classList.remove("c-stepper__item--loaded"),setTimeout(()=>{const t=a[e-1].querySelector(".c-stepper__loader");a[e-1].classList.add("c-stepper__item--loading"),t&&t instanceof HTMLElement&&(t.style.transition=`width ${o/1e3}s linear`)},0)))}if(t.clientWidth<t.scrollLeft){let e=t.scrollLeft;switch(i){case"three-columns-articles":e-=t.clientWidth+32;break;case"rubrics":e-=t.clientWidth-36;break;default:e-=Math.ceil(.6*t.clientWidth)}t.scrollTo({left:e,behavior:"smooth"}),r.classList.add("o-nav-button--visible"),0===e&&n.classList.remove("o-nav-button--visible")}else t.scrollTo({left:0,behavior:"smooth"}),n.classList.remove("o-nav-button--visible"),t.clientWidth<t.scrollWidth&&r.classList.add("o-nav-button--visible");r.classList.contains("c-slider__button-container--has-space-around")&&n.classList.contains("c-slider__button-container--has-space-around")&&I({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})}},q=({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})=>{(({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})=>{const i=t.scrollLeft>0,o=t.scrollLeft+(t.clientWidth+.5)<t.scrollWidth;i&&o?(r.classList?.add("o-nav-button--visible"),n.classList?.add("o-nav-button--visible")):i?(r.classList?.remove("o-nav-button--visible"),n.classList?.add("o-nav-button--visible")):o?(r.classList?.add("o-nav-button--visible"),n.classList?.remove("o-nav-button--visible")):(r.classList?.remove("o-nav-button--visible"),n.classList?.remove("o-nav-button--visible")),r.classList.contains("c-slider__button-container--has-space-around")&&n.classList.contains("c-slider__button-container--has-space-around")&&I({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})})({navigationContainer:e,navigatedList:t,nextBtn:r,prevBtn:n})},j=e=>{const{sliderVariant:t}=e.dataset,{sliderAuto:r}=e.dataset,{sliderDelay:n}=e.dataset,i=n?parseInt(n,10):3e3,o=e.closest(".js-overview-bar-container")?.querySelector(".c-stepper"),a=o?.querySelectorAll(".c-stepper__item"),s=e.querySelector(".js-navigation-container__list"),l=e.querySelector(".o-nav-button--next-button"),c=e.querySelector(".o-nav-button--previous-button");if(s&&l&&c){if(s.clientWidth<s.scrollWidth&&(l.classList.add("o-nav-button--visible"),l.classList.contains("c-slider__button-container--has-space-around"))){const t=e.classList.contains("c-breadcrumb--is-small")?N:D;e.style.paddingRight=t}if(l.addEventListener("click",P.bind(!1,{navigationContainer:e,navigatedList:s,nextBtn:l,prevBtn:c,sliderVariant:t})),c.addEventListener("click",O.bind(!1,{navigationContainer:e,navigatedList:s,nextBtn:l,prevBtn:c,sliderVariant:t,delay:i})),"true"===r){const e=o?o.querySelector(".c-stepper__item--loading"):null;a&&(a.forEach(e=>{const t=e.querySelector(".c-stepper__loader");t&&t instanceof HTMLElement&&(t.style.transition=`width ${i/1e3}s linear`)}),e||a[0].classList.add("c-stepper__item--loading")),setInterval(()=>{l.classList.contains("o-nav-button--visible")?l.click():s&&c&&(s.scrollLeft=0,a&&(a.forEach(e=>{const t=e.querySelector(".c-stepper__loader");t&&t instanceof HTMLElement&&(t.style.transition="width 0s linear"),e.classList.remove("c-stepper__item--loading"),e.classList.remove("c-stepper__item--loaded"),setTimeout(()=>{t&&t instanceof HTMLElement&&(t.style.transition=`width ${i/1e3}s linear`)},0)}),setTimeout(()=>{a[0].classList.add("c-stepper__item--loading")},0)),c.click())},i)}}};function M(e,t,r){const n=document.createElement(t);return e&&(n.className=e),r&&r.appendChild(n),n}function R(e,t){return e.x=t.x,e.y=t.y,void 0!==t.id&&(e.id=t.id),e}function F(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function B(e,t){const r=Math.abs(e.x-t.x),n=Math.abs(e.y-t.y);return Math.sqrt(r*r+n*n)}function z(e,t){return e.x===t.x&&e.y===t.y}function H(e,t,r){return Math.min(Math.max(e,t),r)}function V(e,t,r){let n=`translate3d(${e}px,${t||0}px,0)`;return void 0!==r&&(n+=` scale3d(${r},${r},1)`),n}function U(e,t,r,n){e.style.transform=V(t,r,n)}function $(e,t,r,n){e.style.transition=t?`${t} ${r}ms ${n||"cubic-bezier(.4,0,.22,1)"}`:"none"}function K(e,t,r){e.style.width="number"==typeof t?`${t}px`:t,e.style.height="number"==typeof r?`${r}px`:r}const G="idle",W="loading",Q="loaded",Z="error";function J(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}let Y=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{Y=!0}}))}catch{}class X{constructor(){this._pool=[]}add(e,t,r,n){this._toggleListener(e,t,r,n)}remove(e,t,r,n){this._toggleListener(e,t,r,n,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,t,r,n,i,o){if(!e)return;const a=i?"removeEventListener":"addEventListener";t.split(" ").forEach(t=>{if(t){o||(i?this._pool=this._pool.filter(n=>n.type!==t||n.listener!==r||n.target!==e):this._pool.push({target:e,type:t,listener:r,passive:n}));const s=!!Y&&{passive:n||!1};e[a](t,r,s)}})}}function ee(e,t){if(e.getViewportSizeFn){const r=e.getViewportSizeFn(e,t);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function te(e,t,r,n,i){let o=0;if(t.paddingFn)o=t.paddingFn(r,n,i)[e];else if(t.padding)o=t.padding[e];else{const r="padding"+e[0].toUpperCase()+e.slice(1);t[r]&&(o=t[r])}return Number(o)||0}function re(e,t,r,n){return{x:t.x-te("left",e,t,r,n)-te("right",e,t,r,n),y:t.y-te("top",e,t,r,n)-te("bottom",e,t,r,n)}}class ne{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:t}=this.slide,r=this.slide["x"===e?"width":"height"]*this.currZoomLevel,n=te("x"===e?"left":"top",t.options,t.viewportSize,this.slide.data,this.slide.index),i=this.slide.panAreaSize[e];this.center[e]=Math.round((i-r)/2)+n,this.max[e]=r>i?Math.round(i-r)+n:this.center[e],this.min[e]=r>i?n:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,t){return H(t,this.max[e],this.min[e])}}let ie=class{constructor(e,t,r,n){this.pswp=n,this.options=e,this.itemData=t,this.index=r,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,r){const n={x:e,y:t};this.elementSize=n,this.panAreaSize=r;const i=r.x/n.x,o=r.y/n.y;this.fit=Math.min(1,i<o?i:o),this.fill=Math.min(1,i>o?i:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",r=this.options[t];if(r)return"function"==typeof r?r(this):"fill"===r?this.fill:"fit"===r?this.fit:Number(r)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}};class oe{constructor(e,t,r){this.data=e,this.index=t,this.pswp=r,this.isActive=t===r.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!r.opener.isOpen,this.zoomLevels=new ie(r.options,e,t,r),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:t}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=M("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new ne(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;this.heavyAppended||!e.opener.isOpen||e.mainScroll.isShifted()||(this.isActive,0)||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(e){const t=this.currentResolution||this.zoomLevels.initial;if(!t)return;const r=Math.round(this.width*t)||this.pswp.viewportSize.x,n=Math.round(this.height*t)||this.pswp.viewportSize.y;!this.sizeChanged(r,n)&&!e||this.content.setDisplayedSize(r,n)}sizeChanged(e,t){return(e!==this.prevDisplayedWidth||t!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=e,this.prevDisplayedHeight=t,!0)}getPlaceholderElement(){var e;return null===(e=this.content.placeholder)||void 0===e?void 0:e.element}zoomTo(e,t,r,n){const{pswp:i}=this;if(!this.isZoomable()||i.mainScroll.isShifted())return;i.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:t,transitionDuration:r}),i.animations.stopAllPan();const o=this.currZoomLevel;n||(e=H(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",t,o),this.pan.y=this.calculateZoomToPanOffset("y",t,o),F(this.pan);const a=()=>{this._setResolution(e),this.applyCurrentZoomPan()};r?i.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:a,duration:r,easing:i.options.easing}):a()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,t,r){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];t||(t=this.pswp.getViewportCenterPoint()),r||(r=this.zoomLevels.initial);const n=this.currZoomLevel/r;return this.bounds.correctPan(e,(this.pan[e]-t[e])*n+t[e])}panTo(e,t){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",t),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),R(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,t,r){r/=this.currentResolution||this.zoomLevels.initial,U(this.container,e,t,r)}calculateSize(){const{pswp:e}=this;R(this.panAreaSize,re(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return V(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class ae{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&R(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:t,dragAxis:r}=this.gestures,{currSlide:n}=this.pswp;if("y"===r&&this.pswp.options.closeOnVerticalDrag&&n&&n.currZoomLevel<=n.zoomLevels.fit&&!this.gestures.isMultitouch){const r=n.pan.y+(e.y-t.y);if(!this.pswp.dispatch("verticalDrag",{panY:r}).defaultPrevented){this._setPanWithFriction("y",r,.6);const e=1-Math.abs(this._getVerticalDragRatio(n.pan.y));this.pswp.applyBgOpacity(e),n.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),n&&(F(n.pan),n.applyCurrentZoomPan()))}end(){const{velocity:e}=this.gestures,{mainScroll:t,currSlide:r}=this.pswp;let n=0;if(this.pswp.animations.stopAll(),t.isShifted()){const r=(t.x-t.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-.5&&r<0||e.x<.1&&r<-.5?(n=1,e.x=Math.min(e.x,0)):(e.x>.5&&r>0||e.x>-.1&&r>.5)&&(n=-1,e.x=Math.max(e.x,0)),t.moveIndexBy(n,!0,e.x)}r&&r.currZoomLevel>r.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:t}=this.gestures,{currSlide:r}=this.pswp;if(!r)return;const{pan:n,bounds:i}=r,o=n[e],a=this.pswp.bgOpacity<1&&"y"===e,s=o+function(e,t){return e*t/(1-t)}(t[e],.995);if(a){const e=this._getVerticalDragRatio(o),t=this._getVerticalDragRatio(s);if(e<0&&t<-.4||e>0&&t>.4)return void this.pswp.close()}const l=i.correctPan(e,s);if(o===l)return;const c=l===s?1:.82,u=this.pswp.bgOpacity,d=l-o;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:l,velocity:t[e],dampingRatio:c,onUpdate:t=>{if(a&&this.pswp.bgOpacity<1){const e=1-(l-t)/d;this.pswp.applyBgOpacity(H(u+(1-u)*e,0,1))}n[e]=Math.floor(t),r.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:t,dragAxis:r,prevP1:n,isMultitouch:i}=this.gestures,{currSlide:o,mainScroll:a}=this.pswp,s=t[e]-n[e],l=a.x+s;if(!s||!o)return!1;if("x"===e&&!o.isPannable()&&!i)return a.moveTo(l,!0),!0;const{bounds:c}=o,u=o.pan[e]+s;if(this.pswp.options.allowPanToNext&&"x"===r&&"x"===e&&!i){const t=a.getCurrSlideX(),r=a.x-t,n=s>0,i=!n;if(u>c.min[e]&&n){if(c.min[e]<=this.startPan[e])return a.moveTo(l,!0),!0;this._setPanWithFriction(e,u)}else if(u<c.max[e]&&i){if(this.startPan[e]<=c.max[e])return a.moveTo(l,!0),!0;this._setPanWithFriction(e,u)}else if(0!==r){if(r>0)return a.moveTo(Math.max(l,t),!0),!0;if(r<0)return a.moveTo(Math.min(l,t),!0),!0}else this._setPanWithFriction(e,u)}else"y"===e?!a.isShifted()&&c.min.y!==c.max.y&&this._setPanWithFriction(e,u):this._setPanWithFriction(e,u);return!1}_getVerticalDragRatio(e){var t,r;return(e-(null!==(t=null===(r=this.pswp.currSlide)||void 0===r?void 0:r.bounds.center.y)&&void 0!==t?t:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,t,r){const{currSlide:n}=this.pswp;if(!n)return;const{pan:i,bounds:o}=n;if(o.correctPan(e,t)!==t||r){const n=Math.round(t-i[e]);i[e]+=n*(r||.35)}else i[e]=t}}function se(e,t,r){return e.x=(t.x+r.x)/2,e.y=(t.y+r.y)/2,e}class le{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,R(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:t,p2:r,startP2:n,pswp:i}=this.gestures,{currSlide:o}=i;if(!o)return;const a=o.zoomLevels.min,s=o.zoomLevels.max;if(!o.isZoomable()||i.mainScroll.isShifted())return;se(this._startZoomPoint,t,n),se(this._zoomPoint,e,r);let l=1/B(t,n)*B(e,r)*this._startZoomLevel;if(l>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),l<a)if(i.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=o.zoomLevels.initial){const e=1-(a-l)/(a/1.2);i.dispatch("pinchClose",{bgOpacity:e}).defaultPrevented||i.applyBgOpacity(e)}else l=a-.15*(a-l);else l>s&&(l=s+.05*(l-s));o.pan.x=this._calculatePanForZoomLevel("x",l),o.pan.y=this._calculatePanForZoomLevel("y",l),o.setZoomLevel(l),o.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:t}=e;(!t||t.currZoomLevel<t.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&e.options.pinchToClose?e.close():this.correctZoomPan()}_calculatePanForZoomLevel(e,t){const r=t/this._startZoomLevel;return this._zoomPoint[e]-(this._startZoomPoint[e]-this._startPan[e])*r}correctZoomPan(e){const{pswp:t}=this.gestures,{currSlide:r}=t;if(null==r||!r.isZoomable())return;0===this._zoomPoint.x&&(e=!0);const n=r.currZoomLevel;let i,o=!0;n<r.zoomLevels.initial?i=r.zoomLevels.initial:n>r.zoomLevels.max?i=r.zoomLevels.max:(o=!1,i=n);const a=t.bgOpacity,s=t.bgOpacity<1,l=R({x:0,y:0},r.pan);let c=R({x:0,y:0},l);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=n,R(this._startPan,l)),o&&(c={x:this._calculatePanForZoomLevel("x",i),y:this._calculatePanForZoomLevel("y",i)}),r.setZoomLevel(i),c={x:r.bounds.correctPan("x",c.x),y:r.bounds.correctPan("y",c.y)},r.setZoomLevel(n);const u=!z(c,l);if(!u&&!o&&!s)return r._setResolution(i),void r.applyCurrentZoomPan();t.animations.stopAllPan(),t.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:e=>{if(e/=1e3,u||o){if(u&&(r.pan.x=l.x+(c.x-l.x)*e,r.pan.y=l.y+(c.y-l.y)*e),o){const t=n+(i-n)*e;r.setZoomLevel(t)}r.applyCurrentZoomPan()}s&&t.bgOpacity<1&&t.applyBgOpacity(H(a+(1-a)*e,0,1))},onComplete:()=>{r._setResolution(i),r.applyCurrentZoomPan()}})}}function ce(e){return!!e.target.closest(".pswp__container")}class ue{constructor(e){this.gestures=e}click(e,t){const r=t.target.classList,n=r.contains("pswp__img"),i=r.contains("pswp__item")||r.contains("pswp__zoom-wrap");n?this._doClickOrTapAction("imageClick",e,t):i&&this._doClickOrTapAction("bgClick",e,t)}tap(e,t){ce(t)&&this._doClickOrTapAction("tap",e,t)}doubleTap(e,t){ce(t)&&this._doClickOrTapAction("doubleTap",e,t)}_doClickOrTapAction(e,t,r){var n;const{pswp:i}=this.gestures,{currSlide:o}=i,a=e+"Action",s=i.options[a];if(!i.dispatch(a,{point:t,originalEvent:r}).defaultPrevented){if("function"==typeof s)return void s.call(i,t,r);switch(s){case"close":case"next":i[s]();break;case"zoom":o?.toggleZoom(t);break;case"zoom-or-close":null!=o&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(t):i.options.clickToCloseNonZoomable&&i.close();break;case"toggle-controls":null===(n=this.gestures.pswp.element)||void 0===n||n.classList.toggle("pswp--ui-visible")}}}}class de{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new ae(this),this.zoomLevels=new le(this),this.tapHandler=new ue(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,t,r,n){const{pswp:i}=this,{events:o}=i,a=n?e+n:"";o.add(i.scrollWrap,e+t,this.onPointerDown.bind(this)),o.add(window,e+"move",this.onPointerMove.bind(this)),o.add(window,e+r,this.onPointerUp.bind(this)),a&&o.add(i.scrollWrap,a,this.onPointerUp.bind(this))}onPointerDown(e){const t="mousedown"===e.type||"mouse"===e.pointerType;if(t&&e.button>0)return;const{pswp:r}=this;r.opener.isOpen?r.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(t&&(r.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),r.animations.stopAll(),this._updatePoints(e,"down"),1===this._numActivePoints&&(this.dragAxis=null,R(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):e.preventDefault()}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented&&(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,R(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented&&(0===this._numActivePoints&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?z(this.p1,this.prevP1)||this.drag.change():(!z(this.p1,this.prevP1)||!z(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const t=Date.now(),r=t-this._intervalTime;r<50&&!e||(this.velocity.x=this._getVelocity("x",r),this.velocity.y=this._getVelocity("y",r),this._intervalTime=t,R(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:t}=this.pswp;if(t.isShifted())return void t.moveIndexBy(0,!0);if(e.type.indexOf("cancel")>0)return;if("mouseup"===e.type||"mouse"===e.pointerType)return void this.tapHandler.click(this.startP1,e);const r=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),B(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,e)):(R(this._lastStartP1,this.startP1),this._tapTimer=setTimeout(()=>{this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},r))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,t){const r=this.p1[e]-this._intervalP1[e];return Math.abs(r)>1&&t>5?r/t:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,t){this.pswp.applyFilters("preventPointerEvent",!0,e,t)&&e.preventDefault()}_updatePoints(e,t){if(this._pointerEventEnabled){const r=e,n=this._ongoingPointers.findIndex(e=>e.id===r.pointerId);"up"===t&&n>-1?this._ongoingPointers.splice(n,1):"down"===t&&-1===n?this._ongoingPointers.push(this._convertEventPosToPoint(r,{x:0,y:0})):n>-1&&this._convertEventPosToPoint(r,this._ongoingPointers[n]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&R(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&R(this.p2,this._ongoingPointers[1])}else{const r=e;this._numActivePoints=0,r.type.indexOf("touch")>-1?r.touches&&r.touches.length>0&&(this._convertEventPosToPoint(r.touches[0],this.p1),this._numActivePoints++,r.touches.length>1&&(this._convertEventPosToPoint(r.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),"up"===t?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){R(this.prevP1,this.p1),R(this.prevP2,this.p2)}_updateStartPoints(){R(this.startP1,this.p1),R(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==e){const t=e>0?"x":"y";Math.abs(this.p1[t]-this.startP1[t])>=10&&(this.dragAxis=t)}}}_convertEventPosToPoint(e,t){return t.x=e.pageX-this.pswp.offset.x,t.y=e.pageY-this.pswp.offset.y,"pointerId"in e?t.id=e.pointerId:void 0!==e.identifier&&(t.id=e.identifier),t}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}class pe{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){const{pswp:t}=this,r=Math.round(t.viewportSize.x+t.viewportSize.x*t.options.spacing),n=r!==this.slideWidth;n&&(this.slideWidth=r,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((t,r)=>{n&&U(t.el,(r+this._containerShiftIndex)*this.slideWidth),e&&t.slide&&t.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){const t=M("pswp__item","div",this.pswp.container);t.setAttribute("role","group"),t.setAttribute("aria-roledescription","slide"),t.setAttribute("aria-hidden","true"),t.style.display=1===e?"block":"none",this.itemHolders.push({el:t})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,t,r){const{pswp:n}=this;let i=n.potentialIndex+e;const o=n.getNumItems();if(n.canLoop()){i=n.getLoopedIndex(i);const t=(e+o)%o;e=t<=o/2?t:t-o}else i<0?i=0:i>=o&&(i=o-1),e=i-n.potentialIndex;n.potentialIndex=i,this._currPositionIndex-=e,n.animations.stopMainScroll();const a=this.getCurrSlideX();if(t){n.animations.startSpring({isMainScroll:!0,start:this.x,end:a,velocity:r||0,naturalFrequency:30,dampingRatio:1,onUpdate:e=>{this.moveTo(e)},onComplete:()=>{this.updateCurrItem(),n.appendHeavy()}});let e=n.potentialIndex-n.currIndex;if(n.canLoop()){const t=(e+o)%o;e=t<=o/2?t:t-o}Math.abs(e)>1&&this.updateCurrItem()}else this.moveTo(a),this.updateCurrItem();return!!e}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;const{pswp:t}=this,r=this._prevPositionIndex-this._currPositionIndex;if(!r)return;this._prevPositionIndex=this._currPositionIndex,t.currIndex=t.potentialIndex;let n,i=Math.abs(r);i>=3&&(this._containerShiftIndex+=r+(r>0?-3:3),i=3,this.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.destroy(),e.slide=void 0}));for(let e=0;e<i;e++)r>0?(n=this.itemHolders.shift(),n&&(this.itemHolders[2]=n,this._containerShiftIndex++,U(n.el,(this._containerShiftIndex+2)*this.slideWidth),t.setContent(n,t.currIndex-i+e+2))):(n=this.itemHolders.pop(),n&&(this.itemHolders.unshift(n),this._containerShiftIndex--,U(n.el,this._containerShiftIndex*this.slideWidth),t.setContent(n,t.currIndex+i-e-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),t.animations.stopAllPan(),this.itemHolders.forEach((e,t)=>{e.slide&&e.slide.setIsActive(1===t)}),t.currSlide=null===(e=this.itemHolders[1])||void 0===e?void 0:e.slide,t.contentLoader.updateLazy(r),t.currSlide&&t.currSlide.applyCurrentZoomPan(),t.dispatch("change")}moveTo(e,t){if(!this.pswp.canLoop()&&t){let t=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;t+=this.pswp.currIndex;const r=Math.round(e-this.x);(t<0&&r>0||t>=this.pswp.getNumItems()-1&&r<0)&&(e=this.x+.35*r)}this.x=e,this.pswp.container&&U(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:t??!1})}}const fe={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},he=(e,t)=>t?e:fe[e];class me{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});const t=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&t&&this._wasFocused&&t.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:t}=this;if(t.dispatch("keydown",{originalEvent:e}).defaultPrevented||("button"in(r=e)&&1===r.button||r.ctrlKey||r.metaKey||r.altKey||r.shiftKey))return;var r;let n,i,o=!1;const a="key"in e;switch(a?e.key:e.keyCode){case he("Escape",a):t.options.escKey&&(n="close");break;case he("z",a):n="toggleZoom";break;case he("ArrowLeft",a):i="x";break;case he("ArrowUp",a):i="y";break;case he("ArrowRight",a):i="x",o=!0;break;case he("ArrowDown",a):o=!0,i="y";break;case he("Tab",a):this._focusRoot()}if(i){e.preventDefault();const{currSlide:r}=t;t.options.arrowKeys&&"x"===i&&t.getNumItems()>1?n=o?"next":"prev":r&&r.currZoomLevel>r.zoomLevels.fit&&(r.pan[i]+=o?-80:80,r.panTo(r.pan.x,r.pan.y))}n&&(e.preventDefault(),t[n]())}_onFocusIn(e){const{template:t}=this.pswp;t&&document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}}const ge="cubic-bezier(.4,0,.22,1)";class ye{constructor(e){var t;this.props=e;const{target:r,onComplete:n,transform:i,onFinish:o=()=>{},duration:a=333,easing:s=ge}=e;this.onFinish=o;const l=i?"transform":"opacity",c=null!==(t=e[l])&&void 0!==t?t:"";this._target=r,this._onComplete=n,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{$(r,l,a,s),this._helperTimeout=setTimeout(()=>{r.addEventListener("transitionend",this._onTransitionEnd,!1),r.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},a+500),r.style[l]=c},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),$(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}class ve{constructor(e,t,r){this.velocity=1e3*e,this._dampingRatio=t||.75,this._naturalFrequency=r||12,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,t){let r,n=0;t/=1e3;const i=Math.E**(-this._dampingRatio*this._naturalFrequency*t);if(1===this._dampingRatio)r=this.velocity+this._naturalFrequency*e,n=(e+r*t)*i,this.velocity=n*-this._naturalFrequency+r*i;else if(this._dampingRatio<1){r=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const o=Math.cos(this._dampedFrequency*t),a=Math.sin(this._dampedFrequency*t);n=i*(e*o+r*a),this.velocity=n*-this._naturalFrequency*this._dampingRatio+i*(-this._dampedFrequency*e*a+this._dampedFrequency*r*o)}return n}}class be{constructor(e){this.props=e,this._raf=0;const{start:t,end:r,velocity:n,onUpdate:i,onComplete:o,onFinish:a=()=>{},dampingRatio:s,naturalFrequency:l}=e;this.onFinish=a;const c=new ve(n,s,l);let u=Date.now(),d=t-r;const p=()=>{this._raf&&(d=c.easeFrame(d,Date.now()-u),Math.abs(d)<1&&Math.abs(c.velocity)<50?(i(r),o&&o(),this.onFinish()):(u=Date.now(),i(d+r),this._raf=requestAnimationFrame(p)))};this._raf=requestAnimationFrame(p)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class we{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,t){const r=t?new be(e):new ye(e);return this.activeAnimations.push(r),r.onFinish=()=>this.stop(r),r}stop(e){e.destroy();const t=this.activeAnimations.indexOf(e);t>-1&&this.activeAnimations.splice(t,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>!e.props.isPan||(e.destroy(),!1))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>!e.props.isMainScroll||(e.destroy(),!1))}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}}class _e{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:t}=this.pswp;let{deltaX:r,deltaY:n}=e;if(t&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(t.isZoomable()){let r=-n;1===e.deltaMode?r*=.05:r*=e.deltaMode?1:.002,r=2**r;const i=t.currZoomLevel*r;t.zoomTo(i,{x:e.clientX,y:e.clientY})}}else t.isPannable()&&(1===e.deltaMode&&(r*=18,n*=18),t.panTo(t.pan.x-r,t.pan.y-n))}}class xe{constructor(e,t){var r;const n=t.name||t.className;let i=t.html;if(!1===e.options[n])return;"string"==typeof e.options[n+"SVG"]&&(i=e.options[n+"SVG"]),e.dispatch("uiElementCreate",{data:t});let o="";t.isButton?(o+="pswp__button ",o+=t.className||`pswp__button--${t.name}`):o+=t.className||`pswp__${t.name}`;let a=t.isButton?t.tagName||"button":t.tagName||"div";a=a.toLowerCase();const s=M(o,a);if(t.isButton){"button"===a&&(s.type="button");let{title:r}=t;const{ariaLabel:i}=t;"string"==typeof e.options[n+"Title"]&&(r=e.options[n+"Title"]),r&&(s.title=r);const o=i||r;o&&s.setAttribute("aria-label",o)}s.innerHTML=function(e){if("string"==typeof e)return e;if(!e||!e.isCustomSVG)return"";const t=e;let r='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return r=r.split("%d").join(t.size||32),t.outlineID&&(r+='<use class="pswp__icn-shadow" xlink:href="#'+t.outlineID+'"/>'),r+=t.inner,r+="</svg>",r}(i),t.onInit&&t.onInit(s,e),t.onClick&&(s.onclick=r=>{"string"==typeof t.onClick?e[t.onClick]():"function"==typeof t.onClick&&t.onClick(r,s,e)});const l=t.appendTo||"bar";let c=e.element;"bar"===l?(e.topBar||(e.topBar=M("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),c=e.topBar):(s.classList.add("pswp__hide-on-close"),"wrapper"===l&&(c=e.scrollWrap)),null===(r=c)||void 0===r||r.appendChild(e.applyFilters("uiElement",s,t))}}function Se(e,t,r){e.classList.add("pswp__button--arrow"),e.setAttribute("aria-controls","pswp__items"),t.on("change",()=>{t.options.loop||(e.disabled=r?!(t.currIndex<t.getNumItems()-1):!(t.currIndex>0))})}const Ee={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:Se},ke={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(e,t)=>{Se(e,t,!0)}},Ce={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},Ae={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Te={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(e,t)=>{let r,n=null;const i=t=>{r!==t&&(r=t,((t,r)=>{e.classList.toggle("pswp__preloader--"+t,r)})("active",t))},o=()=>{var e;if(null===(e=t.currSlide)||void 0===e||!e.content.isLoading())return i(!1),void(n&&(clearTimeout(n),n=null));n||(n=setTimeout(()=>{var e;i(!(null===(e=t.currSlide)||void 0===e||!e.content.isLoading())),n=null},t.options.preloaderDelay))};t.on("change",o),t.on("loadComplete",e=>{t.currSlide===e.slide&&o()}),t.ui&&(t.ui.updatePreloaderVisibility=o)}},Le={name:"counter",order:5,onInit:(e,t)=>{t.on("change",()=>{e.innerText=t.currIndex+1+t.options.indexIndicatorSep+t.getNumItems()})}};function De(e,t){e.classList.toggle("pswp--zoomed-in",t)}class Ne{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[Ce,Ee,ke,Ae,Te,Le],e.dispatch("uiRegister"),this.uiElementsData.sort((e,t)=>(e.order||0)-(t.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(e=>{this.registerElement(e)}),e.on("change",()=>{var t;null===(t=e.element)||void 0===t||t.classList.toggle("pswp--one-slide",1===e.getNumItems())}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new xe(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:t,options:r}=this.pswp;if(this.pswp.opener.isClosing||!e||!t)return;let{currZoomLevel:n}=t;if(this.pswp.opener.isOpen||(n=t.zoomLevels.initial),n===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=n;const i=t.zoomLevels.initial-t.zoomLevels.secondary;if(Math.abs(i)<.01||!t.isZoomable())return De(e,!1),void e.classList.remove("pswp--zoom-allowed");e.classList.add("pswp--zoom-allowed");De(e,(n===t.zoomLevels.initial?t.zoomLevels.secondary:t.zoomLevels.initial)<=n),("zoom"===r.imageClickAction||"zoom-or-close"===r.imageClickAction)&&e.classList.add("pswp--click-to-zoom")}}let Ie=class{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}},Pe=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,r=100){var n,i,o;this._filters[e]||(this._filters[e]=[]),null===(n=this._filters[e])||void 0===n||n.push({fn:t,priority:r}),null===(i=this._filters[e])||void 0===i||i.sort((e,t)=>e.priority-t.priority),null===(o=this.pswp)||void 0===o||o.addFilter(e,t,r)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(e=>e.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var r;return null===(r=this._filters[e])||void 0===r||r.forEach(e=>{t[0]=e.fn.apply(this,t)}),t[0]}on(e,t){var r,n;this._listeners[e]||(this._listeners[e]=[]),null===(r=this._listeners[e])||void 0===r||r.push(t),null===(n=this.pswp)||void 0===n||n.on(e,t)}off(e,t){var r;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(e=>t!==e)),null===(r=this.pswp)||void 0===r||r.off(e,t)}dispatch(e,t){var r;if(this.pswp)return this.pswp.dispatch(e,t);const n=new Ie(e,t);return null===(r=this._listeners[e])||void 0===r||r.forEach(e=>{e.call(this,n)}),n}},Oe=class{constructor(e,t){if(this.element=M("pswp__img pswp__img--placeholder",e?"img":"div",t),e){const t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(K(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=V(0,0,e/250)):K(this.element,e,t))}destroy(){var e;null!==(e=this.element)&&void 0!==e&&e.parentNode&&this.element.remove(),this.element=null}},qe=class{constructor(e,t,r){this.instance=t,this.data=e,this.index=r,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=G,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new Oe(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=M("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=M("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,r;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=null!==(t=this.data.src)&&void 0!==t?t:"",n.alt=null!==(r=this.data.alt)&&void 0!==r?r:"",this.state=W,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=Q,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===Q||this.state===Z)&&this.removePlaceholder())}onError(){this.state=Z,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===W,this)}isError(){return this.state===Z}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(K(this.element,e,t),this.isImageContent()&&!this.isError()))){const r=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,r?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==Z,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t;let r=M("pswp__error-msg","div");r.innerText=null!==(e=null===(t=this.instance.options)||void 0===t?void 0:t.errorMsg)&&void 0!==e?e:"",r=this.instance.applyFilters("contentErrorElement",r,this),this.element=M("pswp__content pswp__error-msg-container","div"),this.element.appendChild(r),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===Z)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||J())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!J()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===Q||this.state===Z)&&this.removePlaceholder()))}};function je(e,t,r){const n=t.createContentFromData(e,r);let i;const{options:o}=t;if(o){let a;i=new ie(o,e,-1),a=t.pswp?t.pswp.viewportSize:ee(o,t);const s=re(o,a,e,r);i.update(n.width,n.height,s)}return n.lazyLoad(),i&&n.setDisplayedSize(Math.ceil(n.width*i.initial),Math.ceil(n.height*i.initial)),n}class Me{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(e){const{pswp:t}=this;if(t.dispatch("lazyLoad").defaultPrevented)return;const{preload:r}=t.options,n=void 0===e||e>=0;let i;for(i=0;i<=r[1];i++)this.loadSlideByIndex(t.currIndex+(n?i:-i));for(i=1;i<=r[0];i++)this.loadSlideByIndex(t.currIndex+(n?-i:i))}loadSlideByIndex(e){const t=this.pswp.getLoopedIndex(e);let r=this.getContentByIndex(t);r||(r=function(e,t){const r=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:r}).defaultPrevented)return je(r,t,e)}(t,this.pswp),r&&this.addToCache(r))}getContentBySlide(e){let t=this.getContentByIndex(e.index);return t||(t=this.pswp.createContentFromData(e.data,e.index),this.addToCache(t)),t.setSlide(e),t}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const e=this._cachedItems.findIndex(e=>!e.isAttached&&!e.hasSlide);-1!==e&&this._cachedItems.splice(e,1)[0].destroy()}}removeByIndex(e){const t=this._cachedItems.findIndex(t=>t.index===e);-1!==t&&this._cachedItems.splice(t,1)}getContentByIndex(e){return this._cachedItems.find(t=>t.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}}let Re=class extends Pe{getNumItems(){var e;let t=0;const r=null===(e=this.options)||void 0===e?void 0:e.dataSource;r&&"length"in r?t=r.length:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),r.items&&(t=r.items.length));const n=this.dispatch("numItems",{dataSource:r,numItems:t});return this.applyFilters("numItems",n.numItems,r)}createContentFromData(e,t){return new qe(e,this,t)}getItemData(e){var t;const r=null===(t=this.options)||void 0===t?void 0:t.dataSource;let n={};Array.isArray(r)?n=r[e]:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),n=r.items[e]);let i=n;i instanceof Element&&(i=this._domElementToItemData(i));const o=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var t,r;return null!==(t=this.options)&&void 0!==t&&t.children||null!==(r=this.options)&&void 0!==r&&r.childSelector?function(e,t,r=document){let n=[];if(e instanceof Element)n=[e];else if(e instanceof NodeList||Array.isArray(e))n=Array.from(e);else{const i="string"==typeof e?e:t;i&&(n=Array.from(r.querySelectorAll(i)))}return n}(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},r="A"===e.tagName?e:e.querySelector("a");if(r){t.src=r.dataset.pswpSrc||r.href,r.dataset.pswpSrcset&&(t.srcset=r.dataset.pswpSrcset),t.width=r.dataset.pswpWidth?parseInt(r.dataset.pswpWidth,10):0,t.height=r.dataset.pswpHeight?parseInt(r.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,r.dataset.pswpType&&(t.type=r.dataset.pswpType);const i=e.querySelector("img");var n;if(i)t.msrc=i.currentSrc||i.src,t.alt=null!==(n=i.getAttribute("alt"))&&void 0!==n?n:"";(r.dataset.pswpCropped||r.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,r)}lazyLoadData(e,t){return je(e,this,t)}};const Fe=.003;class Be{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,t=this.pswp.currSlide,{options:r}=e;var n,i;("fade"===r.showHideAnimationType?(r.showHideOpacity=!0,this._thumbBounds=void 0):"none"===r.showHideAnimationType?(r.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=t?.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&t?.content.usePlaceholder()&&(!this.isClosing||!e.mainScroll.isShifted()),this._animateZoom)?this._animateRootOpacity=null!==(n=r.showHideOpacity)&&void 0!==n&&n:(this._animateRootOpacity=!0,this.isOpening&&t&&(t.zoomAndPanToInitial(),t.applyCurrentZoomPan()));if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>Fe,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(e.element&&(e.element.style.opacity=String(Fe)),e.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=null===(i=this.pswp.currSlide)||void 0===i?void 0:i.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")):this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(Fe)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(Fe)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(Fe)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&0!==e.mainScroll.x&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise(e=>{let t=!1,r=!0;var n;(n=this._placeholder,"decode"in n?n.decode().catch(()=>{}):n.complete?Promise.resolve(n):new Promise((e,t)=>{n.onload=()=>e(n),n.onerror=t})).finally(()=>{t=!0,r||e(!0)}),setTimeout(()=>{r=!1,t&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,t;null===(e=this.pswp.element)||void 0===e||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),null===(t=this.pswp.element)||void 0===t||t.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var t;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),null===(t=e.currSlide)||void 0===t||t.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:t}=this,{innerRect:r}=this._thumbBounds,{currSlide:n,viewportSize:i}=t;if(this._croppedZoom&&r&&this._cropContainer1&&this._cropContainer2){const t=-i.x+(this._thumbBounds.x-r.x)+r.w,n=-i.y+(this._thumbBounds.y-r.y)+r.h,o=i.x-r.w,a=i.y-r.h;e?(this._animateTo(this._cropContainer1,"transform",V(t,n)),this._animateTo(this._cropContainer2,"transform",V(o,a))):(U(this._cropContainer1,t,n),U(this._cropContainer2,o,a))}n&&(R(n.pan,r||this._thumbBounds),n.currZoomLevel=this._thumbBounds.w/n.width,e?this._animateTo(n.container,"transform",n.getCurrentTransform()):n.applyCurrentZoomPan())}_animateTo(e,t,r){if(!this._duration)return void(e.style[t]=r);const{animations:n}=this.pswp,i={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{n.activeAnimations.length||this._onAnimationComplete()},target:e};i[t]=r,n.startTransition(i)}}const ze={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class He extends Re{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new X,this.animations=new we,this.mainScroll=new pe(this),this.gestures=new de(this),this.opener=new Be(this),this.keyboard=new me(this),this.contentLoader=new Me(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new _e(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:e}=this.mainScroll;e[0]&&(e[0].el.style.display="block",this.setContent(e[0],this.currIndex-1)),e[2]&&(e[2].el.style.display="block",this.setContent(e[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const t=this.getNumItems();return this.options.loop&&(e>t-1&&(e-=t),e<0&&(e+=t)),H(e,0,t-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var t;null===(t=this.currSlide)||void 0===t||t.zoomTo(...e)}toggleZoom(){var e;null===(e=this.currSlide)||void 0===e||e.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),null===(e=this.element)||void 0===e||e.remove(),this.mainScroll.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((t,r)=>{var n,i;let o=(null!==(n=null===(i=this.currSlide)||void 0===i?void 0:i.index)&&void 0!==n?n:0)-1+r;var a;(this.canLoop()&&(o=this.getLoopedIndex(o)),o===e&&(this.setContent(t,e,!0),1===r))&&(this.currSlide=t.slide,null===(a=t.slide)||void 0===a||a.setIsActive(!0))}),this.dispatch("change")}setContent(e,t,r){if(this.canLoop()&&(t=this.getLoopedIndex(t)),e.slide){if(e.slide.index===t&&!r)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(t<0||t>=this.getNumItems()))return;const n=this.getItemData(t);e.slide=new oe(n,t,this),t===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const t=ee(this.options,this);!e&&z(t,this._prevViewportSize)||(R(this._prevViewportSize,t),this.dispatch("beforeResize"),R(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){var e;this.hasMouse||(this.hasMouse=!0,null===(e=this.element)||void 0===e||e.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,t){this.offset.x=e,this.offset.y=t,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=M("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=M("pswp__bg","div",this.element),this.scrollWrap=M("pswp__scroll-wrap","section",this.element),this.container=M("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new Ne(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(e,t,r){const n=r.dispatch("thumbBounds",{index:e,itemData:t,instance:r});if(n.thumbBounds)return n.thumbBounds;const{element:i}=t;let o,a;if(i&&!1!==r.options.thumbSelector){const e=r.options.thumbSelector||"img";a=i.matches(e)?i:i.querySelector(e)}return a=r.applyFilters("thumbEl",a,t,e),a&&(o=t.thumbCropped?function(e,t,r){const n=e.getBoundingClientRect(),i=n.width/t,o=n.height/r,a=i>o?i:o,s=(n.width-t*a)/2,l=(n.height-r*a)/2,c={x:n.left+s,y:n.top+l,w:t*a};return c.innerRect={w:n.width,h:n.height,x:s,y:l},c}(a,t.width||t.w||0,t.height||t.h||0):function(e){const t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width}}(a)),r.applyFilters("thumbBounds",o,t,e)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...ze,...e}}}function Ve(e,t,r){const n=document.createElement(t);return e&&(n.className=e),r&&r.appendChild(n),n}function Ue(e,t,r){e.style.width="number"==typeof t?`${t}px`:t,e.style.height="number"==typeof r?`${r}px`:r}const $e="idle",Ke="loading",Ge="loaded",We="error";function Qe(e,t,r=document){let n=[];if(e instanceof Element)n=[e];else if(e instanceof NodeList||Array.isArray(e))n=Array.from(e);else{const i="string"==typeof e?e:t;i&&(n=Array.from(r.querySelectorAll(i)))}return n}function Ze(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}class Je{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class Ye{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,r=100){var n,i,o;this._filters[e]||(this._filters[e]=[]),null===(n=this._filters[e])||void 0===n||n.push({fn:t,priority:r}),null===(i=this._filters[e])||void 0===i||i.sort((e,t)=>e.priority-t.priority),null===(o=this.pswp)||void 0===o||o.addFilter(e,t,r)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(e=>e.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var r;return null===(r=this._filters[e])||void 0===r||r.forEach(e=>{t[0]=e.fn.apply(this,t)}),t[0]}on(e,t){var r,n;this._listeners[e]||(this._listeners[e]=[]),null===(r=this._listeners[e])||void 0===r||r.push(t),null===(n=this.pswp)||void 0===n||n.on(e,t)}off(e,t){var r;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(e=>t!==e)),null===(r=this.pswp)||void 0===r||r.off(e,t)}dispatch(e,t){var r;if(this.pswp)return this.pswp.dispatch(e,t);const n=new Je(e,t);return null===(r=this._listeners[e])||void 0===r||r.forEach(e=>{e.call(this,n)}),n}}class Xe{constructor(e,t){if(this.element=Ve("pswp__img pswp__img--placeholder",e?"img":"div",t),e){const t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(Ue(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=function(e,t,r){let n=`translate3d(${e}px,0px,0)`;return void 0!==r&&(n+=` scale3d(${r},${r},1)`),n}(0,0,e/250)):Ue(this.element,e,t))}destroy(){var e;null!==(e=this.element)&&void 0!==e&&e.parentNode&&this.element.remove(),this.element=null}}class et{constructor(e,t,r){this.instance=t,this.data=e,this.index=r,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=$e,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new Xe(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=Ve("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=Ve("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,r;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=null!==(t=this.data.src)&&void 0!==t?t:"",n.alt=null!==(r=this.data.alt)&&void 0!==r?r:"",this.state=Ke,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=Ge,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===Ge||this.state===We)&&this.removePlaceholder())}onError(){this.state=We,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===Ke,this)}isError(){return this.state===We}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(Ue(this.element,e,t),this.isImageContent()&&!this.isError()))){const r=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,r?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==We,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t;let r=Ve("pswp__error-msg","div");r.innerText=null!==(e=null===(t=this.instance.options)||void 0===t?void 0:t.errorMsg)&&void 0!==e?e:"",r=this.instance.applyFilters("contentErrorElement",r,this),this.element=Ve("pswp__content pswp__error-msg-container","div"),this.element.appendChild(r),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===We)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Ze())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Ze()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===Ge||this.state===We)&&this.removePlaceholder()))}}function tt(e,t,r,n,i){let o=0;if(t.paddingFn)o=t.paddingFn(r,n,i)[e];else if(t.padding)o=t.padding[e];else{const r="padding"+e[0].toUpperCase()+e.slice(1);t[r]&&(o=t[r])}return Number(o)||0}class rt{constructor(e,t,r,n){this.pswp=n,this.options=e,this.itemData=t,this.index=r,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,r){const n={x:e,y:t};this.elementSize=n,this.panAreaSize=r;const i=r.x/n.x,o=r.y/n.y;this.fit=Math.min(1,i<o?i:o),this.fill=Math.min(1,i>o?i:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",r=this.options[t];if(r)return"function"==typeof r?r(this):"fill"===r?this.fill:"fit"===r?this.fit:Number(r)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function nt(e,t,r){const n=t.createContentFromData(e,r);let i;const{options:o}=t;if(o){let a;i=new rt(o,e,-1),a=t.pswp?t.pswp.viewportSize:function(e,t){if(e.getViewportSizeFn){const r=e.getViewportSizeFn(e,t);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(o,t);const s=function(e,t,r,n){return{x:t.x-tt("left",e,t,r,n)-tt("right",e,t,r,n),y:t.y-tt("top",e,t,r,n)-tt("bottom",e,t,r,n)}}(o,a,e,r);i.update(n.width,n.height,s)}return n.lazyLoad(),i&&n.setDisplayedSize(Math.ceil(n.width*i.initial),Math.ceil(n.height*i.initial)),n}class it extends Ye{getNumItems(){var e;let t=0;const r=null===(e=this.options)||void 0===e?void 0:e.dataSource;r&&"length"in r?t=r.length:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),r.items&&(t=r.items.length));const n=this.dispatch("numItems",{dataSource:r,numItems:t});return this.applyFilters("numItems",n.numItems,r)}createContentFromData(e,t){return new et(e,this,t)}getItemData(e){var t;const r=null===(t=this.options)||void 0===t?void 0:t.dataSource;let n={};Array.isArray(r)?n=r[e]:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),n=r.items[e]);let i=n;i instanceof Element&&(i=this._domElementToItemData(i));const o=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var t,r;return null!==(t=this.options)&&void 0!==t&&t.children||null!==(r=this.options)&&void 0!==r&&r.childSelector?Qe(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},r="A"===e.tagName?e:e.querySelector("a");if(r){t.src=r.dataset.pswpSrc||r.href,r.dataset.pswpSrcset&&(t.srcset=r.dataset.pswpSrcset),t.width=r.dataset.pswpWidth?parseInt(r.dataset.pswpWidth,10):0,t.height=r.dataset.pswpHeight?parseInt(r.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,r.dataset.pswpType&&(t.type=r.dataset.pswpType);const i=e.querySelector("img");var n;if(i)t.msrc=i.currentSrc||i.src,t.alt=null!==(n=i.getAttribute("alt"))&&void 0!==n?n:"";(r.dataset.pswpCropped||r.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,r)}lazyLoadData(e,t){return nt(e,this,t)}}class ot extends it{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){Qe(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if("button"in(t=e)&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||window.pswp)return;var t;let r={x:e.clientX,y:e.clientY};!r.x&&!r.y&&(r=null);let n=this.getClickedIndex(e);n=this.applyFilters("clickedIndex",n,e,this);const i={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,i,r))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);const t=e.target,r=Qe(this.options.children,this.options.childSelector,e.currentTarget).findIndex(e=>e===t||e.contains(t));return-1!==r?r:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,t,r){if(window.pswp||!this.options)return!1;if(!t&&this.options.gallery&&this.options.children){const e=Qe(this.options.gallery);e[0]&&(t={gallery:e[0]})}return this.options.index=e,this.options.initialPointerPos=r,this.shouldOpen=!0,this.preload(e,t),!0}preload(e,t){const{options:r}=this;t&&(r.dataSource=t);const n=[],i=typeof r.pswpModule;if("function"==typeof(o=r.pswpModule)&&o.prototype&&o.prototype.goTo)n.push(Promise.resolve(r.pswpModule));else{if("string"===i)throw new Error("pswpModule as string is no longer supported");if("function"!==i)throw new Error("pswpModule is not valid");n.push(r.pswpModule())}var o;"function"==typeof r.openPromise&&n.push(r.openPromise()),!1!==r.preloadFirstSlide&&e>=0&&(this._preloadedContent=function(e,t){const r=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:r}).defaultPrevented)return nt(r,t,e)}(e,this));const a=++this._uid;Promise.all(n).then(e=>{if(this.shouldOpen){const t=e[0];this._openPhotoswipe(t,a)}})}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const r="object"==typeof e?new e.default(this.options):new e(this.options);this.pswp=r,window.pswp=r,Object.keys(this._listeners).forEach(e=>{var t;null===(t=this._listeners[e])||void 0===t||t.forEach(t=>{r.on(e,t)})}),Object.keys(this._filters).forEach(e=>{var t;null===(t=this._filters[e])||void 0===t||t.forEach(t=>{r.addFilter(e,t.fn,t.priority)})}),this._preloadedContent&&(r.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),r.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),r.init()}destroy(){var e;null===(e=this.pswp)||void 0===e||e.destroy(),this.shouldOpen=!1,this._listeners={},Qe(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)})}}const at=e=>Math.min(100,Math.max(0,Math.round(e))),st=()=>{const e=document.querySelector(".js-limit-scroll-progress-bar"),t=document.querySelector(".c-progress__bar"),r=document.querySelector(".c-btn__close-progress");if(!t&&!r)return;const{documentElement:n}=document,i=n.scrollTop;if(t){let r=n.scrollHeight-n.clientHeight;if(!r)return;e&&(r=e.scrollHeight-n.clientHeight+(window.pageYOffset+e.getBoundingClientRect().top)),t.style.width=`${at(i/r*100)}%`}if(r){const e=document.querySelector(".js-content-header"),t=document.querySelector(".js-limit-scroll-close-article-btn");if(e&&t){const o=window.pageYOffset+e.getBoundingClientRect().bottom,a=window.pageYOffset+t.getBoundingClientRect().bottom-n.clientHeight-o;if(a>0){const e=at((i-o)/a*100);r.style.setProperty("--progress",`${e}`),r.parentElement?.classList.toggle("c-btn--close-progress-complete",e>=100)}}}},lt=()=>{const e=document.querySelector("#mbrs-comments-container"),t=document.querySelector(".c-scroll-to-top-comment");if(!e||!t)return;t.style.display="none",t.addEventListener("click",()=>{document.getElementById("graphcomment")?.scrollIntoView({behavior:"smooth"})});let r=!1;const n=()=>{const{top:r,bottom:n}=e.getBoundingClientRect(),i=r<-400,o=n<window.innerHeight/2;t.style.display=i&&!o?"flex":"none"},i=e=>{e.offsetHeight>500?r||(r=!0,window.addEventListener("scroll",n,{passive:!0}),n()):r&&(r=!1,window.removeEventListener("scroll",n),t.style.display="none")},o=e=>{i(e),(e=>{new ResizeObserver(()=>{i(e)}).observe(e)})(e)},a=e=>{try{if("complete"===e.contentDocument?.readyState)return void o(e)}catch{}e.addEventListener("load",()=>o(e),{once:!0})};if((()=>{const t=e.querySelector("iframe");return!!t&&(a(t),!0)})())return;const s=new MutationObserver(e=>{e.some(e=>Array.from(e.addedNodes).some(e=>{if(e instanceof HTMLIFrameElement)return a(e),!0;if(e instanceof HTMLElement){const t=e.querySelector("iframe");if(t)return a(t),!0}return!1}))&&s.disconnect()});s.observe(e,{childList:!0,subtree:!0})},ct="#page-content",ut="#text-tooltip",dt="c-text-tooltip--show",pt=["#page-content .c-content p","#page-content .c-content h2","#page-content .c-content h3","#page-content .c-content h4","#page-content .c-content h5","#page-content .c-content h6","#page-content .c-content li","#page-content .c-content span","#page-content header span","#page-content header h1","#page-content header h2"],ft=(e,t)=>e instanceof Element&&t.some(t=>e.matches(t)),ht=()=>{const e=document.querySelector(`${ut}`);e&&e.classList.remove(dt)},mt=({type:e})=>{const t=window.getSelection();if("selectionchange"===e)return void ht();if(!t?.rangeCount)return;const r=t.getRangeAt(0),n=t.toString().trim();if(n.length){const e=((e,t)=>{const r=e.startContainer.nodeType===Node.ELEMENT_NODE?e.startContainer:e.startContainer.parentElement,n=e.endContainer.nodeType===Node.ELEMENT_NODE?e.endContainer:e.endContainer.parentElement;return!!r&&ft(r,t)||!!n&&ft(n,t)})(r,pt),i=(e=>{if(!e.focusNode)return null;const t=e.anchorNode?.compareDocumentPosition(e.focusNode);return t?(4&t)>0:e.anchorOffset<e.focusOffset})(t)||!1;return void(e&&((e,t,r)=>{const n=document.querySelector(`${ct} ${ut}`),i=document.querySelector(`${ct}`),o=document.querySelectorAll(`${ct} ${ut} .tooltip-btn`);if(!n||!i)return void console.warn("Text tooltip : Tooltip or it's parent are not found in the DOM");Array.from(o).forEach(e=>{e.setAttribute("data-selected-text",r)});const a=e.getClientRects(),s=a[t?a.length-1:0];n.style.top=s.top-i.getBoundingClientRect().top-(n.offsetHeight+10)+"px",s.width<n.offsetWidth?n.style.left=s.left-i.getBoundingClientRect().left+s.width/2-n.offsetWidth/2+"px":n.style.left=t?s.left-i.getBoundingClientRect().left+s.width-n.offsetWidth+"px":s.left-i.getBoundingClientRect().left+"px",n.classList.add(dt)})(r,i,n))}ht()},gt=(e=document.querySelector(".c-search-form--button"))=>{e&&e.addEventListener("click",e=>{(e=>{const{target:t}=e;if(t instanceof Element){const r=t.closest(".c-search-form--button");r&&(e.preventDefault(),r.classList.remove("c-search-form--button"))}})(e)})},yt=e=>"ArrowLeft"===e.code||39===e.keyCode,vt=e=>"ArrowRight"===e.code||37===e.keyCode,bt=(e=document.querySelectorAll(".js-tabs"))=>{e.length>0&&e.forEach(e=>{const t=e.querySelectorAll('[role="tab"]');t.forEach(t=>{t.addEventListener("click",t=>{(({tabsContainerElement:e,event:t})=>{t.preventDefault();const r=t.target;if(!(r instanceof HTMLButtonElement))return;const n=e.querySelectorAll('[role="tab"]'),i=e.querySelectorAll('[role="tabpanel"]'),o=r.getAttribute("aria-controls"),a=Object.values(i).find(e=>e.id===o);n.forEach(e=>{e.setAttribute("aria-selected","false")}),i.forEach(e=>{e.setAttribute("aria-hidden","true")}),r.setAttribute("aria-selected","true"),a&&a.removeAttribute("aria-hidden")})({tabsContainerElement:e,event:t})})});const r=e.querySelector('[role="tablist"]');if(r&&t.length>0){let e=0;r.addEventListener("keydown",r=>{r instanceof KeyboardEvent&&(yt(r)||vt(r))&&(t[e].setAttribute("tabindex","-1"),yt(r)?(e+=1,e>=t.length&&(e=0)):vt(r)&&(e-=1,e<0&&(e=t.length-1)),t[e].setAttribute("tabindex","0"),t[e].focus())})}})},wt=e=>{const[t,r]=e.split("h").map(Number);return 60*t+r},_t=()=>{const e=new Date;return 60*e.getHours()+e.getMinutes()},xt=()=>{const e=document.querySelectorAll(".c-timeline__time");if(!e||e.length<2)return;const t=document.querySelector(".c-timeline__progress-bar"),{currentIntervalStartTime:r,currentIntervalEndTime:n,currentIntervalIndex:i}=(e=>{const t=_t();let r=null,n=null,i=-1;return Array.from(e).find((e,o,a)=>{if(o===a.length-1)return!1;const s=e.textContent,l=a[o+1].textContent;if(!s||!l)return!1;const c=wt(s),u=wt(l);return t>=c&&t<u&&(r=s,n=l,i=o,!0)}),{currentIntervalStartTime:r,currentIntervalEndTime:n,currentIntervalIndex:i}})(e);if(!r||!n)return;const o=((e,t)=>{const r=_t();return r<e||r>t?0:(r-e)/(t-e)})(wt(r),wt(n));if(t instanceof HTMLElement){if(t.classList.contains("c-timeline__progress-bar--is-desktop")&&e.length>=5){const e="172px / 2";switch(i){case 0:t.style.width=`calc(${e} + (((${e} + 25% - ${e} / 2) - ${e}) * ${o})`;break;case 1:t.style.width=`calc((${e} + 25% - ${e} / 2) + (((50%) - (${e} + 25% - ${e} / 2)) * ${o})`;break;case 2:t.style.width=`calc((50%) + (((75% - ${e} / 2) - (50%)) * ${o})`;break;case 3:t.style.width=`calc((75% - ${e} / 2) + (((100% - ${e}) - (75% - ${e} / 2)) * ${o}`;break;default:t.style.width="0%"}}if(t.classList.contains("c-timeline__progress-bar--is-mobile")){const e="45px / 2",a="20px";switch(i){case 0:case 1:case 2:case 3:t.style.width=`calc((${a} + ${e}) + (((60% + ${e}) - (${a} + ${e})) * ${o})`;break;default:t.style.width="0%"}if(1===i||2===i||3===i){const e=document.querySelectorAll(".c-timeline__time"),t=document.querySelectorAll(".c-timeline__event");e.length>0&&t.length>0&&(e[0].textContent=r,e[1].textContent=n,t[0].textContent=t[i].textContent,t[1].textContent=t[i+1].textContent)}}}},St="c-icon-item__container--is-highlighted",Et=()=>{const e=document.querySelector(".c-toolbar");if(e){const t=window.location.origin+window.location.pathname,r=Array.from(e.querySelectorAll(".c-icon-item__container"));(e=>{e.find(e=>e.classList.contains(St))?.classList.remove(St)})(r),r.find(e=>e.querySelector("a")?.getAttribute("href")===t)?.classList.add(St)}},kt=e=>{const t=e||document.querySelector(".c-map-towns");if(!t)return void new MutationObserver((e,t)=>{if(typeof document<"u"){const e=document.querySelector(".c-map-towns");e&&(t.disconnect(),kt(e))}}).observe(document.body,{childList:!0,subtree:!0});const r=()=>{const e=t.querySelectorAll(".js-city-marker");if(0===e.length)return!1;const r=(t=0)=>{let n=!0;e.forEach(e=>{if("false"===e.getAttribute("aria-hidden"))return;const t=e.querySelector(".js-city-anchor"),r=e.querySelector(".js-city-text"),i=e.querySelector(".js-city-bg");if(!(t instanceof SVGGraphicsElement&&r instanceof SVGTextElement&&i instanceof SVGRectElement))return;const o=t.getBBox();if(o.width>0){const{x:t,y:n,width:a,height:s}=o,l=e.getAttribute("data-scale"),c=l?` scale(${l})`:"";e.setAttribute("transform",`translate(${t+a/2}, ${n+s/2})${c}`);const u=r.getBBox(),d=8,p=4,f=8,h=u.width+d,m=u.height+p;i.setAttribute("width",`${h}`),i.setAttribute("height",`${m}`),i.setAttribute("x",""+-h/2),i.setAttribute("y",""+(-m-f));const g=-m/2-f;r.setAttribute("y",`${g}`),e.setAttribute("aria-hidden","false")}else n=!1}),!n&&t<12&&requestAnimationFrame(()=>r(t+1))};return requestAnimationFrame(()=>r()),!0};r()||new MutationObserver((e,t)=>{r()&&t.disconnect()}).observe(t,{childList:!0,subtree:!0})},Ct={10:[{id:"10387",name:"Troyes"},{id:"10323",name:"Romilly-sur-Seine"},{id:"10033",name:"Bar-sur-Aube"}],11:[{id:"11262",name:"Narbonne"},{id:"11069",name:"Carcassonne"},{id:"11076",name:"Castelnaudary"}],12:[{id:"12202",name:"Rodez"},{id:"12145",name:"Millau"},{id:"12300",name:"Villefranche-de-Rouergue"}],13:[{id:"13055",name:"Marseille"},{id:"13001",name:"Aix-en-Provence"},{id:"13004",name:"Arles"}],14:[{id:"14118",name:"Caen"},{id:"14366",name:"Lisieux"},{id:"14762",name:"Vire Normandie"}],15:[{id:"15014",name:"Aurillac"},{id:"15187",name:"Saint-Flour"},{id:"15120",name:"Mauriac"}],16:[{id:"16015",name:"Angoulême"},{id:"16102",name:"Cognac"},{id:"16028",name:"Barbezieux-Saint-Hilaire"}],17:[{id:"17300",name:"La Rochelle"},{id:"17415",name:"Saintes"},{id:"17299",name:"Rochefort"}],18:[{id:"18033",name:"Bourges"},{id:"18279",name:"Vierzon"},{id:"18197",name:"Saint-Amand-Montrond"}],19:[{id:"19031",name:"Brive-la-Gaillarde"},{id:"19272",name:"Tulle"},{id:"19275",name:"Ussel"}],21:[{id:"21231",name:"Dijon"},{id:"21054",name:"Beaune"},{id:"21038",name:"Auxonne"}],22:[{id:"22278",name:"Saint-Brieuc"},{id:"22113",name:"Lannion"},{id:"22093",name:"Lamballe-Armor"}],23:[{id:"23096",name:"Guéret"},{id:"23176",name:"La Souterraine"},{id:"23008",name:"Aubusson"}],24:[{id:"24322",name:"Périgueux"},{id:"24037",name:"Bergerac"},{id:"24520",name:"Sarlat-la-Canéda"}],25:[{id:"25056",name:"Besançon"},{id:"25388",name:"Montbéliard"},{id:"25462",name:"Pontarlier"}],26:[{id:"26362",name:"Valence"},{id:"26198",name:"Montélimar"},{id:"26235",name:"Pierrelatte"}],27:[{id:"27229",name:"Évreux"},{id:"27681",name:"Vernon"},{id:"27375",name:"Louviers"}],28:[{id:"28085",name:"Chartres"},{id:"28134",name:"Dreux"},{id:"28088",name:"Châteaudun"}],29:[{id:"29019",name:"Brest"},{id:"29232",name:"Quimper"},{id:"29039",name:"Concarneau"}],30:[{id:"30189",name:"Nîmes"},{id:"30007",name:"Alès"},{id:"30028",name:"Bagnols-sur-Cèze"}],31:[{id:"31555",name:"Toulouse"},{id:"31483",name:"Saint-Gaudens"},{id:"31033",name:"Auterive"}],32:[{id:"32013",name:"Auch"},{id:"32160",name:"L'Isle-Jourdain"},{id:"32107",name:"Condom"}],33:[{id:"33063",name:"Bordeaux"},{id:"33529",name:"La Teste-de-Buch"},{id:"33243",name:"Libourne"}],34:[{id:"34172",name:"Montpellier"},{id:"34032",name:"Béziers"},{id:"34301",name:"Sète"}],35:[{id:"35238",name:"Rennes"},{id:"35288",name:"Saint-Malo"},{id:"35115",name:"Fougères"}],36:[{id:"36044",name:"Châteauroux"},{id:"36088",name:"Issoudun"},{id:"36018",name:"Le Blanc"}],37:[{id:"37261",name:"Tours"},{id:"37003",name:"Amboise"},{id:"37072",name:"Chinon"}],38:[{id:"38185",name:"Grenoble"},{id:"38544",name:"Vienne"},{id:"38053",name:"Bourgoin-Jallieu"}],39:[{id:"39198",name:"Dole"},{id:"39300",name:"Lons-le-Saunier"},{id:"39478",name:"Saint-Claude"}],40:[{id:"40192",name:"Mont-de-Marsan"},{id:"40088",name:"Dax"},{id:"40046",name:"Biscarrosse"}],41:[{id:"41018",name:"Blois"},{id:"41194",name:"Romorantin-Lanthenay"},{id:"41269",name:"Vendôme"}],42:[{id:"42218",name:"Saint-Étienne"},{id:"42187",name:"Roanne"},{id:"42147",name:"Montbrison"}],43:[{id:"43157",name:"Le Puy-en-Velay"},{id:"43137",name:"Monistrol-sur-Loire"},{id:"43040",name:"Brioude"}],44:[{id:"44109",name:"Nantes"},{id:"44184",name:"Saint-Nazaire"},{id:"44131",name:"Pornic"}],45:[{id:"45234",name:"Orléans"},{id:"45208",name:"Montargis"},{id:"45155",name:"Gien"}],46:[{id:"46042",name:"Cahors"},{id:"46102",name:"Figeac"},{id:"46127",name:"Gourdon"}],47:[{id:"47001",name:"Agen"},{id:"47323",name:"Villeneuve-sur-Lot"},{id:"47157",name:"Marmande"}],48:[{id:"48095",name:"Mende"},{id:"48140",name:"Saint-Chély-d'Apcher"},{id:"48080",name:"Langogne"}],49:[{id:"49007",name:"Angers"},{id:"49099",name:"Cholet"},{id:"49328",name:"Saumur"}],50:[{id:"50129",name:"Cherbourg-en-Cotentin"},{id:"50502",name:"Saint-Lô"},{id:"50218",name:"Granville"}],51:[{id:"51454",name:"Reims"},{id:"51108",name:"Châlons-en-Champagne"},{id:"51230",name:"Épernay"}],52:[{id:"52448",name:"Saint-Dizier"},{id:"52121",name:"Chaumont"},{id:"52269",name:"Langres"}],53:[{id:"53130",name:"Laval"},{id:"53062",name:"Château-Gontier-sur-Mayenne"},{id:"53147",name:"Mayenne"}],54:[{id:"54395",name:"Nancy"},{id:"54329",name:"Lunéville"},{id:"54528",name:"Toul"}],55:[{id:"55545",name:"Verdun"},{id:"55029",name:"Bar-le-Duc"},{id:"55122",name:"Commercy"}],56:[{id:"56121",name:"Lorient"},{id:"56260",name:"Vannes"},{id:"56178",name:"Pontivy"}],57:[{id:"57463",name:"Metz"},{id:"57672",name:"Thionville"},{id:"57227",name:"Forbach"}],58:[{id:"58194",name:"Nevers"},{id:"58086",name:"Cosne-Cours-sur-Loire"},{id:"58095",name:"Decize"}],59:[{id:"59350",name:"Lille"},{id:"59183",name:"Dunkerque"},{id:"59606",name:"Valenciennes"}],60:[{id:"60057",name:"Beauvais"},{id:"60159",name:"Compiègne"},{id:"60175",name:"Creil"}],61:[{id:"61001",name:"Alençon"},{id:"61169",name:"Flers"},{id:"61006",name:"Argentan"}],62:[{id:"62193",name:"Calais"},{id:"62041",name:"Arras"},{id:"62160",name:"Boulogne-sur-Mer"}],63:[{id:"63113",name:"Clermont-Ferrand"},{id:"63178",name:"Issoire"},{id:"63430",name:"Thiers"}],64:[{id:"64445",name:"Pau"},{id:"64102",name:"Bayonne"},{id:"64260",name:"Hendaye"}],65:[{id:"65440",name:"Tarbes"},{id:"65258",name:"Lannemezan"},{id:"65025",name:"Argelès-Gazost"}],66:[{id:"66136",name:"Perpignan"},{id:"66049",name:"Céret"},{id:"66149",name:"Prades"}],67:[{id:"67482",name:"Strasbourg"},{id:"67180",name:"Haguenau"},{id:"67462",name:"Sélestat"}],68:[{id:"68224",name:"Mulhouse"},{id:"68066",name:"Colmar"},{id:"68297",name:"Saint-Louis"}],69:[{id:"69123",name:"Lyon"},{id:"69264",name:"Villefranche-sur-Saône"},{id:"69091",name:"Givors"}],70:[{id:"70550",name:"Vesoul"},{id:"70285",name:"Héricourt"},{id:"70310",name:"Lure"}],71:[{id:"71076",name:"Chalon-sur-Saône"},{id:"71270",name:"Mâcon"},{id:"71153",name:"Le Creusot"}],72:[{id:"72181",name:"Le Mans"},{id:"72154",name:"La Flèche"},{id:"72264",name:"Sablé-sur-Sarthe"}],73:[{id:"73065",name:"Chambéry"},{id:"73011",name:"Albertville"},{id:"73248",name:"Saint-Jean-de-Maurienne"}],74:[{id:"74010",name:"Annecy"},{id:"74281",name:"Thonon-les-Bains"},{id:"74012",name:"Annemasse"}],75:[{id:"75056",name:"Paris"}],76:[{id:"76351",name:"Le Havre"},{id:"76540",name:"Rouen"},{id:"76217",name:"Dieppe"}],77:[{id:"77284",name:"Meaux"},{id:"77108",name:"Chelles"},{id:"77288",name:"Melun"}],78:[{id:"78646",name:"Versailles"},{id:"78361",name:"Mantes-la-Jolie"},{id:"78172",name:"Conflans-Sainte-Honorine"}],79:[{id:"79191",name:"Niort"},{id:"79049",name:"Bressuire"},{id:"79329",name:"Thouars"}],80:[{id:"80021",name:"Amiens"},{id:"80001",name:"Abbeville"},{id:"80016",name:"Albert"}],81:[{id:"81004",name:"Albi"},{id:"81065",name:"Castres"},{id:"81105",name:"Graulhet"}],82:[{id:"82121",name:"Montauban"},{id:"82033",name:"Castelsarrasin"},{id:"82037",name:"Caussade"}],83:[{id:"83137",name:"Toulon"},{id:"83061",name:"Fréjus"},{id:"83050",name:"Draguignan"}],84:[{id:"84007",name:"Avignon"},{id:"84031",name:"Carpentras"},{id:"84087",name:"Orange"}],85:[{id:"85191",name:"La Roche-sur-Yon"},{id:"85194",name:"Les Sables-d'Olonne"},{id:"85047",name:"Challans"}],86:[{id:"86194",name:"Poitiers"},{id:"86066",name:"Châtellerault"},{id:"86070",name:"Chauvigny"}],87:[{id:"87085",name:"Limoges"},{id:"87154",name:"Saint-Junien"},{id:"87187",name:"Saint-Yrieix-la-Perche"}],88:[{id:"88160",name:"Épinal"},{id:"88413",name:"Saint-Dié-des-Vosges"},{id:"88196",name:"Gérardmer"}],89:[{id:"89024",name:"Auxerre"},{id:"89387",name:"Sens"},{id:"89206",name:"Joigny"}],90:[{id:"90010",name:"Belfort"},{id:"90081",name:"Réchésy"}],91:[{id:"91228",name:"Évry-Courcouronnes"},{id:"91223",name:"Étampes"},{id:"91692",name:"Les Ulis"}],92:[{id:"92012",name:"Boulogne-Billancourt"}],93:[{id:"93066",name:"Saint-Denis"}],94:[{id:"94081",name:"Vitry-sur-Seine"}],95:[{id:"95018",name:"Argenteuil"},{id:"95487",name:"Persan"},{id:"95351",name:"Louvres"}],971:[{id:"97101",name:"Les Abymes"},{id:"97128",name:"Sainte-Anne"},{id:"97118",name:"Petit-Bourg"}],972:[{id:"97209",name:"Fort-de-France"},{id:"97224",name:"Saint-Joseph"},{id:"97220",name:"Rivière-Pilote"}],973:[{id:"97311",name:"Saint-Laurent-du-Maroni"},{id:"97304",name:"Kourou"}],974:[{id:"97411",name:"Saint-Denis"},{id:"97416",name:"Saint-Pierre"},{id:"97409",name:"Saint-André"}],"03":[{id:"03185",name:"Montluçon"},{id:"03310",name:"Vichy"},{id:"03190",name:"Moulins"}],"04":[{id:"04112",name:"Manosque"},{id:"04070",name:"Digne-les-Bains"},{id:"04209",name:"Sisteron"}],"09":[{id:"09225",name:"Pamiers"},{id:"09261",name:"Saint-Girons"},{id:"09160",name:"Lavelanet"}],"01":[{id:"01053",name:"Bourg-en-Bresse"},{id:"01283",name:"Oyonnax"},{id:"01033",name:"Valserhône"}],"06":[{id:"06088",name:"Nice"},{id:"06029",name:"Cannes"},{id:"06083",name:"Menton"}],"2B":[{id:"2B033",name:"Bastia"},{id:"2B096",name:"Corte"},{id:"2B050",name:"Calvi"}],"2A":[{id:"2A004",name:"Ajaccio"},{id:"2A247",name:"Porto-Vecchio"},{id:"2A032",name:"Bastelicaccia"}],"02":[{id:"02691",name:"Saint-Quentin"},{id:"02722",name:"Soissons"},{id:"02408",name:"Laon"}],"07":[{id:"07010",name:"Annonay"},{id:"07019",name:"Aubenas"},{id:"07324",name:"Tournon-sur-Rhône"}],"05":[{id:"05061",name:"Gap"},{id:"05023",name:"Briançon"},{id:"05046",name:"Embrun"}],"08":[{id:"08105",name:"Charleville-Mézières"},{id:"08362",name:"Rethel"},{id:"08190",name:"Givet"}]},At=/<path\b([^>]*?)\/>/g,Tt=/\b([:\w-]+)="([^"]*)"/g;var Lt=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(Lt||{});const Dt=e=>{window.location.href=e},Nt=(e,t)=>{const r=document.createDocumentFragment();return e.forEach(e=>{const n=((e,t)=>{const r=e.id,n=e.url,i=e.name;if(!r||!n)return null;const o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d",e.path),o.setAttribute("class","c-map-towns__path c-map-towns__zoom-town"),o.setAttribute("data-url",n);const a=((e,t)=>t.get(e))(r,t);if(a&&a.forEach(e=>{o.classList.add(e)}),i){const e=document.createElementNS("http://www.w3.org/2000/svg","title");e.textContent=i,o.appendChild(e)}return o})(e,t);n&&r.appendChild(n)}),r};let It=!1;const Pt=()=>{if(It)return;if(!document.querySelector(".c-map-towns"))return void new MutationObserver((e,t)=>{typeof document<"u"&&document.querySelector(".c-map-towns")&&(t.disconnect(),Pt())}).observe(document.body,{childList:!0,subtree:!0});const e=window.layout===Lt.MOBILE,t=document.querySelector(".c-map-towns__map"),r=document.querySelector(".c-map-towns__droms"),n=document.querySelector(".c-map-towns__zooms"),i=e=>{const{target:t}=e;if(!(t instanceof Element))return;const r=t.closest(".js-city-marker");if(r){const e=r.getAttribute("data-url");return void(e&&Dt(e))}const n=t.closest(".c-map-towns__zoom-item")?.getAttribute("data-city-url");if(n)return void Dt(n);const i=t.closest(".c-map-towns__dept-trigger")?.getAttribute("data-url");i&&Dt(i)};if(e)return t?.addEventListener("click",i),r?.addEventListener("click",i),n?.addEventListener("click",i),void(It=!0);const o=document.getElementById("js-zoom-overlay"),a=document.getElementById("js-zoom-svg"),s=document.getElementById("js-zoom-group"),l=document.getElementById("js-zoom-close");if(!(o instanceof HTMLElement&&a instanceof SVGSVGElement&&s instanceof SVGGElement&&l instanceof HTMLElement))return void requestAnimationFrame(Pt);It=!0;const c=document.getElementById("js-zoom-label"),u=document.getElementById("js-zoom-title"),d=document.getElementById("js-town-sprite-data"),p=new Map,f=new Map;let h=null;const m=()=>{if(h)return h;const e=d instanceof HTMLScriptElement?JSON.parse(d.textContent||'""'):"";return t=(e=>{const t=[];for(const r of e.matchAll(At)){const e=r[1];if(!e)continue;const n=new Map;for(const t of e.matchAll(Tt)){const[,e,r]=t;e&&n.set(e,r||"")}const i=n.get("id"),o=n.get("d"),a=n.get("data-name"),s=n.get("data-url");!i||!o||!a||!s||t.push({id:i,path:o,name:a,url:s})}return t})(e),h=new Map(t.map(e=>[e.id,e])),h;var t},g=()=>{o.setAttribute("aria-hidden","true"),s.replaceChildren()},y=(e,t)=>{const r=Ct[e]||[];if(0===r.length)return;const n=document.createDocumentFragment();r.forEach(r=>{const i=((e,t)=>e.startsWith("97")?document.querySelector(`path[id="town-${t}-drom"]`)?.getAttribute("d")||null:m().get(`town-${t}`)?.path||null)(e,r.id);if(!i)return;const o=((e,t,r)=>{const n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttribute("class","js-city-marker c-map-towns__city-marker"),n.setAttribute("aria-hidden","true"),n.setAttribute("data-scale",r.toString());const i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("d",t),i.setAttribute("class","js-city-anchor c-map-towns__city-anchor");const o=document.createElementNS("http://www.w3.org/2000/svg","circle");o.setAttribute("class","c-map-towns__city-circle"),o.setAttribute("r","5"),o.setAttribute("fill","white"),o.setAttribute("stroke","black"),o.setAttribute("strokeWidth","1");const a=document.createElementNS("http://www.w3.org/2000/svg","rect");a.setAttribute("class","js-city-bg"),a.setAttribute("fill","white"),a.setAttribute("rx","4"),a.setAttribute("ry","4");const s=document.createElementNS("http://www.w3.org/2000/svg","text");return s.setAttribute("class","js-city-text c-map-towns__city-text"),s.textContent=e,n.appendChild(i),n.appendChild(o),n.appendChild(a),n.appendChild(s),n})(r.name,i,t);n.appendChild(o)}),s.appendChild(n),requestAnimationFrame(()=>{kt(s)})},v=e=>{const{target:t}=e;if(!(t instanceof Element))return;const r=t?.closest(".c-map-towns__dept-trigger");if(!r)return;const n=r.getAttribute("id")?.replace("out-","")||"",i=r.getAttribute("data-name"),l=((e,t,r)=>{const n=r.get(e);if(n)return n;const i=e.startsWith("97")?Array.from(document.querySelectorAll(`path[id^="town-${e}"][id$="-drom"]`)).map(e=>({id:e.getAttribute("id")||"",path:e.getAttribute("d")||"",name:e.getAttribute("data-name")||"",url:e.getAttribute("data-url")||""})):Array.from(t().values()).filter(t=>t.id.startsWith(`town-${e}`));return r.set(e,i),i})(n,m,p);var d;(d=f).size>0||document.querySelectorAll(".c-map-towns__map .c-map-towns__layer-towns path[data-town-id], .c-map-towns__map-drom .c-map-towns__layer-towns path[id]").forEach(e=>{const t=e.getAttribute("data-town-id")||e.getAttribute("id");t&&d.set(t,Array.from(e.classList).filter(e=>e.startsWith("c-map-towns__path--")))});const h=Nt(l,f);if(c&&u&&i&&(c.textContent=i,u.textContent=`Carte détaillée du département : ${i}`),!(r instanceof SVGGraphicsElement))return;const g=((e,t)=>{const r=t.getBBox(),n=r.width+10,i=r.height+10;e.setAttribute("viewBox",`${r.x-5} ${r.y-5} ${n} ${i}`);const o=e.clientWidth||800,a=e.clientHeight||600;return Math.max(n/o,i/a)})(a,r);o.setAttribute("aria-hidden","false"),((e,t)=>{e.replaceChildren(t)})(s,h),y(n,g)};t?.addEventListener("click",v),r?.addEventListener("click",v),s.addEventListener("click",e=>{const{target:t}=e;if(!(t instanceof Element))return;const r=t.closest(".c-map-towns__zoom-town")?.getAttribute("data-url");r&&Dt(r)}),l.addEventListener("click",()=>{g()}),o.addEventListener("click",e=>{e.target===o&&g()})},Ot=()=>{((e=document.querySelector(".js-expand-button"))=>{e&&document.querySelectorAll(".js-expand-button").forEach(e=>{(e=>{const t=e.parentNode?.querySelector(".js-expand-target");return!(!t||t.classList.contains("c-elections-result__members"))&&(t.textContent?.trim().length??0)<255})(e)?(e.style.display="none",e.parentNode?.querySelectorAll(".js-expand-target")?.forEach(e=>{e.setAttribute("aria-hidden","false")})):e.addEventListener("click",d)})})(),bt(),a(),(()=>{const e=document.querySelector(".js-info-banner__button");e instanceof HTMLButtonElement&&e.addEventListener("click",f)})(),((e=document.querySelector(".js-ellipsis-button"))=>{e&&document.querySelectorAll(".js-ellipsis-button").forEach(e=>{const t="true"===e.getAttribute("data-multiple");e.addEventListener("click",e=>u(e,t))})})(),(()=>{const e=document.querySelector(".c-progress"),t=document.querySelector(".c-btn__close-progress");(e||t)&&window.addEventListener("scroll",st)})(),(()=>{let e=null;e=new ot({gallery:"#photoswipe-gallery",children:"a",pswpModule:He,zoom:!1,imageClickAction:"next",tapAction:"next"}),e.on("uiRegister",()=>{e?.pswp?.ui?.registerElement({name:"custom-caption",appendTo:"root",onInit:t=>{e?.pswp?.on("change",()=>{const r=e?.pswp?.currSlide?.data.element;if(r){const e=r.querySelector(".caption-content");t.innerHTML=e?.innerHTML||""}})}})}),e.init()})(),document.querySelectorAll(".js-modal").forEach(e=>{if(!(e instanceof HTMLElement))return;const t=new T(e);if("dialog-menu"===e.id){const e=document.querySelectorAll("button[data-a11y-dialog-show='dialog-menu']"),r=document.querySelectorAll("button[data-a11y-dialog-hide='dialog-menu']");e.length>0&&r.length>0&&(t.on("show",()=>{e.forEach(e=>{e.classList.add("u-hidden")}),r.forEach(e=>{e.classList.remove("u-hidden")})}),t.on("hide",()=>{e.forEach(e=>{e.classList.remove("u-hidden")}),r.forEach(e=>{e.classList.add("u-hidden")})}))}t.on("show",()=>{document.body.classList.add("noscroll")}).on("hide",()=>{document.body.classList.remove("noscroll")})}),gt(),s("winterOlympicsGames","countdown-winter-olympics-games"),s("eurovision","countdown-eurovision"),s("worldFoot2026","countdown-world-foot-2026"),window?.getSelection?(document.addEventListener("mouseup",mt),document.addEventListener("selectionchange",mt),document.addEventListener("touchend",mt),document.addEventListener("touchcancel",mt)):console.warn("Selection API isn't supported"),(()=>{const e=document.querySelector(".js-content-header"),t=document.querySelector(".js-limit-scroll-close-article-btn"),r=document.querySelector(".js-close-article-btn"),n=document.querySelector(".c-header-mobile"),i=n instanceof HTMLElement?n.offsetHeight:0;if(e&&t&&r){const n=new IntersectionObserver(()=>{const n=r.classList,o=n.contains("u-hidden"),a=e.getBoundingClientRect().bottom-i,s=t.getBoundingClientRect().bottom-i;o&&a<=0&&s>=0&&n.remove("u-hidden"),!o&&(a>=0||s<=0)&&n.add("u-hidden")},{root:document,rootMargin:`-${i}px 0px 0px 0px`});n.observe(e),n.observe(t)}})(),(()=>{const e=document.querySelectorAll(".js-half-donut-result");for(const t of Array.from(e)){const e=t.querySelector(".c-half-donut"),r=t.querySelector(".c-legend");if(!e||!r)return;r.querySelectorAll("[data-color]").forEach(t=>{const n=t.getAttribute("data-color"),i=e.querySelector(`.c-half-donut__zone--${n}`);i?.addEventListener("mouseenter",()=>{t.classList.add("c-legend__item--is-hovered"),e.classList.add("c-half-donut--is-hovered"),r.classList.add("c-legend--is-hovered")}),i?.addEventListener("mouseleave",()=>{t.classList.remove("c-legend__item--is-hovered"),e.classList.remove("c-half-donut--is-hovered"),r.classList.remove("c-legend--is-hovered")}),t.addEventListener("mouseenter",()=>{i?.classList.add("c-half-donut__zone--is-hovered"),r.classList.add("c-legend--is-hovered"),e.classList.add("c-half-donut--is-hovered")}),t.addEventListener("mouseleave",()=>{i?.classList.remove("c-half-donut__zone--is-hovered"),r.classList.remove("c-legend--is-hovered"),e.classList.remove("c-half-donut--is-hovered")})})}})(),c(),o("localisation-input","https://www.20minutes.fr/elections/resultats/recherche","?searchValue=","text","text"),l(),kt(),Et(),(()=>{const e=document.querySelector("#js-election-selector");e&&e.addEventListener("change",e=>{window.location.replace(e.target.value)})})(),(()=>{const e=document.querySelector(".c-search-banner");if(!e)return;const t=document.getElementById("js-search-banner-expand-button");if(t instanceof HTMLButtonElement){if(t.hasAttribute("data-search-banner-listener-attached"))return;const r=e.querySelector("[data-search-banner-expanded-source]"),n=e.querySelector("[data-search-banner-collapse]");if(!r||!n)return;t.setAttribute("data-search-banner-listener-attached","true"),t.addEventListener("click",()=>{"true"===r.getAttribute("aria-expanded")?(r.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true")):(r.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false"))})}})(),p(),Pt(),(()=>{const e=document.querySelectorAll(".js-navigation-container");Array.from(e).forEach(e=>{const t=e.querySelector(".js-navigation-container__list");if(t){const r=new ResizeObserver(t=>{t.forEach(t=>{const{width:n}=t.contentRect;n>0&&(j(e),r.disconnect())})});r.observe(t)}})})(),(()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e))if(t){const e=t.querySelector(".js-navigation-container__list"),r=t.querySelector(".o-nav-button--next-button"),n=t.querySelector(".o-nav-button--previous-button");e&&r&&n&&window.addEventListener("resize",q.bind(!1,{navigationContainer:t,navigatedList:e,nextBtn:r,prevBtn:n}))}})(),(()=>{const e=document.querySelector(".js-game-alert");r&&e&&e.classList.remove("u-hidden")})(),n(),xt(),((e={})=>{const{buttonSelector:t=".c-scroll-to-top"}=e,r=document.querySelector(t),n=r?.querySelector("button");if(!r||!n)return;const i=r.dataset.triggerSelector||"[data-scroll-trigger]",o=parseInt(r.dataset.triggerOffset||"0",10);r.style.display="none";const a=()=>{const e=document.querySelector(i);let t=!1;if(e){const r=e.getBoundingClientRect().top;t=window.pageYOffset>=r-o}else t=window.pageYOffset>300;r.style.display=t?"block":"none"};window.addEventListener("scroll",a),n.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})}),a()})(),lt()},qt="forward-disable-audience-measure",jt="data-preferences-consent",Mt=(e,t)=>{let r=null;if(e.id&&(r=document.querySelector(`label[for="${e.id}"]`)),r||(r=e.closest("label")),!r){const t=e.nextElementSibling;if(t&&"LABEL"===t.tagName&&t instanceof HTMLElement)r=t;else{const t=e.previousElementSibling;t&&"LABEL"===t.tagName&&t instanceof HTMLElement&&(r=t)}}const n=r?.querySelector("span")||r;n&&(n.textContent=t?"Mon droit d'opposition est respecté et aucune donnée personnelle supplémentaire n'est collectée":"Mes données de navigation sont collectées à des fins d'analyse statistique")};function Rt(){if(this?.id)try{const e=document.getElementById(this.id);if(e){const t=e.getAttribute("value");if(t){const e=document.createElement("textarea");document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e)}}}catch(e){console.error("Oops, unable to copy",e)}}const Ft=(e,t)=>{const r=e.innerHTML.includes("candidats")?"candidats":"résultats";e.innerHTML=t?`Masquer tous les ${r}`:`Voir tous les ${r}`},Bt=e=>{const t=e.currentTarget;if(e.preventDefault(),t instanceof HTMLButtonElement){const e=t.parentNode?.querySelectorAll(".js-toggle-target");"true"===t.getAttribute("aria-expanded")?((e,t)=>{t?.forEach(e=>{e.setAttribute("aria-hidden","true")}),e.setAttribute("aria-expanded","false"),Ft(e,!1)})(t,e):((e,t)=>{e.setAttribute("aria-expanded","true"),Ft(e,!0),t?.forEach(e=>{e.setAttribute("aria-hidden","false")})})(t,e)}};let zt=!1;const Ht=()=>{if(zt)return;zt=!0;const e=document.getElementById("js-top-sentinel");if(!e)return;new IntersectionObserver(([e])=>{(e=>{const t=document.querySelector(".c-search-banner");if(!t)return;const r=t.querySelector("[data-search-banner-expanded-source]"),n=t.querySelector("[data-search-banner-collapse]");n&&r&&(e?(r.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false")):(r.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true")))})(e.isIntersecting)},{root:null,threshold:0}).observe(e)},Vt=e=>{var t;const r=e.querySelector(".c-search-banner");if(!(r instanceof HTMLElement))return;const n="c-search-banner--has-top-border";(t=r.dataset).initialHasTopBorder??(t.initialHasTopBorder=String(r.classList.contains(n))),r.classList.toggle(n,"true"===r.dataset.initialHasTopBorder&&!e.classList.contains("u-sticky--on-top-screen"))},Ut=(e,t,r)=>{"desktop"===r&&(t?(e.classList.remove("u-sticky"),e.classList.remove("u-sticky--under-header-mini")):(e.classList.add("u-sticky"),e.classList.add("u-sticky--under-header-mini"))),"mobile"===r&&(t?(e.classList.remove("u-sticky--under-header"),e.classList.add("u-sticky--on-top-screen")):(e.classList.remove("u-sticky--on-top-screen"),e.classList.add("u-sticky--under-header")),Vt(e))};var $t=()=>{(()=>{const e=document.getElementById("goto-distribution"),t=document.getElementById("goto-european-map"),r=document.getElementById("goto-map"),n=document.getElementById("goto-statistics"),i=document.getElementById("goto-results");e&&e.addEventListener("click",Rt),t&&t.addEventListener("click",Rt),r&&r.addEventListener("click",Rt),n&&n.addEventListener("click",Rt),i&&i.addEventListener("click",Rt)})(),((e=document.querySelector(".js-toggle-button"))=>{e&&document.querySelectorAll(".js-toggle-button").forEach(e=>{e.addEventListener("click",Bt)})})(),Ht(),(()=>{const e=document.getElementById("elections-form-container"),t=document.querySelector(".c-header-mini"),r=document.querySelector(".c-header-mobile"),n=document.querySelector('body[data-layout="mobile"]');e&&t&&new MutationObserver(t=>{const r=t[0],n=r.target;if(n instanceof HTMLElement&&"attributes"===r.type&&"class"===r.attributeName){const t=n.className.includes("c-header-mini--is-hidden");Ut(e,t,"desktop")}}).observe(t,{attributes:!0});n&&e&&r&&(e.classList.add("u-sticky"),e.classList.add("u-sticky--under-header"),Vt(e),new MutationObserver(t=>{const r=t[0],n=r.target;if(n instanceof HTMLElement&&"attributes"===r.type&&"class"===r.attributeName){const t=n.className.includes("c-header-mobile--is-hidden");Ut(e,t,"mobile")}}).observe(r,{attributes:!0}))})()};const Kt=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>window.__tcfapi("addEventListener",2,(e=>(t,r)=>{if(r&&("tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus)&&e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&e.getCurrentUserStatus().vendors["20minutes-bfbzKmzq"]?.enabled){const e=document.getElementById("feedback-button");if(!e)return;e.addEventListener("click",()=>{try{window.$screeb("survey.start","5d850959-8e04-425c-b6fe-df5c7dafd4f9",{distribution_id:"dc76b85e-e248-4ac1-a988-30250b4abb80"})}catch(e){console.error("Error while starting survey",e)}})}})(e)))};var Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qt,Zt,Jt={exports:{}},Yt={};var Xt=(Zt||(Zt=1,Jt.exports=function(){if(Qt)return Yt;Qt=1;var t=e,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var s,l={},c=null,u=null;for(s in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:r,type:e,key:c,ref:u,props:l,_owner:o.current}}return Yt.Fragment=n,Yt.jsx=s,Yt.jsxs=s,Yt}()),Jt.exports);function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tr,rr={exports:{}};var nr,ir=(tr||(tr=1,nr=rr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=n(e,r(i)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var i="";for(var o in r)e.call(r,o)&&r[o]&&(i=n(i,o));return i}function n(e,t){return t?e?e+" "+t:e+t:e}nr.exports?(t.default=t,nr.exports=t):window.classNames=t}()),rr.exports);const or=er(ir),ar=({adUnitCompletePath:e,variant:t,isFullscreenMobile:r=!1,hasNoBgColorMobile:n=!1,...i})=>{const o=e.split("/").pop(),a=e.substring(0,e.lastIndexOf("/")),s="string"==typeof o&&o.startsWith("ban_mtf"),l=Xt.jsx(Ur,{...s?{}:i,id:`dfp_${o}`,"data-dfp-name":o,"data-dfp-path":a,className:or("c-4b8m1ese3e",{"c-placeolder--article":"ARTICLE"===t},{"c-placeolder--ban":"BAN"===t||"ATF"===t},{"c-placeolder--ban-atf":"ATF"===t},{"c-placeolder--header-ad":"HEADER"===t},{"c-placeolder--inread":"INREAD"===t},{"c-placeolder--pave":"PAVE"===t},{"c-placeolder--com":"COM"===t},{"c-placeolder--mobile-fullscreen":r},{"c-placeolder--mobile-has-no-bg-color":n},i.className)});return s?Xt.jsx(Ur,{className:"c-placeolder--ban",children:l}):l},sr=({img:e,alt:t="",color:r,variant:n="default",streakBadge:i,className:o,...a})=>{const s=!!e,l=or("c-avatar",{[`c-avatar--${n}`]:"default"!==n,[`c-avatar--${r}`]:r,"c-avatar--has-border":s&&r,"c-avatar--with-placeholder":!s},o),c=e||"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%3E%3C/svg%3E";return void 0===i?Xt.jsx(Ur,{...a,as:"img",className:l,src:c,alt:t}):Xt.jsxs(Ur,{...a,className:"c-avatar-container",children:[Xt.jsx(Ur,{as:"img",className:l,src:c,alt:t}),Xt.jsxs($r,{className:"c-avatar-container__badge",alignItems:"center",gap:"xxs-3",bg:"grey-50",px:"xxs-2",children:[Xt.jsx(Ar,{name:"heat",size:10,color:"orange"}),Xt.jsx(ln,{as:"span",color:"ultramarine",size:"xxs",weight:"bold",children:i})]})]})};function lr(t){return e.forwardRef(t)}const cr=lr(({as:e="button",variant:t="primary",children:r,iconProps:n,counter:i,isCentered:o=!1,isSquare:a=!1,isLoading:s=!1,size:l,isCloseWithProgress:c,closeProgressColor:u,...d},p)=>{const f={...d?.style,...u&&{"--button-close-progress-color":`var(--color-theme-${u})`}};return Xt.jsxs($r,{...d,style:f,as:e,ref:p,alignItems:"center",justifyContent:"center",gap:"xxs",inline:"link"===t||"a"===e,radius:a?"0":void 0,className:or("c-btn",{[`c-btn--${t}`]:t,[`c-btn--${l}`]:l,"c-btn--is-centered":o,"c-btn--is-loading":s},d?.className),children:[n&&Xt.jsx(Ar,{...n}),r,(0===i||i)&&Xt.jsx($r,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",children:i}),c&&Xt.jsx("div",{className:"c-btn__close-progress"})]})});cr.displayName="Button";const ur=lr(({text:e,color:t="black",thickness:r="thin",...n},i)=>{const o=Xt.jsx(Kr,{bg:t,align:"center",className:or("c-divider__line",{[`c-divider__line--${r}`]:"thin"!==r})});return Xt.jsx($r,{...n,ref:i,className:or("c-divider",{"c-divider--has-text":!!e},n?.className),children:e?Xt.jsxs(Xt.Fragment,{children:[o,Xt.jsx(Kr,{px:"xxs-2",className:"c-divider__text",children:Xt.jsx(ln,{size:"xxs",color:t,textTransform:"uppercase",children:e})}),o]}):o})}),dr=({bg:e="ultramarine",...t})=>Xt.jsx(Ur,{...t,className:or("c-divider-section",t?.className),children:Xt.jsx(Ur,{as:"hr",className:or("c-divider-section__line"),bg:e})});lr(({color:e="black",thickness:t="thin",...r},n)=>Xt.jsx(Ur,{...r,ref:n,bg:e,className:or("c-divider-vertical",{[`c-divider-vertical--${t}`]:"thin"!==t},r?.className)}));const pr={primary:{ultramarine:{value:"#4742FF",key:"{color.primary.ultramarine}"},"ultramarine-light":{value:"#6B72FB",key:"{color.primary.ultramarine-light}"}},secondary:{orange:{value:"#FA9917",key:"{color.secondary.orange}"},yellow:{value:"#F2E500",key:"{color.secondary.yellow}"},green:{value:"#6A9F4F",key:"{color.secondary.green}"},purple:{value:"#AE6BA2",key:"{color.secondary.purple}"},red:{value:"#DC0E19",key:"{color.secondary.red}"},scarlet:{value:"#FF3F3F",key:"{color.secondary.scarlet}"},blue:{value:"#0000FF",key:"{color.secondary.blue}"},"blue-grey":{value:"#253548",key:"{color.secondary.blue-grey}"},"blue-dark":{value:"#16202B",key:"{color.secondary.blue-dark}"},pink:{value:"#EF2A82",key:"{color.secondary.pink}"},sponsoring:{value:"#FFF5F1",key:"{color.secondary.sponsoring}"},"blue-light":{value:"#D4ECFB",key:"{color.secondary.blue-light}"},"blue-ice":{value:"#F0F4F8",key:"{color.secondary.blue-ice}"}},greyscale:{black:{value:"#000",key:"{color.greyscale.black}"},white:{value:"#FFF",key:"{color.greyscale.white}"},"grey-50":{value:"#FFFFFE",key:"{color.greyscale.grey-50}"},"grey-100":{value:"#F7F7F7",key:"{color.greyscale.grey-100}"},"grey-200":{value:"#DDD",key:"{color.greyscale.grey-200}"},"grey-300":{value:"#898A8C",key:"{color.greyscale.grey-300}"},"grey-400":{value:"#6A6A6A",key:"{color.greyscale.grey-400}"},"grey-500":{value:"#484848",key:"{color.greyscale.grey-500}"},"grey-600":{value:"#2F3134",key:"{color.greyscale.grey-600}"},"grey-700":{value:"#181A1E",key:"{color.greyscale.grey-700}"},"grey-800":{value:"#101D25",key:"{color.greyscale.grey-800}"},"grey-900":{value:"#0F1115",key:"{color.greyscale.grey-900}"}},status:{warning:{value:"#FA9917",key:"{color.status.warning}"},error:{value:"#DC0E19",key:"{color.status.error}"},success:{value:"#6A9F4F",key:"{color.status.success}"}},theme:{conso:{value:"#ff8689",key:"{color.theme.conso}"},default:{value:"#4742ff",key:"{color.theme.default}"},entertainment:{value:"#9d61ff",key:"{color.theme.entertainment}"},hightech:{value:"#8f98a9",key:"{color.theme.hightech}"},media:{value:"#4742ff",key:"{color.theme.media}"},"partenaires-externes":{value:"#4742ff",key:"{color.theme.partenaires-externes}"},partner:{value:"#fd8000",key:"{color.theme.partner}"},planet:{value:"#00b482",key:"{color.theme.planet}"},production:{value:"#c5be00",key:"{color.theme.production}"},publicommunique:{value:"#c5be00",key:"{color.theme.publicommunique}"},publishing:{value:"#c5be00",key:"{color.theme.publishing}"},sport:{value:"#6398ab",key:"{color.theme.sport}"},tempo:{value:"#ecb200",key:"{color.theme.tempo}"},"vie-pro":{value:"#b49b56",key:"{color.theme.vie-pro}"},infolocale:{value:"#4742ff",key:"{color.theme.infolocale}"},gaming:{value:"#fa6ee5",key:"{color.theme.gaming}"},jeux:{value:"#4742ff",key:"{color.theme.jeux}"}}},fr={base:{value:"Arial",key:"{font-family.base}"},obviously:{value:"'Obviously', sans-serif",key:"{font-family.obviously}"},"source-serif-pro":{value:"'Source Serif Pro', serif",key:"{font-family.source-serif-pro}"}};Object.keys(fr).filter(e=>!["base"].includes(e));const hr={sad:"😢",interesting:"😍",laughing:"😂",shock:"😮",solidary:"🤝",angry:"😠",heart:"❤️",down:"👎",up:"👍"},mr=[{name:"Paris",id:"75056"},{name:"Marseille",id:"13055"},{name:"Lyon",id:"69123"},{name:"Toulouse",id:"31555"},{name:"Nice",id:"06088"},{name:"Nantes",id:"44109"},{name:"Montpellier",id:"34172"},{name:"Strasbourg",id:"67482"},{name:"Bordeaux",id:"33063"},{name:"Lille",id:"59350"},{name:"Rennes",id:"35238"},{name:"Reims",id:"51454"},{name:"Le Havre",id:"76351"},{name:"Grenoble",id:"38185"},{name:"Dijon",id:"21231"},{name:"Brest",id:"29019"}],gr={PARIS:{label:"Paris",viewBox:"249.8 112.2 10 10",ids:Array.from({length:20},(e,t)=>`75056AR${(t+1).toString().padStart(2,"0")}`)},MARSEILLE:{label:"Marseille",viewBox:"360.4 391.2 12 12",ids:Array.from({length:16},(e,t)=>`13055AR${(t+1).toString().padStart(2,"0")}`)},LYON:{label:"Lyon",viewBox:"338.9 269 6 6",ids:Array.from({length:9},(e,t)=>`69123AR0${t+1}`)}},yr={"01":"Ain","02":"Aisne","03":"Allier","04":"Alpes-de-Haute-Provence","05":"Hautes-Alpes","06":"Alpes-Maritimes","07":"Ardèche","08":"Ardennes","09":"Ariège",10:"Aube",11:"Aude",12:"Aveyron",13:"Bouches-du-Rhône",14:"Calvados",15:"Cantal",16:"Charente",17:"Charente-Maritime",18:"Cher",19:"Corrèze","2A":"Corse-du-Sud","2B":"Haute-Corse",21:"Côte-d'Or",22:"Côtes-d'Armor",23:"Creuse",24:"Dordogne",25:"Doubs",26:"Drôme",27:"Eure",28:"Eure-et-Loir",29:"Finistère",30:"Gard",31:"Haute-Garonne",32:"Gers",33:"Gironde",34:"Hérault",35:"Ille-et-Vilaine",36:"Indre",37:"Indre-et-Loire",38:"Isère",39:"Jura",40:"Landes",41:"Loir-et-Cher",42:"Loire",43:"Haute-Loire",44:"Loire-Atlantique",45:"Loiret",46:"Lot",47:"Lot-et-Garonne",48:"Lozère",49:"Maine-et-Loire",50:"Manche",51:"Marne",52:"Haute-Marne",53:"Mayenne",54:"Meurthe-et-Moselle",55:"Meuse",56:"Morbihan",57:"Moselle",58:"Nièvre",59:"Nord",60:"Oise",61:"Orne",62:"Pas-de-Calais",63:"Puy-de-Dôme",64:"Pyrénées-Atlantiques",65:"Hautes-Pyrénées",66:"Pyrénées-Orientales",67:"Bas-Rhin",68:"Haut-Rhin",69:"Rhône",70:"Haute-Saône",71:"Saône-et-Loire",72:"Sarthe",73:"Savoie",74:"Haute-Savoie",75:"Paris",76:"Seine-Maritime",77:"Seine-et-Marne",78:"Yvelines",79:"Deux-Sèvres",80:"Somme",81:"Tarn",82:"Tarn-et-Garonne",83:"Var",84:"Vaucluse",85:"Vendée",86:"Vienne",87:"Haute-Vienne",88:"Vosges",89:"Yonne",90:"Territoire de Belfort",91:"Essonne",92:"Hauts-de-Seine",93:"Seine-Saint-Denis",94:"Val-de-Marne",95:"Val-d'Oise",971:"Guadeloupe",972:"Martinique",973:"Guyane",974:"La Réunion",976:"Mayotte"},vr=["extreme-gauche","parti-revolutionnaire-communiste","lutte-ouvriere","npa","parti-des-travailleurs","association-nationale-communistes","france-insoumise","divers-extreme-gauche","gauche","parti-communiste-francais","parti-des-citoyens-europeens","nouvelle-donne","parti-socialiste","parti-radical-de-gauche","nouveau-front-populaire","union-gauche","divers-gauche","ecologie","europe-ecologie-les-verts","equinoxe","ecologie-positive","ecologie-au-centre","ecologistes","les-ecologistes","centristes","renaissance","ensemble","modem","horizons","udi","union-centre","divers-centre","droite","les-republicains","droite-souverainiste","union-droite","divers-droite","extreme-droite","rassemblement-national","reconquete","les-patriotes","rester-libre","les-nationalistes","les-republicains-union-extreme-droite","udr","union-extreme-droite","divers-extreme-droite","divers","changement-citoyen","decidons-nous-meme","parti-animaliste","parti-pirate","union-des-democrates-musulmans","ecologie-politique","federation-citoyenne","republique-souveraine","resistons","france-libre","la-ruche-citoyenne","defendre-les-enfants","democratie-representative","europe-democratie-esperanto","union-populaire-republicaine","regionalistes"],br={alignItems:["align-items"],alignContent:["align-content"],justifyContent:["justify-content"],gap:["gap"],gapX:["row-gap"],gapY:["col-gap"],inline:["inline"],direction:["direction"],wrap:["wrap"],flexGrow:["flex-grow"]},wr={align:["align-self"],basis:["flex-basis"],shrink:["flex-shrink"],grow:["flex-grow"]},_r={radius:["border-radius"]},xr={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},Sr={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],...xr},Er={...Sr,borderColor:["border-color"],bg:["background-color"],color:["color"],..._r},kr={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"],whiteSpace:["white-space"]},Cr=Object.keys(pr.theme);Object.keys(pr.primary),Object.keys(pr.secondary),Object.keys(pr.greyscale),Object.keys(pr.status),Object.keys(pr.theme);const Ar=lr(({name:e,size:t=28,isRounded:r=!1,border:n,rotation:i,svgTitle:o,color:a,...s},l)=>{const c=Array.isArray(t)?t?.[0]:t,u=Array.isArray(t)?t?.[1]:t,d=!o,p=(e=>"string"==typeof e&&vr.includes(e))(a);return Xt.jsx(Ur,{...s,ref:l,color:p?void 0:a,className:or("c-icon",{[`c-icon--has-border-${n}`]:n,"c-icon--is-rounded":r,[`c-icon--${i}`]:i,[`c-icon--${a}`]:p},s?.className),children:Xt.jsxs("svg",{width:c,height:u,role:"img","aria-label":o||void 0,"aria-hidden":d?"true":void 0,children:[o&&Xt.jsx("title",{children:o}),"circle"===e?Xt.jsx("circle",{}):Xt.jsx("use",{xlinkHref:`#${e}`})]})})}),Tr=({text:e,...t})=>Xt.jsx(ln,{as:"span",role:"tooltip",className:"c-icon-tooltip",size:"xxs",weight:"bold",color:"grey-600",bg:"grey-100",px:"xxs",py:"xxs-2",mt:"xxs-2",radius:"xxs-2",tabIndex:0,...t,children:e}),Lr=({src:e,format:t})=>e.replace(/%format/,t),Dr=({id:e="",src:t="",defaultFormat:r,formats:n,alt:i="",sizes:o,lazyLoad:a=!1,fetchPriority:s,isPortrait:l=!1,enableHD:c=!1,...u})=>{const d=a?"lazy":"eager",p={...u,id:e||void 0,alt:i,className:or("c-img",u?.className,{"c-img--is-portrait":l}),loading:d,fetchpriority:s};if(!r)return Xt.jsx(Ur,{as:"img",src:t,...p});const f=r.split("x"),h=f[0],m=f[1];let g,y=`data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='${h}'%20height='${m}'%3E%3C/svg%3E`;if(t&&(y=Lr({src:t,format:r}),g=(({src:e,formats:t})=>{if(void 0!==t&&t.length>0)return t.map(t=>`${e.replace(/%format/,t)} ${t.split("x")[0]}w`).join(", ")})({formats:n,src:t})??""),c){const e=2*Number(h),r=2*Number(m),n=Lr({src:t,format:`${e}x${r}`});g=g?`${g}, ${n} 2x`:`${n} 2x`}return p.width=h||void 0,p.height="0"!==m?m:void 0,p.sizes=o||void 0,Xt.jsx(Ur,{...p,as:"img",src:y,...g?{srcSet:g}:{}})},Nr=({size:e,...t})=>Xt.jsx(ln,{as:"span",size:e||"s",...t,children:"•"}),Ir=lr(({id:e,className:t,color:r,required:n,label:i,icon:o,positionIcon:a="right",isIconButton:s=!1,iconButtonProps:l,variant:c,msg:u,containerProps:d,isRounded:p,isTransparent:f,isLarge:h,children:m,hint:g,error:y,...v},b)=>{const w=o&&Xt.jsx(cr,{className:"c-input-container__icon",iconProps:{name:o,size:18},variant:"ghost",color:r||"black",...l}),_=o&&Xt.jsx(Ar,{className:"c-input-container__icon",name:o,size:18,color:r||"black"});return Xt.jsxs($r,{direction:"column",...d,className:or("c-input",d?.className),children:[i&&Xt.jsxs("label",{htmlFor:e,className:"c-input__label",children:[i,n&&Xt.jsxs(ln,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),g&&Xt.jsx(ln,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:g}),Xt.jsxs($r,{gap:o&&m?"xs":void 0,className:or("c-input-container",{[`c-input-container--${c}`]:c,"c-input-container--rounded":p,"c-input-container--transparent":f,"c-input-container--large":h,[`c-input-container--${a}`]:o||m}),children:[(o||m)&&Xt.jsxs($r,{gap:"s",children:[s?w:_,m]}),Xt.jsx("input",{id:e,className:or("c-input-container__input",t),required:n,ref:b,"aria-describedby":[g?`${e}-hint`:null,y?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...v})]}),u?.length&&Xt.jsx($r,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:u.map(({iconProps:e,textProps:t,value:r},n)=>Xt.jsxs($r,{alignItems:"center",gap:"xxs",children:[e&&Xt.jsx(Ar,{...e}),Xt.jsx(ln,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),y&&Xt.jsx(ln,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:y})]})}),Pr=({children:e,bg:t,color:r,hasDot:n=!1,isUppercase:i=!0,size:o,className:a,textProps:s,...l})=>{const c={...l.style,...t?.includes("#")&&{backgroundColor:t},...r?.includes("#")&&{color:r}};return Xt.jsxs(ln,{...l,...s,as:t?$r:"span",...t&&{inline:!0,alignItems:"center",radius:"xxs-2",p:"xxs-2"},style:c,...!t?.includes("#")&&{bg:t},...!r?.includes("#")&&{color:r},size:o||"xxs",weight:"bold",...i&&{textTransform:"uppercase"},className:or("c-label",{"c-label--no-background":!t},a),children:[n&&Xt.jsx(Ar,{name:"dot",size:4,mr:"xxs-2"}),e]})},Or=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const t=qr({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return t?[t]:[]}return Object.entries(e.propValue).reduce((t,[r,n])=>{const i=qr({className:e.className,defaultModifier:r,propValue:n});return i&&t.push(i),t},[])},qr=e=>{if(void 0!==e.propValue){if("boolean"!=typeof e.propValue){const t=(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase())("number"==typeof e.propValue?e.propValue.toString():e.propValue);return e.className?`${e.className}-${t}@${e.defaultModifier}`:`${t}@${e.defaultModifier}`}if(!e.className)throw new Error('It is necessary to define the argument "className" !');return`${e.className}@${e.defaultModifier}`}},jr=({basis:e,shrink:t,grow:r,...n})=>or(...Or({propValue:e,className:"basis"}),...Or({propValue:t,className:"shrink"}),...Or({propValue:r,className:"grow"}),Fr(n)),Mr=({inline:e=!1,direction:t,wrap:r,...n})=>or(...Or({propValue:e,className:e?"inline-flex":"flex"}),...Or({propValue:t,className:"direction"}),...Or({propValue:r}),Rr(n)),Rr=e=>or(...Or({propValue:e.alignItems,className:"items"}),...Or({propValue:e.alignContent,className:"content"}),...Or({propValue:e.justifyContent,className:"justify"}),...Or({propValue:e.gap,className:"gap"}),...Or({propValue:e.gapX,className:"gap-x"}),...Or({propValue:e.gapY,className:"gap-y"}),...Or({propValue:e.flexGrow,className:"grow"})),Fr=e=>or(...Or({propValue:e.align,className:"self"})),Br=e=>"object"==typeof e.props?Object.keys(e.props).reduce((t,r)=>(e.systemPropNames.includes(r)||(t[r]=e.props[r]),t),{}):{},zr=e=>or(Object.entries(e).filter(([e])=>Object.keys(Sr).includes(e)).reduce((e,[t,r])=>(e.push(...Or({className:t,propValue:r})),e),[])),Hr=e=>or(zr(e),(e=>or({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>or(Object.entries(e).filter(([e])=>Object.keys(_r).includes(e)).reduce((e,[t,r])=>(e.push(...Or({className:t,propValue:r})),e),[])))(e)),Vr=({textAlign:e,weight:t,textTransform:r,textDecoration:n,italic:i,fontFamily:o,whiteSpace:a})=>or(Or({className:"text",propValue:e}),Or({className:"font-weight",propValue:t}),{[`white-space-${a}`]:!!a,[`text-transform-${r}`]:!!r,[`text-decoration-${n}`]:!!n,"text-italic":!!i,[`font-${o}`]:!!o}),Ur=lr(({as:e="div",children:t,...r},n)=>Xt.jsx(e,{...Br({props:r,systemPropNames:Object.keys(Er)}),ref:n,className:or(Hr(r),r?.className),children:t}));Ur.displayName="Box";const $r=lr(({as:e="div",children:t,...r},n)=>Xt.jsx(Ur,{...Br({props:r,systemPropNames:Object.keys(br)}),as:e,ref:n,className:or(Mr(r),r?.className),children:t})),Kr=lr(({as:e="div",children:t,...r},n)=>Xt.jsx(Ur,{...Br({props:r,systemPropNames:Object.keys(wr)}),as:e,ref:n,className:or(jr(r),r?.className),children:t})),Gr=({colsNumber:t,gap:r,gapX:n,gapY:i,children:o,...a})=>e.createElement(Ur,{...Br({props:a,systemPropNames:Object.keys(br)}),className:or("grid",...Or({className:"grid-cols-number",propValue:t}),...Or({className:"grid-gap",propValue:r}),...Or({className:"grid-gap-row",propValue:n}),...Or({className:"grid-gap-col",propValue:i}),or(Rr(a),a?.className)),children:o}),Wr=lr(({as:e="a",children:t,color:r,size:n,variant:i,weight:o,whiteSpace:a,tabIsSelected:s,tabVariant:l,tabColor:c,defaultColor:u="ultramarine",isUnderlined:d,...p},f)=>{if(i&&r)throw new Error("You can't use color and variant props together");const h=l||c?or("c-tab",{[`c-tab--${l}`]:l,[`c-tab--${c}`]:c,"c-tab--selected":s,"c-tab--unselected":!s},Vr({weight:o,whiteSpace:a}),p?.className):or("c-link",{[`c-btn c-btn--${i}`]:i&&!r},Vr({weight:o,whiteSpace:a}),Or({className:"text",propValue:n}),{"c-link--is-underlined":d},p?.className);return Xt.jsx(Ur,{...p,as:e,ref:f,color:l||c||i?void 0:r||("inherit"===u?void 0:u),className:h,children:t})}),Qr=({isWhite:e})=>Xt.jsx("div",{className:or("c-pipe",{"c-pipe--is-white":e})}),Zr=({rating:e,ratingMax:t=5,iconProps:r,...n})=>{const i=e=>Xt.jsx(Ar,{name:"star",color:"ultramarine",...r},e),o=e=>Xt.jsx(Ar,{name:"star",color:"grey-200",...r},e),a=e=>Xt.jsx(Ar,{name:"halfstar",color:"grey-200",...r},e),s=[];for(let r=0;r<t;r+=1){const t=r+.5===e;r<e&&!t?s.push(i(r)):t?s.push(a(r)):s.push(o(r))}return Xt.jsx(Ur,{...n,children:s})},Jr=({title:e,link:t,image:r,isTargetBlank:n,isNofollow:i,isSponsored:o,isInArticle:a,...s})=>Xt.jsxs(Ur,{...s,className:or("c-read-also",{"c-read-also--in-article":a},s?.className),children:[Xt.jsxs("div",{children:[a?Xt.jsx(ln,{fontFamily:"base",color:"ultramarine",weight:"bold",textTransform:"uppercase",size:"xs",pb:"xxs-2",children:"Lire aussi"}):Xt.jsx(Pr,{color:"grey-400",textProps:{fontFamily:"base"},children:"Lire aussi"}),!a&&Xt.jsx(Qr,{}),Xt.jsx(Wr,{href:t,className:"c-read-also__link",target:n?"_blank":void 0,rel:(i?"isNofollow":o&&"isSponsored")||void 0,...a&&{color:"black"},children:e})]}),r&&Xt.jsx(Dr,{src:r,defaultFormat:"110x70",formats:["110x70"],sizes:"110px",alt:e,className:"c-read-also__visual"})]});lr(({variant:e,progressColor:t="ultramarine"},r)=>Xt.jsx(Ur,{ref:r,bg:"grey-100",className:or("c-progress",{[`c-progress--${e}`]:e}),children:Xt.jsx(Ur,{className:"c-progress__bar",bg:t,style:{width:"0%"}})}));const Yr=lr(({id:e,className:t,required:r,label:n,defaultValue:i,options:o,placeholder:a,containerProps:s,variant:l="default",icon:c,isLarge:u,hint:d,error:p,...f},h)=>Xt.jsxs($r,{...s,ref:h,direction:"column",className:or("c-select",s?.className),children:[n&&Xt.jsxs("label",{htmlFor:e,className:"c-select__label",children:[n,r&&Xt.jsxs(ln,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),d&&Xt.jsx(ln,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:d}),Xt.jsxs("div",{className:"c-select__container",children:[c&&Xt.jsx(Ar,{className:"c-select__icon",name:c,size:18}),Xt.jsx(Ar,{className:`c-select__caret c-select__caret--${l}`,name:"arrow",size:12}),Xt.jsxs("select",{id:e,className:or("c-select__select",`c-select__select--${l}`,{"c-select__select--has-icon":!!c},{"c-select__select--large":u},zr(f),t),required:r,defaultValue:i||o.filter(e=>e.isSelected)?.pop()?.value||"","aria-describedby":[d?`${e}-hint`:null,p?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...Br({props:f,systemPropNames:Object.keys(xr)}),children:[a&&Xt.jsx("option",{value:"",disabled:!0,hidden:!0,children:a}),o.map(e=>Xt.jsx("option",{value:e.value,children:e.title},e.value))]})]}),p&&Xt.jsx(ln,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:p})]}));var Xr=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(Xr||{}),en=(e=>(e.embed="embed",e.photo="photo",e.podcast="podcast",e.video="video",e))(en||{});const tn=lr(({layout:e,children:t,itemsGap:r,hasSpaceAroundButtons:n=!1,buttonsVariant:i,colorVariant:o,sliderVariant:a="default",auto:s=!1,delay:l=3e3,...c},u)=>Xt.jsxs(Ur,{...c,ref:u,className:or("c-slider js-navigation-container",c?.className),"data-slider-variant":a,"data-slider-auto":s,"data-slider-delay":l,children:[Xt.jsx(Ur,{className:"c-slider__viewport js-navigation-container__list",children:Xt.jsx($r,{className:"c-slider__list",alignItems:"center",gap:r,children:t})}),e===Xr.DESKTOP&&Xt.jsx(Ur,{className:"c-slider__buttons-container",children:Array.from(["previous","next"],e=>Xt.jsx(Ur,{pr:n&&"previous"===e&&("round-small-transparent-bg"===i?"m":"l")||void 0,pl:n&&"next"===e&&("round-small-transparent-bg"===i?"m":"l")||void 0,className:or(`c-slider__button-container c-slider__button-container--${e} o-nav-button o-nav-button--${e}-button`,{"c-slider__button-container--has-space-around":n},{[`c-slider__button-container--${a}`]:a}),children:Xt.jsx(cr,{variant:i||"round",color:o,..."videos"===a&&{p:"m"},iconProps:{name:"chevron",size:"videos"===a?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"}})},e))})]})),rn=({containerProps:e,labelPosition:t="before",label:r,icon:n,id:i,...o})=>{const a=o.checked??o.defaultChecked??!1,s=Xt.jsxs($r,{as:"label",alignItems:"center",htmlFor:i,children:["before"===t&&n&&Xt.jsx(Ar,{mr:"xs",...n}),r,"after"===t&&n&&Xt.jsx(Ar,{ml:"xs",...n})]});return Xt.jsxs($r,{gap:"xs",...e,className:"c-switch",children:["before"===t&&r&&s,Xt.jsx("input",{...o,role:"switch",type:"checkbox",id:i,"aria-checked":a,className:or("c-switch__input",o.className)}),"after"===t&&r&&s]})},nn=({variant:e="default",name:t,children:r,tabColor:n="default",isSelected:i=!1,index:o=-1,isNoWrap:a,color:s,...l})=>Xt.jsx("button",{type:"button",role:"tab",id:`tab-${t}`,className:or("c-tab",{[`c-tab--${e}`]:e,[`c-tab--${n}`]:n,[`color-${s}`]:s,"c-tab--no-wrap":a}),"aria-controls":`tabpanel-${t}`,"aria-selected":i,tabIndex:o,...l,children:r}),on=({name:e,children:t,className:r,isHidden:n=!0})=>Xt.jsx("div",{id:`tabpanel-${e}`,className:or(r,"c-tabpanel"),role:"tabpanel","aria-hidden":n,"aria-labelledby":`tab-${e}`,children:t}),an=lr(({as:e="a",id:t,variant:r="primary",size:n,children:i,...o},a)=>Xt.jsx(Ur,{...o,as:"span"===r?"span":e,href:"span"===r?void 0:o?.href,ref:a,className:or("c-tags",`c-tags--${r}`,{[`c-tags--${n}`]:n},o?.className),"data-id":t,px:o?.px,children:i}));lr(({id:e,required:t,label:r,variant:n,msg:i,rows:o=5,containerProps:a,hint:s,error:l,...c},u)=>Xt.jsxs($r,{direction:"column",ref:u,...a,className:or("c-textarea",a?.className),children:[r&&Xt.jsxs("label",{htmlFor:e,className:"c-textarea__label",children:[r,t&&Xt.jsxs(ln,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),s&&Xt.jsx(ln,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:s}),Xt.jsx($r,{className:"c-textarea-container",children:Xt.jsx("textarea",{rows:o,placeholder:"Votre message...",required:t,...c,id:e,name:e,className:or("c-textarea-container__input",{[`c-textarea-container__input--${n}`]:n,"c-textarea-container__input--hint":!!s,"c-textarea-container__input--error":!!l},c?.className),"aria-describedby":[s?`${e}-hint`:null,l?`${e}-error`:null].filter(Boolean).join(" ")||void 0})}),i?.length&&Xt.jsx($r,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:i.map(({iconProps:e,textProps:t,value:r},n)=>Xt.jsxs($r,{alignItems:"center",gap:"xxs",children:[e&&Xt.jsx(Ar,{...e}),Xt.jsx(ln,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),l&&Xt.jsx(ln,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:l})]}));const sn=lr(({as:e="h1",size:t,children:r,...n},i)=>Xt.jsx(cn,{...n,as:e,ref:i,className:or(Or({className:"heading",propValue:t}),n?.className),children:r})),ln=lr(({as:e="p",size:t,highlighted:r,children:n,...i},o)=>Xt.jsx(cn,{as:r?"span":e,bg:r?"sponsoring":i.bg,p:r?"xxs":i.p,color:r?"grey-800":i.color,...i,ref:o,className:or(Or({className:"text",propValue:t}),{"text-highlighted":r},i?.className),children:n})),cn=lr(({as:e="p",children:t,...r},n)=>t&&t.toString().length||r?.dangerouslySetInnerHTML?Xt.jsx(Ur,{...Br({props:r,systemPropNames:Object.keys(kr)}),as:e,ref:n,className:or(Vr(r),r?.className),children:t}):null),un=({cover:e,description:t,title:r,link:n,closeButton:i,...o})=>Xt.jsx($r,{...o,className:or("c-info-banner","c-info-banner--alert",o?.className),alignItems:"center",justifyContent:"center",gap:"s",color:"white",bg:"red",p:"s",children:Xt.jsxs($r,{className:"c-info-banner__container",gap:"s",alignItems:"start",children:[e&&Xt.jsx($r,{as:"a",className:"c-info-banner__visual",...n||{},children:Xt.jsx(Dr,{src:e,defaultFormat:"130x82",formats:["130x82"],sizes:"130px",alt:r,className:"c-info-banner__cover"})}),Xt.jsxs($r,{className:"c-info-banner__content",direction:"column",justifyContent:{xs:"between"},children:[Xt.jsx(ln,{className:"c-info-banner__title",color:"red",bg:"white",px:"xxs-2",mb:"xxs-2",size:"s",weight:"bold",children:r}),Xt.jsx(ln,{as:n?"a":void 0,size:"s",color:"white",...n||{},children:t}),i&&Xt.jsx(cr,{...i,variant:"ghost",className:"c-info-banner__close",children:Xt.jsx(Ar,{name:"close",size:12,color:"white"})})]})]})}),dn=({html:e,caption:t=""})=>Xt.jsxs("figure",{className:"c-media",children:[Xt.jsx("div",{className:"c-media__content c-media__content--video",dangerouslySetInnerHTML:{__html:e}}),t&&Xt.jsx(ln,{as:"figcaption",size:"xs",mt:"s",color:"grey-300",className:"c-media__caption",children:t})]}),pn=({html:e})=>Xt.jsx("div",{dangerouslySetInnerHTML:{__html:e}}),fn={defaultFormat:"1444x920",formats:["1444x920","722x460","640x408","320x204"],sizes:"(min-width: 722px) 722px, 100vw"},hn={defaultFormat:"1444x920",formats:["1444x920","722x460","640x408","320x204"],sizes:"100vw"},mn=({type:e=en.photo,src:t,caption:r,source:n,credits:i,layout:o=Xr.MOBILE,imgProps:a,imagesNumber:s,videoIs16by9:l=!1,isGallery:c=!1,...u})=>{let d=hn;return o===Xr.DESKTOP&&(d=fn),Xt.jsxs(Ur,{...u,as:"figure",className:"c-media",children:[e===en.photo&&Xt.jsxs("div",{className:"c-media__content",children:[Xt.jsx(Dr,{...a,src:t,defaultFormat:a?.defaultFormat||d.defaultFormat,formats:a?.formats||d.formats,sizes:a?.sizes||d.sizes,alt:r,fetchPriority:a?.fetchPriority||"auto",lazyLoad:a?.lazyLoad||!0}),c&&s&&s>=2&&Xt.jsx(cr,{variant:"half-opacity-dark-bg",iconProps:{name:"diaporama-outlined",size:21},isCentered:!0,counter:s,children:Xt.jsx(ln,{as:"span",size:"m",whiteSpace:"nowrap",children:"Lancer le diaporama"})})]}),[en.video,en.podcast,en.embed].includes(e)&&Xt.jsx("div",{className:or("c-media__content",{[`c-media__content--${e}`]:e,"c-media__content--video-is-16-by-9":e===en.video&&l}),dangerouslySetInnerHTML:{__html:t}}),r&&Xt.jsxs(ln,{className:or({"caption-content":c}),as:"figcaption",size:"xs",mt:"s",color:"grey-400",mx:{xs:"m",md:"0"},children:[r,i&&Xt.jsxs(ln,{as:"span",color:"grey-300",size:"xs",className:"text-italic",children:[" - ",i]}),n&&Xt.jsxs(ln,{as:"span",color:"grey-300",size:"xs",className:"text-italic",children:[" / ",n]})]})]})},gn=({avatars:e,maxAvatar:t=4,themeColor:r,...n})=>Xt.jsx($r,{...n,className:"c-avatar-group",children:e.slice(0,t).map(e=>Xt.jsx(sr,{img:e.path,alt:e.title,color:e.color??(e.path?void 0:r)},e.title))}),yn=lr(({as:e="article",children:t,className:r,clickable:n=!1,...i},o)=>Xt.jsx($r,{...i,as:e,ref:o,justifyContent:i?.justifyContent||"between",className:or("c-card-container",{"c-card-container--clickable":n},r),children:t})),vn=({text:e,avatarAlt:t,avatarUrl:r,secondaryText:n,bg:i,...o})=>{const a={as:"span",size:"xs",bg:i||void 0,p:i?"xxs":void 0,color:i?"grey-900":void 0},s=Xt.jsxs($r,{gap:"xxs",children:[Xt.jsx(sr,{variant:"xsmall",img:r,alt:t}),Xt.jsx(ln,{...a,mt:"xxs-2",children:e})]});return Xt.jsxs($r,{...o,justifyContent:"between",alignItems:"center",gap:"s",children:[r?s:Xt.jsx(ln,{...a,children:e}),n&&Xt.jsx(ln,{as:"span",size:"xxs-3",color:"grey-300",textTransform:"uppercase",children:n})]})},bn=({headline:e,liveTime:t,rightSubheader:r,location:n,...i})=>{const o=Xt.jsx(Pr,{color:e.color||"grey-400",isUppercase:e.isUppercase,size:"xs",...!n&&!t&&!r&&i,children:e.text}),a=t||r?Xt.jsxs($r,{...!n&&i,alignItems:"center",gap:"xxs-2",color:"grey-400",children:[t&&Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(ln,{as:"span",size:"xs",color:"red",weight:"bold",children:t}),Xt.jsx(Nr,{size:"xs",color:"red"})]}),o,r&&Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(Nr,{size:"xs",color:e.color||"grey-400"}),Xt.jsx(ln,{as:"time",size:"xs",color:r.color,children:r.text})]})]}):o;return n?Xt.jsxs($r,{...i,direction:"column",children:[a,Xt.jsxs($r,{color:"ultramarine",mt:"xxs-2",children:[Xt.jsx(Ar,{name:"local",size:13,mr:"xxs-2"}),Xt.jsx(ln,{size:"xxs",weight:"bold",textTransform:"uppercase",children:n})]})]}):a},wn=({iconProps:e,iconSize:t,iconColor:r,iconBackground:n,count:i,countColor:o,countBg:a,countSize:s,countStyle:l="rounded",label:c,ariaLabel:u,anchor:d,link:p,isClickable:f=!0,isHighlighted:h=!1,isInToolbar:m=!1,children:g,variant:y,...v})=>{const b=()=>{if(e?.size)return e.size;if(void 0!==t){if("string"==typeof t)switch(t){case"small":return 10;case"medium":return 15;default:return 20}return t}return y&&"secondary"===y?15:20},w=()=>{const c=Xt.jsx($r,{as:"span",className:or("c-icon-item__icon",{"c-icon-item__icon--in-toolbar":m,[`c-icon-item__icon--${t}`]:t}),alignItems:"center",justifyContent:"center",bg:void 0!==n?"none"===n?void 0:n:y&&"secondary"===y?"grey-100":void 0,color:r,children:Xt.jsx(Ar,{size:b(),...e})});return void 0!==i?Xt.jsxs($r,{className:"c-icon-item",alignItems:"center",children:[c,Xt.jsx(ln,{as:"span",size:"small"===s?"xxs-2":y&&"secondary"===y?"xxs":"xxs-2",color:o||(y&&"secondary"===y?"black":"white"),bg:a||(y&&"secondary"===y?void 0:"default"),ml:"inline"===l&&"none"!==n?"xxs-2":void 0,className:or("c-icon-item__count",{[`c-icon-item__count--${l}`]:l,[`c-icon-item__count--${s}`]:s}),children:0===i?"0":i})]}):c};return Xt.jsxs($r,{...v,inline:!0,direction:"column",alignItems:"center",className:or("c-icon-item__container",{"c-icon-item__container--is-clickable":f},{"c-icon-item__container--is-highlighted":h},{"c-icon-item__container--has-children":g},v?.className),"aria-label":u,children:[d||p?Xt.jsx("a",{href:d?`#${d}`:p,children:w()}):w(),Xt.jsx(ln,{size:"xxs-2",children:c}),g]})},_n=e=>{switch(e){case"small":return 20;case"medium":return 28;default:return 40}},xn=({cover:e,id:t,defaultFormat:r,formats:n,sizes:i,alt:o,caption:a,lazyLoad:s=!1,fetchPriority:l="auto",withShadow:c=!1,isFavorite:u,enableHD:d=!1,dataId:p="",hasFlag:f=!1,title:h,className:m,radius:g,...y})=>{const v=Xt.jsx(Dr,{...t?{id:t}:{},src:e,defaultFormat:r,formats:n,sizes:i,alt:o,lazyLoad:s,fetchPriority:l,radius:g,enableHD:d});return Xt.jsx(Ur,{...y,className:or("c-card-img",m),children:Xt.jsxs("div",{className:or("c-card-img__inner",{"c-card-img__inner--with-shadow":c||!!a||f,"c-card-img__inner--with-interaction":void 0!==u}),children:[a&&Xt.jsxs($r,{color:"white",alignItems:"center",gap:"small"===a.size?"xxs-2":"xxs",className:or("c-card-img__caption",{[`c-card-img__caption--${a.size||"big"}`]:!0}),children:[Xt.jsx(Ar,{name:a.iconName,size:_n(a.size||"big")}),Xt.jsx(ln,{size:"small"===a.size?"xxs-2":"xxs",weight:"bold",children:a.text})]}),h&&Xt.jsx(ln,{size:"xxl",weight:"bold",color:"white",className:"c-card-img__title",children:h}),void 0!==u&&Xt.jsx(wn,{className:"c-card-img__favorite",variant:"secondary",iconProps:{size:20,name:u?"star":"star-outlined"},color:"grey-500","data-event-name":"mbrs-game-save-favorite",...p?{"data-id":p}:{}}),v,f&&Xt.jsx("span",{className:or("c-card-img__flag",{"c-card-img__flag--has-radius":"0"!==g})})]})})},Sn=e=>{switch(e){case"alert":return{label:"alerte info",color:"red"};case"live":return{label:"live",color:"red"};case"info":return{label:"info en série",color:"ultramarine"};case"with-you":return{label:"avec vous",color:"entertainment"};case"magazine":return{label:"magazine",color:"publishing"};default:return{label:"exclusif",color:"ultramarine"}}},En=({cartridge:e,cartridgeIsCentered:t,maxRows:r,as:n,size:i,fontFamily:o,weight:a,children:s,...l})=>Xt.jsx(Ur,{pb:"xxs-3",...l,className:or("c-card-title",{"c-card-title--has-max-rows":r,[`c-card-title--has-${r}-rows`]:r},l?.className),children:Xt.jsxs(sn,{as:n||"h1",size:i||"m",fontFamily:o||"source-serif-pro",weight:a||"semi-bold",children:[e&&Xt.jsx(Pr,{bg:Sn(e).color,color:"white",hasDot:"live"===e||!1,mr:"xxs",textProps:{fontFamily:"base"},className:or("c-card-title__cartridge-heading",{"c-card-title__cartridge-heading--is-centered":t}),children:Sn(e).label}),s]})}),kn=({link:e,title:t,summaryProps:r,cardHeaderProps:n,cardTitleProps:i,cardImageProps:o,layout:a,signatureProps:s,socialBarProps:l,follows3ColumnsGrid:c=!1,mediaSrc:u,linkProps:d,...p})=>{const{cardFooterProps:f,...h}=p,m=["722x460","640x408","320x204"];return Xt.jsx(yn,{...h,className:or("c-card-extra-large",h.className),direction:"column",clickable:!0,children:a===Xr.DESKTOP?Xt.jsxs($r,{gap:c?"s":"xl",className:or({"o-lt-show":!c,"o-columns-by-3":c}),children:[o||u?Xt.jsx(Ur,{className:or({"o-lt-show__main":!c,"o-columns-by-3__first-2-columns":c}),children:o&&Xt.jsx(xn,{...o,formats:m,defaultFormat:"722x460",sizes:"(min-width: 1024px) 722px, (min-width: 480px) 640px, 320px",alt:t})||u&&Xt.jsx(mn,{type:en.video,src:u,videoIs16by9:!0})}):null,Xt.jsxs($r,{direction:"column",justifyContent:"between",pl:c?"s":"0",className:or({"o-lt-show__aside":!c,"o-columns-by-3__last-1-column":c}),children:[Xt.jsxs($r,{direction:"column",flexGrow:1,children:[n&&Xt.jsx(bn,{...n,rightSubheader:void 0,mb:"xxs-2"}),Xt.jsx(En,{as:"h2",size:"l",weight:"bold",cartridgeIsCentered:!0,...i,children:Xt.jsx("a",{href:e,children:t})}),r&&Xt.jsx(ln,{...r,size:"xl",fontFamily:"source-serif-pro",color:r.color||"grey-600",mt:"xs",children:r.children})]}),l&&Xt.jsx(mi,{...l,variant:"card",mt:"s",className:"c-card-element--is-clickable"})]})]}):Xt.jsxs(Xt.Fragment,{children:[Xt.jsxs("div",{children:[n&&Xt.jsx(bn,{...n,rightSubheader:void 0,mx:"m",mb:"xxs-2"}),Xt.jsx(En,{as:"h2",weight:"bold",...i,mx:"m",children:Xt.jsx("a",{href:e,children:t})}),o&&Xt.jsx(xn,{...o,formats:m,defaultFormat:"640x408",alt:t,mt:"xs",radius:"0"}),s&&Xt.jsx(di,{...s,mx:"m",mt:"xs",className:"c-card-element--is-clickable"}),r&&Xt.jsx(Ur,{as:"p",color:r.color||"grey-600",className:"c-card-extra-large__summary",mx:"m",mt:"xs",children:r.children})]}),l&&Xt.jsx(mi,{...l,variant:"card",mt:"s",mx:"m",className:"c-card-element--is-clickable"}),d&&!l&&Xt.jsx($r,{mt:"s",justifyContent:"center",children:Xt.jsx(Wr,{variant:"primary",...d})})]})})},Cn=({link:e,title:t,cardHeaderProps:r,cardTitleProps:n,cardImageProps:i,cardFooterProps:o,layout:a,socialBarProps:s,reverseCard:l,...c})=>{const{summaryProps:u,signatureProps:d,...p}=c;return Xt.jsxs(yn,{...p,p:c?.bg?"s":void 0,direction:"column",className:or("c-card-extra-small",c?.className),justifyContent:"start",clickable:!0,children:[r&&Xt.jsx(bn,{...r,mb:"xxs-2"}),Xt.jsxs($r,{justifyContent:l?"end":"between",gap:"xs",direction:l?"row-reverse":"row",children:[Xt.jsx(En,{as:"h4",fontFamily:"source-serif-pro",weight:"semi-bold",maxRows:5,size:"xxs-2",pb:void 0,cartridgeIsCentered:!0,...n,children:Xt.jsx("a",{href:e,children:t})}),i&&Xt.jsx(xn,{...i,...i.caption&&{caption:{size:"small",...i.caption}},defaultFormat:a===Xr.DESKTOP?"130x82":"260x164",formats:["260x164","130x82"],sizes:a===Xr.DESKTOP?"130px":"260px",alt:t,className:"c-card-extra-small__img"})]}),o&&Xt.jsx(vn,{...o,mt:"xs"}),s&&Xt.jsx(mi,{...s,variant:"card",mt:"xs",className:"c-card-element--is-clickable"})]})},An=({link:e,title:t,layout:r,summaryProps:n,cardHeaderProps:i,cardTitleProps:o,cardImageProps:a,socialBarProps:s,mediaSrc:l,...c})=>{const{cardFooterProps:u,signatureProps:d,...p}=c;return Xt.jsx(yn,{...p,className:"c-card-large",direction:"column",children:r===Xr.DESKTOP?Xt.jsxs("a",{href:e,children:[a&&Xt.jsx(xn,{...a,defaultFormat:"722x460",formats:["722x460","320x204"],alt:t}),Xt.jsxs(Ur,{className:or("c-card-large__summary",{"c-card-large__summary--has-flag":a?.hasFlag}),color:"white",children:[i&&Xt.jsx(Pr,{size:"xs",children:i.headline.text}),Xt.jsx(En,{size:"l",weight:"bold",cartridgeIsCentered:!0,...o,children:t}),n&&Xt.jsx(ln,{...n,as:"span",size:"l",fontFamily:"source-serif-pro",children:n.children})]})]}):Xt.jsxs(Xt.Fragment,{children:[Xt.jsxs("a",{href:e,children:[a&&Xt.jsx(xn,{...a,defaultFormat:"722x460",formats:["722x460","320x204"],alt:t,mb:"xs",radius:"0"})||l&&Xt.jsx(mn,{type:en.video,src:l,videoIs16by9:!0,mb:"xs"})||null,i&&Xt.jsx(Pr,{color:i.headline.color||"grey-400",size:"xs",mx:"m",mb:"xxs",children:i.headline.text}),Xt.jsx(En,{mx:"m",weight:"bold",...o,children:t}),l&&n&&Xt.jsx(ln,{...n,size:"m",mx:"m",fontFamily:"source-serif-pro",color:n.color||"grey-600",mt:"xs",children:n.children})]}),s&&Xt.jsx(mi,{...s,variant:"card",mx:"m",mt:"s",className:"c-card-element--is-clickable"})]})})},Tn=({link:e,title:t,cardHeaderProps:r,cardTitleProps:n,cardImageProps:i,socialBarProps:o,cardFooterProps:a,bg:s,radius:l,...c})=>{const{summaryProps:u,signatureProps:d,...p}=c;return Xt.jsxs(yn,{...p,direction:"column",bg:s,radius:s?l||"xxs":void 0,clickable:!0,children:[i&&Xt.jsx(xn,{...i,formats:["480x308","346x222"],defaultFormat:"480x308",alt:t,mb:"xs",className:s?"c-card-img--with-bg":void 0}),r&&Xt.jsx(bn,{...r,...s&&{color:"grey-500",px:"s"},mb:"xxs-2"}),Xt.jsx(En,{as:"h3",maxRows:3,fontFamily:"source-serif-pro",weight:"semi-bold",size:"xs",cartridgeIsCentered:!0,...s&&{color:"grey-900",px:"s"},...n,className:or("c-card-medium__title",n?.className),children:Xt.jsx("a",{href:e,children:t})}),a&&Xt.jsx(vn,{...a,mt:"l",p:s?"s":void 0,bg:a?.bg||s}),o&&Xt.jsx(mi,{mt:"xs",...o,variant:"card",className:"c-card-element--is-clickable"})]})},Ln=(e,t="fr-FR")=>Intl.NumberFormat(t).format(e),Dn=({link:e,title:t,cardHeaderProps:r,cardTitleProps:n,cardImageProps:i,cardNumber:o,layout:a,summaryProps:s,commentCount:l,variant:c,shareCount:u,viewCount:d,...p})=>{const{cardFooterProps:f,signatureProps:h,socialBarProps:m,...g}=p;return Xt.jsxs(yn,{...g,clickable:!0,className:or("c-card-most",{[`c-card-most--${c}`]:c}),justifyContent:"start",children:[Xt.jsx(ln,{as:"span",color:"ultramarine",weight:"semi-bold",className:or("c-card-most__card-number",{[`c-card-most__card-number--${o.size||"default"}-size`]:!0}),mr:"small"===c?"xs":"m",children:o.value}),Xt.jsxs(Ur,{className:"c-card-most__content",children:[r&&Xt.jsx(bn,{mb:"xxs-2",...r}),Xt.jsx(En,{as:"h3",size:{xs:"xxs-2",md:"small"===c?"xxs-3":"xs"},fontFamily:"source-serif-pro",weight:"semi-bold",cartridgeIsCentered:!0,...n,children:Xt.jsx("a",{href:e,children:t})}),s&&Xt.jsx(ln,{color:"grey-600",fontFamily:"source-serif-pro",size:"m",mt:"xs",...s,children:s.children}),i?.cover&&a===Xr.MOBILE&&Xt.jsx(xn,{...i,...i.caption&&{caption:{size:"medium",...i.caption}},defaultFormat:"297x204",enableHD:!0,alt:t,mt:"xs",className:"c-card-most__img"}),!!l&&Xt.jsxs($r,{gap:"xs",alignItems:"center",mt:"xs",children:[Xt.jsx(Ar,{size:22,name:"comment"}),Xt.jsx(ln,{size:"m",weight:"bold",children:Ln(l)})]}),!!u&&Xt.jsxs($r,{gap:"xs",alignItems:"center",mt:"xs",children:[Xt.jsx(Ar,{size:22,name:"share"}),Xt.jsx(ln,{size:"m",weight:"bold",children:Ln(u)})]}),!!d&&Xt.jsxs($r,{gap:"xs",alignItems:"center",mt:"xs",children:[Xt.jsx(Ar,{size:22,name:"view"}),Xt.jsx(ln,{size:"m",weight:"bold",children:Ln(d)})]})]}),i?.cover&&a===Xr.DESKTOP&&Xt.jsx(xn,{...i,...i.caption&&{caption:{size:"small",...i.caption}},className:"c-card-most__img",defaultFormat:"small"===c?"72x46":"150x95",enableHD:!0,alt:t,ml:"small"===c?"xs":"m"})]})},Nn=({title:e,summary:t,cardTitleProps:r,cardImageProps:n,link:i,layout:o,directedBy:a,castings:s,genres:l,releaseDate:c,seeMoreLink:u,reviewLink:d,rating:p,containerSpacing:f,...h})=>{const m=a||s||p?Xt.jsx($r,{alignContent:"end",mt:"l",children:Xt.jsxs($r,{gap:"xxs-2",direction:"column",flexGrow:1,bg:"grey-100",px:"s",py:"xs",children:[a&&Xt.jsxs("div",{children:[Xt.jsxs(ln,{as:"span",weight:"bold",children:["Réalisé par :"," "]}),Xt.jsx("span",{children:a})]}),(s??[]).length>0&&Xt.jsxs("div",{children:[Xt.jsxs(ln,{as:"span",weight:"bold",children:["Avec :"," "]}),Xt.jsx("span",{children:s?.join(", ")})]}),p&&Xt.jsxs($r,{alignItems:"center",gap:"xxs",children:[Xt.jsxs(ln,{as:"span",weight:"bold",children:["La note 20 Minutes :"," "]}),Xt.jsx(Zr,{rating:p,iconProps:{size:19}})]})]})}):null;return Xt.jsxs(yn,{...h,className:"c-card-movie",direction:"column",children:[Xt.jsxs($r,{direction:"row",gap:{xs:"m",md:"l"},...f,children:[Xt.jsxs("div",{className:"c-card-movie__side",children:[n&&Xt.jsx(xn,{...n,radius:"xs",alt:e,defaultFormat:"200x271",formats:["200x271","400x542"],sizes:"200px"}),o===Xr.DESKTOP&&Xt.jsxs($r,{direction:"column",gap:"xs",mt:"xs",children:[d&&Xt.jsx(Wr,{variant:"primary",...d}),Xt.jsx(Wr,{variant:"secondary",...u})]})]}),Xt.jsxs($r,{direction:"column",justifyContent:"between",className:"c-card-movie__content",children:[Xt.jsxs($r,{direction:"column",flexGrow:1,children:[Xt.jsx(En,{as:"h2",size:"s",fontFamily:"source-serif-pro",weight:"bold",...r,children:Xt.jsx("a",{href:i,children:e})}),Xt.jsxs(ln,{mt:"xxs-2",size:"s",children:[Xt.jsxs(ln,{as:"span",weight:"bold",children:["Sortie :"," "]}),Xt.jsx("span",{children:c}),l&&l.length>0&&Xt.jsxs(Xt.Fragment,{children:[" ",Xt.jsx(Nr,{size:"xs"})," ",Xt.jsxs(ln,{as:"span",weight:"bold",children:["Genre :"," "]}),Xt.jsx("span",{children:l.join(", ")})]})]}),o===Xr.DESKTOP&&t&&Xt.jsx(ln,{size:"m",mt:"xs",dangerouslySetInnerHTML:{__html:t}})]}),o===Xr.DESKTOP&&m]})]}),o===Xr.MOBILE&&t&&Xt.jsx(ln,{...f,size:"m",mt:"xs",dangerouslySetInnerHTML:{__html:t}}),o===Xr.MOBILE&&Xt.jsxs(Xt.Fragment,{children:[m,Xt.jsxs($r,{direction:"column",gap:"xs",mt:"l",mx:"auto",className:"c-card-movie__footer",children:[d&&Xt.jsx(Wr,{variant:"primary",...d}),Xt.jsx(Wr,{variant:"secondary",...u})]})]})]})},In=({link:e,title:t,summaryProps:r,cardHeaderProps:n,cardTitleProps:i,cardImageProps:o,linkProps:a,...s})=>Xt.jsxs(yn,{...s,direction:"row",clickable:!0,gap:"xl",className:or("o-lt-show",s.className),children:[Xt.jsx(Ur,{className:or("o-lt-show__main"),children:o&&Xt.jsx(xn,{...o,formats:["480x308","346x222"],defaultFormat:"480x308",sizes:"(min-width: 1024px) 480px, (min-width: 480px) 346px",alt:t})}),Xt.jsxs($r,{direction:"column",justifyContent:"between",className:or("o-lt-show__aside"),children:[Xt.jsxs($r,{direction:"column",children:[n&&Xt.jsx(bn,{...n,rightSubheader:void 0,mb:"xxs-2"}),Xt.jsx(En,{as:"h2",size:"m",pb:"xxs",weight:"bold",cartridgeIsCentered:!0,...i,children:Xt.jsx("a",{href:e,children:t})}),Xt.jsx(ln,{size:"xl",fontFamily:"source-serif-pro",color:r?.color||"grey-600",...r,children:r?.children})]}),Xt.jsx($r,{mt:"s",children:Xt.jsx(Wr,{variant:"primary",...a})})]})]}),Pn=({className:e,...t})=>Xt.jsx(Ur,{className:or("c-card-skeleton__block",e),bg:"grey-200",...t}),On=e=>Xt.jsxs(yn,{...e,direction:"column",gap:"xxs",children:[Xt.jsx(Pn,{className:"c-card-skeleton__block--image"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--meta"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--title"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--subtitle"})]}),qn=e=>Xt.jsx(yn,{...e,direction:"column",className:or("c-card-skeleton",e.className),children:Xt.jsxs($r,{gap:"xs",children:[Xt.jsxs($r,{direction:"column",gap:"xxs",flexGrow:1,children:[Xt.jsx(Pn,{className:"c-card-skeleton__block--meta"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--title"}),Xt.jsx(Pn,{className:"c-card-skeleton__block--subtitle"})]}),Xt.jsx(Pn,{className:"c-card-skeleton__block--image"})]})}),jn=({variant:e,className:t,...r})=>{const n=or("c-card-skeleton",{[`c-card-skeleton--${e}`]:e},t);return"medium"===e?Xt.jsx(On,{...r,className:n}):Xt.jsx(qn,{...r,className:n})},Mn=({link:e,title:t,cardHeaderProps:r,cardTitleProps:n,cardImageProps:i,summaryProps:o,layout:a,variant:s="default",...l})=>{const{cardFooterProps:c,signatureProps:u,socialBarProps:d,...p}=l,f=Xt.jsxs(Xt.Fragment,{children:[i&&Xt.jsx(xn,{sizes:"(min-width: 480px) 252px, 160px",defaultFormat:a===Xr.DESKTOP?"252x162":"160x102",formats:["252x162","160x102"],alt:t,mb:"title-on-image"===s?"0":"xxs",withShadow:"title-on-image"===s,...i,...i.caption&&{caption:{size:a===Xr.DESKTOP?"medium":"small",...i.caption}}}),r&&Xt.jsx(bn,{mb:"xxs-2",...r}),Xt.jsx(En,{as:"h4",className:or("c-card-small__title",{"c-card-small__title--is-on-image":"title-on-image"===s}),size:"xxs-2",fontFamily:"source-serif-pro",cartridgeIsCentered:!0,...n,children:"title-on-image"===s?t:Xt.jsx("a",{href:e,children:t})}),o&&Xt.jsx(ln,{...o,size:{xs:"s",md:"m"},mt:"xxs-3",className:"c-card-small__summary",children:o.children})]});return Xt.jsx(yn,{...p,direction:"column",clickable:!0,children:"title-on-image"===s?Xt.jsx("a",{href:e,children:f}):f})},Rn=({link:e,title:t,cardImageProps:r,...n})=>Xt.jsx(Ur,{...n,as:"a",href:e,className:or("c-card-container","c-card-container--with-opacity-hover","c-card-container--clickable"),children:r&&Xt.jsx(xn,{...r,defaultFormat:"196x234",formats:["196x234"],radius:"xxs",title:t,alt:t})}),Fn=({link:e,title:t,cardImageProps:r,layout:n,...i})=>Xt.jsx(Ur,{...i,as:"a",href:e,className:or("c-card-container","c-card-container--with-opacity-hover","c-card-container--clickable"),children:r&&Xt.jsx(xn,{sizes:"(min-width: 480px) 183px, 223px",...r,defaultFormat:n===Xr.DESKTOP?"183x215":"223x262",formats:["183x215","223x262"],alt:t})}),Bn=({title:e,summaryProps:t,cardTitleProps:r,link:n,linkProps:i,location:o,...a})=>Xt.jsxs(yn,{...a,direction:{xs:"column",md:"row"},gap:"l",alignItems:{xs:"baseline",md:"center"},children:[Xt.jsxs(Kr,{grow:1,children:[Xt.jsxs($r,{color:"ultramarine",children:[Xt.jsx(Ar,{name:"local",size:13,mr:"xxs-2",mb:"xxs-2"}),Xt.jsx(ln,{size:"xxs",weight:"bold",textTransform:"uppercase",children:o})]}),e&&Xt.jsx(En,{size:"xxs-2",fontFamily:"base",...r,children:e}),t&&Xt.jsx(ln,{...t,as:"span",color:"grey-400",size:"m",children:t.children})]}),Xt.jsx(Wr,{...i,variant:"primary",href:n,whiteSpace:"nowrap",children:i.children})]}),zn=({link:e,title:t,summaryProps:r,cardHeaderProps:n,cardTitleProps:i,cardImageProps:o,socialBarProps:a,layout:s,...l})=>{const{cardFooterProps:c,signatureProps:u,...d}=l;return Xt.jsxs(yn,{...d,direction:"column",className:"c-card-with-summary",clickable:!0,children:[Xt.jsxs($r,{mb:"xs",className:"c-card-with-summary__content",gap:"xs",children:[Xt.jsxs(Kr,{grow:1,children:[n&&Xt.jsx(bn,{...n,mb:"xxs-2"}),Xt.jsx(En,{size:{xs:"xxs-2",md:"xs"},fontFamily:"source-serif-pro",cartridgeIsCentered:!0,...i,children:Xt.jsx("a",{href:e,children:t})}),s===Xr.DESKTOP&&r&&Xt.jsx(ln,{...r,as:"span",size:"m",fontFamily:"source-serif-pro",children:r.children})]}),Xt.jsx("div",{children:o&&Xt.jsx(xn,{...o,...o.caption&&{caption:{size:"small",...o.caption}},className:"c-card-with-summary__image",defaultFormat:"150x90",alt:t,mb:"xs"})})]}),a&&Xt.jsx(mi,{...a,variant:"card",className:or("c-card-element--is-clickable","c-card-with-summary__social-bar")})]})},Hn=({articles:e,layout:t,label:r,description:n,labelLink:i,iconProps:o,headingProps:a,sliderProps:s,themeColor:l,titleUnderlined:c=!0,isSponsored:u,seeMoreLink:d,...p})=>{const f=e=>{switch(s?.sliderVariant){case"videos":return Xt.jsx(Fn,{...e});case"vertical-cards":return Xt.jsx(Rn,{...e});default:return Xt.jsx(Mn,{...e,layout:t,...e.cardHeaderProps&&{cardHeaderProps:{...u&&{color:"grey-500"},...e.cardHeaderProps}},cardTitleProps:{weight:"semi-bold",maxRows:5,...u&&{color:"grey-900"},...e.cardTitleProps},...e.cardImageProps&&{cardImageProps:{sizes:"(min-width: 1840px) 267px, (min-width: 1440px) calc(4.74vw + 181px), (min-width: 1120px) 235px, (min-width: 780px) 20.94vw, calc(50vw - 25px)",...e.cardImageProps}}})}},h=Xt.jsx(li,{label:r||"",mb:(o?"0":(!c||u)&&"m")||"xxl",labelLink:i,themeColor:l,isUnderlined:c,...u&&{color:"grey-900"},...a});return e.length>0?Xt.jsxs(Ur,{as:"section",...p,className:or("c-carousel",p?.className),bg:u?"sponsoring":void 0,py:u?"m":void 0,children:[r&&!o&&h,r&&o&&Xt.jsxs($r,{as:"header",direction:{xs:"column-reverse",md:"row"},justifyContent:"between",alignItems:{xs:"start",md:"end"},mx:{xs:"m",md:"0"},mb:{xs:"l",md:"0"},gap:{xs:"xs",md:"0"},children:[h,Xt.jsx(Ar,{...o})]}),u&&Xt.jsx(ln,{as:Ur,size:"xs",color:"grey-900",mb:"xs",children:"Articles sponsorisés"}),t===Xr.DESKTOP&&n&&Xt.jsx(ln,{size:"m",color:"grey-400",mb:"xl",...n,className:n.className,children:n.children}),Xt.jsx(tn,{...s,sliderVariant:s?.sliderVariant||"rubrics",itemsGap:"videos"===s?.sliderVariant?"l":"xs",layout:t,children:e.map(t=>Xt.jsx(Kr,{as:"article",grow:0,shrink:0,align:"start",className:or(`c-carousel__${s?.sliderVariant&&["videos","vertical-cards","sport","movies"].includes(s?.sliderVariant)?s?.sliderVariant:"article"}`,{[`c-carousel__${s?.sliderVariant&&["videos","vertical-cards","movies"].includes(s?.sliderVariant)?s?.sliderVariant:"article"}--in-long-list`]:"sport"!==s?.sliderVariant&&e.length>4,"c-carousel__sport--in-long-list":"sport"===s?.sliderVariant&&e.length>5}),children:f(t)},t.title))}),d&&Xt.jsx($r,{justifyContent:"center",mt:"xl",children:Xt.jsx(Wr,{variant:"secondary",...d})})]}):null},Vn=({citationText:e,citationAuthor:t,...r})=>Xt.jsxs(Ur,{...r,as:"blockquote",color:"ultramarine",className:"c-citation",children:[Xt.jsxs(ln,{fontFamily:"source-serif-pro",italic:!0,size:"l",weight:"regular",className:"c-citation__content",children:[Xt.jsx(ln,{as:"span",size:"xxl",weight:"bold",children:"« "}),e,Xt.jsx(ln,{as:"span",size:"xxl",weight:"bold",children:" »"})]}),t&&Xt.jsx(ln,{as:"footer",mt:{xs:"m",md:"xl"},size:"m",weight:"bold",className:"c-citation__footer",children:t})]}),Un=lr(({index:e,textTitleProps:t,headingTitleProps:r,titleIconProps:n,isOpen:i,contentWithBorder:o=!0,contentProps:a,iconProps:s,btnProps:l,children:c,isDropdown:u,...d},p)=>Xt.jsxs(Ur,{...d,className:or("c-collapse js-collapse",{"c-collapse--dropdown":u}),ref:p,children:[Xt.jsxs(Ur,{...l,as:"button",type:"button",id:`c-collapse__button-${e}`,pl:l?.pl||"l",py:l?.py||"xxs",className:or("c-collapse__button js-collapse__button",l?.className),"aria-controls":`c-collapse__content-${e}`,"aria-expanded":i||"false",children:[n?Xt.jsxs($r,{alignItems:"center",children:[Xt.jsx(Ar,{size:34,mr:"xs",...n}),t?.children]}):r?Xt.jsx(sn,{as:"h3",size:"xxs",color:"black",...r,children:r?.children}):Xt.jsx(ln,{size:"l",color:"black",...t,children:t?.children}),Xt.jsx(Ar,{name:"chevron",size:16,...s,className:or("c-collapse__icon",s?.className)})]}),Xt.jsx($r,{...a,direction:"column",p:a?.p||"xl",id:`c-collapse__content-${e}`,"aria-hidden":i?!i:"true","aria-labelledby":`c-collapse__button-${e}`,className:or("c-collapse__content",{"c-collapse__content--with-border":o}),role:"tabpanel",children:c})]})),$n=({layout:e,searchFormProps:t,title:r,titleHref:n,breadcrumbProps:i,selectProps:o,variant:a,isOpen:s=!0,hasTopBorder:l=!1})=>{const c=Xt.jsx(cr,{variant:"ghost",iconProps:{name:"chevron",color:"white",size:18},id:"js-search-banner-expand-button",className:"c-search-banner__expand-button"}),u=o&&Xt.jsx(Yr,{...o,defaultValue:o?.options.find(e=>e.isSelected)?.value,containerProps:{...o?.containerProps,px:{xs:"m",md:"0"}}}),d=Xt.jsx($r,{mt:{xs:"0",md:"xs"},gap:{xs:"xs",lg:"m"},className:or("c-search-banner__breadcrumb",{"c-search-banner__breadcrumb--mobile":e===Xr.MOBILE}),"data-search-banner-collapse":!0,...e===Xr.DESKTOP&&{"aria-hidden":s?!s:"true"},children:i?.map(({label:e,link:t},r)=>Xt.jsx(an,{variant:"tertiary",size:"small",py:"xxs-2",px:"l",ml:0===r?{xs:"m",md:"0"}:void 0,href:t,children:e},t))}),p=!u;return Xt.jsx(Ur,{bg:"ultramarine",py:{xs:"xxs",md:"0"},className:or("c-search-banner",{"c-search-banner--has-top-border":l}),children:e===Xr.DESKTOP?Xt.jsxs($r,{px:p?void 0:"m",gap:{xs:"m",lg:"l"},"aria-expanded":s||"false","data-search-banner-expanded-source":!0,className:or({"o-page-wrap":p,"c-search-banner__large-container":!p}),pt:p?"0":void 0,children:["municipales-2026"===a?Xt.jsx("div",{className:or("c-search-banner__name",{"c-search-banner__name--is-hidden-under-xl":u}),children:Xt.jsxs(ln,{as:n?"a":"span",weight:"bold",className:"u-relative",...n?{href:n}:{},children:["Élections municipales"," ",Xt.jsx(ln,{as:"span",weight:"regular",children:"2026"}),Xt.jsx("span",{className:"c-search-banner__flag"})]})}):Xt.jsx(Ar,{name:"ballot-box",size:55,className:"c-search-banner__default-icon"}),Xt.jsxs($r,{flexGrow:1,direction:"column",py:"m",children:[Xt.jsxs($r,{gap:{xs:"m",lg:"l"},justifyContent:"end",children:[Xt.jsx(Kr,{grow:1,children:Xt.jsx(Ur,{as:si,...t})}),!!o?.options.length&&u,!!i?.length&&c]}),!!i?.length&&d]}),"municipales-2026"===a&&u&&Xt.jsx("span",{className:"c-search-banner__flag c-search-banner__flag--at-the-bottom"})]}):Xt.jsxs($r,{justifyContent:"center",direction:"column","aria-expanded":s||"false","data-search-banner-expanded-source":!0,children:[r&&Xt.jsx(ln,{as:"span",px:"m",weight:"bold",color:"white",mb:"xxs",children:n?Xt.jsx("a",{href:n,children:r}):r}),Xt.jsxs($r,{gap:"s",px:{xs:"m",md:"0"},children:[Xt.jsx(Kr,{as:si,grow:1,...t}),!(!i?.length&&!o?.options.length)&&c]}),!(!i?.length&&!o?.options.length)&&Xt.jsxs($r,{direction:"column",gap:"xxs",mt:"xxs","aria-hidden":s?!s:"true","data-search-banner-collapse":!0,children:[!!i?.length&&d,!!o?.options.length&&u]}),"municipales-2026"===a&&Xt.jsx("span",{className:"c-search-banner__flag c-search-banner__flag--at-the-bottom"})]})})},Kn=({label:e,heading:t,source:r,subtitle:n,isExpandable:i=!1,contentProps:o,embedButton:a,...s})=>{const l=Xt.jsx(ln,{color:"grey-400",size:"xs",mt:a?void 0:"xxs",mx:a?void 0:{xs:"m",md:"0"},children:r});return Xt.jsxs(Ur,{as:"header",...s,className:or("c-nodeheader",{"c-nodeheader--is-expandable":i},s?.className),children:[Xt.jsx(Pr,{color:"grey-400",size:"xs",mx:{xs:"m",md:"0"},children:e}),Xt.jsx(sn,{...t,size:{xs:"xxs",md:"m"},fontFamily:"obviously",mx:{xs:"m",md:"0"},children:t.children}),r&&(a?Xt.jsxs($r,{alignItems:"center",mt:"xxs",mx:{xs:"m",md:"0"},children:[l,Xt.jsx(cr,{...a,inline:!0,variant:"ghost",iconProps:{name:"embed",size:20},color:"grey-200",ml:"xs"})]}):l),n&&Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(ln,{...o,as:"div",size:o?.size||{xs:"m",md:"l"},mx:{xs:"m",md:"0"},mt:"xs",className:"c-nodeheader__subtitle c-content c-content--resume js-expand-target","aria-hidden":i,children:n}),i&&Xt.jsxs(cr,{variant:"ghost",className:"c-nodeheader__btn js-expand-button","aria-expanded":"false",mt:"xs",mx:{xs:"m",md:"0"},children:[Xt.jsx(Ar,{isRounded:!0,name:"chevron",size:12,p:"xs",bg:"grey-100"}),Xt.jsx(ln,{as:"span",size:"xs",className:"js-expand-button__label",children:"Voir plus"})]})]})]})},Gn=({children:e,iconProps:t,isCentered:r,...n})=>Xt.jsx(sn,{className:or("c-header-title",{"c-header-title--has-icon":!!t,"c-header-title--has-icon-and-centered":!!t&&r}),fontFamily:"obviously",size:{xs:"l",md:"xxl"},...n,children:t?Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(Ar,{className:"c-header-title__icon",mr:"xxs",...t}),Xt.jsx(Ur,{className:"c-header-title__text-with-icon",children:e})]}):e});lr(({icon:e,title:t,content:r,...n},i)=>Xt.jsxs(Ur,{...n,ref:i,className:or("c-horoscope-topic-card",n?.className),children:[Xt.jsxs($r,{alignItems:"center",mb:"s",children:[Xt.jsx(Ar,{className:"c-horoscope-topic-card__icon",name:e,size:21}),Xt.jsx(sn,{as:"h3",size:"xs",children:t})]}),Xt.jsx(ln,{size:"m",children:r})]}));const Wn=({items:e,...t})=>{const r=e=>Xt.jsx(ln,{size:"xs",weight:"bold",mb:"xs",children:e});return Xt.jsx(Gr,{as:"ul",...t,colsNumber:{xs:1,md:3},className:"c-legend",children:e.map((e,t)=>Xt.jsxs($r,{as:"li","data-color":e.color,gap:"s",pr:{xs:void 0,md:t%3!=2?"m":void 0},pt:{xs:t>0?"m":void 0,md:t>2?"m":"0"},className:"c-legend__item",children:[Xt.jsx(Ar,{name:"dot",size:12,mt:"xxs-3",className:or("c-legend__dot",{[`c-legend__dot--${e.color}`]:e.color})}),e.subLegend?Xt.jsxs("div",{children:[r(e.name.toUpperCase()),Xt.jsx(ln,{color:"grey-400",weight:"bold",children:e.subLegend})]}):r(e.name.toUpperCase())]},e.name))})},Qn=({variant:e,isOver:t=!1,updatedAt:r,timeSlot:n,...i})=>"elections"===e&&t?null:Xt.jsxs($r,{...i,alignItems:"center",className:"c-live-indicator",children:[Xt.jsx(Pr,{bg:"red",color:"white",hasDot:"elections"!==e,mr:"s",size:{xs:"xxs",md:"xs"},children:("elections"===e?"estimations":"tv"===e&&"en direct")||"live"}),Xt.jsx(Ar,{name:"clock",size:15,color:"tv"===e&&(n?.color||"grey-500")||"live"===e&&t&&"grey-300"||"red",mr:"xxs",className:or("c-live-indicator__icon",{"c-live-indicator__text--over":t})}),Xt.jsx(ln,{size:"xs",color:n&&(n.color||"grey-500")||t&&"grey-300"||"red",className:or("c-live-indicator__text",{"c-live-indicator__text--over":t}),children:n?.children||t&&"Terminé"||`Mis à jour ${r}`})]}),Zn=({question:e,author:t,response:r,...n})=>Xt.jsxs(Ur,{...n,className:"c-live-talk",children:[Xt.jsxs(Ur,{bg:"grey-100",p:"s",mb:"xl",radius:"m",className:"c-live-talk__question",children:[Xt.jsx(ln,{color:"grey-600",mb:"s",fontFamily:"source-serif-pro",size:"l",dangerouslySetInnerHTML:{__html:e}}),Xt.jsx(ln,{color:"black",weight:"bold",size:"xs",children:t})]}),r&&Xt.jsx(ln,{color:"grey-600",fontFamily:"source-serif-pro",size:"l",children:r})]}),Jn=({status:e,header:t,title:r,img:n,...i})=>Xt.jsxs(Ur,{as:"header",...i,children:[Xt.jsxs($r,{gap:"xs",alignItems:"center",mb:"xs",children:[Xt.jsx(ln,{size:"xl",fontFamily:"source-serif-pro",weight:"semi-bold",children:t}),n&&Xt.jsx("img",{alt:n.name,src:n.src,width:"32",height:"32"})]}),Xt.jsx(sn,{as:"h2",color:{crucial:"red",important:"ultramarine",community:"entertainment",faq:"black",default:"black",bold:"black"}[e]||"black",size:"xs",fontFamily:"source-serif-pro",weight:"default"===e?"regular":"semi-bold",className:"break-word",children:r})]}),Yn=({electionName:e,electionYear:t,resultsPerDepartment:r,mapDepartmentsData:n,...i})=>{const o=r.reduce((e,t)=>{const{name:r,color:n}=t.politicalParty;return e.some(e=>e.name===r)||e.push({name:r,color:n}),e},[]);return Xt.jsxs(Ur,{...i,children:[Xt.jsxs("svg",{className:"c-map-departments",viewBox:"0 0 525 600",width:"525",children:[Xt.jsx("title",{children:"Carte des départements français avec DOM"}),Xt.jsx("desc",{children:"Carte des résultats département par département. Cliquez sur un département pour en voir le détail"}),Object.entries(n??{}).map(([n,i])=>{const o=r.find(e=>e.numDept===n);return Xt.jsx("g",{children:Xt.jsxs("a",{className:"c-map-departments__link",href:`/elections/resultats/${i.slug}/?scrutin=${e}&annee=${t}`,target:"_parent",children:[Xt.jsx("path",{className:or("c-map-departments__path",{[`c-map-departments__path--${o?.politicalParty.color}`]:o}),d:i.path,children:Xt.jsx("title",{children:i.title})}),i.path_s&&Xt.jsx("path",{className:or("c-map-departments__path",{[`c-map-departments__path--${o?.politicalParty.color}`]:o}),d:i.path_s,children:Xt.jsx("title",{children:i.title})})]})},n)})]}),o.length>0&&Xt.jsx(Wn,{items:o,mt:"xxl"})]})},Xn=({electionName:e,electionYear:t,resultsPerDistrict:r,mapDistrictsData:n,...i})=>{const o=["75","77","78","91","92","93","94","95"],a=Object.entries(n??{}).reduce((n,[i,a])=>{const s=Xt.jsx("g",{className:"c-map-districts__zoomable",type:"button",...a.text&&!a.text.transform&&a.text.label&&{"data-info":`${i} - ${a.text.label}`},children:Object.entries(a).map(([n,i])=>{const o=r.find(e=>e.numDistrict===n);return"text"===n&&i.transform?Xt.jsx("text",{transform:`matrix(${i.transform})`,className:"c-map-districts__text",children:i.label},n):Xt.jsx("a",{href:`/elections/resultats${i.url}/?scrutin=${e}&annee=${t}`,target:"_parent",children:Xt.jsxs("path",{id:n,className:or("c-map-districts__path",{[`c-map-districts__path--${o?.politicalParty.color}`]:o}),d:i.path,children:[Xt.jsx("title",{children:i.title}),Xt.jsx("desc",{children:i.desc})]})},n)})},i);return o.includes(i)?n.idf.push(s):n.others.push(s),n},{idf:[],others:[]}),s=r.reduce((e,t)=>{const{name:r,color:n}=t.politicalParty;return e.some(e=>e.name===r)||e.push({name:r,color:n}),e},[]);return Xt.jsxs(Ur,{...i,children:[Xt.jsxs("div",{className:"c-map-districts-container",children:[Xt.jsxs(ln,{weight:"bold",textAlign:"center",className:"c-map-districts-container__description",children:["Cliquez sur un département",Xt.jsx("br",{}),"puis une circonscription pour accéder aux résultats"]}),Xt.jsx(an,{variant:"span",color:"ultramarine",className:"c-map-districts-container__department u-hidden"}),Xt.jsx(cr,{iconProps:{name:"close",size:15},variant:"close",className:"c-map-districts-container__unzoom-button u-hidden"}),Xt.jsxs("svg",{className:"c-map-districts js-selected-area",viewBox:"0 0 1400 1400",width:"1400",children:[Xt.jsx("title",{children:"Carte des circonsciptions"}),Xt.jsx("g",{type:"button",className:"c-map-districts__zoomable c-map-districts__idf",children:a.idf}),a.others]})]}),s.length>0&&Xt.jsx(Wn,{items:s,mt:"xxl"})]})},ei=({electionName:e,electionYear:t,resultsPerCountry:r,mapEuCountriesData:n,mapNonEuCountriesData:i,...o})=>{const a=r.reduce((e,t)=>{const{name:r,color:n}=t.politicalParty;return e.some(e=>e.name===r)||e.push({name:r,color:n}),e},[]);return Xt.jsxs(Ur,{...o,children:[Xt.jsxs("svg",{className:"c-map-europe",width:"460",viewBox:"0 0 460 445",children:[Xt.jsx("title",{children:`Carte de l'Europe - Élections ${e}`}),Xt.jsx("desc",{children:`Carte des résultats aux élections ${e} ${t} par pays`}),Xt.jsx("g",{className:"c-map-europe__eu-countries",children:Object.entries(n??{}).map(([e,t])=>{const n=r.find(t=>t.key===e);return Xt.jsx("path",{d:t.path,className:or("c-map-europe__path",{[`c-map-europe__path--${n?.politicalParty.color}`]:n}),children:Xt.jsx("title",{children:t.title})},e)})}),Xt.jsx("g",{className:"c-map-europe__non-eu-countries",children:Object.entries(i??{}).map(([e,t])=>Xt.jsx("path",{d:t.path,className:"c-map-europe__path c-map-europe__path--non-eu-country",children:Xt.jsx("title",{children:t.title})},e))})]}),a.length>0&&Xt.jsx(Wn,{items:a,mt:"xxl"})]})},ti=/<path\b([^>]*?)\/>/g,ri=/\b([:\w-]+)="([^"]*)"/g,ni=e=>`/elections/resultats/${(e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/'/g,"-").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase())(e)}/`,ii=({layout:t,resultsPerTown:r,departmentsPaths:n,dromsConfig:i,townsSprite:o,className:a,...s})=>{if(!n)return Xt.jsx("output",{"aria-live":"polite",children:"Chargement de la carte…"});const l=t===Xr.MOBILE,c=new Map(r.map(e=>[e.id,e])),u=new Map,d=e.useMemo(()=>o?(e=>new Map(e.map(e=>[e.id,e])))((e=>{const t=[];for(const r of e.matchAll(ti)){const e=r[1];if(!e)continue;const n=new Map;for(const t of e.matchAll(ri)){const[,e,r]=t;e&&n.set(e,r||"")}const i=n.get("id"),o=n.get("d"),a=n.get("data-name"),s=n.get("data-url");!i||!o||!a||!s||t.push({id:i,path:o,name:a,url:s})}return t})(o)):new Map,[o]),p=e.useMemo(()=>new Map(mr.map(e=>{const t=d.get(`town-${e.id}`);return t?[e.name,t.url]:null}).filter(e=>null!==e)),[d]);r.forEach(e=>{const{name:t,color:r}=e.politicalParty;u.has(t)||u.set(t,{name:t,color:r})});const f=e=>{const t=p.get(e.label);return Xt.jsxs("div",{className:"c-map-towns__zoom-item",role:"group","aria-label":`Zoom sur les arrondissements de ${e.label}`,"data-city-url":l?t:void 0,children:[Xt.jsx(ln,{as:"div",size:"xs",weight:"bold",pb:"xxs",children:e.label}),Xt.jsxs("svg",{viewBox:e.viewBox,className:"c-map-towns__zoom-map",children:[Xt.jsxs("title",{children:["Arrondissements de ",e.label]}),Xt.jsx("g",{children:e.ids.map(e=>{const t=c.get(e),r=d.get(`town-${e}`);return r?Xt.jsx("g",{role:"button","aria-label":`Arrondissement ${e}`,onClick:()=>{l||(window.location.href=r.url)},children:Xt.jsx("path",{d:r.path,className:or("c-map-towns__path c-map-towns__path--borough",{[`c-map-towns__path--${t?.politicalParty.color}`]:t})})},`zoom-${e}`):null})})]})]})},h=Array.from(u.values());return Xt.jsxs(Ur,{...s,className:or("c-map-towns",a,{"c-map-towns--is-mobile":l}),children:[o&&Xt.jsx("script",{id:"js-town-sprite-data",className:"c-map-towns__sprite",type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}}),Xt.jsxs("svg",{viewBox:"0 0 525 488",className:"c-map-towns__map",role:"img","aria-label":"Carte des résultats électoraux par commune en France métropolitaine",children:[Xt.jsx("g",{className:"c-map-towns__layer-bg","aria-hidden":"true",children:Object.entries(n).map(([e,t])=>Xt.jsx("path",{d:t.path,className:"c-map-towns__dept-bg"},`bg-${e}`))}),Xt.jsx("g",{className:"c-map-towns__layer-towns",children:r.map(e=>{const t=d.get(`town-${e.id}`);return t?Xt.jsx("path",{d:t.path,"data-town-id":`town-${e.id}`,"data-url":t.url,"data-name":t.name,className:or("c-map-towns__path",{[`c-map-towns__path--${e?.politicalParty.color}`]:e})},e.id):null})}),Xt.jsx("g",{className:"c-map-towns__layer-departments","aria-hidden":"true",children:Object.entries(n).map(([e,t])=>{const r=yr[e];return Xt.jsx("path",{id:`out-${e}`,d:t.path,"data-name":r,"data-url":l?ni(r):void 0,className:"c-map-towns__dept-trigger",children:Xt.jsx("title",{children:r})},`out-${e}`)})}),Xt.jsx("g",{className:"c-map-towns__layer-markers",children:mr.map(e=>(()=>{const t=d.get(`town-${e.id}`);return t?Xt.jsxs("g",{className:"js-city-marker c-map-towns__city-marker","data-url":t.url,"data-name":e.name,"aria-hidden":"true",children:[Xt.jsx("path",{d:t.path,className:"js-city-anchor c-map-towns__city-anchor"}),Xt.jsx("circle",{r:"5",fill:"white",stroke:"black",strokeWidth:"1"}),Xt.jsx("rect",{className:"js-city-bg",fill:"white",rx:"4",ry:"4"}),Xt.jsx("text",{className:"js-city-text c-map-towns__city-text",fill:"black",children:e.name})]},e.name):null})())})]}),Xt.jsxs($r,{className:"c-map-towns__zooms",direction:{xs:"row",md:"column"},gap:{md:"l"},justifyContent:{xs:"between",md:"start"},children:[f(gr.PARIS),f(gr.MARSEILLE),f(gr.LYON)]}),i&&Xt.jsxs("div",{className:"c-map-towns__droms",children:[Xt.jsx(ln,{as:"div",size:"xs",weight:"bold",pb:"xxs",children:"Outre-mer"}),Xt.jsx($r,{gap:{md:"xl"},wrap:"wrap",justifyContent:{xs:"between",md:"start"},children:Object.entries(i).map(([e,t])=>Xt.jsx("div",{children:Xt.jsxs("svg",{className:"c-map-towns__map-drom",viewBox:t.viewBox,children:[Xt.jsx("title",{children:t.name}),Xt.jsx("path",{d:t.deptPath,className:"c-map-towns__layer-bg c-map-towns__dept-bg"}),Xt.jsx("g",{className:"c-map-towns__layer-towns",children:t.towns.map(e=>{const t=c.get(e.id.replace(/^town-/,""));return Xt.jsx("path",{id:`${e.id}-drom`,d:e.path,"data-url":e.url,"data-name":e.name,className:or("c-map-towns__path c-map-towns__path--drom",{[`c-map-towns__path--${t?.politicalParty.color}`]:t})},e.id)})}),Xt.jsx("path",{id:`out-${e}`,d:t.deptPath,"data-name":t.name,"data-url":ni(t.name),className:"c-map-towns__dept-trigger"})]})},e))})]}),h.length>0&&Xt.jsx(Wn,{items:h,mt:"xxl"}),Xt.jsxs("div",{id:"js-zoom-overlay",className:"c-map-towns__overlay","aria-hidden":"true",children:[Xt.jsxs("button",{id:"js-zoom-close",className:"c-map-towns__close-btn",type:"button",children:[Xt.jsx(Ar,{name:"close",size:20}),"Fermer"]}),Xt.jsxs($r,{id:"js-zoom-content",direction:"column",alignItems:"center",className:"c-map-towns__zoom-content",children:[Xt.jsx(ln,{as:"div",weight:"bold",size:"l",id:"js-zoom-label",className:"c-map-towns__zoom-label",children:" "}),Xt.jsxs("svg",{id:"js-zoom-svg",className:"c-map-towns__zoom-svg",viewBox:"0 0 525 488","aria-hidden":"true",role:"img",children:[Xt.jsx("title",{id:"js-zoom-title",children:"Carte détaillée du département"}),Xt.jsx("g",{id:"js-zoom-group",className:"c-map-towns__zoom-group"})]})]})]})]})},oi=({totalArticles:e,currentPage:t,pagePath:r,archivesUrl:n,...i})=>e>0?Xt.jsxs($r,{justifyContent:"center",gap:"l",...i,children:[1===Number(t)?1:Xt.jsx(Wr,{color:"grey-300",href:`${r}`,children:"1"}),e>17&&(2===Number(t)?2:Xt.jsx(Wr,{color:"grey-300",href:`${r}?page=2`,children:"2"})),e>25&&1!==Number(t)&&Xt.jsx(Wr,{color:2!==Number(t)?"black":"grey-300",href:n,children:"Archives"})]}):null,ai=({color:e,count:t=0,countColor:r,countBg:n,countStyle:i,iconItemProps:o,placement:a="right",reactListItems:s,reactListItemThemeColor:l,userReaction:c,variant:u,layout:d,contentId:p,contentLegacyId:f,...h})=>{const m=Xt.jsx($r,{as:"ul",direction:"row-reverse",alignItems:"center",className:"c-react-button__list",children:s?.sort((e,t)=>t.count-e.count).map((e,t)=>Xt.jsx(Ur,{as:"li",className:or("c-react-button__list-item",{"c-react-button__list-item--show":e.count>0&&t<=1}),bg:"grey-100","data-reaction-item":e.type,children:Xt.jsx(ln,{as:"span",size:"xxs",children:hr[e.type]})},e.type))});return Xt.jsxs($r,{...h,gap:"xxs-2",alignItems:"center",role:"button","data-placement":a,className:or("mbrs-social-react-container","c-react-button",{[`c-react-button--${u}`]:u,[`c-react-button--${l}`]:l},h.className),...s&&s.length>0&&s.reduce((e,t)=>(e[`data-content-${t.type}`]=t.count,e),{}),...c&&{"data-user-reaction":c.type,"data-user-reaction-id":c.id},children:[Xt.jsx(wn,{className:"c-react-button__icon",...(()=>{switch(u){case"horizontal":case"vertical":return{color:e,count:t,countColor:r,countBg:n,countStyle:i};default:return{}}})(),...o,ariaLabel:"Reagir au contenu",iconProps:{name:"thumb","aria-hidden":!0,...(()=>{switch(u){case"horizontal":case"vertical":return{size:26};default:return{size:20}}})()},"aria-describedby":d===Xr.DESKTOP?`react-tooltip-${f||p}`:void 0,children:d===Xr.DESKTOP&&Xt.jsx(Tr,{id:`react-tooltip-${f||p}`,text:"Réagir"})}),"card"===u&&Xt.jsxs(Xt.Fragment,{children:[m,Xt.jsx(ln,{as:"span",size:"xxs",color:e,className:or("c-react-button__count",{"c-react-button__count--show":t>0}),children:String(t).padStart(2,"0")})]})]})},si=({id:e,url:t,inputProps:r,autocompleteResults:n,ariaLabel:i,...o})=>Xt.jsxs(Ur,{...o,as:"form",autoComplete:n&&n.length>0?"off":"on",id:e,className:or("c-search-form",o?.className),action:t,method:"GET",role:"search",children:[Xt.jsx("label",{htmlFor:`${e}-search`,className:"u-mask",children:i||r?.placeholder||"Recherche"}),Xt.jsx(Ir,{id:`${e}-search`,className:"c-search-form__input",type:"text",placeholder:r?.placeholder||"Rechercher...",name:r?.name||"q",isIconButton:!0,icon:"search",iconButtonProps:{type:"submit",children:Xt.jsx("span",{className:"u-mask",children:"Ok"})},isRounded:r?.isRounded??!0,...r}),n&&n.length>0&&Xt.jsx("ul",{className:"c-search-form__autocomplete u-hidden",children:n.slice(0,8).map(e=>Xt.jsx("li",{children:Xt.jsx("a",{href:e.url,tabIndex:-1,children:e.value})},e.value))})]}),li=({label:e,labelLink:t,themeColor:r,isUnderlined:n=!0,...i})=>Xt.jsxs(sn,{...t&&{as:"a",href:t},size:"xxs",weight:"bold",...i,className:or("c-section-title",{"c-section-title--is-link":t}),children:[n?Xt.jsx(ln,{as:"span",role:"presentation",pb:"xxs",className:or("c-section-title__underline",{"c-section-title__underline--default":!r,[`c-section-title__underline--${r}`]:r}),children:e}):e,t&&Xt.jsx(Ar,{name:"chevron",size:14,color:"ultramarine",mt:"xxs-2",ml:"xxs"})]});var ci,ui={};!function(){if(ci)return ui;ci=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.StickyShareButtons=ui.InlineShareButtons=ui.InlineReactionButtons=ui.InlineFollowButtons=void 0;var t=function(e){return e&&e.__esModule?e:{default:e}}(e);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,i=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e,t){var r=e.props.config||{enabled:!0};r=JSON.parse(JSON.stringify(r));var n=window.onShareThisLoaded;if(window.onShareThisLoaded=function i(){if(!i.complete){if(!r.id){var o="sharethis-"+Date.now();r.id=o}e.buttons.current&&(e.buttons.current.id=r.id,window.__sharethis__.load(t,r)),n&&n(),i.complete=!0}},document.getElementById("sharethis-js"))window.__sharethis__&&window.onShareThisLoaded();else{var i=document.createElement("script");i.setAttribute("id","sharethis-js");var o={property:r.property||"",product:t,source:"reactjs"},a=Object.keys(o).map(function(e){return e+"="+o[e]}).join("&");i.src="https://platform-api.sharethis.com/js/sharethis.js?"+a,i.async=!0,document.body.appendChild(i)}},u=function(e){o(a,e);var r=s(a);function a(e){var i;return n(this,a),(i=r.call(this,e)).buttons=t.default.createRef(),i}return i(a,[{key:"componentDidMount",value:function(){c(this,"inline-follow-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),a}(t.default.Component);ui.InlineFollowButtons=u;var d=function(e){o(a,e);var r=s(a);function a(e){var i;return n(this,a),(i=r.call(this,e)).buttons=t.default.createRef(),i}return i(a,[{key:"componentDidMount",value:function(){c(this,"inline-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),a}(t.default.Component);ui.InlineShareButtons=d;var p=function(e){o(a,e);var r=s(a);function a(e){var i;return n(this,a),(i=r.call(this,e)).buttons=t.default.createRef(),i}return i(a,[{key:"componentDidMount",value:function(){c(this,"inline-reaction-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),a}(t.default.Component);ui.InlineReactionButtons=p;var f=function(e){o(a,e);var r=s(a);function a(e){var i;return n(this,a),(i=r.call(this,e)).buttons=t.default.createRef(),i}return i(a,[{key:"componentDidMount",value:function(){c(this,"sticky-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),a}(t.default.Component);ui.StickyShareButtons=f}();const di=({avatars:e,authors:t,layout:r,publicationProps:n,publishedAt:i,editedAt:o,userlink:a,authorHighlighted:s=!1,disableAvatar:l=!1,themeColor:c,sponsor:u,...d})=>{const p=Xt.jsxs($r,{...d,as:"address",alignItems:"start",gap:"s",children:[!l&&Xt.jsx(gn,{avatars:e,themeColor:c}),Xt.jsxs(Kr,{grow:1,align:i?"start":"center",children:[s?Xt.jsx("div",{children:Xt.jsx(ln,{as:"span",size:"s",weight:"bold",px:"xxs",bg:"sponsoring",color:"grey-900",children:t})}):Xt.jsx(ln,{size:"s",weight:"bold",children:t}),i&&Xt.jsxs(ln,{size:"xxs",color:"grey-400",mt:"xxs-2",...n,children:[Xt.jsxs("time",{children:["Publié le ",i]}),o&&Xt.jsxs("time",{children:[" • Mis à jour le ",o]})]})]}),u&&r===Xr.MOBILE&&Xt.jsx(gi,{sponsor:u,variant:"signature"})]});return a?Xt.jsx("a",{href:a,children:p}):p},pi=e=>"card"===e?"secondary":"primary",fi=e=>"card"===e?"inline":"rounded",hi=e=>"vertical"===e?"right":"top",mi=({commentCount:e,shareCount:t,reactionCount:r,variant:n="horizontal",countColor:i,themeColor:o,contentId:a,contentLegacyId:s,contentModel:l,contentLink:c,withReport:u=!0,withChatbotButton:d=!1,commentAnchor:p,disableComment:f,blockVariant:h,reactListItems:m,userReaction:g,layout:y,...v})=>{const b=!f&&Xt.jsx(wn,{role:"button",ariaLabel:"Accéder aux commentaires",iconProps:{name:"comment","aria-hidden":!0},..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"},variant:pi(n),count:e,countColor:i,countBg:o,countStyle:fi(n),..."horizontal"===n&&{id:"mbrs-social-comment-container"},..."card"!==n&&{anchor:p},..."card"===n&&c&&{link:`${c}#${p}`},color:"blue-grey"===h?"white":"black","aria-describedby":y===Xr.DESKTOP?`comment-tooltip-${s||a}`:void 0,children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`comment-tooltip-${s||a}`,text:"Commenter"})}),w=Xt.jsx(wn,{role:"button",ariaLabel:"Partager le contenu",iconProps:{name:"share","aria-hidden":!0},..."card"===n&&{iconBackground:"none"},..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"},variant:pi(n),count:0===t?void 0:t,countColor:i,countBg:o,countStyle:fi(n),isClickable:"card"!==n,className:or({"js-mobile-share-button":"horizontal"===n}),..."card"!==n&&{id:"mbrs-social-share-container"},color:h&&["dark","blue-grey"].includes(h)?"white":"black","aria-describedby":y===Xr.DESKTOP?`share-tooltip-${s||a}`:void 0,children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`share-tooltip-${s||a}`,text:"Partager l'article"})}),_=!f&&a&&!!m&&Xt.jsx(ai,{color:"blue-grey"===h?"white":"black",count:r,countColor:i,countBg:o,countStyle:fi(n),iconItemProps:{variant:pi(n),..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"}},userReaction:g,reactListItems:m,reactListItemThemeColor:"card"===n?h:void 0,variant:n,placement:hi(n),layout:y,contentId:a,contentLegacyId:s,"data-content-id":a||s,"data-content-model":l}),x=s&&Xt.jsx(wn,{role:"button",ariaLabel:"Mettre le contenu en favori",iconProps:{name:"bookmark","aria-hidden":!0},..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"},variant:pi(n),countStyle:fi(n),"data-id":s,"data-delayed":!0,"data-distance-visible":0,"data-event-name":"mbrs-social-save-content",color:"blue-grey"===h?"white":"black","aria-describedby":y===Xr.DESKTOP?`bookmark-tooltip-${s||a}`:void 0,children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`bookmark-tooltip-${s||a}`,text:"Sauvegarder l'article"})}),S=u&&Xt.jsx(wn,{role:"button",ariaLabel:"Signaler une faute dans le contenu",..."card"===n&&"blue-grey"===h&&{iconBackground:"blue-grey",iconColor:"white"},variant:pi(n),iconProps:{name:"report","aria-hidden":!0},className:"mbrs-social-report-container",color:"black","aria-describedby":y===Xr.DESKTOP?`report-tooltip-${s||a}`:void 0,children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`report-tooltip-${s||a}`,text:"Signaler une faute"})}),E=d&&Xt.jsx(wn,{role:"button",ariaLabel:"Poser une question au Chatbot",iconProps:{name:"ia",size:26,"aria-hidden":!0},color:"black","data-a11y-dialog-show":"dialog-chatbot","aria-describedby":y===Xr.DESKTOP?`chatbot-tooltip-${s||a}`:void 0,pl:"xxs-3",children:y===Xr.DESKTOP&&Xt.jsx(Tr,{id:`chatbot-tooltip-${s||a}`,text:"Poser une question"})}),k=(u||d||!!s)&&Xt.jsx(Qr,{});return Xt.jsx($r,{as:"ul",...v,alignItems:"center",gap:"card"===n?"xxs":"xl",direction:"vertical"===n?"column":"row",className:or("c-social-bar",{[`c-social-bar--${n}`]:"card"!==n},v.className),bg:"horizontal"===n?"grey-50":void 0,"data-block-variant":h,children:(()=>{switch(n){case"card":return Xt.jsxs(Xt.Fragment,{children:[b&&Xt.jsx("li",{children:b}),x&&Xt.jsx("li",{children:x}),_&&Xt.jsx("li",{children:_})]});case"horizontal":return Xt.jsxs(Xt.Fragment,{children:[b&&Xt.jsx("li",{children:b}),w&&Xt.jsx("li",{children:w}),x&&Xt.jsx("li",{children:x}),_&&Xt.jsx("li",{children:_}),S&&Xt.jsx("li",{children:S})]});case"vertical":return Xt.jsxs(Xt.Fragment,{children:[b&&Xt.jsx("li",{children:b}),w&&Xt.jsx("li",{children:w}),_&&Xt.jsx("li",{children:_}),Xt.jsx("li",{"aria-hidden":"true",children:k}),E&&Xt.jsx("li",{children:E}),x&&Xt.jsx("li",{children:x}),S&&Xt.jsx("li",{children:S})]});default:return null}})()})},gi=({sponsor:e,variant:t,hasText:r=!1,...n})=>Xt.jsxs($r,{...n,gap:r?n?.gap||"l":void 0,children:[r&&Xt.jsx(Kr,{align:"end",children:Xt.jsx(ln,{as:"span",weight:"bold",children:"avec"})}),Xt.jsx("img",{alt:e.name,src:e.logoUrl,className:or({[`c-sponsor__img--${t}`]:!!t})})]}),yi=({hasHeader:e,tableProps:t,...r})=>{if(!t?.length)return null;const n=e?t[0]:null,i=e?t.slice(1):t;return Xt.jsxs(Ur,{as:"table",...r,children:[e&&n&&Xt.jsx("thead",{children:Xt.jsx("tr",{children:n.map((e,t)=>Xt.jsx(Ur,{as:"th",p:"s",children:e},t))})}),Xt.jsx("tbody",{children:i.map((e,t)=>Xt.jsx("tr",{children:e.map((e,t)=>Xt.jsx(Ur,{as:"td",p:"s",children:e},t))},t))})]})},vi=({tabItems:e,name:t="default",fitContainer:r,tabItemActive:n,tabVariant:i="primary",className:o,tabProps:a,tabTitlesColor:s,...l})=>{const c=e.filter(({content:e})=>Array.isArray(e)?e.length>0:!!e);if(0===c.length)return null;const u=n||c[0].name;return Xt.jsxs(Ur,{className:or(o,"js-tabs",{"c-tabs-fit-container":r}),"data-tabs-name":t,...l,children:[Xt.jsx($r,{className:"c-tablist",role:"tablist",mb:"l",gap:"primary"===i?"l":void 0,...a,children:c.map(e=>Xt.jsx(nn,{name:e.name,variant:i,isSelected:u===e.name,tabIndex:u===e.name?0:-1,tabColor:e.tabColor,isNoWrap:e.isNoWrap,color:s,children:e.title},e.name))}),c.map(e=>Xt.jsx(on,{className:or({"c-tabs-fit-container__panel":r}),name:e.name,isHidden:u!==e.name,children:e.content},e.name))]})},bi=e.forwardRef(({href:e,children:t,...r},n)=>Xt.jsx("a",{href:e,className:or("c-skip-link",Hr(r),r?.className),ref:n,...r,children:t}));bi.displayName="SkipLink";const wi=({tabItems:t,layout:r,fitContainer:n,tabItemActive:i,isScrollable:o=!1,hasButton:a=!1,seeMoreLinkBoxProps:s,...l})=>{const c=(e,t)=>e.slice(0,t),u=t.map(e=>({...e,body:c(e.body,r===Xr.DESKTOP?"le-direct"===e.name?25:10:5)})).filter(e=>e.body&&e.body.length>0).map(t=>{const i="le-direct"===t.name;return{name:t.name,title:t.title,tabColor:t.tabColor,content:Xt.jsxs(Xt.Fragment,{children:[Xt.jsx("div",{className:or({"c-most-read-articles-is-scrollable":o&&r===Xr.DESKTOP,"c-most-read-articles-fit-container":n&&r===Xr.DESKTOP}),children:Xt.jsx("div",{children:t.body.map((n,a)=>Xt.jsxs(e.Fragment,{children:[i?Xt.jsx(Cn,{link:n.url,title:n.title,cardHeaderProps:{headline:{text:n.rubricName},liveTime:n.liveTime},cardTitleProps:{size:{xs:"xxs-2",md:"xxs-3"},cartridge:n.cartridge},layout:r,mr:o&&r===Xr.DESKTOP&&t.body.length>3?"s":void 0}):Xt.jsx(Dn,{link:n.url,title:n.title,cardHeaderProps:{headline:{text:n.rubricName}},...r===Xr.DESKTOP&&{cardImageProps:n.cardImageProps},cardTitleProps:{size:"xxs-3",cartridge:n.cartridge},cardNumber:{value:a+1,size:"small"},layout:r,mr:o&&r===Xr.DESKTOP?"s":void 0,variant:"small"}),a!==t.body.length-1&&Xt.jsx(ur,{color:"grey-200",my:"s"})]},n.title))})}),a&&Xt.jsx($r,{mt:"xl",justifyContent:"center",...s,children:Xt.jsx(Wr,{variant:"secondary",...i?{href:"https://www.20minutes.fr/actus",children:"Suivre l'info en direct"}:{href:"https://www.20minutes.fr/les-plus-lus",children:"Voir les articles les + lus"}})})]})}});return 0===u.length?null:Xt.jsx(vi,{tabItemActive:i||u[0].name,tabItems:u,fitContainer:n&&r===Xr.DESKTOP,...l})},_i=e=>{const t=document.cookie.split(";").filter(t=>-1!==t.indexOf(e))[0];return t?t.split("=")[1]:"{}"},xi=e=>{const t=e=>`${e}`.padStart(2,"0");return`${t(Math.floor(e/60))}:${t(e%60)}`},Si=new Intl.RelativeTimeFormat("fr",{numeric:"auto"}),Ei=new Intl.DateTimeFormat("fr",{year:"numeric",month:"short",day:"numeric",timeZone:"Europe/Paris"}),ki=e=>{const t=Date.now(),r=new Date(e).getTime(),n=(r-t)/6e4;let i=Si.format(Math.round(n),"minutes");return n<=-60&&(i=Si.format(Math.ceil(n/60),"hours"),n<=-1440&&(i=Ei.format(r))),"cette minute-ci"===i?"à l'instant":i};function Ci(e,t=!0){const r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0");let i=e.getFullYear();return t||(i=Number(e.getFullYear().toString().slice(2))),`${r}/${n}/${i}`}function Ai(e){const[t,r,n]=e.split("-");return`${n}/${r}/${t.slice(-2)}`}const Ti=e=>{const t=new Date(e);return`${t.getFullYear()}${String(t.getMonth()+1).padStart(2,"0")}${String(t.getDate()).padStart(2,"0")}`};var Li=(e=>(e.Article="Article",e.ExternalContent="ExternalContent",e.Live="Live",e.Page="Page",e.StaticPage="StaticPage",e.Story="Story",e))(Li||{}),Di=(e=>(e.bold="bold",e.community="community",e.default="default",e.faq="faq",e.important="important",e.summary="summary",e.very_important="very_important",e))(Di||{}),Ni=(e=>(e.closed="closed",e.open="open",e))(Ni||{}),Ii=(e=>(e.embed="embed",e.photo="photo",e.podcast="podcast",e.video="video",e))(Ii||{}),Pi=(e=>(e.CREATED_AT="CREATED_AT",e.EXPECTATION_LEVEL="EXPECTATION_LEVEL",e.RELEASE_DATE="RELEASE_DATE",e.TITLE_FR="TITLE_FR",e))(Pi||{}),Oi=(e=>(e.ASC="ASC",e.DESC="DESC",e))(Oi||{}),qi=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(qi||{});const ji=[qi.up,qi.down,qi.sad,qi.heart,qi.laughing,qi.shock],Mi=e=>{if(e)return ji.reduce((t,r)=>t+(e[r]??0),0)},Ri=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):void 0},Fi=(e,t)=>{let r=e.toLowerCase().replace(/[\s-]+/g,t??"-");return r=(e=>{let t=e;const r="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(r.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(r),r.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},Bi=e=>{const t=JSON.stringify(e).replaceAll("<\/script>","<\\\\/script>");return JSON.parse(t)},zi=e=>{const t=JSON.stringify(e).replaceAll("<\\\\/script>","<\/script>");return JSON.parse(t)},Hi=(e,t=75)=>e.length>75?`${e.substring(0,t)}…`:e,Vi=e=>{const t={click:Fi(e.name),click_chapter1:e?.chapter1||null,click_chapter2:e?.chapter2||null,click_chapter3:e?.chapter3||null},r=`click.${e.type}`;if(window.pa?(e.customProps&&Object.keys(e.customProps).length>0&&window.pa.setProperties(e.customProps,{persistent:!1,events:[r]}),window.pa.sendEvent(r,t)):window._paq&&(e.customProps&&Object.keys(e.customProps).length>0&&window._paq.push(["setProperties",e.customProps,{persistent:!1,events:[r]}]),window._paq.push(["sendEvent",r,t])),!window.edgee?.track)return;const n=document.getElementById("__EDGEE_DATA_LAYER__");let i={};if(n)try{const e=JSON.parse(n.textContent||"");e.data_collection.context=e.data_collection.context||{},i=e.data_collection.context.page?.properties||{}}catch{i={}}window.edgee.track({name:r,properties:{...i,click:t.click,click_chapter1:t.click_chapter1,click_chapter2:t.click_chapter2,click_chapter3:t.click_chapter3,click_type:e?.type??"navigation",...e.customProps}},{"edgee/piano-analytics":!0})},Ui=e=>{window._paq&&window._paq.push(["sendEvent","page.display",{page:e?.name??window.PianoPageInfo?.name,page_chapter1:e?.chapter1??window.PianoPageInfo?.chapter1,page_chapter2:e?.chapter2??window.PianoPageInfo?.chapter2,page_chapter3:e?.chapter3??window.PianoPageInfo?.chapter3,page_chapter4:e?.chapter4??window.PianoPageInfo?.chapter4}]),window.edgee?.page&&!1!==e?.enableEdgee&&window.edgee.page()},$i=e=>{if("undefined"==typeof window&&"undefined"!=typeof Buffer){return Buffer.from(e,"utf-8").toString("base64")}return window.btoa(unescape(encodeURIComponent(e)))},Ki="20mnReactions",Gi=e=>e in hr,Wi=Object.values(qi).filter(e=>Gi(e)),Qi=e=>{const t=e?.reaction?.associated_content?.node?.reactions_count;if(!t)return null;return Wi.some(e=>"number"==typeof t[e])?t:null},Zi=()=>{try{const e=localStorage.getItem(Ki);return e?JSON.parse(e):[]}catch{return[]}},Ji=e=>{try{localStorage.setItem(Ki,JSON.stringify(e))}catch{console.error("Error setting stored reactions")}},Yi=e=>Zi().find(t=>t.contentId===e)??null,Xi=(e,t,r)=>{const n=Zi().filter(t=>t.contentId!==e);n.push({id:t,contentId:e,type:r,timestamp:Date.now()}),Ji(n)},eo=()=>{const e=_i("20mnUserDataLayer");if(!e||"{}"===e)return null;try{return JSON.parse(decodeURIComponent(e))}catch{return null}},to=()=>{let e=localStorage.getItem("20mn_anonymous_id");return e||(e=crypto.randomUUID(),localStorage.setItem("20mn_anonymous_id",e)),e},ro=async(e,t)=>{const r=document.body.getAttribute("data-api-host");if(!r)return console.error("API host not found"),null;try{const n=new Headers;n.append("Content-Type","application/json"),n.append("auth-key",window.envVariables?.apiAuthKey);const i=await fetch(r,{method:"POST",headers:n,credentials:"include",body:JSON.stringify({query:e,variables:t})});if(!i.ok)throw new Error(`HTTP error: ${i.status}`);const o=await i.json();return o.errors&&o.errors.length>0?(console.error("GraphQL errors:",o.errors),null):o.data??null}catch(e){return console.error("Error executing GraphQL mutation:",e),null}},no=()=>{const e=document.querySelector(".mbrs-social-emoji-toolbar");if(!e)return;const t=new Set;(()=>{const e=Date.now(),t=Zi(),r=t.filter(t=>e-t.timestamp<6e5);r.length!==t.length&&Ji(r)})(),e.style.position="fixed",e.style.display="none",e.style.zIndex="1000";let r=null,n=!1;const i=(e,t)=>{const r=e.querySelector(".c-react-button__icon .c-icon-item__icon");if(r)if(t){const e=(e=>Gi(e)?hr[e]??null:null)(t);e&&(r.innerHTML=`<span style="font-size: 1.25rem; line-height: 1;">${e}</span>`)}else r.innerHTML='\n <div aria-hidden="true" class="c-icon">\n <svg height="20" width="20">\n <use xlink:href="#thumb"></use>\n </svg>\n </div>\n '},o=t=>{const r=t.getBoundingClientRect(),n=t.getAttribute("data-placement")||"right",i=e.getBoundingClientRect();if("top"===n){const t=r.top-i.height-10,n=r.left+r.width/2,o=t<24,a=n-i.width/2<24,s=n+i.width/2>window.innerWidth-24;e.style.top=o?"24px":`${t}px`,a?(e.style.left="24px",e.style.transform="translateX(0)"):s?(e.style.left=window.innerWidth-24+"px",e.style.transform="translateX(-100%)"):(e.style.left=`${n}px`,e.style.transform="translateX(-50%)")}else{const t=r.right+18,n=t+i.width>window.innerWidth;e.style.top=`${r.top+r.height/2}px`,n?(e.style.left=window.innerWidth-24+"px",e.style.transform="translate(-100%, -50%)"):(e.style.left=`${t}px`,e.style.transform="translateY(-50%)")}},a=e=>{const t=[];ji.forEach(r=>{const n=Number.parseInt(e.getAttribute(`data-content-${r}`)||"0",10),i=e.querySelector(`[data-reaction-item="${r}"]`);i&&t.push({element:i,type:r,count:n})});const r=t.filter(({count:e})=>e>0),n=t.reduce((e,{count:t})=>e+t,0),i=e.querySelector(".c-react-button__count");if(i&&(n>0?i.classList.add("c-react-button__count--show"):i.classList.remove("c-react-button__count--show")),t.forEach(({element:e})=>{e.classList.remove("c-react-button__list-item--show")}),0===r.length)return;const o=[...r].sort((e,t)=>t.count-e.count);o.slice(0,2).forEach(({element:e})=>{e.classList.add("c-react-button__list-item--show")})},s=t=>{const r=Object.values(qi),n=t.getAttribute("data-user-reaction");r.forEach(r=>{const i=t.getAttribute(`data-content-${r}`);if(!i)return;const o=e.querySelector(`[data-reaction-id="${r}"]`);if(!o)return;const a=o.querySelector(".c-emoji-toolbar__count");if(a){const e=String(i).padStart(2,"0");a.textContent=e}n===r?o.classList.add("c-emoji-toolbar__button--is-active"):o.classList.remove("c-emoji-toolbar__button--is-active")})},l=(e,t,r)=>{const n=Yi(t);let i=0;Wi.forEach(t=>{let o="number"==typeof(a=r[t])?Math.max(0,Math.trunc(a)):0;var a;n?.type===t&&(o+=1),e.setAttribute(`data-content-${t}`,String(o)),i+=o});const o=String(i),l=e.querySelector(".c-react-button__count");l&&(l.textContent=o);const c=e.querySelector(".c-icon-item__count");c&&(c.textContent=o),a(e),s(e)},c=t=>{if(!t)return void console.error("Missing editorial content information for reaction");e.querySelectorAll("[data-reaction-id]").forEach(e=>{const t=e.cloneNode(!0);e.parentNode&&t instanceof HTMLElement&&e.parentNode.replaceChild(t,e)});const o=e.querySelectorAll("[data-reaction-id]");o.forEach(s=>{s.addEventListener("click",()=>{if(!r)return;const c=s.getAttribute("data-reaction-id");if(!c)return;const u=r.getAttribute("data-content-model")||"",d=u.charAt(0).toUpperCase()+u.slice(1),p=r.getAttribute("data-user-reaction-id"),f=s.classList.contains("c-emoji-toolbar__button--is-active"),h=r.getAttribute("data-user-reaction");Vi({name:c,type:"action",customProps:{cta_context:"toolbar_react",cta_type:"icon",cta_engagement:2}});((t,n,o,a,s)=>{if(!r)return;const l=t.classList.contains("c-emoji-toolbar__button--is-active"),c=t.querySelector(".c-emoji-toolbar__count");if(c){const e=Number.parseInt(c.textContent||"0",10),t=String(Math.max(0,e+o)).padStart(2,"0");c.textContent=t}const u=r.getAttribute(`data-content-${n}`),d=Number.parseInt(u||"0",10),p=Math.max(0,d+o);if(r.setAttribute(`data-content-${n}`,String(p)),!l&&a&&a!==n){const t=e.querySelector(`[data-reaction-id="${a}"]`);if(t){t.classList.remove("c-emoji-toolbar__button--is-active");const e=t.querySelector(".c-emoji-toolbar__count");if(e){const t=Number.parseInt(e.textContent||"0",10);e.textContent=String(Math.max(0,t-1)).padStart(2,"0")}}const n=r.getAttribute(`data-content-${a}`),i=Number.parseInt(n||"0",10);r.setAttribute(`data-content-${a}`,String(Math.max(0,i-1)))}else{const e=r.querySelector(".c-icon-item__count");if(e){const t=Number.parseInt(e.textContent||"0",10);e.textContent=String(Math.max(0,t+o))}const t=r.querySelector(".c-react-button__count");if(t){const e=Number.parseInt(t.textContent||"0",10);t.textContent=String(Math.max(0,e+o))}}l?(t.classList.remove("c-emoji-toolbar__button--is-active"),r.removeAttribute("data-user-reaction"),r.removeAttribute("data-user-reaction-id"),i(r,null)):(s.forEach(e=>{e.classList.remove("c-emoji-toolbar__button--is-active")}),t.classList.add("c-emoji-toolbar__button--is-active"),r.setAttribute("data-user-reaction",n),i(r,n))})(s,c,f?-1:1,h,o),a(r);const m=r;e.style.display="none",n=!1,r=null;(async()=>{try{if(f&&p){await(async e=>{const t={id:e},r=await ro("\n mutation DeleteReaction($input: GlobalIdInputType!) {\n deleteReaction(input: $input) {\n resolveInfo {\n status\n }\n }\n }\n ",{input:t}),n=r?.deleteReaction?.resolveInfo?.status;return"string"!=typeof n||!n.startsWith("2")})(p)?(e=>{const t=Zi().filter(t=>t.contentId!==e);Ji(t)})(t):console.error("Failed to delete reaction")}else if(h&&p){const e=c,r=await(async(e,t,r)=>{const n=`\n mutation UpdateReaction($input: UpdateReactionType!) {\n updateReaction(input: $input) {\n reaction {\n id\n associated_content: ${r.toLowerCase()} {\n node {\n reactions_count {\n down\n heart\n laughing\n sad\n up\n }\n }\n }\n }\n resolveInfo {\n status\n }\n }\n }\n `,i={id:e,content:t},o=await ro(n,{input:i});return{id:o?.updateReaction?.reaction?.id??null,reactionCounts:Qi(o?.updateReaction)}})(p,e,d);r.id?(Xi(t,p,e),r.reactionCounts&&l(m,t,r.reactionCounts)):console.error("Failed to update reaction")}else{const e=c,r=await(async(e,t,r)=>{const n=eo(),i=n?.i?String(n.i):null,o=i?null:to(),a=`\n mutation CreateReaction($input: CreateReactionType!) {\n createReaction(input: $input) {\n reaction {\n id\n associated_content: ${t.toLowerCase()} {\n node {\n reactions_count {\n down\n heart\n laughing\n sad\n up\n }\n }\n }\n }\n resolveInfo {\n status\n }\n }\n }\n `,s={associated_content:{editorial_id:e,editorial_model:t},content:r};i?s.user_front_id=i:o&&(s.anonymous_id=o);const l=await ro(a,{input:s});return{id:l?.createReaction?.reaction?.id??null,reactionCounts:Qi(l?.createReaction)}})(t,d,e);r.id?(m.setAttribute("data-user-reaction-id",r.id),Xi(t,r.id,e),r.reactionCounts&&l(m,t,r.reactionCounts)):console.error("Failed to create reaction")}}catch(e){console.error("Error executing reaction mutation:",e)}})().catch(e=>{console.error("Unexpected error in reaction API call:",e)})})})},u=l=>{if(t.has(l))return;t.add(l),(e=>{const t=e.getAttribute("data-content-id");if(!t)return;const r=Yi(t);if(!r)return;e.setAttribute("data-user-reaction",r.type),e.setAttribute("data-user-reaction-id",r.id),i(e,r.type);const n=Number.parseInt(e.getAttribute(`data-content-${r.type}`)||"0",10);e.setAttribute(`data-content-${r.type}`,String(n+1));const o=e.querySelector(".c-react-button__count");if(o){const e=Number.parseInt(o.textContent||"0",10);o.textContent=String(e+1)}const a=e.querySelector(".c-icon-item__count");if(a){const e=Number.parseInt(a.textContent||"0",10);a.textContent=String(e+1)}})(l);const u=l.getAttribute("data-user-reaction");u&&i(l,u),a(l),l.addEventListener("click",()=>{if(n&&r===l)e.style.display="none",n=!1,r=null;else{Vi({name:"reaction",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:1}}),r=l,e.style.display="flex",o(l),s(l),c(r.getAttribute("data-content-id")),n=!0;if(!l.getAttribute("data-user-reaction")){const e=l.getAttribute("data-content-id");e&&(async(e,t)=>{const r=eo(),n=r?.i?String(r.i):null,i=n?null:to();if(!n&&!i)return null;const o=document.body.getAttribute("data-brand-id");if(!o)return console.error("Brand ID not found"),null;const a=$i(`Brand:${o}`),s={};n?s.user_front_id={eq:n}:i&&(s.anonymous_id={eq:i});const l=t.toLowerCase(),c=`${l}_id`,u=`\n query GetUserReaction($brandId: ID!, $${c}: ID!, $reactionFilter: ReactionFilter) {\n brand(id: $brandId) {\n node {\n ${l}(${c}: $${c}) {\n node {\n id\n reactions(first: 1, filter: $reactionFilter, orderBy: { field: CREATED_AT, direction: ASC }) {\n edges {\n node {\n id\n content\n }\n }\n }\n }\n resolveInfo {\n status\n }\n }\n }\n }\n }\n `,d={brandId:a,reactionFilter:s,[c]:e},p=await ro(u,d),f=p?.brand?.node?.[l]?.node?.reactions,h=f?.edges?.[0]?.node;return h?{id:h.id,type:h.content}:null})(e,Li.Article).then(e=>{e&&r===l&&(l.setAttribute("data-user-reaction",e.type),l.setAttribute("data-user-reaction-id",e.id),i(l,e.type),s(l))}).catch(e=>{console.error("Error fetching user reaction:",e)})}}})};document.querySelectorAll(".mbrs-social-react-container").forEach(u);new MutationObserver(e=>{e.forEach(e=>{Array.from(e.addedNodes).forEach(e=>{if(!(e instanceof HTMLElement))return;e.matches(".mbrs-social-react-container")&&u(e);e.querySelectorAll(".mbrs-social-react-container").forEach(u)})})}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("scroll",()=>{n&&r&&o(r)}),document.addEventListener("click",({target:t})=>{t instanceof HTMLElement&&n&&!e.contains(t)&&!t.closest(".mbrs-social-react-container")&&(e.style.display="none",n=!1,r=null)})},io=()=>{"home"===window.datalayerInfo?.pageName&&document.querySelectorAll("div#local-news-container div.c-card-container a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"local_news_content",type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:t,cta_engagement:1}}),window.location.href=t})})},oo=()=>{window.datalayerInfo?.pageName&&["article","live"].includes(window.datalayerInfo?.pageName)&&document.querySelectorAll("div.c-tabpanel article a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"most_read_content",type:"action",customProps:{cta_context:"content",cta_type:"link",cta_destination:t,cta_engagement:1},chapter1:"widget"}),window.location.href=t})})};var ao=()=>{"guide-achat"===window.datalayerInfo?.subType&&document.querySelectorAll(".c-content a.c-btn").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),Vi({name:"affiliation",type:"action",chapter1:"guide_achat"}),e.target instanceof HTMLAnchorElement&&(window.location.href=e.target.href)})}),"article"===window.datalayerInfo?.pageName&&document.querySelectorAll("footer article a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"read_also",type:"action",customProps:{cta_context:"content",cta_type:"card",cta_destination:t,cta_engagement:2}}),window.location.href=t})}),(()=>{const e=document.querySelector("a.c-tiles--has-advent-bg");e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"advent-calendar",type:"action",customProps:{cta_context:"menu",cta_type:"button",cta_destination:t,cta_engagement:2}}),window.location.href=t})})(),(()=>{if("mobile"!==window.layout)return;const e=document.querySelector("a.js-header-btn-back");e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"back",type:"action",customProps:{cta_context:"header",cta_type:"icon",cta_destination:t,cta_engagement:1}}),window.location.href=t})})(),(()=>{const e=document.querySelector('.c-btn--ghost:not(.u-hidden)[data-a11y-dialog-show="dialog-menu"]');e&&e.addEventListener("click",()=>{Vi({name:"menu",type:"action",customProps:{cta_context:"header",cta_type:"button",cta_destination:window.location.href,cta_engagement:1}})})})(),(()=>{if(window.datalayerInfo?.pageName&&["game","gamehome"].includes(window.datalayerInfo?.pageName)){let e=document.querySelectorAll("main#page-wrap div.c-collapse__content a");"desktop"===window.layout&&(e=document.querySelectorAll("header.c-header-page div.c-collapse__content a")),e.forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement&&(t=e.target.href),Vi({name:"view_all_games",type:"action",customProps:{cta_context:"home_game",cta_type:"link",cta_destination:t,cta_engagement:1}}),window.location.href=t})})}})(),(()=>{let e=document.querySelector("article.c-card-large a");"mobile"===window.layout&&(e=document.querySelector("article.c-card-extra-large a")),e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"headline_content",type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:t,cta_engagement:1}}),window.location.href=t})})(),window.datalayerInfo?.pageName&&["home","tag"].includes(window.datalayerInfo?.pageName)&&(document.querySelectorAll("div.c-icon-item__container--is-clickable a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:(e.target instanceof HTMLElement||e.target instanceof SVGElement)&&(t=e.target.closest("a")?.href||""),Vi({name:"comment_content",type:"action",customProps:{cta_context:"home"===window.datalayerInfo?.pageName?"home":"tag",cta_type:"icon",cta_destination:t,cta_engagement:2}}),window.location.href=t})}),document.querySelectorAll('div.c-icon-item__container--is-clickable[data-event-name="mbrs-social-save-content"]').forEach(e=>{e.addEventListener("click",()=>{Vi({name:"save_content",type:"action",customProps:{cta_context:"home"===window.datalayerInfo?.pageName?"home":"tag",cta_type:"icon",cta_destination:window.location.href,cta_engagement:3}})})})),"home"===window.datalayerInfo?.pageName&&document.querySelectorAll(".c-carousel__movies--in-long-list a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="",r="";e.target instanceof HTMLAnchorElement?(r=e.target.href,t=e.target.closest("section.c-carousel")?.querySelector("h2")?.textContent||""):e.target instanceof Element&&(r=e.target.closest("a")?.href||"",t=e.target.closest("section.c-carousel")?.querySelector("h2")?.textContent||"");let n="";n="On regarde quoi ce soir ?"===t?"program_tv_content":"cinema_content",Vi({name:n,type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:r,cta_engagement:1}}),window.location.href=r})}),[{name:"games",id:"#entertainment-item-game"},{name:"horoscope",id:"#entertainment-item-horoscope"}].forEach(e=>{const t=document.querySelector(e.id);t&&t instanceof HTMLAnchorElement&&t.addEventListener("click",r=>{r.stopPropagation(),r.preventDefault(),Vi({name:e.name,type:"action",customProps:{cta_context:"widget_entertainment",cta_type:"link_with_icon",cta_destination:t.href,cta_engagement:2}}),window.location.href=t.href})}),(()=>{const e=document.querySelector("ul.c-header__links-container li:first-child a");e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"house",type:"action",customProps:{cta_context:"header",cta_type:"icon",cta_destination:"/",cta_engagement:1}}),window.location.href=t})})(),"home"===window.datalayerInfo?.pageName&&document.querySelectorAll("#tabpanel-le-direct article.c-card-container a").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"live",type:"action",customProps:{cta_context:"home",cta_type:"link",cta_destination:window.location.href,cta_engagement:1}}),window.location.href=e.target.href)})}),(()=>{const e=document.querySelector("#tab-resume");e&&e.addEventListener("click",()=>{Vi({name:"context",type:"action",customProps:{cta_context:"content",cta_type:"link",cta_destination:window.location.href,cta_engagement:1},chapter1:"live"})});const t=document.querySelector("#tab-temps-forts");t&&t.addEventListener("click",()=>{Vi({name:"highlights",type:"action",customProps:{cta_context:"content",cta_type:"link",cta_destination:window.location.href,cta_engagement:1},chapter1:"live"})})})(),"home"===window.datalayerInfo?.pageName&&document.querySelectorAll(".c-vertical-timeline a").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"live_post",type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:e.target.href,cta_engagement:1}}),window.location.href=e.target.href)})}),io(),document.querySelectorAll("a.c-header-mobile__logo, a.c-header__logo, .c-header-mobile__logo a.c-link, .c-header__logo a.c-link, .c-header-mini__container > div:not(.c-header-mini__content) a.c-link").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"logo",type:"action",customProps:{cta_context:"header",cta_type:"image",cta_destination:t,cta_engagement:1}}),window.location.href=t})}),(()=>{const e=(e,t,r)=>{let n="";r.target instanceof HTMLAnchorElement?n=r.target.href:r.target instanceof Element&&(n=r.target.closest("a")?.href||""),n&&(r.stopPropagation(),r.preventDefault(),Vi({name:t,type:"action",customProps:{cta_context:"header",cta_type:"button",cta_destination:n,cta_engagement:1}}),"_blank"===e.target?window.open(n,"_blank")?.focus():window.location.href=n)};document.querySelectorAll(".c-header__container a.c-media-link").forEach(t=>{switch(t.title){case"Consulter la page 20 Minutes TV live":t.addEventListener("click",r=>{e(t,"20mn_tv",r)});break;case"Consulter la page 20 Minutes TV":t.addEventListener("click",r=>{e(t,"videos",r)})}})})(),oo(),document.querySelectorAll(".c-overview-bar__article a").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"summary_banner",type:"action",customProps:{cta_context:"home",cta_type:"card",cta_destination:e.target.href,cta_engagement:1}}),window.location.href=e.target.href)})}),document.querySelectorAll("div.c-read-also-banner a").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"read_also_banner",type:"action",customProps:{cta_context:"content",cta_type:"card",cta_destination:t,cta_engagement:2},chapter1:"banner"}),window.location.href=t})}),(()=>{const e=document.getElementById("footer-recrutement-link");e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),Vi({name:"recrutement",type:"action"}),e.target instanceof HTMLAnchorElement&&(window.location.href=e.target.href)})})(),(()=>{if("rewind"===window.datalayerInfo?.pageName){const e=document.querySelector('#page-wrap a[href*="/rewind/2025"]');e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"rewind_2025",type:"action",customProps:{cta_context:"my_rewinds",cta_type:"card",cta_destination:t,cta_engagement:2}}),window.location.href=t})}const e=document.querySelector('div.c-header a[href*="/rewind/2025"]');e&&e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"rewind",type:"action",customProps:{cta_context:"header",cta_type:"icon",cta_destination:t,cta_engagement:2}}),window.location.href=t});const t=document.querySelector('#dialog-menu a[href*="/rewind/2025"]');t&&t.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();let t="";e.target instanceof HTMLAnchorElement?t=e.target.href:e.target instanceof Element&&(t=e.target.closest("a")?.href||""),Vi({name:"rewind",type:"action",customProps:{cta_context:"menu",cta_type:"banner",cta_destination:t,cta_engagement:2}}),window.location.href=t})})(),"desktop"===window.layout&&document.querySelectorAll("li.c-header__link-and-submenu-container a.c-header__link").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"section_tag",type:"action",customProps:{cta_context:"header",cta_type:"link",cta_destination:e.target.href,cta_engagement:1}}),window.location.href=e.target.href)})}),(()=>{if("home"!==window.datalayerInfo?.pageName)return;const e=document.querySelector("div.c-scroll-to-top button");e&&e.addEventListener("click",()=>{Vi({name:"scroll_to_top",type:"action",customProps:{cta_context:"home",cta_type:"button",cta_destination:window.location.href,cta_engagement:1}})})})(),(()=>{const e=document.querySelector('.c-social-bar a[href="#mbrs-comments-container"]');e&&e.addEventListener("click",()=>{Vi({name:"content_comments",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:3}})});const t=document.querySelector("#mbrs-social-comment-container");t&&t.addEventListener("click",()=>{Vi({name:"content_comments",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:3}})})})(),(()=>{const e=document.querySelector(".c-social-bar div.mbrs-social-report-container");e&&e.addEventListener("click",()=>{Vi({name:"content_correction",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:3}})})})(),(()=>{const e=document.querySelector('.c-social-bar div[data-event-name="mbrs-social-save-content"]');e&&e.addEventListener("click",()=>{Vi({name:"save_content",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_engagement:3}})})})(),document.querySelectorAll("div.c-sub-menu__right a").forEach(e=>{e.addEventListener("click",e=>{e.target instanceof HTMLAnchorElement&&(e.stopPropagation(),e.preventDefault(),Vi({name:"content",type:"action",customProps:{cta_context:"sub_nav",cta_type:"card",cta_destination:e.target.href,cta_engagement:1}}),window.location.href=e.target.href)})}),(()=>{const e=(e,t)=>{let r="";t.target instanceof HTMLAnchorElement?r=t.target.href:t.target instanceof HTMLElement&&t.target.closest("a")instanceof HTMLAnchorElement&&(r=t.target.closest("a")?.href||""),r&&(t.stopPropagation(),t.preventDefault(),Vi({name:e,type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_destination:"home"===e?window.location.href:r,cta_engagement:1}}),window.location.href=r)};document.querySelectorAll(".c-toolbar a").forEach(t=>{const r=t.nextSibling;if(r instanceof HTMLParagraphElement)switch(r.innerText){case"À la Une":t.addEventListener("click",t=>{e("home",t)});break;case"Le Direct":t.addEventListener("click",t=>{e("live_feed",t)});break;case"Jeux":t.addEventListener("click",t=>{e("games",t)})}});const t=document.querySelector(".c-toolbar div.dtk-videofeed");t&&t.addEventListener("click",()=>{Vi({name:"video_feed",type:"action",customProps:{cta_context:"toolbar",cta_type:"icon",cta_destination:window.location.href,cta_engagement:1}})})})(),(()=>{const e=(e,t)=>{let r="";t.target instanceof HTMLAnchorElement?r=t.target.href:t.target instanceof HTMLElement&&t.target.closest("a")instanceof HTMLAnchorElement&&(r=t.target.closest("a")?.href||""),r&&(t.stopPropagation(),t.preventDefault(),Vi({name:e,type:"action",customProps:{cta_context:"menu",cta_destination:r,cta_engagement:1,cta_type:"button"}}),window.location.href=r)};document.querySelectorAll("a.c-menu__tiles-items").forEach(t=>{switch(t.innerText){case"Jeux":t.addEventListener("click",t=>{e("games",t)});break;case"Horoscope":t.addEventListener("click",t=>{e("horoscope",t)})}})})()},so=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.HOROSCOPE="horoscope",e.HOROSCOPE_HOME="horoscopehome",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(so||{}),lo=(e=>(e.POOOL_ACCESS="poool-access",e.POOOL_ENGAGE="poool-engage",e.AUDION="audion",e.GOOGLE_SEARCH="google-search",e.DIGITEKA_VISIBLE_PLAYER="digiteka-visible-player",e.DIGITEKA_VIDEO_FEED="digiteka-video-feed",e.IDALGO="idalgo",e.NONLI="nonli",e.TABOOLA="taboola-sdk",e.MEDIEGO="mediego",e))(lo||{});var co=()=>{(()=>{const e=document.getElementById("dialog-menu");e&&"mobile"===window.layout&&e.addEventListener("show",()=>{Ui({name:"menu",chapter1:"menu",chapter2:""})})})(),(()=>{const e=document.getElementById("dialog-comment");if(e&&"mobile"===window.layout){const{datalayerInfo:t={}}=window;e.addEventListener("show",()=>{Ui({name:`${t?.contentId}_${t?.contentTitle}`,chapter1:"commentaires"})})}})(),(()=>{if(window.datalayerInfo?.pageName!==so.STORY||!window.history)return;const e=[],t=new IntersectionObserver(t=>{t.forEach(t=>{if(!t.isIntersecting)return;const r=t.target.getAttribute("id");r&&t.intersectionRatio>=0&&(e.includes(r)||(e.push(r),Ui({name:`${window.PianoPageInfo?.name}-${e.length}`})),window.history.pushState({},"",`#${r}`))})},{rootMargin:"-70px 0px -25% 0px"});document.querySelectorAll(".u-story-container").forEach(e=>{t.observe(e)})})()};const uo=e=>{const t=document.createElement("script");if(t.type="text/javascript","async"===e.load?t.async=!0:"defer"===e.load&&(t.defer=!0),"src"in e&&e.src){const r=eval;t.src=e.src?.replace(/%(.*?)%/,(e,t)=>r(t))}e.name&&(performance.mark(`20mn:${e.name}:Start`),t.onerror=r=>{performance.mark(`20mn:${e.name}:Error`),console.error(`Script failed to load: ${e.name}${t.src?` (${t.src})`:""}`,r)}),(e.name||e.onLoad)&&(t.onload=()=>{e.name&&performance.mark(`20mn:${e.name}:End`),e.onLoad&&e.onLoad()}),"text"in e&&e.text&&(t.innerHTML=e.text),e.id&&(t.id=e.id),e.dataAttributes&&Object.entries(e.dataAttributes).forEach(([e,r])=>{var n;t.setAttribute(`data-${n=e,n.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}`,r)}),"head"===e.target&&document.head?document.head.appendChild(t):document.body?document.body.appendChild(t):(window.bodyScripts=window.bodyScripts||[],window.bodyScripts.push(t))},po=(e,t)=>{const r=(r,n)=>{if(n&&window.__tcfapi&&("tcloaded"===r.eventStatus||"useractioncomplete"===r.eventStatus))try{t(),window.__tcfapi("removeEventListener",2,null,r.listenerId)}catch(t){t instanceof Error&&console.error(`Failed to initialize ${e}: ${t.message}`)}};window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{window.__tcfapi("addEventListener",2,r)})},fo=(e,t)=>{const r=window.thirdPartiesConfig?.conditional?.find(t=>Fi(t.name)===e);if(!r)throw new Error(`Script with name ${e} not found`);uo({...r,...t})},ho=()=>{po("Mediego",()=>{const e=window.Didomi;e.getCurrentUserStatus().purposes.cookies?.enabled&&e.getCurrentUserStatus().purposes.select_personalized_ads?.enabled&&fo(lo.MEDIEGO)})},mo=()=>{if(/Android/i.test(navigator.userAgent)){const e=document.createElement("div");e.setAttribute("id","bandeau-app-android"),document.body.appendChild(e)}else if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){const e=document.createElement("div");e.setAttribute("id","bandeau-app-ios"),document.body.appendChild(e)}},go=()=>{po("Poool",()=>{const e=window.Didomi;e.getCurrentUserStatus().purposes.select_personalized_ads?.enabled||"article"!==window.datalayerInfo?.pageName||["production","publicommunique","magazine","guide-achat"].includes(window.datalayerInfo?.subType||"")||(e=>{try{fo(lo.POOOL_ACCESS)}catch(e){e instanceof Error&&console.error(e.message)}const t=document.querySelector('[src="https://static.20mn.fr/apps/poool/access.min.js"]');t?.addEventListener("load",()=>{const t=document.querySelector(".c-content"),r=document.createElement("div");r.setAttribute("id","paywall"),t?.parentNode?.insertBefore(r,t.nextSibling);const n=window.Access.init("C7B0O-ENPDW-DIJOO-VJO1M").config("locale","fr",!0).config({cookies_enabled:e.getCurrentUserStatus().purposes.select_personalized_ads?.enabled,debug:!0,context:"cookie-wall",default_widget:"gift",app_name:"Poool"}).config("ati_auto_tracking_enabled",!0).config("ati_tracking_method","events").config("auto_tracking_spec_v2",!0);n.on("consent",()=>{let e=new Date;const t=e.getTimezoneOffset();e=new Date(e.getTime()-60*t*1e3),localStorage.setItem("consent_validity_date",e.toISOString().split("T")[0]),window.Didomi.setUserAgreeToAll()});let i=!1;const o=document.querySelector("#cookie-banner");window.didomiEventListeners.push({event:"notice.hidden",listener(){window.didomiOnReady.push(e=>{i||(i=!0,n.config("cookies_enabled",e.getCurrentUserStatus().vendors["c:poool-VyhCit7N"]?.enabled),o&&o.setAttribute("style","position: fixed; z-index: 2; left: 0; right: 0; bottom: 0;"),n.createPaywall({target:"#cookie-banner",pageType:"premium"}))})}}),window.didomiOnReady.push(e=>{const t=e.getCurrentUserStatus().vendors["c:poool-VyhCit7N"]?.enabled;t&&(n.config("cookies_enabled",!0),o&&o.setAttribute("style","position: fixed; z-index: 3; left: 0; right: 0; bottom: 0;"),n.createPaywall({target:"#cookie-banner",pageType:"premium"}))}),o&&o.setAttribute("style","position: fixed; z-index: 3; left: 0; right: 0; bottom: 0;"),n.createPaywall({target:"#cookie-banner",pageType:"premium"})})})(e),(()=>{try{fo(lo.POOOL_ENGAGE)}catch(e){e instanceof Error&&console.error(e.message)}const e=_i("20mnUserInfo");mo();const t=document.querySelector('[src="https://assets.poool.fr/engage.min.js"]'),r=JSON.parse(decodeURIComponent(e?.replace(/'/g,'"')||"")).newsletters_registration??[];t?.addEventListener("load",()=>{const t=window.Engage.noConflict();window.Engage=t||window.Engage,window.Engage.init("C7B0O-ENPDW-DIJOO-VJO1M").autoCreate({filters:["{}"!==e?"connected":"disconnected",...r]})})})()})},yo=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>window.__tcfapi("addEventListener",2,(e=>(t,r)=>{if(r&&("tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus)&&e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&e.getCurrentUserStatus().vendors["20minutes-bfbzKmzq"]?.enabled){const e=document.querySelector("#game-help-button");e&&e.addEventListener("click",()=>{try{window.$screeb("survey.start","9beafda1-5240-40eb-975f-fa2be61d1a38",{distribution_id:"1f117b33-3bc3-4136-baa6-f0ac2be83ef0"})}catch(e){console.error("Error while starting survey",e)}})}})(e)))},vo=()=>{document.querySelectorAll(".taboola").length>0&&po("Taboola",()=>{window._taboola=window._taboola||[],"article"===window.datalayerInfo?.pageName?window._taboola.push({article:"auto"}):window._taboola.push({other:"auto"}),fo(lo.TABOOLA,{dataAttributes:{darkMode:"dark"===document.documentElement.getAttribute("data-theme")?.toString()?"true":"false"}}),document.querySelectorAll(".taboola").forEach(e=>{const t=e.getAttribute("data-mode"),r=e.getAttribute("id"),n=e.getAttribute("data-placement"),i=e.getAttribute("data-target-type");t&&r&&n&&i?window._taboola.push({mode:t,container:r,placement:n,target_type:i}):console.log("Issue with taboola placement")}),window._taboola.push({flush:!0})})},bo=(e=document)=>e.querySelectorAll('iframe[src*="www.ultimedia.com"], iframe[data-src*="www.ultimedia.com"]'),wo=()=>bo().length+document.querySelectorAll('[src*="www.youtube.com"], [data-src*="www.youtube.com"]').length+document.querySelectorAll('[src*="www.dailymotion.com"], [data-src*="www.dailymotion.com"]').length+document.querySelectorAll('[src*="www.brut.media"], [data-src*="www.brut.media"]').length,_o=()=>{const e=[];return wo()>0&&e.push("video"),(()=>{let e;switch(window.datalayerInfo?.pageName){case so.ARTICLE:e=document.querySelectorAll(".c-content");break;case so.LIVE:e=document.querySelectorAll(".js-post")}return!!e&&Array.from(e).some(e=>e.querySelectorAll("img").length>0)})()&&e.push("photo"),document.querySelectorAll('.pi-player, a[href*="https://play.acast.com/"], iframe[src*="https://embed.acast.com/"], iframe[data-src*="https://embed.acast.com/"], iframe[src*="https://podcasts.20minutes.fr/"], iframe[data-src*="https://podcasts.20minutes.fr/"]').length>0&&e.push("podcast"),e},xo=()=>_i("20mnUserDataLayer")?JSON.parse(decodeURIComponent(_i("20mnUserDataLayer"))):null,So=async()=>{const e=xo();return e?.i?(async e=>{const t=(new TextEncoder).encode(e),r=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(r)).map(e=>e.toString(16).padStart(2,"0")).join("")})(String(e.i)):""},Eo=async()=>{const e=xo();if(!e?.d)return"";const t=e.d;if(!t||"string"!=typeof t)return"";let r=t;t.length>6&&t.startsWith("000")&&t.endsWith("000")&&(r=t.slice(3,-3));const n=parseInt(r,10);return Number.isNaN(n)?"":n>=18&&n<=24?"1":n>=25&&n<=34?"2":n>=35&&n<=49?"3":n>=50&&n<=64?"4":n>=65?"5":""},ko=async()=>{const e=xo(),t=e?.g;if(!t)return"";switch(Number(t)){case 1:return"B";case 2:return"A";default:return""}},Co=async()=>{const e=xo(),t=e?.l;if(!t||"string"!=typeof t)return"";if(t.length>4&&t.startsWith("00")&&t.endsWith("00")){return t.slice(2,-2)}return t},Ao=()=>{let e=0;switch(window.datalayerInfo?.pageName){case so.ARTICLE:t=".c-content",e=document.querySelectorAll(`${t} > p`).length;break;case so.LIVE:e=window.datalayerInfo?.livePosts??0}var t;return e.toString()},To=()=>{return window.datalayerInfo?.pageName===so.ARTICLE?(e=".c-content",[...document.querySelectorAll(`${e} > p`)].reduce((e,t)=>e+t.innerHTML.length,0)).toString():"0";var e},Lo=()=>{const e=window.datalayerInfo;return e?e.pageName&&[so.GAMEHOME,so.GAME_APP,so.GAME].includes(e.pageName)?["categorie-jeux"]:e.tagsSlug?e.tagsSlug.split("|").filter(e=>e):[]:[]},Do=()=>{const e=window.datalayerInfo;return e?e.pageName&&[so.GAMEHOME,so.GAME_APP,so.GAME].includes(e.pageName)?["services","jeux"]:e.breadcrumb?e.breadcrumb:[]:[]},No=async()=>{try{window.wamid="10069",window.typ="1",window.WfirstParty=!0,window.Wam2gamConf={token:"Gi2z6jGZBNYt",cookieless:!1,useXdevice:!0},window.WextraIDsConfs=[{name:"firstId"},{name:"utiqId"}],await(async()=>{const e=window.datalayerInfo;if(!e)return;const t={URL:e.pageUri||"",title_article:e.contentTitle||"",editor_group:"20minutes",environnement:"20minutes",keywords:`[${Lo().join(",")}]`,topics:`[${Do().join(",")}]`,publication_date:e.publicationDate?Ti(e.publicationDate):"",media_enrichment:`[${_o().join(",")}]`,blocked_article:"0",premium_article:"0",length_words:To(),nb_paragraph:Ao(),reading_time:"",sponsored:["production","publicommunique","magazine","guide-achat"].includes(window.datalayerInfo?.subType||"")?"1":"0",sponsored_by:"",editor_user_id:"",website_user_id:await So()||"",inscription_date:"",user_connected:"{}"!==_i("20mnUserInfo")?"1":"0",user_subscriber:"0",type_subscription:"[]",navigation:window.layout||"",INSEE_code:e.inseeCode||"",zipcode:"",departement_id:"",departement_label:"",city:"",id_crm:await So()||"",email_hashed:"",TRE:await ko()||"",TGE:await Eo()||"",IDP:await Co()||"",consent_366:"1"};window.Wvar=[];for(const[e,r]of Object.entries(t))window.Wvar.push(e,r)})()}catch(e){console.error("Error initializing Weborama data:",e)}},Io=async()=>{await No();try{po("Weborama",()=>{window.Didomi.getCurrentUserStatus().purposes["publicite-9qedKJMX"].enabled&&window.Didomi.getCurrentUserStatus().vendors.weborama?.enabled&&window.Didomi.getCurrentUserStatus().vendors["366sas-U9KhdfCC"]?.enabled&&["4198576","4008938"].includes(window.datalayerInfo?.contentId||"")&&uo({name:"Weborama SDK",load:"async",src:`//cstatic.weborama.fr/js/wam/customers/wamfactory_dpm.wildcard.min.js?rnd=${Date.now()}`})})}catch(e){console.error("Error initializing Weborama:",e)}};var Po=()=>{(()=>{const e=document.querySelector(".js-close-article-btn");e&&window?.location&&window?.envVariables?.pageEndpoint&&e.addEventListener("click",()=>{Vi({name:"close_content",type:"action",customProps:{cta_context:"content",cta_type:"button",cta_destination:"home",cta_engagement:1}}),window.location.assign(window.envVariables.pageEndpoint)})})()};const Oo=async({url:e,options:t})=>{const r={...t||{}},n=new Headers(r.headers);n.has("Content-Type")||n.set("Content-Type","application/json"),r.headers=n;const i=await fetch(e,r).then(e=>{if(e.ok)return e;throw new Error(`Fetch error: ${e.statusText}`)}).then(e=>n.get("Content-Type")?.toLowerCase()?.includes("image/svg+xml")?e.text():e.json());return"object"==typeof i&&null!==i&&"data"in i?i.data:i};var qo=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e.HOROSCOPE="horoscope",e.JOBS="home_metier",e.JOB_DETAILS="fiche_metier",e.WEATHER="weather",e.TRAFFIC="traffic",e.HOROSCOPE_HOME="horoscopehome",e))(qo||{});const jo=e=>{switch(e){case"page_type":case"content_type":if(window.datalayerInfo?.pageName&&Object.values(so).includes(window.datalayerInfo?.pageName))switch(window.datalayerInfo?.pageName){case so.HOME:return"homepage";case so.TAG:return qo.HOME;case so.JOBS:return qo.JOBS;case so.JOB_DETAILS:return qo.JOB_DETAILS;default:return window.datalayerInfo?.pageName}return qo.MISC;case"content_id":return window.datalayerInfo?.contentId??window.datalayerInfo?.tagId??window.datalayerInfo?.jobId??void 0;case"tags":if(window.datalayerInfo?.elections&&(window.datalayerInfo?.pageName===so.ELECTIONS||window.datalayerInfo?.pageName===so.ELECTIONSHOME)){const{national:e,region:t,department:r,town:n}=window.datalayerInfo.elections||{};return[e?"national":void 0,t,r,n].filter(Boolean).join(",")}return window.datalayerInfo?.tagsSlug?window.datalayerInfo.tagsSlug.replace(/\|/g,","):Fi(window.datalayerInfo?.tagName??"","_")||void 0;case"category":return!window.datalayerInfo?.elections||window.datalayerInfo?.pageName!==so.ELECTIONS&&window.datalayerInfo?.pageName!==so.ELECTIONSHOME?window.datalayerInfo?.breadcrumb?.[0]?"Divertissement"===window.datalayerInfo?.breadcrumb[0]?"arts-stars":Fi(window.datalayerInfo?.breadcrumb[0]):window.datalayerInfo?.pageName===so.HOROSCOPE||window.datalayerInfo?.pageName===so.HOROSCOPE_HOME?Fi(window.datalayerInfo?.pageName):window.datalayerInfo?.sectionLabel?Fi(window.datalayerInfo.sectionLabel):void 0:"elections";case"subcategory":if(window.datalayerInfo?.elections&&(window.datalayerInfo?.pageName===so.ELECTIONS||window.datalayerInfo?.pageName===so.ELECTIONSHOME))return"resultats";if(window.datalayerInfo?.breadcrumb&&window.datalayerInfo?.breadcrumb.length>1){const e=Fi(window.datalayerInfo.breadcrumb[window.datalayerInfo.breadcrumb.length-(window.datalayerInfo?.pageName===so.TAG?2:1)]);return e===Fi(window.datalayerInfo?.breadcrumb[0])?Fi(window.datalayerInfo?.tagName??"")||void 0:e||void 0}return;case"content_slug":return window.datalayerInfo?.contentTitle?Fi(window.datalayerInfo.contentTitle):void 0;case"brand_safety":return window.datalayerInfo?.sentiment;case"has_video":return void 0!==window.partnerFeatures?.enableDisplayOnHeaderAd?window.partnerFeatures.enableDisplayOnHeaderAd.toString():void 0;case"device":return window.layout??void 0;default:return}},Mo=()=>`category=${jo("category")}&sub_category=${jo("subcategory")}&tags=${jo("tags")}&content_id=${jo("content_id")}&brand_safety=${jo("brand_safety")}&page_type=${jo("page_type")}&pos=instream`;var Ro=()=>{(()=>{const e=bo(),t=window.datalayerInfo||{};0!==Object.keys(t).length&&0!==e.length&&e.forEach(e=>{const t=e.getAttribute("data-src");if(!t)return;const{origin:r,pathname:n,searchParams:i}=new URL(t),o=`${r}${n}`,a=Mo();i.append("tagparam",a),e.setAttribute("data-src",`${o}?${i.toString()}`)})})(),window.layout===Xr.MOBILE&&(()=>{const e=bo();e&&e.forEach(e=>{const t=e.getAttribute("data-src");if(!t)return;const{origin:r,pathname:n,search:i}=new URL(t),o=`${r}${n}`.replace(/\/chromeless\/1$/,"").replace(/\/$/,"");e.setAttribute("data-src",`${o}/chromeless/1${i}`)})})(),(()=>{if(window.layout===Xr.DESKTOP&&window.datalayerInfo?.pageName!==so.TV_HOME)return;try{fo(lo.DIGITEKA_VIDEO_FEED)}catch(e){e instanceof Error&&console.error(e.message)}const e=Mo(),t=[`MDTK_videofeed_custparams="${e}";`,`MDTK_videofeed_targetings="${e}";`,'MDTK_videofeed = "01100132";',document.querySelectorAll('div[class*="c-content"] iframe[data-src*="www.ultimedia.com"], div[class*="c-content"] iframe[src*="www.ultimedia.com"]').length>0&&window.layout===Xr.DESKTOP?"CARROUSEL_videofeed=true;":"",'MDTK_videofeed_adunit_path="/31755961/20minutes_webmobile/display_mobile_vertical";','MDTK_videofeed_adunit_path_interstitial="/31755961/20minutes_webmobile/intrastitiel_dtk";'];uo({text:t.join("")})})(),(()=>{const e=bo();0!==e.length&&e.forEach(e=>{const t=e.getAttribute("data-src");t&&(e.setAttribute("src",t),e.removeAttribute("data-src"))})})()};const Fo=({src:e,timeout:t,loadingText:r,theme:n,...i})=>Xt.jsx(Ur,{as:"section","data-theme":n||"light","data-idalgo-loader-src":e,"data-idalgo-timeout":t||"5000","data-idalgo-loader-loading-text":r||"Widget en cours de chargement…",...i}),Bo=({articles:e,linksSize:t,seeMoreButton:r,...n})=>0===e.length?null:Xt.jsxs(Xt.Fragment,{children:[Xt.jsx(Gr,{colsNumber:{xs:1,md:3},...n,as:"ul",gapY:"xxl-2",gapX:"l",px:{xs:"m",md:"0"},children:e.map(e=>Xt.jsx(Wr,{href:e.url,color:"black",size:t||"xs",children:Xt.jsx("li",{children:e.title})},e.title))}),r&&Xt.jsx($r,{justifyContent:"center",px:{xs:"m",md:"0"},mt:"l",children:Xt.jsx(cr,{variant:"secondary",...r})})]});var zo,Ho;var Vo,Uo=(Ho||(Ho=1,zo=function(e,t,r,n,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}),zo),$o=Wt(Uo),Ko={},Go={};function Wo(){if(Vo)return Go;Vo=1;var t=e;function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,i=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,o={},a={};function s(e){return!!n.call(a,e)||!n.call(o,e)&&(i.test(e)?a[e]=!0:(o[e]=!0,!1))}function l(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){c[e]=new l(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];c[t]=new l(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){c[e]=new l(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){c[e]=new l(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){c[e]=new l(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){c[e]=new l(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){c[e]=new l(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){c[e]=new l(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){c[e]=new l(e,5,!1,e.toLowerCase(),null,!1,!1)});var u=/[\-:]([a-z])/g;function d(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){c[e]=new l(e,1,!1,e.toLowerCase(),null,!1,!1)}),c.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){c[e]=new l(e,1,!1,e.toLowerCase(),null,!0,!0)});var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},f=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(e){f.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),p[t]=p[e]})});var h=/["'&<>]/;function m(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=h.exec(e);if(t){var r,n="",i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==r&&(n+=e.substring(i,r)),i=r+1,n+=t}e=i!==r?n+e.substring(i,r):n}return e}var g=/([A-Z])/g,y=/^ms-/,v=Array.isArray;function b(e,t){return{insertionMode:e,selectedValue:t}}var w=new Map;function _(e,t,i){if("object"!=typeof i)throw Error(r(62));for(var o in t=!0,i)if(n.call(i,o)){var a=i[o];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===o.indexOf("--")){var s=m(o);a=m((""+a).trim())}else{s=o;var l=w.get(s);void 0!==l||(l=m(s.replace(g,"-$1").toLowerCase().replace(y,"-ms-")),w.set(s,l)),s=l,a="number"==typeof a?0===a||n.call(p,o)?""+a:a+"px":m((""+a).trim())}t?(t=!1,e.push(' style="',s,":",a)):e.push(";",s,":",a)}}t||e.push('"')}function x(e,t,r,n){switch(r){case"style":return void _(e,t,n);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||"o"!==r[0]&&"O"!==r[0]||"n"!==r[1]&&"N"!==r[1])if(null!==(t=c.hasOwnProperty(r)?c[r]:null)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:!0===n?e.push(" ",r,'=""'):!1!==n&&e.push(" ",r,'="',m(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',m(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',m(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',m(n),'"')}}else if(s(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if("data-"!==(t=r.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",r,'="',m(n),'"')}}function S(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!=typeof t||!("__html"in t))throw Error(r(61));null!=(t=t.__html)&&e.push(""+t)}}function E(e,t,r,i){e.push(A(r));var o,a=r=null;for(o in t)if(n.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":r=s;break;case"dangerouslySetInnerHTML":a=s;break;default:x(e,i,o,s)}}return e.push(">"),S(e,a,r),"string"==typeof r?(e.push(m(r)),null):r}var k=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,C=new Map;function A(e){var t=C.get(e);if(void 0===t){if(!k.test(e))throw Error(r(65,e));t="<"+e,C.set(e,t)}return t}function T(e,i,o,a,l){switch(i){case"select":e.push(A("select"));var c=null,u=null;for(h in o)if(n.call(o,h)){var d=o[h];if(null!=d)switch(h){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:x(e,a,h,d)}}return e.push(">"),S(e,u,c),c;case"option":u=l.selectedValue,e.push(A("option"));var p=d=null,f=null,h=null;for(c in o)if(n.call(o,c)){var g=o[c];if(null!=g)switch(c){case"children":d=g;break;case"selected":f=g;break;case"dangerouslySetInnerHTML":h=g;break;case"value":p=g;default:x(e,a,c,g)}}if(null!=u)if(o=null!==p?""+p:function(e){var r="";return t.Children.forEach(e,function(e){null!=e&&(r+=e)}),r}(d),v(u)){for(a=0;a<u.length;a++)if(""+u[a]===o){e.push(' selected=""');break}}else""+u===o&&e.push(' selected=""');else f&&e.push(' selected=""');return e.push(">"),S(e,h,d),d;case"textarea":for(d in e.push(A("textarea")),h=u=c=null,o)if(n.call(o,d)&&null!=(p=o[d]))switch(d){case"children":h=p;break;case"value":c=p;break;case"defaultValue":u=p;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:x(e,a,d,p)}if(null===c&&null!==u&&(c=u),e.push(">"),null!=h){if(null!=c)throw Error(r(92));if(v(h)&&1<h.length)throw Error(r(93));c=""+h}return"string"==typeof c&&"\n"===c[0]&&e.push("\n"),null!==c&&e.push(m(""+c)),null;case"input":for(u in e.push(A("input")),p=h=d=c=null,o)if(n.call(o,u)&&null!=(f=o[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":p=f;break;case"defaultValue":d=f;break;case"checked":h=f;break;case"value":c=f;break;default:x(e,a,u,f)}return null!==h?x(e,a,"checked",h):null!==p&&x(e,a,"checked",p),null!==c?x(e,a,"value",c):null!==d&&x(e,a,"value",d),e.push("/>"),null;case"menuitem":for(var y in e.push(A("menuitem")),o)if(n.call(o,y)&&null!=(c=o[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:x(e,a,y,c)}return e.push(">"),null;case"title":for(g in e.push(A("title")),c=null,o)if(n.call(o,g)&&null!=(u=o[g]))switch(g){case"children":c=u;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:x(e,a,g,u)}return e.push(">"),c;case"listing":case"pre":for(p in e.push(A(i)),u=c=null,o)if(n.call(o,p)&&null!=(d=o[p]))switch(p){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;default:x(e,a,p,d)}if(e.push(">"),null!=u){if(null!=c)throw Error(r(60));if("object"!=typeof u||!("__html"in u))throw Error(r(61));null!=(o=u.__html)&&("string"==typeof o&&0<o.length&&"\n"===o[0]?e.push("\n",o):e.push(""+o))}return"string"==typeof c&&"\n"===c[0]&&e.push("\n"),c;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var b in e.push(A(i)),o)if(n.call(o,b)&&null!=(c=o[b]))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,i));default:x(e,a,b,c)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return E(e,o,i,a);case"html":return 0===l.insertionMode&&e.push("<!DOCTYPE html>"),E(e,o,i,a);default:if(-1===i.indexOf("-")&&"string"!=typeof o.is)return E(e,o,i,a);for(f in e.push(A(i)),u=c=null,o)if(n.call(o,f)&&null!=(d=o[f]))switch(f){case"children":c=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":_(e,a,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(f)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",f,'="',m(d),'"')}return e.push(">"),S(e,u,c),c}}function L(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(r(395));return e.push(n),e.push('"></template>')}var D=/[<\u2028\u2029]/g;function N(e){return JSON.stringify(e).replace(D,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function I(e,t,r,n){return r.generateStaticMarkup?(e.push(m(t)),!1):(""===t?e=n:(n&&e.push("\x3c!-- --\x3e"),e.push(m(t)),e=!0),e)}var P=Object.assign,O=Symbol.for("react.element"),q=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),B=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),K=Symbol.for("react.scope"),G=Symbol.for("react.debug_trace_mode"),W=Symbol.for("react.legacy_hidden"),Q=Symbol.for("react.default_value"),Z=Symbol.iterator;function J(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case j:return"Fragment";case q:return"Portal";case R:return"Profiler";case M:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B:return(e.displayName||"Context")+".Consumer";case F:return(e._context.displayName||"Context")+".Provider";case z:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:J(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return J(e(t))}catch(e){}}return null}var Y={};function X(e,t){if(!(e=e.contextTypes))return Y;var r,n={};for(r in e)n[r]=t[r];return n}var ee=null;function te(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));te(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ne(e){var t=e.parent;null!==t&&ne(t),e.context._currentValue2=e.value}function ie(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?te(e,t):ie(e,t)}function oe(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?te(e,n):oe(e,n),t.context._currentValue2=t.value}function ae(e){var t=ee;t!==e&&(null===t?ne(e):null===e?re(t):t.depth===e.depth?te(t,e):t.depth>e.depth?ie(t,e):oe(t,e),ee=e)}var se={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function le(e,t,r,n){var i=void 0!==e.state?e.state:null;e.updater=se,e.props=r,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue2:n,"function"==typeof(a=t.getDerivedStateFromProps)&&(i=null==(a=a(r,i))?i:P({},i,a),e.state=i),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&se.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,o,r,n):s)&&(i?(i=!1,o=P({},o,s)):P(o,s))}e.state=o}else o.queue=null}var ce={id:1,overflow:""};function ue(e,t,r){var n=e.id;e=e.overflow;var i=32-de(n)-1;n&=~(1<<i),r+=1;var o=32-de(t)+i;if(30<o){var a=i-i%5;return o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,{id:1<<32-de(t)+i|r<<i|n,overflow:o+e}}return{id:1<<o|r<<i|n,overflow:e}}var de=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(pe(e)/fe|0)|0},pe=Math.log,fe=Math.LN2;var he="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},me=null,ge=null,ye=null,ve=null,be=!1,we=!1,_e=0,xe=null,Se=0;function Ee(){if(null===me)throw Error(r(321));return me}function ke(){if(0<Se)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Ce(){return null===ve?null===ye?(be=!1,ye=ve=ke()):(be=!0,ve=ye):null===ve.next?(be=!1,ve=ve.next=ke()):(be=!0,ve=ve.next),ve}function Ae(){ge=me=null,we=!1,ye=null,Se=0,ve=xe=null}function Te(e,t){return"function"==typeof t?t(e):t}function Le(e,t,r){if(me=Ee(),ve=Ce(),be){var n=ve.queue;if(t=n.dispatch,null!==xe&&void 0!==(r=xe.get(n))){xe.delete(n),n=ve.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);return ve.memoizedState=n,[n,t]}return[ve.memoizedState,t]}return e=e===Te?"function"==typeof t?t():t:void 0!==r?r(t):t,ve.memoizedState=e,e=(e=ve.queue={last:null,dispatch:null}).dispatch=Ne.bind(null,me,e),[ve.memoizedState,e]}function De(e,t){if(me=Ee(),t=void 0===t?null:t,null!==(ve=Ce())){var r=ve.memoizedState;if(null!==r&&null!==t){var n=r[1];e:if(null===n)n=!1;else{for(var i=0;i<n.length&&i<t.length;i++)if(!he(t[i],n[i])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),ve.memoizedState=[e,t],e}function Ne(e,t,n){if(25<=Se)throw Error(r(301));if(e===me)if(we=!0,e={action:n,next:null},null===xe&&(xe=new Map),void 0===(n=xe.get(t)))xe.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ie(){throw Error(r(394))}function Pe(){}var Oe={readContext:function(e){return e._currentValue2},useContext:function(e){return Ee(),e._currentValue2},useMemo:De,useReducer:Le,useRef:function(e){me=Ee();var t=(ve=Ce()).memoizedState;return null===t?(e={current:e},ve.memoizedState=e):t},useState:function(e){return Le(Te,e)},useInsertionEffect:Pe,useLayoutEffect:function(){},useCallback:function(e,t){return De(function(){return e},t)},useImperativeHandle:Pe,useEffect:Pe,useDebugValue:Pe,useDeferredValue:function(e){return Ee(),e},useTransition:function(){return Ee(),[!1,Ie]},useId:function(){var e=ge.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-de(e)-1)).toString(32)+t;var n=qe;if(null===n)throw Error(r(404));return t=_e++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ee(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},qe=null,je=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Me(e){return console.error(e),null}function Re(){}function Fe(e,t,r,n,i,o,a,s){e.allPendingTasks++,null===r?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&et(e)},blockedBoundary:r,blockedSegment:n,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function Be(e,t,r,n,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:i,textEmbedded:o}}function ze(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function He(e,t){var r=e.onShellError;r(t),(r=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ve(e,t,r,n,i){for(me={},ge=t,_e=0,e=r(n,i);we;)we=!1,_e=0,Se+=1,ve=null,e=r(n,i);return Ae(),e}function Ue(e,t,n,i){var o=n.render(),a=i.childContextTypes;if(null!=a){var s=t.legacyContext;if("function"!=typeof n.getChildContext)i=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(r(108,J(i)||"Unknown",l));i=P({},s,n)}t.legacyContext=i,Ge(e,t,o),t.legacyContext=s}else Ge(e,t,o)}function $e(e,t){if(e&&e.defaultProps){for(var r in t=P({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function Ke(e,t,n,i,o){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){o=X(n,t.legacyContext);var a=n.contextType;le(a=new n(i,"object"==typeof a&&null!==a?a._currentValue2:o),n,i,o),Ue(e,t,a,n)}else{o=Ve(e,t,n,i,a=X(n,t.legacyContext));var s=0!==_e;if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof)le(o,n,i,a),Ue(e,t,o,n);else if(s){i=t.treeContext,t.treeContext=ue(i,1,0);try{Ge(e,t,o)}finally{t.treeContext=i}}else Ge(e,t,o)}else{if("string"!=typeof n){switch(n){case W:case G:case M:case R:case j:case V:return void Ge(e,t,i.children);case K:throw Error(r(343));case H:e:{n=t.blockedBoundary,o=t.blockedSegment,a=i.fallback,i=i.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=Be(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var u=Be(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Qe(e,t,i),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,Ye(l,u),0===l.pendingTasks)break e}catch(t){u.status=4,l.forceClientRender=!0,l.errorDigest=ze(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=Fe(e,a,n,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case z:if(i=Ve(e,t,n.render,i,o),0!==_e){n=t.treeContext,t.treeContext=ue(n,1,0);try{Ge(e,t,i)}finally{t.treeContext=n}}else Ge(e,t,i);return;case U:return void Ke(e,t,n=n.type,i=$e(n,i),o);case F:if(o=i.children,n=n._context,i=i.value,a=n._currentValue2,n._currentValue2=i,ee=i={parent:s=ee,depth:null===s?0:s.depth+1,context:n,parentValue:a,value:i},t.context=i,Ge(e,t,o),null===(e=ee))throw Error(r(403));return i=e.parentValue,e.context._currentValue2=i===Q?e.context._defaultValue:i,e=ee=e.parent,void(t.context=e);case B:return void Ge(e,t,i=(i=i.children)(n._currentValue2));case $:return void Ke(e,t,n=(o=n._init)(n._payload),i=$e(n,i),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(a=T((o=t.blockedSegment).chunks,n,i,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=function(e,t,r){switch(t){case"select":return b(1,null!=r.value?r.value:r.defaultValue);case"svg":return b(2,null);case"math":return b(3,null);case"foreignObject":return b(1,null);case"table":return b(4,null);case"thead":case"tbody":case"tfoot":return b(5,null);case"colgroup":return b(7,null);case"tr":return b(6,null)}return 4<=e.insertionMode||0===e.insertionMode?b(1,null):e}(s,n,i),Qe(e,t,a),o.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",n,">")}o.lastPushedText=!1}}function Ge(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case O:return void Ke(e,t,n.type,n.props,n.ref);case q:throw Error(r(257));case $:var i=n._init;return void Ge(e,t,n=i(n._payload))}if(v(n))return void We(e,t,n);if(null===n||"object"!=typeof n?i=null:i="function"==typeof(i=Z&&n[Z]||n["@@iterator"])?i:null,i&&(i=i.call(n))){if(!(n=i.next()).done){var o=[];do{o.push(n.value),n=i.next()}while(!n.done);We(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(i=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,n,e.responseState,i.lastPushedText):"number"==typeof n&&((i=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,""+n,e.responseState,i.lastPushedText))}function We(e,t,r){for(var n=r.length,i=0;i<n;i++){var o=t.treeContext;t.treeContext=ue(o,n,i);try{Qe(e,t,r[i])}finally{t.treeContext=o}}}function Qe(e,t,r){var n=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return Ge(e,t,r)}catch(l){if(Ae(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,ae(o),l;r=l;var a=t.blockedSegment,s=Be(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Fe(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,ae(o)}}function Ze(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Xe(this,t,e)}function Je(e,t,n){var i=e.blockedBoundary;e.blockedSegment.status=3,null===i?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,e=void 0===n?Error(r(432)):n,i.errorDigest=t.onError(e),i.parentFlushed&&t.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(e){return Je(e,t,n)}),i.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(i=t.onAllReady)())}function Ye(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,1===r.status&&Ye(e,r)}else e.completedSegments.push(t)}function Xe(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Re,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Ye(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ze,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Ye(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function et(e){if(2!==e.status){var t=ee,r=je.current;je.current=Oe;var n=qe;qe=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){ae(a.context);try{Ge(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),a.abortSet.delete(a),l.status=1,Xe(s,a.blockedBoundary,l)}catch(e){if(Ae(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=a.ping;e.then(c,c)}else{a.abortSet.delete(a),l.status=4;var u=a.blockedBoundary,d=e,p=ze(s,d);if(null===u?He(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&at(e,e.destination)}catch(t){ze(e,t),He(e,t)}finally{qe=n,je.current=r,r===Oe&&ae(t)}}}function tt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var i=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var o=!0;i=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(o=n[s];a<o.index;a++)t.push(i[a]);o=rt(e,t,o)}for(;a<i.length-1;a++)t.push(i[a]);return a<i.length&&(o=t.push(i[a])),o;default:throw Error(r(390))}}function rt(e,t,n){var i=n.boundary;if(null===i)return tt(e,t,n);if(i.parentFlushed=!0,i.forceClientRender)return e.responseState.generateStaticMarkup||(i=i.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),i&&(t.push(' data-dgst="'),i=m(i),t.push(i),t.push('"')),t.push("></template>")),tt(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<i.pendingTasks){i.rootSegmentID=e.nextSegmentId++,0<i.completedSegments.length&&e.partialBoundaries.push(i);var o=e.responseState,a=o.nextSuspenseID++;return o=o.boundaryPrefix+a.toString(16),i=i.id=o,L(t,e.responseState,i),tt(e,t,n),t.push("\x3c!--/$--\x3e")}if(i.byteSize>e.progressiveChunkSize)return i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),L(t,e.responseState,i.id),tt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=i.completedSegments).length)throw Error(r(391));return rt(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function nt(e,t,n){return function(e,t,n,i){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(r(397))}}(t,n.formatContext)}function it(e,t,n){for(var i=n.completedSegments,o=0;o<i.length;o++)ot(e,t,n,i[o]);if(i.length=0,e=e.responseState,i=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===i)throw Error(r(395));return n=n.toString(16),t.push(i),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function ot(e,t,n,i){if(2===i.status)return!0;var o=i.id;if(-1===o){if(-1===(i.id=n.rootSegmentID))throw Error(r(392));return nt(e,t,i)}return nt(e,t,i),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function at(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var i=e.responseState.bootstrapChunks;for(n=0;n<i.length-1;n++)t.push(i[n]);n<i.length&&t.push(i[n])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var s=a[o];i=t;var l=e.responseState,c=s.id,u=s.errorDigest,d=s.errorMessage,p=s.errorComponentStack;if(i.push(l.startInlineScript),l.sentClientRenderFunction?i.push('$RX("'):(l.sentClientRenderFunction=!0,i.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(r(395));if(i.push(c),i.push('"'),u||d||p){i.push(",");var f=N(u||"");i.push(f)}if(d||p){i.push(",");var h=N(d||"");i.push(h)}if(p){i.push(",");var m=N(p);i.push(m)}if(!i.push(")<\/script>"))return e.destination=null,o++,void a.splice(0,o)}a.splice(0,o);var g=e.completedBoundaries;for(o=0;o<g.length;o++)if(!it(e,t,g[o]))return e.destination=null,o++,void g.splice(0,o);g.splice(0,o);var y=e.partialBoundaries;for(o=0;o<y.length;o++){var v=y[o];e:{a=e,s=t;var b=v.completedSegments;for(l=0;l<b.length;l++)if(!ot(a,s,v,b[l])){l++,b.splice(0,l);var w=!1;break e}b.splice(0,l),w=!0}if(!w)return e.destination=null,o++,void y.splice(0,o)}y.splice(0,o);var _=e.completedBoundaries;for(o=0;o<_.length;o++)if(!it(e,t,_[o]))return e.destination=null,o++,void _.splice(0,o);_.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function st(e,t){try{var r=e.abortableTasks;r.forEach(function(r){return Je(r,e,t)}),r.clear(),null!==e.destination&&at(e,e.destination)}catch(t){ze(e,t),He(e,t)}}function lt(){}function ct(e,t,n,i){var o=!1,a=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){o=!0,a=e}},c=!1;if(e=function(e,t,r,n,i,o,a){var s=[],l=new Set;return(r=Be(t={destination:null,responseState:t,progressiveChunkSize:void 0===n?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:l,pingedTasks:s,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?Me:i,onAllReady:Re,onShellReady:void 0===a?Re:a,onShellError:Re,onFatalError:Re},0,null,r,!1,!1)).parentFlushed=!0,e=Fe(t,e,null,r,l,Y,null,ce),s.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,lt,0,function(){c=!0}),et(e),st(e,i),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{at(e,l)}catch(t){ze(e,t),He(e,t)}}if(o)throw a;if(!c)throw Error(r(426));return s}return Go.renderToNodeStream=function(){throw Error(r(207))},Go.renderToStaticMarkup=function(e,t){return ct(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Go.renderToStaticNodeStream=function(){throw Error(r(208))},Go.renderToString=function(e,t){return ct(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Go.version="18.3.1",Go}var Qo,Zo,Jo={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-dom-server.browser.production.min.js
|