PageSourceSearch

https://shop.billetreduc.com/js/global.bundle.js?_=a51b789c-def6-4178-b743-4d75323e0e8e

js billetreduc.com collected 2026-10-01 10:31:11 UTC 46,921 bytes, 93 lines download raw bytes

1function removeDiacritics(n){return n.replace(/[^\u0000-\u007E]/g,function(n){return diacriticsMap[n]||n})}function escapeHtml(n){return String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function readPhases(n){var i=n&&n.getAttribute("data-autocomplete-phases"),t;if(!i)return null;try{return t=JSON.parse(i),t&&t.length?t:null}catch(r){return null}}function nowMs(){return(new Date).getTime()}function normaliseQuery(n){return n==null?"":String(n).replace(/\s+/g," ").trim()}function suggestCacheGet(n){var t=suggestCache[n];return t?nowMs()-t.at>SUGGEST_CACHE_TTL_MS?(delete suggestCache[n],null):t:null}function suggestCachePut(n,t){if(!suggestCache[n])for(suggestCacheKeys.push(n);suggestCacheKeys.length>SUGGEST_CACHE_MAX;)delete suggestCache[suggestCacheKeys.shift()];suggestCache[n]={rows:t,at:nowMs()}}function suggestRequest(n,t){var r=suggestInFlight[n],i;return r?r:(i=$.get(t),suggestInFlight[n]=i,i.done(function(t){suggestCachePut(n,t||[])}),i.always(function(){suggestInFlight[n]===i&&delete suggestInFlight[n]}),i)}function abortSuggestRequests(n){for(var u={},i=[],r,t=0;n&&t<n.length;t++)u[n[t].key]=!0;for(r in suggestInFlight)suggestInFlight[r]&&i.push(r);for(t=0;t<i.length;t++)!u[i[t]]&&suggestInFlight[i[t]]&&suggestInFlight[i[t]].abort()}function phaseSkeleton(n){for(var r,u=[],i=n.sections||[],t=0;t<i.length;t++)for(r=0;r<(i[t].rows||0);r++)u.push({skeleton:!0,section:i[t].label});return u}function highlightQuery(n,t){var u=escapeHtml(n),e,o,i,s,f,r;if(!t||t.length<2||(e=removeDiacritics(u).toLowerCase(),o=removeDiacritics(escapeHtml(t)).toLowerCase(),o.length===0)||e.length!==u.length||(i=matchRanges(e,o),i.length===0))return u;for(s="",f=0,r=0;r<i.length;r++)s+=u.slice(f,i[r].at)+"<span class='suggestion-highlight'>"+u.slice(i[r].at,i[r].at+i[r].length)+"<\/span>",f=i[r].at+i[r].length;return s+u.slice(f)}function matchRanges(n,t){var o=n.indexOf(t),i,u,r,f,e;if(o!==-1)return[{at:o,length:t.length}];if(i=t.split(/[\s\-':,]+/).filter(function(n){return n.length>=2}),i.length===0)return[];for(u=[],r=0;r<i.length;r++){if(f=n.indexOf(i[r]),f!==-1){u.push({at:f,length:i[r].length});continue}e=closestWord(n,i[r]);e&&u.push(e)}return mergeRanges(u)}function mergeRanges(n){var t;if(n.length<=1)return n;n.sort(function(n,t){return n.at-t.at});var u=[],i=n[0].at,r=n[0].length;for(t=1;t<n.length;t++){if(n[t].at<=i+r){r=Math.max(i+r,n[t].at+n[t].length)-i;continue}u.push({at:i,length:r});i=n[t].at;r=n[t].length}return u.push({at:i,length:r}),u}function closestWord(n,t){for(var u=Math.max(1,Math.floor(t.length/4)),f=null,e=u+1,o=/[^\s\-':,]+/g,i,r;(i=o.exec(n))!==null;)r=editDistance(i[0],t,u),r<e&&(e=r,f={at:i.index,length:i[0].length});return f}function editDistance(n,t,i){var s,c,e,l;if(Math.abs(n.length-t.length)>i)return i+1;for(var h=[],f=[],o=[],u,r=0;r<=t.length;r++)f[r]=r;for(u=1;u<=n.length;u++){for(o[0]=u,s=u,r=1;r<=t.length;r++)c=n.charAt(u-1)===t.charAt(r-1)?0:1,e=Math.min(o[r-1]+1,f[r]+1,f[r-1]+c),u>1&&r>1&&n.charAt(u-1)===t.charAt(r-2)&&n.charAt(u-2)===t.charAt(r-1)&&(e=Math.min(e,h[r-2]+c)),o[r]=e,e<s&&(s=e);if(s>i)return i+1;l=h;h=f;f=o;o=l}return f[t.length]}function AutoSuggest(n,t){var r=this,f;this.elem=n;this.suggestions=t;this.inputText=null;r.highlighted=-1;r.keyboardHighlight=!1;this.div=document.getElementById("autosuggest");this.eligible=[];var e=13,o=27,s=38,h=40,u=!1;(n.setAttribute("autocomplete","off"),n.id)||(f="autosuggest"+idCounter,idCounter++,n.id=f);n.onkeydown=function(n){var t=r.getKeyCode(n);switch(t){case e:r.useSuggestion();break;case o:r.hideDiv();break;case s:r.keyboardHighlight=!0;r.highlighted>-1&&r.highlighted--;r.changeHighlight(t);break;case h:r.keyboardHighlight=!0;r.highlighted<r.eligible.length-1&&r.highlighted++;r.changeHighlight(t)}};n.addEventListener("input",function(){(r.keyboardHighlight=!1,u)||r.scheduleSuggest(this.value)});n.addEventListener("compositionstart",function(){u=!0});n.addEventListener("compositionend",function(){u=!1;r.scheduleSuggest(this.value)});this.makeandshowDiv=function(){r.createDiv();r.showDiv()};this.useSuggestion=function(n){if(this.highlighted>-1&&(n||r.keyboardHighlight)){var t=r.eligible[this.highlighted];return!t||t.skeleton?!1:(20!=t.t&&(this.elem.value=HtmlDecode(t.l)),this.hideDiv(),t.u&&(document.location.href=t.u),setTimeout("document.getElementById('"+this.elem.id+"').focus()",0),!1)}this.hideDiv();document.forms.recherche.onsubmit=function(){return!0};document.forms.recherche.submit()};this.showDiv=function(){this.div.style.display="block"};
1this.hideDiv=function(){this.div.style.display="none";this.highlighted=-1};this.changeHighlight=function(){var t=this.div.getElementsByTagName("LI"),n;for(i in t)(n=t[i],n&&n.classList)&&(this.highlighted===parseInt(i)?n.classList.add("selected"):n.classList.remove("selected"))};this.positionDiv=function(){for(var n=this.elem,t=0,i=n.offsetHeight;n.offsetParent&&"BODY"!==n.tagName.toUpperCase();)t+=n.offsetLeft,i+=n.offsetTop,n=n.offsetParent;t+=n.offsetLeft;i+=n.offsetTop;this.div.style.left=t+"px";this.div.style.top=i+"px"};this.createDiv=function(){var o=document.createElement("ul"),c=!1,h=null,n,e,t,s,u,f;for(i=0;i<r.eligible.length;i++){if(n=r.eligible[i],n.skeleton){e=document.createElement("li");n.section&&n.section!==h?(e.innerHTML="<span class='suggestion-section-header'>"+n.section+"<\/span>",e.className="has-section suggestion-skeleton",h=n.section):e.className="suggestion-skeleton";e.innerHTML+="<span class='suggestion-skeleton-row' aria-hidden='true'><\/span>";o.appendChild(e);continue}null!==n.title&&(t="<div class='suggestion-text'><b>"+highlightQuery(n.title,n.terms||r.inputText)+"<\/b>",s=n.picture,(s&&0===s.indexOf("https://")?t="<img class='suggestion-thumb' src='"+s+"' alt='' />
1"+t:n.picture&&(t="<img class='suggestion-thumb' src='https://www.billetreduc.com/zg/r45-45-0/"+s+"' alt='' />"+t),function(){var i=[n.venue,n.zipCode,n.city].filter(function(n){return n}).join(" ");i&&(t+="<span class='suggestion-address'>"+i+"<\/span>")}(),(n.discount||n.price)&&(t+="<span class='suggestion-price'>"+(n.discount?"<span class='suggestion-discount'>"+escapeHtml(n.discount)+"<\/span>":"")+(n.price?escapeHtml(n.price):"")+"<\/span>"),t+="<\/div>",null!==t)&&(u=document.createElement("li"),n.notAvaiable&&!1===c?(u.innerHTML="<span class='suggestion-section-header'>Év&egrave;nements anciennement propos&eacute;s<\/span>",u.className="has-section",c=!0):n.section&&n.section!==h&&(u.innerHTML="<span class='suggestion-section-header'>"+n.section+"<\/span>",u.className="has-section",h=n.section),f=document.createElement("a"),n.url&&(f.href=n.url),f.innerHTML=t,u.appendChild(f),10===n.type?f.className="aspect":16===n.type?f.className="asalle":17===n.type?f.className="aartiste":20===n.type&&(f.className="anext"),r.highlighted===i?u.classList.add("selected"):u.classList.remove("selected"),o.appendChild(u)))}this.div.replaceChild(o,this.div.childNodes[0]);o.onmouseover=function(n){for(var u,t=r.getEventSource(n);t.parentNode&&"LI"!==t.tagName.toUpperCase();)t=t.parentNode;u=r.div.getElementsByTagName("LI");for(i in u)if(u[i]===t){r.highlighted=parseInt(i,10);break}r.changeHighlight()};o.onclick=function(n){return r.useSuggestion(!0),r.hideDiv(),r.cancelEvent(n),!1};this.div.className="suggestion-list"};this.setEligible=function(n){r.eligible=n};this.parseData=function(n){this.setEligible(n);this.makeandshowDiv()};this.showPhases=function(n){for(var u,t=[],f=!1,e=!0,i=0;i<n.length;i++)u=r.phaseRows[n[i].key],u?(t=t.concat(u),u.length&&(f=!0)):(e=!1,t=t.concat(phaseSkeleton(n[i])));if(e&&!f){r.hideDiv();return}r.parseData(t)};this.scheduleSuggest=function(n){var t=normaliseQuery(n);if(clearTimeout(timersugg),t.length<SUGGEST_MIN_CHARS){r.inputText=n;abortSuggestRequests(null);r.hideDiv();return}t!==normaliseQuery(r.inputText)&&(r.inputText=n,timersugg=setTimeout(function(){r.getEligible()},SUGGEST_DEBOUNCE_MS))};this.getEligible=function(){var o=document.querySelector("[data-autocomplete-url]"),s=o&&o.getAttribute("data-autocomplete-url"),h,f;if(s){if(h=normaliseQuery(this.inputText),h.length<SUGGEST_MIN_CHARS){abortSuggestRequests(null);this.hideDiv();return}f=s+(s.indexOf("?")===-1?"?":"&")+"searchString="+encodeURIComponent(h);r.highlighted=-1;r.keyboardHighlight=!1;this.requestSeq=(this.requestSeq||0)+1;var t=this,a=this.requestSeq,i=readPhases(o),u=[],c=[],l=!1,e,n;if(i)for(n=0;n<i.length;n++)u.push({phase:i[n],key:i[n].key+"\n"+f,url:f+"&groups="+encodeURIComponent(i[n].key)});else u.push({phase:null,key:"\n"+f,url:f});for(abortSuggestRequests(u),t.phaseRows={},n=0;n<u.length;n++){if(e=suggestCacheGet(u[n].key),!e){c.push(u[n]);continue}if(!u[n].phase){0===e.rows.length?t.hideDiv():t.parseData(e.rows);return}t.phaseRows[u[n].phase.key]=e.rows;l=!0}i&&l&&t.showPhases(i);c.forEach(function(n){var r=function(r){if(a===t.requestSeq){if(!n.phase){0===r.length?t.hideDiv():t.parseData(r);return}t.phaseRows[n.phase.key]=r;t.showPhases(i)}};suggestRequest(n.key,n.url).done(function(n){r(n||[])}).fail(function(n,t){"abort"!==t&&r([])})})}};this.getKeyCode=function(n){return n?n.keyCode:window.event?window.event.keyCode:void 0};this.getEventSource=function(n){return n?n.target:window.event?window.event.srcElement:void 0};this.cancelEvent=function(n){n&&(n.preventDefault(),n.stopPropagation());window.event&&(window.event.returnValue=!1)}}function HtmlDecode(n){var f="",e,t,r,u,i;if(null!==n){for(e=n.length,t=0;t<e;t++)r=n.charAt(t),"&"===r&&(u=n.indexOf(";",t+1),u>0&&(i=n.substring(t+1,u),i.length>1&&"#"==i.charAt(0)&&(r="x"==i.charAt(1)||"X"==i.charAt(1)?String.fromCharCode(eval("0"+i.substring(1))):String.fromCharCode(eval(i.substring(1)))),t=u)),f+=r;return f}}function renderEventCity(n){return n.eventCardDisplayTypeId===EVENT_CARD_DISPLAY_MINIMUM_PRICE_AND_CITY&&n.cityName?`<span class="event_vertical_card_venue">${n.cityName}</span>`:""}function renderEventLink(n,t){if(n.isSoftLink)return`<a class="spectacle-soft-link" role="link" tabindex="0" data-path="${toSpectacleSoftPath(n.computedEventUrl)}">${t}</a>`;const i=`${isRedirection?"?pt=1":""}${priceFilterId!==0?(isRedirection?"&":"?")+"pfid="+priceFilterId:""}`;return`<a href="${n.computedEventUrl}${i}">${t}</a>`}function toSpectacleSoftPath(n){if(!n)return"";const t="/spectacle/",i=n.toLowerCase().indexOf(t),r=(i>=0?n.slice(i+t.length):n).split(/[?#]/)[0];return btoa(String.fromCodePoint(...(new TextEncoder).encode(r)))}function htmlDecode(n){const t=(new DOMParser).parseFromString(n,"text/html");return t.documentElement.textContent}function renderHorizontalEvent(n,t,i,r){return`
2        <div class="event_horizontal_card js-clickable-card" id="event_${n.id}">
3                <div class="event_horizontal_card_image_container">
4                    <img loading="lazy"
5                        class="event_card_image"
6                        src="${n.mainPicture?`${t}/zg/n250/${n.mainPicture.toLowerCase()}`:`${i}`}"
7                        alt="Affiche de ${n.title}" onerror="this.src='${i}';" />
8                        
9                        ${n.displayPositionNumber?`<span class="event_card_position_number">${n.positionNumber}</span>`:``}
10                </div>
11
12            <div class="event_horizontal_card_informations">
13                ${renderEventLink(n,`
14                    <p class="event_card_name" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-container="body" title="${n.title}">
15                        ${n.title}
16                    </p>`)}
17
18                ${generateInlineBadgePart(n)}
19
20                <span class="event_horizontal_card_venue">${n.venueName}</span>
21                 <div class="event_horizontal_card_description">
22                    <span class="event_horizontal_card_description_text">${htmlDecode(n.description.replace(/<[^>]*>/g," "))}</span>
23                 </div>
24
25                    <div class="event_card_rating_container">
26                        ${n?.reviewCount!==0&&n?.reviewNote!==0?`<img loading="lazy" class="event_card_rating_icon" src="${r}" alt="Icone d'applaudissement" />
27                                <p class="event_card_rating">${n?.reviewNote}/10 (${n.reviewCount} avis)</p>`:`<p class="event_card_rating">Nouveau !</p>`}
28                    </div>
29                    ${n?.reduction!=null&&n.reduction!==0||n?.price?`<div class="event_card_price_container">
30                            ${n?.reduction!=null&&n.reduction!==0?`<p class="event_card_discount">
31                                   -${n.reduction}%
32                               </p>`:``}
33
34                            ${n?.price?`<p class="event_card_price">dès ${n.price.toFixed(2).replace(".",",")}€</p>`:``}
35                            </div>
36                        `:``}
37            </div>
38        </div>
39  `}function renderVerticalEvent(n,t,i,r){return`
40        <div class="event_vertical_card js-clickable-card" id="event_${n.id}">
41                    ${generateBadgePart(n)}
42                    <div class="event_vertical_card_image_container">
43                            <img loading="lazy"
44                                class="event_card_image"
45                                src="${n.mainPicture?`${t}/zg/n250/${n.mainPicture.toLowerCase()}`:`${i}`}"
46                                alt="Affiche de ${n.title}" onerror="this.src='${i}';" />
47                            ${n.displayPositionNumber?`<span class="event_card_position_number">${n.positionNumber}</span>`:``}
48                    </div>
49                    <div class="event_vertical_card_information">
50                        <div class="event_card_rating_container">
51                            ${n?.reviewCount!==0&&n?.reviewNote!==0?`<img loading="lazy" class="event_card_rating_icon" src="${r}" alt="Icone d'applaudissement" />
52                                    <p class="event_card_rating">${n?.reviewNote}/10 (${n.reviewCount} avis)</p>`:`<p class="event_card_rating">Nouveau !</p>`}
53                        </div>
54
55                        ${renderEventLink(n,`
56                            <p class="event_card_name" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-container="body" title="${n.title}">
57                                ${n.title}
58                            </p>`)}
59
60                        ${renderEventCity(n)}
61
62                        <div class="event_card_price_container">
63                            ${n.reduction!==0&&n.reduction!=null?`<p class="event_card_discount">
64                                        -${n.reduction}%
65                                    </p>`:``}
66
67                            ${n?.price?`<p class="event_card_price">dès ${n.price.toFixed(2).replace(".",",")}€</p>`:""}   
68                        </div>
69                    </div>
70        </div>
71  `}function generateBadgePart(n){if(!n.displayBadges||!Array.isArray(n.badges)||n.badges.length===0)return"";const r=n.excludedBadges||"",t=n.badges.filter(n=>!r.includes(n.code)).sort((n,t)=>n.priority-t.priority)[0];if(!t)return"";const u=document.getElementById("shop-url").value,f=`${u}/img/badge/${t.code}.webp`;let i=`<div class="event_badges">
72        <div class="badge_img" id="${t.code}">
73            <img src="${f}" alt="Vignette de l'événement"/>`;return t.code==="MOLIERE"&&t.value!==undefined&&(i+=`<span>${t.value}</span>`),t.code==="MAXIMUM_REDUCTION"&&t.value!==undefined&&(i+=`<span class="bottom_text">-${t.value}%</span>`),i+`
74        </div>
75    </div>`}function generateInlineBadgePart(n){if(!n.displayBadges||!Array.isArray(n.badges)||n.badges.length===0)return"";const u=n.excludedBadges||"",t=n.badges.filter(n=>!u.includes(n.code)).sort((n,t)=>n.priority-t.priority)[0];if(!t)return"";let i=t.label.replace("{1}",t.value??"");if(t.code==="MOLIERE"&&t.value!==undefined){const n=parseInt(t.value,10)||0;i=i.replace("(s)",n>1?"s":"")}let r=`color: ${t.fontColor}!important; background-color: ${t.backgroundColor};`;t.fontColor=="#ff4130"&&(r+=" border: 1px solid white");return`
76    <div class="event_badges">
77        <span class="badge" style="${r}">${i}</span>
78    </div>`}var letters,j,formRecherche,autosu;(()=>{function t(n,t,i){t.forEach(([r,t])=>{n[r]&&(n[r].style.fill=t??i)})}function i(n,i,r,u){setTimeout(()=>{t(i,n.fills,r),n.delay===1200&&u()},n.delay)}"use strict";const n=[{delay:100,fills:[[0,"#0209BD"]]},{delay:200,fills:[[0,null],[5,"#FFE039"],[7,"#FFE039"]]},{delay:300,fills:[[5,null],[7,null],[4,"#FEB0E2"]]},{delay:400,fills:[[4,null],[1,"#7898FF"]]},{delay:500,fills:[[1,null],[11,"#FFE039"]]},{delay:600,fills:[[11,null],[2,"#FF7334"],[3,"#FF7334"]]},{delay:700,fills:[[2,null],[3,null],[8,"#0209BD"]]},{delay:800,fills:[[8,null],[12,"#FEB0E2"],[15,"#FEB0E2"]]},{delay:900,fills:[[12,null],[15,null],[6,"#7898FF"]]},{delay:1e3,fills:[[6,null],[9,"#FFE039"]]},{delay:1100,fills:[[9,null],[10,"#FEB0E2"]]},{delay:1200,fills:[[10,null]]},];globalThis.startLogoAnimation=(t,r)=>{if(!t)return Promise.resolve();const u=t.querySelectorAll("path"),f=r===1?"#FF4130":"#FFFFFF";return new Promise(t=>{n.forEach(n=>i(n,u,f,t))})}})();(()=>{function t(n){n.dataset.tooltipText===undefined&&(n.dataset.tooltipText=n.getAttribute("title")??"");const t=n.dataset.tooltipText.trim();return!t||t!==n.textContent.trim()?!1:n.scrollWidth<=n.clientWidth+1&&n.scrollHeight<=n.clientHeight+1}function i(){document.addEventListener("mouseenter",n=>{if(n.target instanceof Element){const i=n.target.closest('[data-bs-toggle="tooltip"]');if(i){if(t(i)){bootstrap.Tooltip.getInstance(i)?.dispose();return}bootstrap.Tooltip.getInstance(i)||new bootstrap.Tooltip(i,{trigger:"hover"}).show()}}},!0)}function r(){document.addEventListener("show.bs.modal",()=>{document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(n=>{bootstrap.Tooltip.getInstance(n)?.hide()})})}function u(){const n='a, button, input, select, textarea, label, summary, [role="link"], [role="button"]';document.addEventListener("click",t=>{if(t.target instanceof Element&&!t.target.closest(n)){const i=t.target.closest(".js-clickable-card");if(i){const r=i.querySelector("a[href]");if(r){globalThis.location.href=r.href;return}i.querySelector("[data-path]")?.click()}}})}function f(){function i(){const t=n.classList.contains("is-collapsed"),i=n.getBoundingClientRect().bottom;n.querySelectorAll("a[href]").forEach(n=>{t&&n.getBoundingClientRect().top>=i?n.setAttribute("tabindex","-1"):n.removeAttribute("tabindex")})}function r(){if(n.scrollHeight<=n.clientHeight){n.classList.remove("is-collapsed");t.remove();return}i();t.addEventListener("click",function(){const r=n.classList.toggle("is-collapsed");t.setAttribute("aria-expanded",String(!r));t.textContent=r?"Lire la suite":"En voir moins";i()});globalThis.addEventListener("resize",i)}const n=document.getElementById("seo-description-text"),t=document.querySelector(".seo-description-toggle");n&&t&&(document.fonts&&document.fonts.ready?document.fonts.ready.then(r):r())}function e(){document.addEventListener("click",n=>{const t=n.target?.closest?.(".like_button");if(t&&(n.stopPropagation(),typeof isLikeStateLoaded=="undefined"||isLikeStateLoaded)){const i=document.querySelector("header img.header-avatar");if(i?.dataset.status==="disconnected"){openHeaderMenu(globalThis.location.href);return}t.classList.toggle("liked");t.classList.add("active");t.addEventListener("animationend",()=>t.classList.remove("active"),{once:!0})}})}function o(){const t=t=>{if(t.type!=="keydown"||t.key==="Enter"){const i=t.target?.closest?.(".spectacle-soft-link");if(i){const t=i.dataset.path;globalThis.location.href=t.startsWith("https://")?t:`${n}/spectacle/${atob(t)}`;return}const r=t.target?.closest?.(".hidden-soft-link")||t.target?.closest?.(".pub-link");if(r){const t=r.dataset.path;globalThis.location.href=t.startsWith("https://")?t:`${n}/${atob(t)}`}}};document.addEventListener("click",t);document.addEventListener("keydown",t)}function s(){const t=n=>n.naturalWidth<=1&&n.naturalHeight<=1,n=n=>{n.dataset.fallbackApplied===undefined&&n.hasAttribute("onerror")&&t(n)&&(n.dataset.fallbackApplied="",n.dispatchEvent(new Event("error")))};document.addEventListener("load",t=>{t.target instanceof HTMLImageElement&&n(t.target)},!0);document.querySelectorAll("img[onerror]").forEach(t=>{t.complete&&n(t)})}function h(){const n=document.getElementById("back-to-top");if(n){const t=document.createElement("div");t.style.cssText="position:absolute;top:500px;width:1px;height:1px;pointer-events:none;";document.body.appendChild(t);new IntersectionObserver(([t])=>{n.style.display=t.isIntersecting?"none":"block"}).observe(t);n.addEventListener("click",n=>{n.preventDefault(),globalThis.scrollTo({top:0,behavior:"smooth"})})}}function c(){const t=document.getElementById("stickyBtnMobile");if(t){const n=document.createElement("div");n.style.cssText="position:absolute;top:300px;width:1px;height:1px;pointer-events:none;";document.body.appendChild(n);const i=new IntersectionObserver(([n])=>{t.classList.toggle("is-visible",!n.isIntersecting)});i.observe(n)}}"use strict";const n=(document.getElementById("br-url")?.value??"").replace(/\/+$/,"");globalThis.goBack=()=>{document?.referrer?.includes(location?.hostname)?globalThis.history.back():globalThis.location.href="/"};globalThis.displayAlert=(n,t,i)=>{const r=document.querySelector(".alert-list");r&&r.insertAdjacentHTML("beforeend",`<br-alert index="0.01" backgroundColor="${t}" title="${n}" description="${i}"></br-alert>`)};i();r();u();f();e();o();s();h();c()})();(()=>{function a(){r&&new IntersectionObserver(n=>
78{n.forEach(n=>{n.isIntersecting&&s()})}).observe(r)}function v(){i&&(i.addEventListener("mouseenter",s),i.addEventListener("mouseout",()=>o("pause")))}function y(){document.querySelectorAll("footer button.footer-link-header").forEach(n=>{n.addEventListener("click",()=>{const i=n.closest(".footer-link"),t=i.classList.toggle("open");n.setAttribute("aria-expanded",String(t));n.querySelector("img")?.classList.toggle("rotated",t)})})}function b(){l?.addEventListener("submit",n=>{n.preventDefault(),w()})}function k(){if(n){const t=()=>{n.classList.remove("error"),n.removeAttribute("aria-invalid"),n.removeAttribute("aria-describedby"),n.placeholder="Allez, entre ton email",e&&(e.style.display="")};n.addEventListener("click",t);n.addEventListener("focus",t)}}"use strict";const t=document.querySelector("footer"),r=document.querySelector(".footer-first-row"),i=document.getElementById("footer_logo_svg"),c=document.querySelectorAll(".footer-social img"),l=document.getElementById("footer_newsletter_form"),n=document.getElementById("friend_user"),u=t?.querySelector(".footer-nl-button"),f=t?.querySelector(".footer-nl-arrow"),e=t?.querySelector(".footer-nl-legal"),o=n=>{const t=n==="play";c.forEach(n=>{n.style.animation="none",void n.offsetHeight,n.style.animation=t?"":"none",n.style.animationPlayState=t?"running":"paused"})},s=()=>{typeof startLogoAnimation=="function"&&startLogoAnimation(i,1).then(()=>o("play"))};const p=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,h=n=>{let i=document.getElementById("footer-live-region");i||(i=document.createElement("div"),i.id="footer-live-region",i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),i.className="visually-hidden",t?.appendChild(i));i.textContent="";i.textContent=n},w=()=>
78{if(n){const t=n.value;if(!p.test(t)){n.classList.add("error");n.setAttribute("aria-invalid","true");n.setAttribute("aria-describedby","footer-live-region");n.value="";n.placeholder="Oh oh, cet email est invalide";h("Erreur : l'adresse email est invalide");return}fetch("/faq/subscribe-newsletter",{credentials:"include",method:"POST",headers:{Accept:"application/json","Content-type":"application/json"},body:JSON.stringify({email:t})}).then(i=>{i.ok&&(u&&(u.style.display="none"),f&&(f.style.display="none"),n.style.width="100%",n.value="",n.placeholder="Bienvenue ❤️",n.disabled=!0,h("Inscription réussie. Bienvenue !"),typeof pushToDataLayer=="function"&&pushToDataLayer({event:"newsletter_subscription",nl_sub_mode:"footer",email:t}))}).catch(()=>{})}};a();v();y();b();k()})();(()=>{function b(){if(l){const t=200;let n=!1;globalThis.addEventListener("scroll",()=>{n||(n=!0,requestAnimationFrame(()=>{l.classList.toggle("scrolled",globalThis.scrollY>=t),n=!1}))},{passive:!0})}}function k(){if(s){const n=()=>{globalThis.scrollTo({top:0,behavior:"smooth"});let n=document.getElementById("header-live-region");n||(n=document.createElement("div"),n.id="header-live-region",n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.className="visually-hidden",document.querySelector("header")?.appendChild(n));n.textContent="";requestAnimationFrame(()=>{n.textContent="Retour en haut de la page"})},t=document.getElementById("page-name")?.value;t?s.textContent=t:f&&(f.style.display="block");s.addEventListener("click",n);f&&f.addEventListener("click",n)}}function d(){document.querySelectorAll(".header-brand-inner").forEach(n=>{const t=n.parentElement;if(t){const i=()=>{n.classList.remove("is-overflowing"),n.offsetWidth>0&&n.offsetWidth>t.clientWidth&&n.classList.add("is-overflowing")};n.querySelectorAll("img").forEach(n=>{n.complete||n.addEventListener("load",i,{once:!0})});const r=new ResizeObserver(i);r.observe(n);r.observe(t)}})}function g(){u.length&&(u.forEach(n=>{n.addEventListener("click",n=>{n.stopPropagation(),o()?h():y()})}),document.addEventListener("click",n=>{o()&&!n.target?.closest?.(".header-menus, .header-avatar-btn, .header-login")&&h()}),document.addEventListener("keydown",n=>{n.key==="Escape"&&o()&&h()}))}function nt(){v&&r&&v.addEventListener("click",async n=>{if(n.preventDefault(),c){const e=await fetch(`${c}/api/User/disconnect`,{method:"POST",credentials:"include"}).catch(()=>null);if(e?.ok){a&&(a.textContent="");const u=r.dataset.disconnectedSrc;u&&(r.src=u);r.dataset.status="disconnected";t&&(t.hidden=!0,t.inert=!0);i&&(i.hidden=!1,i.inert=!1);document.querySelectorAll(".js-connected-user-first-name").forEach(n=>{n.textContent=""});document.querySelectorAll(".js-connected-user-info").forEach(n=>{n.textContent="Se connecter"});const f=document.querySelector(".sidebar-action");f&&f.classList.remove("hidden");typeof pushToDataLayer=="function"&&pushToDataLayer({event:"log_out"})}}})}function tt(){document.addEventListener("click",async n=>{const i=n.target?.closest?.(".share-button-toggle");if(i){const r={title:document.getElementById("page-title")?.value||document.title,text:document.getElementById("page-desc")?.value||"Billet Réduc'",url:document.getElementById("page-url")?.value||globalThis.location.href};if(navigator.share)try{await navigator.share(r);return}catch(u){if(u?.name==="AbortError")return}if(navigator.clipboard){try{await navigator.clipboard.writeText(r.url)}catch{return}const t=i.querySelector("p, span"),f=t?.textContent;i.classList.add("copied");t&&(t.textContent="Lien copié !");setTimeout(()=>{i.classList.remove("copied"),t&&(t.textContent=f)},3e3)}}})}function it(){if(n){document.addEventListener("click",t=>{n.style.display&&n.style.display!=="none"&&(t.target===e||t.target?.closest?.("#autosuggest")||(n.style.display="none"))});const t=()=>{n.querySelector("li")&&(n.style.display="block")};e?.addEventListener("focus",t);e?.addEventListener("click",t)}}function rt(){const i=document.querySelector(".header-search-toggle"),t=document.getElementById("search");if(i&&t){const r=()=>{t.classList.remove("is-open"),i.setAttribute("aria-expanded","fal
78se"),n&&(n.style.display="none")};i.addEventListener("click",r=>{r.stopPropagation();const u=t.classList.toggle("is-open");i.setAttribute("aria-expanded",String(u));u?e?.focus():n&&(n.style.display="none")});document.addEventListener("click",n=>{t.classList.contains("is-open")&&!n.target?.closest?.(".header-search, .header-search-toggle, #autosuggest")&&r()});document.addEventListener("keydown",n=>{n.key==="Escape"&&t.classList.contains("is-open")&&r()})}}function ut(){document.addEventListener("mouseenter",n=>{const t=n.target?.closest?.(".js-logo-animation");t&&typeof startLogoAnimation=="function"&&!t.dataset.isAnimating&&(t.dataset.isAnimating="true",Promise.resolve(startLogoAnimation(t,0)).finally(()=>{delete t.dataset.isAnimating}))},!0)}"use strict";const c=document.getElementById("shop-url")?.value??"",l=document.querySelector(".header-body"),p=document.querySelector(".header-avatar-btn"),r=document.querySelector(".header-avatar"),w=document.querySelector(".header-login"),u=[p,w].filter(Boolean),t=document.querySelector(".header-menu-connected"),i=document.querySelector(".header-menu-disconnected"),a=document.querySelector(".profile-name"),s=document.getElementById("scrolled-page-name"),v=document.getElementById("disconnect_user"),f=document.getElementById("fallback-logo"),n=document.getElementById("autosuggest"),e=document.getElementById("inputRecherche");const h=()=>{t&&(t.hidden=!0,t.inert=!0),i&&(i.hidden=!0,i.inert=!0),u.forEach(n=>n.setAttribute("aria-expanded","false")),r?.classList.remove("rotated"),document.querySelectorAll(".header-menu-link, .header-menu-link-button").forEach(n=>{if(n.href)try{const t=new URL(n.href);t.searchParams.delete("redirectUrl");n.href=t.toString()}catch{}})},y=()=>{const n=r?.dataset.status==="connected";t&&(t.hidden=!n,t.inert=!n);i&&(i.hidden=n,i.inert=n);u.forEach(n=>n.setAttribute("aria-expanded","true"));r?.classList.add("rotated")},o=()=>u[0]?.getAttribute("aria-expanded")==="true";globalThis.openHeaderMenu=n=>{n&&document.querySelectorAll(".header-menu-link, .header-menu-link-button").forEach(t=>{if(t.href)try{const i=new URL(t.href);i.searchParams.set("redirectUrl",n);t.href=i.toString()}catch{}}),o()||y()};b();k();d();g();nt();tt();it();rt();ut()})();for(var defaultDiacriticsRemovalMap=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹÐ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"},],diacriticsMap={},i=0;i<defaultDiacriticsRemovalMap.length;i++)for(letters=defaultDiacriticsRemovalMap[i].letters,j=0;j<letters.length;j++)diacriticsMap[letters[j]]=defaultDiacriticsRemovalMap[i].base;var SUGGEST_MIN_CHARS=2,SUGGEST_DEBOUNCE_MS=300,SUGGEST_CACHE_MAX=80,SUGGEST_CACHE_TTL_MS=3e5,suggestCache={},suggestCacheKeys=[],suggestInFlight={};var idCounter=0,timersugg=null,inputR=document.getElementById("inputRecherche");inputR&&(autosu=new AutoSuggest(document.getElementById("inputRecherche"),null),void 0!==document.forms.recherche&&(document.forms.recherche.onsubmit=function(){return!1}));(()=>{"use strict";const n=document.getElementById("sidebar");
78if(n){const t=n.querySelector(".sidebar-title"),r=n.querySelector(".back-btn"),c=n.querySelector(".close-btn"),u=n.querySelector(".main-menu"),a=n.querySelectorAll(".sidebar-container > .sidebar-menu.sub-menu"),f=n.querySelectorAll(".sidebar-block, .sidebar-action"),e=document.getElementById("toggleSidebar"),o=n=>{n&&(n.style.display="")},i=n=>{n&&(n.style.display="none")},s=n=>n.forEach(o),v=n=>n.forEach(i),l=()=>{n.querySelectorAll(".sidebar-item-link[aria-expanded]").forEach(n=>{n.setAttribute("aria-expanded","false")})},y=()=>{n.classList.add("open"),n.removeAttribute("aria-hidden"),n.removeAttribute("inert"),t&&(t.textContent=""),o(t),s(f),u?.classList.add("show"),document.body.classList.add("sidebar-opened"),e?.setAttribute("aria-expanded","true"),c?.focus()},h=()=>{const u=n.classList.contains("open");n.classList.remove("open");n.setAttribute("aria-hidden","true");n.setAttribute("inert","");i(t);n.querySelectorAll(".sidebar-menu").forEach(n=>n.classList.remove("show"));n.querySelectorAll(".sidebar-item").forEach(n=>n.classList.remove("active"));l();s(f);i(r);document.body.classList.remove("sidebar-opened");e?.setAttribute("aria-expanded","false");u&&e?.focus()},p=()=>{a.forEach(n=>n.classList.remove("show")),n.querySelectorAll(".sidebar-item").forEach(n=>n.classList.remove("active")),l(),u?.classList.add("show"),i(t),i(r),s(f)},w=()=>{e?.addEventListener("click",n=>{n.stopPropagation(),y()}),c?.addEventListener("click",n=>{n.stopPropagation(),h()})},b=()=>{u?.addEventListener("click",n=>{const i=n.target.closest(".sidebar-item");if(i){const e=i.dataset.id,s=i.dataset.title;e&&(n.stopPropagation(),i.querySelector("button")?.setAttribute("aria-expanded","true"),u.classList.remove("show"),document.getElementById(`${e}-submenu`)?.classList.add("show"),t&&(t.textContent=s),o(t),o(r),v(f))}})},k=()=>{n.addEventListener("click",n=>{const t=n.target.closest(".sub-menu .sidebar-item");if(t){const r=t.dataset.id;if(r){n.stopPropagation();const i=t.classList.contains("active"),u=t.parentElement;u?.querySelectorAll(":scope > .sidebar-item.active").forEach(n=>{if(n!==t){n.classList.remove("active");n.querySelector(":scope > button")?.setAttribute("aria-expanded","false");const i=n.dataset.id;i&&document.getElementById(`${i}-submenu`)?.classList.remove("show")}});t.classList.toggle("active",!i);t.querySelector(":scope > button")?.setAttribute("aria-expanded",String(!i));document.getElementById(`${r}-submenu`)?.classList.toggle("show",!i)}}})},d=()=>{r?.addEventListener("click",n=>{n.stopPropagation(),p()})},g=()=>{document.addEventListener("click",n=>{n.target.closest("#sidebar, #toggleSidebar")||h()})},nt="a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex='-1'])",tt=()=>{document.addEventListener("keydown",t=>{if(n.classList.contains("open")){if(t.key==="Escape"){h();return}if(t.key==="Tab"){const i=[...n.querySelectorAll(nt)].filter(n=>n.offsetParent!==null);if(!i.length)return;const r=i[0],u=i.at(-1);t.shiftKey&&document.activeElement===r?(t.preventDefault(),u.focus()):t.shiftKey||document.activeElement!==u||(t.preventDefault(),r.focus())}}})};w();b();k();d();g();tt()}})();(()=>{"use strict";const t=document.querySelector(".megamenu");if(t){const n=t.querySelector(".megamenu-content"),r=t.querySelectorAll(".megamenu-item"),e=t.querySelectorAll(".megamenu-content-panel"),i=t.querySelector(".megamenu-row"),o=t.querySelector(".megamenu-arrow-left"),s=t.querySelector(".megamenu-arrow-right");let u=null;const h=t=>{if(clearTimeout(u),n){let i=!1,f=null;r.forEach(n=>{const i=n.dataset.menuId===t;n.classList.toggle("active",i);i&&(f=n);n.hasAttribute("aria-expanded")&&n.setAttribute("aria-expanded",i?"true":"false")});e.forEach(n=>{const r=n.id===`menu-${t}`;n.classList.toggle("active",r);r&&(i=!0)});n.classList.toggle("active",i);i&&f&&c(f)}},c=t=>{const i=n.offsetParent;if(i){const r=t.getBoundingClientRect(),u=i.getBoundingClientRect(),f=r.left-u.left+(r.width-n.offsetWidth)/2,e=i.clientWidth-n.offsetWidth;n.style.left=`${Math.max(0,Math.min(f,e))}px`}},f=()=>{u=setTimeout(()=>{r.forEach(n=>{n.classList.remove("active"),n.hasAttribute("aria-expanded")&&n.setAttribute("aria-expanded","fal
78se")}),n&&n.classList.remove("active")},350)},l=()=>{if(i){const n=()=>{if(o&&s){const{scrollLeft:n,scrollWidth:t,clientWidth:r}=i;o.classList.toggle("visible",n>0);s.classList.toggle("visible",n+r<t-1)}};i.addEventListener("scroll",n,{passive:!0});window.addEventListener("resize",n);window.addEventListener("load",n);typeof ResizeObserver!="undefined"&&new ResizeObserver(n).observe(i);n();o?.addEventListener("click",()=>{i.scrollBy({left:-300,behavior:"smooth"})});s?.addEventListener("click",()=>{i.scrollBy({left:300,behavior:"smooth"})})}},a=()=>{t.addEventListener("mouseover",n=>{const t=n.target.closest(".megamenu-item");t&&(t.dataset.menuId?h(t.dataset.menuId):f())}),t.addEventListener("mouseout",n=>{n.relatedTarget&&t.contains(n.relatedTarget)||f()}),n&&(n.addEventListener("mouseenter",()=>clearTimeout(u)),n.addEventListener("mouseleave",f)),t.addEventListener("focusout",n=>{n.relatedTarget&&t.contains(n.relatedTarget)||f()}),n&&n.addEventListener("focusin",()=>clearTimeout(u))},v=()=>{t.addEventListener("click",i=>{if(i.target.closest(".megamenu-content-close")){r.forEach(n=>{n.classList.remove("active"),n.hasAttribute("aria-expanded")&&n.setAttribute("aria-expanded","false")});e.forEach(n=>n.classList.remove("active"));n&&n.classList.remove("active");return}const u=i.target.closest(".megamenu-item");if(u?.dataset.menuId){const r=globalThis.innerWidth<=744,n=t.querySelector(`#menu-${u.dataset.menuId}`),f=n?.querySelector(".megamenu-content-categories"),e=i.detail>0;if(r&&u.dataset.url)globalThis.location.href=u.dataset.url;else if(!f&&u.dataset.url)globalThis.location.href=u.dataset.url;else if(e&&u.dataset.url)globalThis.location.href=u.dataset.url;else{h(u.dataset.menuId);const t=n?.querySelector("a, button");t&&t.focus()}}})},y=()=>{t.addEventListener("keydown",i=>{if(i.key==="Escape"){const i=t.querySelector(".megamenu-item.active");r.forEach(n=>{n.classList.remove("active"),n.hasAttribute("aria-expanded")&&n.setAttribute("aria-expanded","false")});e.forEach(n=>n.classList.remove("active"));n&&n.classList.remove("active");i&&i.focus();return}const u=i.target.closest(".megamenu-item");u?.dataset.menuId&&(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),u.click())})},p=()=>{window.innerWidth>744||r.forEach(n=>{n.dataset.menuId&&(n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),n.setAttribute("role","link"))})};l();a();v();y();p()}})();(()=>{function h(r){if(r&&!i.has(r)){const h=r.querySelector(".br-slider__list");if(h){i.add(r);r.setAttribute("role","group");r.setAttribute("aria-roledescription","carrousel");const ft=r.closest("section[aria-labelledby]");!ft||r.hasAttribute("aria-label")||r.hasAttribute("aria-labelledby")||r.setAttribute("aria-labelledby",ft.getAttribute("aria-labelledby"));const v=r.querySelector(".br-slider__nav--prev"),y=r.querySelector(".br-slider__nav--next");if(r.classList.contains("br-slider--slider")){c(r,h,v,y);return}let b=!1,et=0,ot=0,nt=0,l=[],a=0,tt=0,p=0;const vt=()=>h.querySelectorAll(".br-slider__item"),k=()=>{const n=vt();if(!n.length)return n;const t=n[0].offsetTop;return Array.prototype.filter.call(n,n=>n.offsetTop===t)},yt=()=>{const n=getComputedStyle(h);return Number.parseFloat(n.columnGap||n.gap)||0},st=()=>{const n=k();if(!n.length)return 1;const i=n[0].offsetWidth,t=yt();return Math.max(1,Math.round((h.clientWidth+t)/(i+t)))},it=()=>{const n=k();for(let t=0;t<n.length;t++)if(n[t].offsetLeft>=h.scrollLeft-1)return t;return Math.max(0,n.length-1)},w=()=>{const n=h.scrollWidth-h.clientWidth,t=n<=f;v&&(v.hidden=t||h.scrollLeft<=1);y&&(y.hidden=t||h.scrollLeft>=n-1)},d=()=>{a&&(cancelAnimationFrame(a),a=0)},pt=()=>{const n=l;if(n.length<2)return 0;const t=n[0],i=n.at(-1),r=i.t-t.t;return r>0?(i.x-t.x)/r:0},wt=i=>{d();const f=h.scrollWidth-h.clientWidth,u=i>0?h.scrollLeft:f-h.scrollLeft,e=Math.abs(i)*16/(1-n);let r=i;if(u>0&&e>u&&(r*=u/e),!(Math.abs(r)<t)){let o=performance.now();const s=i=>{const u=i-o;o=i;h.scrollLeft-=r*u;r*=Math.pow(n,u/16);const e=h.scrollLeft<=0||h.scrollLeft>=f;a=Math.abs(r)>t&&!e?requestAnimationFrame(s):0};a=requestAnimationFrame(s)}},ht=n=>{if(b){const t=n.clientX-et;h.scrollLeft=ot-t;nt=Math.abs(t);const i=performance.now();for(l.push({x:n.clientX,t:i});l.length>2&&l[0].t<i-e;)l.shift()}},ct=()=>{if(b){if(b=!1,h.classList.remove("is-dragging"),document.removeEventListener("mousemove",ht),document.removeEventListener("mouseup",ct),nt>u){const n=t=>{t.stopPropagation(),t.preventDefault(),h.removeEventListener("click",n,!0)};h.addEventListener("click",n,!0)}const n=pt();Math.abs(n)>o&&wt(n)}},bt=n=>
78{n.button===0&&(d(),b=!0,et=n.clientX,ot=h.scrollLeft,nt=0,l=[{x:n.clientX,t:performance.now()}],h.classList.add("is-dragging"),document.addEventListener("mousemove",ht),document.addEventListener("mouseup",ct))},lt=n=>{const t=k(),i=t[Math.max(0,Math.min(t.length-1,n))];i&&h.scrollTo({left:i.offsetLeft,behavior:"smooth"})},rt=r.classList.contains("br-slider--autoplay"),ut=()=>{p&&(clearInterval(p),p=0)},g=()=>{if(rt&&!p){const n=Number.parseInt(r.dataset.autoplayInterval||"4000",10);p=setInterval(()=>{const n=k();if(n.length){const i=it(),t=n[Math.min(n.length-1,i+1)];t&&h.scrollTo({left:t.offsetLeft,behavior:"smooth"})}},n)}},at=()=>{rt&&(ut(),g())};v&&v.addEventListener("click",()=>{d(),lt(it()-st()),at()});y&&y.addEventListener("click",()=>{d(),lt(it()+st()),at()});const kt=r.classList.contains("br-slider--no-drag");s&&!kt&&(h.addEventListener("mousedown",bt),h.addEventListener("dragstart",n=>n.preventDefault()));rt&&(r.addEventListener("mouseenter",ut),r.addEventListener("mouseleave",g),r.addEventListener("focusin",ut),r.addEventListener("focusout",g));h.addEventListener("focusin",n=>{const t=n.target.closest(".br-slider__item");t&&t.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})});h.addEventListener("scroll",()=>{tt||(tt=requestAnimationFrame(()=>{tt=0,w()}))});globalThis.addEventListener("resize",w);typeof MutationObserver!="undefined"&&new MutationObserver(w).observe(h,{childList:!0});typeof ResizeObserver!="undefined"&&new ResizeObserver(w).observe(h);w();g()}}}function c(n,t,i,r){const u=t.querySelectorAll(".br-slider__item");if(u.length){let f=0;u[0].classList.add("is-active");const a=n.querySelectorAll(".br-slider__dot"),v=()=>{a.forEach((n,t)=>n.classList.toggle("is-active",t===f))},c=n.classList.contains("br-slider--autoplay"),y=Number.parseInt(n.dataset.autoplayInterval||"4000",10);let e=0;const s=n=>{u[f].classList.remove("is-active"),f=(n%u.length+u.length)%u.length,u[f].classList.add("is-active"),v()},h=()=>{e&&(clearInterval(e),e=0)},o=()=>{c&&!e&&(e=setInterval(()=>s(f+1),y))},l=()=>{h(),o()};i&&i.addEventListener("click",()=>{s(f-1),l()});r&&r.addEventListener("click",()=>{s(f+1),l()});c&&(n.addEventListener("mouseenter",h),n.addEventListener("mouseleave",o),n.addEventListener("focusin",h),n.addEventListener("focusout",o));o()}}"use strict";const u=5,f=2,e=120,o=.03,n=.97,t=.01,s=typeof matchMedia=="function"&&matchMedia("(pointer: fine)").matches,i=new WeakSet;const r=()=>{document.querySelectorAll(".br-slider").forEach(h)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",r):r()})();const EVENT_CARD_DISPLAY_MINIMUM_PRICE_AND_CITY=2;class BRAlert extends HTMLElement{constructor(){super();const n=this.getAttribute("title"),t=this.getAttribute("imageText"),i=this.getAttribute("description"),r=this.getAttribute("index"),u=this.getAttribute("backgroundColor");this.innerHTML=`
79            <div class="alert_container">
80                <div class="alert_header" style="background-color: ${u}"></div>
81                <div class="alert_body">
82                    ${t?'<div class="alert_image"><span class="img">${imageText}<\/span><\/div>':""}
83                    <div class="alert_content">
84                        <div class="alert_title">
85                            <h4>${n}</h4>
86                        </div>
87                        <div class="alert_description">
88                            <p>${i}</p>
89                        </div>
90                    </div>
91                </div>
92            </div>
93        `;$(this).find(".alert_container").css("animation-delay",`${r}s`)}}customElements.define("br-alert",BRAlert)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.