1(function(){'use strict';var cfg=window.PIA_SHARE_IMAGES||{},services=Array.isArray(cfg.services)&&cfg.services.length?cfg.services:['whatsapp','facebook','x','copy'],overlays=[];var icons={whatsapp:'<svg viewBox="0 0 24 24"><path d="M20.52 3.48A11.86 11.86 0 0 0 12.09 0C5.49 0 .12 5.37.12 11.97c0 2.11.55 4.17 1.6 5.99L0 24l6.18-1.62a11.95 11.95 0 0 0 5.91 1.51h.01c6.6 0 11.97-5.37 11.97-11.97 0-3.2-1.25-6.21-3.55-8.44Zm-8.43 18.38h-.01a9.92 9.92 0 0 1-5.05-1.38l-.36-.21-3.67.96.98-3.57-.23-.37a9.9 9.9 0 0 1-1.52-5.32c0-5.47 4.45-9.92 9.93-9.92 2.65 0 5.14 1.03 7.01 2.91a9.86 9.86 0 0 1 2.9 7.01c0 5.47-4.45 9.89-9.98 9.89Zm5.76-7.43c-.31-.16-1.84-.91-2.13-1.01-.29-.11-.5-.16-.71.16-.21.31-.82 1.01-1 1.22-.18.21-.37.24-.68.08-.31-.16-1.32-.49-2.52-1.55-.93-.83-1.56-1.86-1.74-2.18-.18-.31-.02-.48.14-.64.14-.14.31-.37.47-.55.16-.18.21-.31.31-.52.1-.21.05-.39-.03-.55-.08-.16-.71-1.71-.97-2.34-.25-.61-.51-.52-.71-.53h-.6c-.21 0-.55.08-.84.39-.29.31-1.1 1.08-1.1 2.63s1.13 3.05 1.29 3.26c.16.21 2.23 3.41 5.4 4.78.75.32 1.34.52 1.8.66.76.24 1.45.21 2 .13.61-.09 1.84-.75 2.1-1.48.26-.73.26-1.36.18-1.48-.08-.13-.29-.21-.6-.37Z"/></svg>',facebook:'<svg viewBox="0 0 24 24"><path d="M14 8.5V6.25c0-.62.51-1.13 1.13-1.13H17V1.8A25.2 25.2 0 0 0 14.27 1C11.57 1 9.7 2.65 9.7 5.64V8.5H6.62v3.7H9.7V23h4.3V12.2h3.37l.54-3.7H14Z"/></svg>',x:'<svg viewBox="0 0 24 24"><path d="M18.9 2h3.4l-7.42 8.48L23.6 22h-6.82l-5.34-6.98L5.33 22H1.93l7.94-9.08L1.5 2h6.99l4.83 6.39L18.9 2Zm-1.2 17.97h1.88L7.46 3.93H5.43L17.7 19.97Z"/></svg>',copy:'<svg viewBox="0 0 24 24"><path d="M10.6 13.4a1.4 1.4 0 0 0 2 0l3.9-3.9a2.8 2.8 0 0 0-4-4L11 7a1.4 1.4 0 1 1-2-2l1.5-1.5a5.6 5.6 0 0 1 7.9 7.9l-3.9 3.9a4.2 4.2 0 0 1-6 0 1.4 1.4 0 0 1 2-1.9Zm2.8-2.8a1.4 1.4 0 0 0-2 0l-3.9 3.9a2.8 2.8 0 0 0 4 4L13 17a1.4 1.4 0 1 1 2 2l-1.5 1.5a5.6 5.6 0 0 1-7.9-7.9l3.9-3.9a4.2 4.2 0 0 1 6 0 1.4 1.4 0 0 1-2 1.9Z"/></svg>'};function closest(e,s){if(!s)return null;while(e&&e.nodeType===1){if(e.matches&&e.matches(s))return e;e=e.parentElement}return null}function txt(el){var out='',n=el,lim=0;while(n&&n.nodeType===1&&lim<8){out+=' '+(n.className||'')+' '+(n.id||'')+' '+n.tagName.toLowerCase();n=n.parentElement;lim++}return String(out).toLowerCase()}function clean(t){return String(t||'').replace(/\s+/g,' ').trim()}function abs(u){try{return new URL(u,location.href).href}catch(e){return location.href}}function articleHref(h){return /(article|id_article|actualite|actualites|news|breve|spip\.php\?article|\/\d{2,6}[-_])/i.test(h||'')}function validHref(h){if(!h)return false;h=String(h).trim();if(!h||h==='#'||/^javascript:/i.test(h)||/^mailto:/i.test(h)||/^tel:/i.test(h))return false;if(/\.(jpg|jpeg|png|gif|webp|svg|pdf|zip|mp4|mp3)(\?|#|$)/i.test(h))return false;return true}function shareUrl(s,u,t){var eu=encodeURIComponent(u),et=encodeURIComponent(t||document.title);if(s==='whatsapp')return'https://api.whatsapp.com/send?text='+et+'%20'+eu;if(s==='facebook')return'https://www.facebook.com/sharer/sharer.php?u='+eu;if(s==='x')return'https://twitter.com/intent/tweet?text='+et+'&url='+eu;return u}function label(s){return{whatsapp:'Partager sur WhatsApp',facebook:'Partager sur Facebook',x:'Partager sur X',copy:'Copier le lien'}[s]||'Partager'}function toast(w,m){var t=w.querySelector('.pia-share-toast');if(!t){t=document.createElement('span');t.className='pia-share-toast';w.appendChild(t)}t.textContent=m;t.classList.add('is-visible');setTimeout(function(){t.classList.remove('is-visible')},1600)}function rct(img){var r=img.getBoundingClientRect();return{w:Math.round(r.width||img.offsetWidth||img.naturalWidth||0),h:Math.round(r.height||img.offsetHeight||img.naturalHeight||0),top:r.top,left:r.left,right:r.right,bottom:r.bottom}}function sliderBox(img){return closest(img,'.swiper,.swiper-container,.slick-slider,.owl-carousel,.carousel,.slider,.diapo,.slideshow,.glide,.splide,.bxslider')}function overlayHost(img){var a=img.closest('a[href]');if(a&&a.contains(img))return a;var h=img.closest('figure,.spip_documents,.spip_document,.vignette,.thumbnail,.thumb,.cover,.visuel,.illustration,.media,.image,.photo,.logo_article,.logo-article,.article-logo,.une,.hero,.cartouche')||img.parentElement;if(h&&h.tagName&&h.tagName.toLowerCase()==='picture')h=h.parentElement;return h||img.parentElement}function isVisible(img){var r=rct(img);return r.w>=70&&r.h>=55&&img.offsetParent!==null}function configured(img){if(!cfg.cible)return false;try{if(img.matches(cfg.cible)||closest(img,cfg.cible))return true}catch(e){}return false}function chrome(img){var c=txt(img);return /(header|entete|en-tete|bandeau|navbar|topbar|menu|nav|footer|pied|logo_site|site-logo|logo-site|brand|branding|publicite|pub|advert|banner)/i.test(c)&&!
1/(article|articles|post|entry|hentry|article-item|item-article|card-article|une|hero|vignette|thumbnail|thumb|cover|illustration)/i.test(c)}function pageCourante(){var b=document.body?String(document.body.className).toLowerCase():'';var q=location.search||'',path=location.pathname||'/';if(/[?&](page=article|id_article=)/i.test(q)||/(page_article|type-article|article-page)/i.test(b))return'article';if(/[?&](page=rubrique|id_rubrique=)/i.test(q)||/(page_rubrique|type-rubrique|rubrique-page)/i.test(b))return'rubrique';if(/[?&](page=mot|id_mot=)/i.test(q)||/(page_mot|type-mot|mot-page)/i.test(b))return'mot';if(path==='/'||path===''||/(page_sommaire|sommaire|home|accueil|front-page)/i.test(b))return'sommaire';return''}function pageAutorisee(){var pages=Array.isArray(cfg.pages)?cfg.pages:['article','sommaire','rubrique','mot'];var p=pageCourante();if(!p)return true;return pages.indexOf(p)!==-1}function isArticlePage(){var b=document.body?String(document.body.className).toLowerCase():'';return /(page_article|type-article)/i.test(b)||/([?&]page=article|[?&]id_article=)/i.test(location.search)}function articleBox(img){return closest(img,'article,.article,.articles article,.liste-articles article,.liste-articles .article,.liste-items article,.item.article,.article-item,.item-article,.card-article,.carte-article,.post,.entry,.hentry,.une,.hero,.bloc-article,.teaser-article')}function editorial(img){var a=img.closest('a[href]'),href=a?(a.getAttribute('href')||''):'';if(validHref(href))return true;if(configured(img))return true;if(articleBox(img))return true;if(isArticlePage()&&closest(img,'.texte,.article-texte,.spip_documents,.spip_document,figure,.cartouche,.hero,.une'))return true;return false}function ok(img){if(!img||img.dataset.piaDone==='1'||img.closest('.pia-share-overlay'))return false;if(cfg.exclure){try{if(img.matches(cfg.exclure)||closest(img,cfg.exclure))return false}catch(e){}}if(!isVisible(img)||chrome(img))return false;if(cfg.activerSliders===false&&sliderBox(img))return false;return editorial(img)}function findBox(img){return articleBox(img)||closest(img,'.liste-articles,.liste-items,.article-item,.item-article,.card-article,.carte-article,.post,.entry,.hentry,.une,.hero,.bloc-article,.teaser-article')||null}function articleData(img){var box=findBox(img),a=img.closest('a[href]'),href=a?a.getAttribute('href'):'';if(!validHref(href)&&box){var links=[].slice.call(box.querySelectorAll('a[href]'));var best=links.find(function(x){return articleHref(x.getAttribute('href')||'')})||links.find(function(x){return validHref(x.getAttribute('href')||'')&&!/(share|facebook|twitter|whatsapp|mailto|tel|comment|tag|mot|rubrique)/i.test(txt(x))});if(best){a=best;href=best.getAttribute('href')}}var url=validHref(href)?abs(href):location.href;var title='';if(box){var h=box.querySelector('h1,h2,h3,h4,h5,.titre,.entry-title,.article-title,.post-title,.title,.nom');if(h)title=clean(h.textContent)}if(!title&&a){var ah=a.querySelector('h1,h2,h3,h4,h5,.titre,.entry-title,.article-title,.post-title,.title');if(ah)title=clean(ah.textContent)}if(!title&&a)title=clean(a.getAttribute('title'));if(!title)title=clean(img.getAttribute('alt'));if(!title){var ht=document.querySelector('h1');title=ht?clean(ht.textContent):clean(document.title)}title=clean(title).split('\n')[0];if(title.length>160)title=title.slice(0,157).replace(/\s+\S*$/,'')+'â¦';return{url:url,title:title||document.title,copy:(title||document.title)+' '+url}}function sizeVars(img,ov,host){var r=rct(img),hr=host.getBoundingClientRect(),count=services.length||1,base=Math.min(parseInt(cfg.taille,10)||28,28),pad=Math.max(2,Math.min(7,Math.floor(Math.min(r.w,r.h)*0.05))),gap=Math.max(1,Math.min(4,Math.floor(r.h*0.022))),sizeH=Math.floor((r.h-(pad*2)-(gap*(count-1)))/count),sizeW=Math.floor(r.w*0.105),size=Math.floor(Math.max(8,Math.min(base,sizeH,sizeW)));if(size<10)return false;ov.style.left=Math.round(r.left-hr.left)+'px';ov.style.top=Math.round(r.top-hr.top)+'px';ov.style.width=r.w+'px';ov.style.height=r.h+'px';ov.style.setProperty('--pia-size',size+'px');ov.style.setProperty('--pia-gap',gap+'px');ov.style.setProperty('--pia-top',pad+'px');ov.style.setProperty('--pia-right',pad+'px');ov.style.setProperty('--pia-radius',(parseInt(cfg.arrondi,10)||50)+'%');ov.style.setProperty('--pia-bg',cfg.fondBouton||'rgba(0,0,0,.42)');ov.style.setProperty('--pia-bg-hover',cfg.fondBoutonSurvol||'#f97316');return true}function build(img){if(!ok(img))return;var host=overlayHost(img);if(!host||host.querySelector(':scope >
1 .pia-share-local[data-pia-img="'+(img.dataset.piaKey||'')+'"]'))return;if(!img.dataset.piaKey)img.dataset.piaKey='pia'+Math.random().toString(36).slice(2);var data=articleData(img);var ov=document.createElement('span');ov.className='pia-share-local '+(cfg.position==='left'?'pia-left':'pia-right')+(cfg.afficherMobile===false?' pia-hide-mobile':'');ov.setAttribute('data-pia-img',img.dataset.piaKey);host.classList.add('pia-share-host');if(!sizeVars(img,ov,host))return;var bar=document.createElement('span');bar.className='pia-share-bar';services.forEach(function(s){if(!icons[s])return;var b=document.createElement('span');b.className='pia-share-btn pia-share-'+s;b.setAttribute('role','button');b.setAttribute('tabindex','0');b.setAttribute('aria-label',label(s));b.setAttribute('title',label(s));b.innerHTML=icons[s];var run=function(ev){ev.preventDefault();ev.stopPropagation();if(s==='copy'){if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(data.copy).then(function(){toast(ov,'Titre et lien copiés')})}else{window.prompt('Copiez ce texte',data.copy)}}else{window.open(shareUrl(s,data.url,data.title),'_blank','noopener,noreferrer')}};b.addEventListener('click',run);b.addEventListener('keydown',function(ev){if(ev.key==='Enter'||ev.key===' '){run(ev)}});bar.appendChild(b)});ov.appendChild(bar);host.appendChild(ov);img.dataset.piaDone='1';overlays.push({img:img,ov:ov,host:host})}function update(){overlays=overlays.filter(function(o){if(!document.body.contains(o.img)||!document.body.contains(o.ov)||!isVisible(o.img)){if(o.ov.parentNode)o.ov.parentNode.removeChild(o.ov);return false}sizeVars(o.img,o.ov,o.host);return true})}function scan(root){root=root||document;var imgs=[];try{imgs=[].slice.call(root.querySelectorAll('img'))}catch(e){return}imgs.forEach(function(img){if(img.complete)build(img);else img.addEventListener('load',function(){build(img)},{once:true})});update()}function init(){if(!pageAutorisee())return;scan(document);window.addEventListener('resize',function(){setTimeout(update,120)});window.addEventListener('load',function(){scan(document);update()});if(window.MutationObserver){var t=null,mo=new MutationObserver(function(){clearTimeout(t);t=setTimeout(function(){scan(document)},220)});mo.observe(document.body,{childList:true,subtree:true});setTimeout(function(){mo.disconnect();update()},10000)}setTimeout(update,800);setTimeout(update,2500)}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init);else init();})();
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.