PageSourceSearch

https://static.numericalcio.it/build/7119.ba90279b.js

js numericalcio.it collected 2026-09-25 08:15:23 UTC 40,533 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgazzanet_symfony=self.webpackChunkgazzanet_symfony||[]).push([[7119],{47455:function(e,t,n){n.d(t,{U5:function(){return a},jR:function(){return s},nb:function(){return r},zY:function(){return i}});const o=(0,n(51405).h)("cmp","Cmp Helper");var r;function a(e){if(console.log("[cmp] isValidTcData"),!e||"object"!=typeof e)return!1;const t=e;return"number"==typeof t.tcfPolicyVersion&&"string"==typeof t.cmpStatus&&"string"==typeof t.eventStatus}function i(e,t){o.group("Has purpose called"),o.info("Purpose",r[t]);const n=e.purpose?.consents;return!!n&&(o.info("Consents",n[t]),o.groupEnd(),Boolean(n[t]))}function s(e,t){o.group("Has vendor consent called"),o.info("Vendor ID",t);const n=e.vendor?.consents;return n?(o.info("Consents",n[t]),o.groupEnd(),Boolean(n[t])):(o.info("Consents",!1),o.groupEnd(),!1)}!function(e){e[e.StorageAndAccess=1]="StorageAndAccess",e[e.BasicAds=2]="BasicAds",e[e.PersonalisedAds=4]="PersonalisedAds",e[e.PersonalisedProfile=3]="PersonalisedProfile",e[e.Measurement=7]="Measurement",e[e.ContentPerformance=8]="ContentPerformance"}(r||(r={}))},55821:function(e,t,n){n.d(t,{s:function(){return r}});const o=(0,n(51405).h)("cmp","ConsentStore");const r=new class{constructor(){this._tc=null,this._sig=null}get(){return this._tc}update(e){o.group("Update TCData"),o.info("TcData",e),this._tc=e,this._sig=this.computeSignature(e),o.info("new Signature",this._sig),o.groupEnd()}signature(){return this._sig}computeSignature(e){const t=e.purpose?.consents,n=e.vendor?.consents,o=t?Object.entries(t).filter(([,e])=>e).map(([e])=>e).sort((e,t)=>Number(e)-Number(t)).join(","):"",r=n?Object.entries(n).filter(([,e])=>e).map(([e])=>e).sort((e,t)=>Number(e)-Number(t)).join(","):"";return[`tpv=${e.tcfPolicyVersion}`,`ga=${String(e.gdprApplies)}`,`p=${o}`,`vendors=${r}`,`es=${e.eventStatus}`,`cs=${e.cmpStatus}`].join("|")}}},1853:function(e,t,n){n.d(t,{J:function(){return i},K:function(){return a}});const o=(0,n(51405).h)("core","page-data");let r=null;const a=()=>{if(r)return r;const e=document.getElementById("gzn-page-data");if(!e)return o.warn("Script tag #gzn-page-data not found. Returning empty object."),{};try{const t=e.textContent||"{}";return r=JSON.parse(t),o.debug("PageData loaded successfully",r),r||{}}catch(e){return o.error("JSON parsing failed for PageData",e),{}}},i=(e,t=null)=>{const n=a();return e.split(".").reduce((e,t)=>e&&e[t],n)??t}},71578:function(e,t,n){n.d(t,{$:function(){return u},X:function(){return d}});var o=n(19987);const r=(0,n(51405).h)("player","autoplay"),a="(max-width: 767px)",
1i=1,s=.99,c=.001;function d(){const e=i/100;if(!window.matchMedia(a).matches)return e;const t=Number((0,o.lf)("sticky_player.autoplay_min_visible_percent_mobile",i));return!Number.isFinite(t)||t<=0||t>100?(r.warn(`[AUTOPLAY] sticky_player.autoplay_min_visible_percent_mobile non valido (${t}), uso il default ${i}%`),e):Math.min(t/100,s)}function u(e,t){const n=e[e.length-1];return void 0!==n&&n.isIntersecting&&n.intersectionRatio>=t-c}},19987:function(e,t,n){n.d(t,{UU:function(){return r},lf:function(){return a}});let o={};const r=e=>{o=e},a=(e,t=null)=>e.split(".").reduce((e,t)=>e&&e[t],o)??t},85937:function(e,t,n){function o(e){return new Promise(t=>setTimeout(t,e))}async function r(e,t={}){const{maxDelay:n=1/0,startingDelay:r=100,timeMultiple:a=2,numOfAttempts:i=10,retry:s=()=>!0,jitter:c=.2}=t;let d=0;for(;;)try{return await e()}catch(e){d++;if(!(d<i&&await s(e,d)))throw e;const t=Math.min(r*Math.pow(a,d-1),n),u=1+(2*Math.random()-1)*c;await o(Math.max(0,Math.floor(t*u)))}}n.d(t,{f:function(){return r}})},51405:function(e,t,n){n.d(t,{h:function(){return l}});const o=["debug","info","warn","error"],r="gzn:debug",a="gzn:debug:namespaces",i="gzn:debug:categories",s="debug_js",c={adv:30,cmp:210,core:140,api:280,ui:50,other:0,hb:50,dmp:280,player:140,mc:210,analytics:230,widget:200,login:135,modal:100,comments:69,refresh:333};function d(e,t){const n=c[e]??0,o=function(e){let t=0;for(let n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Math.abs(t)}(t);return[`background:${`hsl(${(n+(o%31-15)+360)%360} 70% ${30+o%25}%)`}`,"color:#ffffff","font-weight:bold","padding:2px 6px","border-radius:4px"].join(";")}function u(e,t,n){if(!function(){try{if(new URLSearchParams(window.location.search).has(s))return!0}catch{}try{if(!0===window.__GZN_DEBUG__)return!0}catch{}try{if("1"===localStorage.getItem(r))return!0}catch{}return function(){try{return!1}catch{return!1}}()}())return!1;if(!function(e){try{const t=localStorage.getItem(i);return!t||t.split(",").map(e=>e.trim()).filter(Boolean).includes(e)}catch{return!0}}(e))return!1;if(!function(e,t){try{const n=localStorage.getItem(a);if(!n)return!0;const o=n.split(",").map(e=>e.trim()).filter(Boolean),r=`${e}:${t}`;return o.includes(r)}catch{return!0}}(e,t))return!1;const c=function(){try{const e=new URLSearchParams(window.location.search).get(s);return e&&o.includes(e)?e:"debug"}catch{return"debug"}}(),d=o.indexOf(c);return o.indexOf(n)>=d}function l(e,t){const n=d(e,t),o=`[${e}:${t}]`,r=(r,a)=>(...i)=>{u(e,t,r)&&"function"==typeof a&&a(`%c${o}`,n,...i)};return{debug:r("debug",console.debug.bind(console)),info:r("info",console.info.bind(console)),warn:r("warn",console.warn.bind(console)),error:r("error",console.error.bind(console)),group:(...r)=>{if(!u(e,t,"debug"))return;const a=r.length?r:["group"];"function"==typeof console.groupCollapsed?console.groupCollapsed(`%c${o}`,n,...a):console.log(`%c${o}`,n,...a)},groupEnd:()=>{u(e,t,"debug")&&"function"==typeof console.groupEnd&&console.groupEnd()}}}},37915:function(e,t,n){var o=n(47455),r=n(51405),a=n(19987),i=n(1853),s=n(55821),c=n(23782);const d=(0,r.h)("analytics","adobe");let u=!1;const l={name:"analytics",priority:"low",requiresConsent:"analytics",isStarted:!1,register(){d.info("Register - In attesa di segnali CMP..."),function(){if(u)return;u=!0,window.addEventListener("pageshow",e=>{e.persisted&&(!function(){const e=s.s.get();if(!e||!g(e))return void d.info("BFCache restore: consenso analytics assente, skip Adobe.");const t=(0,i.K)(),n=t?.analytics?.adobe_id||(0,a.lf)("adobe.adobeId");if(!n||!window.s_gi)return void d.warn("BFCache restore: Adobe non inizializzato.",{adobeId:n,s_gi:!!window.s_gi});d.info("BFCache restore: invio Page View Adobe e custom link.");const o=window.s_gi(n);o.usePlugins=!0,p(e,"BFCache"),o.clearVars?.(),o.linkTrackVars="events,prop7",o.linkTrackEvents="event502",o.events="event502",o.prop7=(0,a.lf)("adobe.domain").toLowerCase(),o.tl(!0,"o","bfcache"),o.clearVars?.()}(),(0,c.Qr)("adv:bfcache-restore"))})}(),function(){if(h)return;h=!0,document.addEventListener("player:ad:start",e=>{const t=e.detail;if(!t?.videoId)return;let n=f.get(t.videoId);n||(n={hasPreroll:!1,lastPlayTime:null,accumulatedTime:0,info:t},f.set(t.videoId,n)),null===n.lastPlayTime&&0===n.accumulatedTime?n.hasPreroll=!0:null!==n.lastPlayTime&&(n.accumulatedTime+=Date.now()-n.lastPlayTime,n.lastPlayTime=null)}),document.addEventListener("player:video:start",e=>{const t=e.detail;if(!t?.videoId)return;const n=e.target;t.owner=n?.dataset?.dailymotionOwnerValue||n?.dataset?.skyOwnerValue||"undefined",t.isLive="true"===n?.dataset?.dailymotionIsLiveValue;let o=f.get(t.videoId);if(o||(o={hasPreroll:!1,lastPlayTime:null,accumulatedTime:0,info:t},f.set(t.videoId,o)),null!==o.lastPlayTime||o.accumulatedTime>0)return;o.lastPlayTime=Date.now(),o.info=t;const r=["event8"];o.hasPreroll&&r.push("event15"),w(o.info,r)}),document.addEventListener("player:video:play",e=>{const t=e,n=f.get(t.detail?.videoId);n&&null===n.lastPlayTime&&(n.lastPlayTime=Date.now())}),document.addEventListener("player:video:pause",e=>{const t=e,n=f.get(t.detail?.videoId);n&&null!==n.lastPlayTime&&(n.accumulatedTime+=Date.now()-n.lastPlayTime,n.lastPlayTime=null)}),document.addEventListener("player:video:end",e=>{const t=e,n=t.detail?.videoId;if(!n)return;const o=f.get(n);if(!o)return;null!==o.lastPlayTime&&(o.accumulatedTime+=Date.now()-o.lastPlayTime,o.lastPlayTime=null);const r=Math.round(o.accumulatedTime/1e3);w(o.info,["event9",`event64=${r}`]),f.delete(n)}),window.addEventListener("pagehide",()=>{f.forEach((e,t)=>{if(null!==e.lastPlayTime||e.accumulatedTime>0){null!==e.lastPlayTime&&(e.accumulatedTime+=Date.now()-e.lastPlayTime);const n=Math.round(e.accumulatedTime/1e3);n>0&&w(e.info,[`event64=${n}`]),f.delete(t)}})})}()},onConsentReady(e){this.attemptStart(e,"onConsentReady")},onUserActionComplete(e){this.attemptStart(e,"onUserActionComplete")},onConsentChanged(e){this.attemptStart(e,"onConsentChanged")},attemptStart(e,t){const n=(0,i.K)(),r=!0===n?.is_amp;if(this.isStarted)return void("useractioncomplete"===e.eventStatus&&(r||(!function(e){if(d.info("L'utente ha interagito con la CMP. Invio evento di consenso ad Adobe."),!window.s_gi)return;const t=(0,i.K)(),n=t?.analytics?.adobe_id||(0,a.lf)("adobe.adobeId");if(!n)return;const r=window.s_gi(n),s=(0,o.zY)(e,o.nb.StorageAndAccess)&&(0,o.zY)(e,o.nb.Measurement);r.linkTrackVars="events,eVar152",r.linkTrackEvents=s?"event115":"event125",r.eVar152=s?"Accetta tutto":"Rifiuta tutto",r.events=s?"event115":"event125",r.tl
1(!0,"o","Azione Privacy Banner"),r.linkTrackVars="None",r.linkTrackEvents="None",r.eVar152="",r.events=""}(e),g(e)&&(d.info(`[${t}] Invio Page View post-accettazione (senza prop37).`),p(e)))));const s="cmpuishown"===e.eventStatus,c=g(e);c||s?(d.info(`[${t}] ✅ Condizioni soddisfatte (Consenso: ${c} | Banner: ${s}). Avvio Adobe.`),this.isStarted=!0,function(){const e=(0,i.K)(),t=e.analytics;if(!t?.visitorLib||!t?.coreLib){const t="URL Analytics mancanti nel gzn-page-data.";return d.error(t,{data:e}),Promise.reject(t)}d.debug("Inizio caricamento script da URLs:",t);const n=(e,t)=>new Promise((n,o)=>{if(document.querySelector(`script[src="${e}"]`))return d.debug(`Script già presente: ${t}`),void n();d.debug(`Richiesta script: ${t} (${e})`);const r=document.createElement("script");r.src=e,r.async=!0,r.onload=()=>{d.debug(`Script caricato: ${t}`),n()},r.onerror=e=>{d.error(`Errore caricamento script: ${t}`,e),o(e)},document.head.appendChild(r)});return new Promise((e,o)=>{if(window.s_gi)return d.info("Oggetto s_gi già globale. Skip loading."),void e();n(t.visitorLib,"VisitorAPI").then(()=>n(t.coreLib,"AppMeasurement (Core)")).then(()=>{if(t.dmpLib)return n(t.dmpLib,"Audience Management Module")}).then(()=>e()).catch(o)})}().then(()=>{d.info("📚 Suite Adobe caricata completamente."),r?d.info("Ambiente AMP Iframe rilevato. Salto la Page View per evitare duplicati, avvio solo Video Tracking."):(d.info("Avvio Tracking Page View."),p(e)),function(){for(;m.length>0;){const e=m.shift();e&&w(e.info,e.events)}}()}).catch(e=>{d.error("❌ Tracking FALLITO",e)})):d.warn(`[${t}] ⏹️ Consenso Adobe NEGATO o INSUFFICIENTE. Rimango in attesa.`)}};function p(e,t){d.debug("Adobe Analytics PageView");const n=(0,i.K)(),r=n?.analytics?.adobe_id||(0,a.lf)("adobe.adobeId");if(d.debug(`Configurazione Runtime ADV letta. Adobe ID: ${r}`),!r||!window.s_gi)return void d.error("ABORT: RSID mancante o libreria s_gi non trovata.",{adobeId:r,s_gi:!!window.s_gi});const s=window.s_gi(r);s.account=r,s.trackingServer="smetrics.rcsmetrics.it",s.visitorNamespace="rcsdigital",s.currencyCode="EUR",s.charSet="UTF-8",s.linkInternalFilters="javascript:,"+window.location.hostname+",gazzanet.gazzetta.it,gazzetta.it",s.events="event2";let c=s.loadModule("AudienceManagement");if(!c&&window.AppMeasurement_Module_AudienceManagement){d.warn("⚠️ loadModule fallito. Tento inizializzazione manuale DMP...");try{c=new window.AppMeasurement_Module_AudienceManagement(s),s.AudienceManagement=c}catch(e){d.error("Errore inizializzazione manuale DMP",e)}}if(c){d.info("✅ Modulo AudienceManagement attivo.");const e={partner:"rcs",containerNSID:0,uuidCookie:{name:"aam_id",days:30},visitorService:{namespace:"rcsdigital"}};c.setup(e),c.instance&&d.debug("DMP Instance pronta:",c.instance)}else d.warn("Modulo AudienceManagement NON caricato.");const u=function(){const e="/"===window.location.pathname?"":window.location.pathname;return((0,a.lf)("adobe.domain").toUpperCase()+e).replace(/\/$/,"")}();s.pageName=u,s.eVar11=u,s.channel="Gazzetta Network",s.prop8="Gazzanet",s.eVar8="Gazzanet",s.prop9=window.location.href,s.eVar74=window.location.href,n.wordpressId&&(s.prop11=n.wordpressId),s.prop15="not logged in",s.eVar15="not logged in",s.prop22=document.title,s.prop7=(0,a.lf)("adobe.domain"),s.eVar76=(0,a.lf)("adobe.domain"),s.prop12=n.sezione||"home",s.eVar12=n.sezione||"home";const l=(0,o.zY)(e,o.nb.StorageAndAccess)&&(0,o.zY)(e,o.nb.Measurement);s.eVar152=l?"Accetta tutto":"Rifiuta tutto","cmpuishown"===e.eventStatus?s.prop37="Privacy Banner":s.prop37="",s.events=["event2"].join(","),s.prop43="rcsgazzettaproddef",n.article&&n.article.createdAt&&(s.prop48=function(e){if(!e)return"";const t=new Date(e);if(isNaN(t.getTime()))return"";const n=String(t.getDate()).padStart(2,"0"),o=String(t.getMonth()+1).padStart(2,"0"),r=t.getFullYear();return`${n}/${o}/${r}`}(n.article.createdAt)),n.analytics.type&&(s.prop53=n.analytics.type,s.eVar53=n.analytics.type);const p=document.querySelectorAll('[data-controller~="dailymotion"], [data-controller~="sky"]').length;if(s.eVar60=p>0?`Si|${p}`:"No",document.referrer&&document.referrer.indexOf(window.location.hostname)>-1){const e=new URL(document.referrer),t=(e.hostname.toUpperCase(),e.pathname);s.prop66=((0,a.lf)("adobe.domain").toUpperCase()+t).replace(/\/$/,"")}n.analytics.adv_path&&(s.prop69=n.analytics.adv_path);const g=new URLSearchParams(window.location.search);t?(s.prop71=t,s.eVar77=t):g.has("refresh_ce-cp")?(s.prop71="refresh_ce-cp",s.eVar77="refresh_ce-cp"):g.has("refresh_ce")?(s.prop71="refresh_ce",s.eVar77="refresh_ce"):(s.prop71="no_refresh",s.eVar77="no_refresh"),g.has("intcmp")&&(s.eVar22="gazzanet-"+(0,a.lf)("adv.site")),s.eVar80="no";let f=window.location.origin+window.location.pathname;f=f.replace(/\/\d+\/?$/,""),s.eVar93=f.replace(/\/$/,""),s.eVar160="si"===n.analytics.have_video?"si":"no";
1const m=document.querySelector("#article-content");if(m){const e=m.querySelectorAll("img").length-1;e>0&&(s.eVar137=String(e))}if(e.purpose&&e.purpose.consents){const t=Object.entries(e.purpose.consents).filter(([e,t])=>!0===t).map(([e])=>e).join("|");s.eVar150=t}document.querySelectorAll('[data-controller~="oddschecker"]').length>0&&(s.eVar151="Oddschecker");const h=(e=>{const t={};return["pageName","channel","events","account","trackingServer"].forEach(n=>t[n]=e[n]),Object.keys(e).forEach(n=>{(n.startsWith("prop")||n.startsWith("eVar")||"hier1"===n)&&e[n]&&(t[n]=e[n])}),t})(s);d.info(`Invio Beacon a [${r}]`,h),s.t()}function g(e){return(0,o.zY)(e,o.nb.StorageAndAccess)&&(0,o.zY)(e,o.nb.Measurement)}const f=new Map,m=[];let h=!1;function w(e,t){if(!window.s_gi)return void m.push({info:e,events:t});const n=(0,i.K)(),o=n?.analytics?.adobe_id||(0,a.lf)("adobe.adobeId");if(!o)return void d.warn("Adobe ID mancante in sendVideoAdobeCall, tracking abortito.");const r=window.s_gi(o),s=n?.adv?.site||window.location.hostname.replace("www.","").split(".")[0],c=n?.adv?.channel||"",u=n?.adv?.player_site||"",l=n?.adv?.pre_roll_analytics||n?.adv?.pre_roll||"",p=n?.adv?.video_type||"articolo_ancorato";if(r.linkTrackVars="prop20,eVar20,prop23,eVar23,prop24,eVar24,prop26,eVar26,prop27,eVar27,prop31,eVar31,prop34,prop35,eVar35,prop42,eVar42,prop45,prop69,eVar69,eVar71,eVar72,eVar90,eVar99,eVar171,events",r.linkTrackEvents=t.map(e=>e.split("=")[0]).join(","),r.prop20=e.title,r.eVar20=e.title,r.prop23=c,r.eVar23=c,r.prop24=c,r.eVar24=c,r.prop26=u,r.eVar26=u,"sky"===e.owner?(r.prop27="sky",r.eVar27="sky"):(r.prop27=e.provider,r.eVar27=e.provider),r.prop31=c,r.eVar31=c,r.prop34="16_09",e.publishDate&&(r.prop35=e.publishDate,r.eVar35=e.publishDate),r.prop42=e.autoplay?"true":"false",r.eVar42=e.autoplay?"true":"false",console.log("owner arrivato dal DOM/controller:",e.owner),"rcs-gazzetta"===e.owner||"sky"===e.owner?r.prop45="gazzetta":r.prop45="gazzanet",r.eVar69=e.isLive?"Live":"Vod",r.prop69=l,e.originPath){const t=e.originPath.startsWith("/")?e.originPath:`/${e.originPath}`;r.eVar71=`${window.location.origin}${t}`}else r.eVar71=window.location.href;r.eVar72=window.location.href,r.eVar90=e.videoId,r.eVar99="true",r.eVar171=p,r.events=t.join(","),d.info(`[Adobe] Video Tracking Event: ${t.join(", ")}`,{info:e,siteName:s}),r.tl(!0,"o","Video Tracking"),r.linkTrackVars="None",r.linkTrackEvents="None",r.prop20="",r.eVar20="",r.prop23="",r.eVar23="",r.prop24="",r.eVar24="",r.prop26="",r.eVar26="",r.prop27="",r.eVar27="",r.prop31="",r.eVar31="",r.prop34="",r.prop35="",r.eVar35="",r.prop42="",r.eVar42="",r.prop45="",r.prop69="",r.eVar71="",r.eVar72="",r.eVar90="",r.eVar99="",r.eVar171="",r.events=""}t.A=l},4388:function(e,t,n){n.d(t,{Ay:function(){return C},kB:function(){return b},CW:function(){return A},nH:function(){return V}});var o=n(85937),r=n(47455),a=n(55821),i=n(51405);function s(e){return"object"==typeof e&&null!==e}function c(e,t){const n=e[t];if("function"!=typeof n)return"";const o=n.call(e);return"string"==typeof o?o:""}function d(e){if(!Array.isArray(e))return{};const t=e.find(e=>s(e)&&"video"===e.mediaType);if(!t)return{};const n=function(e){const t={};return new URLSearchParams(e.replace(/^&+/,"")).forEach((e,n)=>{""!==n&&""!==e&&(t[n]=e)}),t}(function(e){const t=s(e.helpers)?e.helpers:{};try{const n="string"==typeof e.qsParams?e.qsParams:c(t,"qsParams");if(""!==n)return n;const o="string"==typeof e.encodedQsParams?e.encodedQsParams:c(t,"encodedQsParams");return""===o?"":decodeURIComponent(o)}catch{return""}}(t));return Object.keys(n).length>0?n:function(e){const t={};if(!s(e.targeting))return t;for(const[n,o]of Object.entries(e.targeting))"string"!=typeof o&&"number"!=typeof o||""===String(o)||(t[n]=String(o));return t}(t)}var u=n(23782);const l=(0,i.h)("hb","amazon"),p="3692",g=["rcsad_Bottom","rcsad_Bottom1","rcsad_Bottom2","rcsad_Bottom3","rcsad_Left1","rcsad_Left2"],f="videoSlot_preroll",m=1500,h=300,w={startingDelay:100,timeMultiple:1.6,maxDelay:300,numOfAttempts:4,jitter:.2};let y=!1,v=!1;function b(){return y&&void 0!==window.apstag||v}function P(e){const t=(0,r.zY)(e,r.nb.StorageAndAccess),n=(0,r.zY)(e,r.nb.PersonalisedProfile),o=(0,r.zY)(e,r.nb.PersonalisedAds);return t&&(n||o)}async function S(){if(y||document.getElementById("amazon-aps-script"))return void l.debug("Amazon APS script already loaded or in progress");l.info("Initializing Amazon APS wrapper...");const e=window;return e.apstag=e.apstag||{_Q:[],init:function(...e){this._Q.push(["i",e])},fetchBids:function(...e){this._Q.push(["f",e])},setDisplayBids:function(){},targetingKeys:function(){return[]}},new Promise(t=>{const n=document.createElement("script");n.id="amazon-aps-script",n.async=!0,n.src="//c.amazon-adsystem.com/aax2/apstag.js",n.onload=()=>
1{y=!0,l.info("Amazon APS script loaded successfully"),e.apstag.init({pubID:p,adServer:"googletag",videoAdServer:"DFP"}),l.info("Amazon APS initialized with pubID",{pubID:p}),(0,u.Qr)("aps:ready"),t()},n.onerror=e=>{l.error("Amazon APS script failed to load",e),v=!0,(0,u.Qr)("adv:error",{reason:"aps-script-load-failed"}),t()},document.head.appendChild(n)})}function A(e){if(!b()||v)return l.warn("APS requestBidsAsync aborted: APS not ready or failed"),Promise.resolve();l.info("APS requestBidsAsync started",{incomingSlotsCount:e.length});const t=e.filter(e=>{const t=e.getSlotElementId?.(),n=t&&g.includes(t);return n?l.debug("APS Slot excluded (Blacklist)",{id:t}):t||l.debug("APS Slot excluded (No ID found)",{slot:e}),t&&!n}).map(e=>{let t=[];try{t=(e.getSizes?.()||[]).map(e=>[e.getWidth(),e.getHeight()])}catch(t){l.warn("Failed to parse sizes for APS",{id:e.getSlotElementId?.(),error:t})}return{slotID:e.getSlotElementId?.(),slotName:e.getAdUnitPath?.(),sizes:t}}).filter(e=>0!==e.sizes.length||(l.debug("APS Slot excluded (No valid sizes)",{id:e.slotID}),!1));return 0===t.length?(l.info("APS Auction skipped: No valid slots after filtering"),Promise.resolve()):(l.info("APS fetchBids starting",{validSlotsCount:t.length,slots:t.map(e=>e.slotID)}),new Promise(e=>{window.apstag.fetchBids({slots:t,timeout:2e3},t=>{l.info("APS fetchBids completed",{bids:t});(window.googletag||{cmd:[]}).cmd.push(()=>{l.debug("APS setting targeting keys in GPT (setDisplayBids)"),window.apstag.setDisplayBids()}),e()})}))}function _(){return y&&!v&&"function"==typeof window.apstag?.fetchBids}async function V(e){const t=a.s.get();if(!t||!P(t))return l.debug("APS video skipped: advertising consent missing"),{};if(!await async function(){if(_())return!0;try{return await(0,o.f)(()=>{if(_())return!0;throw new Error("APS not ready")},{...w,retry:()=>!v}),!0}catch{return!1}}())return l.warn("APS video skipped: apstag not ready after backoff"),{};const n=window.apstag;return new Promise(t=>{const o=performance.now();let r=!1,a=0;const i=(e,n)=>{r||(r=!0,window.clearTimeout(a),l.info("APS video auction done",{source:n,ms:Math.round(performance.now()-o),targeting:e}),t(e))};a=window.setTimeout(()=>i({},"failsafe"),m+h);try{const t={slotID:f,mediaType:"video"};e&&(t.ext={gpid:e}),l.info("APS fetchBids (video) starting",{slotID:f,gpid:e,timeout:m}),n.fetchBids({slots:[t],timeout:m},e=>i(d(e),"response"))}catch(e){l.error("APS fetchBids (video) threw",e),i({},"exception")}})}var C={name:"amazon-aps",priority:"normal",requiresConsent:"advertising",register(){l.debug("APS Vendor registered");const e=a.s.get();e&&P(e)?(l.info("APS starting via register (Consent already present)"),S()):l.debug("APS waiting for consent...")},onConsentReady(e){P(e)?(l.info("APS starting via onConsentReady"),S()):l.debug("APS consent denied at onConsentReady")},onConsentChanged(e){P(e)?(l.info("APS starting via onConsentChanged"),S()):l.debug("APS consent denied at onConsentChanged")},onUserActionComplete(e){P(e)?(l.info("APS starting via onUserActionComplete"),S()):l.debug("APS consent denied at onUserActionComplete")}}},23782:function(e,t,n){n.d(t,{HS:function(){return a},Qr:function(){return r}});const o=new EventTarget;function r(e,t){o.dispatchEvent(new CustomEvent(String(e),{detail:t}))}function a(e,t){const n=e=>t(e.detail);return o.addEventListener(String(e),n),()=>o.removeEventListener(String(e),n)}},5379:function(e,t,n){n.d(t,{C9:function(){return i},Is:function(){return a},a5:function(){return s}});const o=(0,n(51405).h)("hb","hb-registry"),r=new Map;function a(e,t,n){r.has(e)||(r.set(e,{id:e,group:n,slot:t}),o.info(`HB slot registered in group [${n}]`,{id:e}))}function i(e){return Array.from(r.values()).filter(t=>t.group===e).map(e=>e.slot)}function s(){const e=new Set,t=document.querySelectorAll('[data-controller~="adv"][data-adv-fetch-group-value="sra"]');if(0===t.length)return e;const n=window.matchMedia("(max-width: 767px)").matches;return t.forEach(t=>{const o=t.dataset.id;if(!o)return;const r="false"!==t.dataset.advIsMobileValue,a="false"!==t.dataset.advIsDesktopValue;let i=!1;n?r&&(i=!0):a&&(i=!0),i&&e.add(o)}),o.info("Scanner: SRA Discovery complete",{qualified:e.size}),e}},77062:function(e,t,n){n.d(t,{X6:function(){return N}});var o=n(47455),r=n(55821),a=n(51405),i=n(4388),s=n(23782),c=n(2549),d=n(68169),u=n(5379),l=n(32781);const p=(0,a.h)("hb","hb"),g="//micro.rubiconproject.com/prebid/dynamic/10814.js",f=2700;let m=!1,h=null,w=null,y=null,v=null;const b=new Set;let P=!1,S=!1,A=new Set;const _=new Set;let V=!1;function C(){return window.pbjs??null}function z(){const e=C(),t=e?.rp;return t?.requestBids?t:null}function k(){const e=window.googletag;return e?.pubads?e:null}function T(){h&&window.clearTimeout(h),w&&window.clearTimeout(w),y&&window.clearTimeout(y),null!==v&&window.clearTimeout(v),h=null,w=null,y=null,v=null,b.clear()}function E(){A=(0,u.a5)(),V=!0,p.info("HB Discovery Status:",{done:V,count:A.size})}async function I(e){return!!function(e){const t=(0,o.zY)(e,o.nb.StorageAndAccess),n=(0,o.zY)(e,o.nb.PersonalisedProfile),r=(0,o.zY)(e,o.nb.PersonalisedAds);return t&&(n||r)}(e)&&(await H(),!0)}function $(){if(P)return;const e=C();e?.onEvent&&(P=!0,e.onEvent("auctionInit",e=>p.info("pbjs auctionInit",e)),e.onEvent("auctionEnd",e=>p.info("pbjs auctionEnd",e)))}function B(){if(S)return;const e=k();e?.cmd&&(S=!0,e.cmd.push(()=>{try{e.pubads().addEventListener("slotRenderEnded",e=>{p.info("[gpt] slotRenderEnded",{id:e.slot.getSlotElementId?.(),isEmpty:e.isEmpty,lineItemId:e.lineItemId})})}catch(e){p.error("Failed to install GPT debug events",e)}}))}function R(e,t){const n=k(),o=C();n?.cmd&&e.length&&n.cmd.push(()=>{try{o?.setTargetingForGPTAsync?.();const r=n.pubads().getSlots?.()??[];p.info("[gpt] targeting maps",r.map(e=>({id:e.getSlotElementId?.(),kv:e.getTargetingMap?.()}))),n.pubads().refresh(e),p.info("HB refresh fired",{source:t,count:e.length,ids:e.map(e=>e.getSlotElementId?.())}),(0,s.Qr)("hb:adserver:refreshed",{count:e.length})}catch(e){p.error("HB refresh error",e),(0,s.Qr)("hb:error",{reason:"refresh-error"})}})}function D(e,t){if(!e.length)return;const n=r.s.get();if(n&&(0,l.p)(n))return p.info(`Limited Ads mode: bypassing HB auction [${t}]`),void R(e,`${t}-limited-ads`);const o=C(),a=z();if(!o||!a)return p.warn(`No PBJS/RP available, refreshing directly. Source: ${t}`),void R(e,`${t}-fallback`);p.info(`HB auction start [${t}]`,{count:e.length});let c=!1;const d=()=>{c||(c=!0,R(e,t),(0,s.Qr)("hb:auction:done",{source:t}))};window.setTimeout(()=>{c||(p.info(`HB failsafe fired [${t}]`),d())},3500);const u=new Promise(n=>{(o.que||(o.que=[])).push(()=>{try{a.requestBids({gptSlotObjects:e,timeout:f,callback:()=>n()})}catch(e){p.error(`HB requestBids threw [${t}]`,e),n()}})}),g=(0,i.CW)(e);Promise.all([u,g]).then(()=>{p.info(`HB & APS bids callback [${t}]`),d()})}function M(e,t=0){if(t>30)return void p.warn("HB Give up",{source:e});const n=function(){const e=r.s.get();return e&&(0,l.p)(e)?{ok:!0}:V?(0,c.fj)()?z()?(0,d.dV)()?(0,i.kB)()?{ok:!0}:{ok:!1,why:"aps-not-ready"}:{ok:!1,why:"dmp-not-ready"}:{ok:!1,why:"wrapper-not-ready"}:{ok:!1,why:"gpt-not-ready"}:{ok:!1,why:"discovery-pending"}}();if(!n.ok&&("wrapper-not-ready"===n.why||"discovery-pending"===n.why))return y&&clearTimeout(y),void(y=window.setTimeout(()=>{M(e,t+1)},200));n.ok?function(e){const t=(0,u.C9)("sra");
1if(!t.length)return void p.info("HB skip: no SRA slots registered yet",{source:e});T(),$(),B(),D(t,e)}(e):p.info("HB wait",{source:e,why:n.why})}function L(){w||(w=window.setTimeout(()=>M("hard-timeout"),1200))}function j(){h&&window.clearTimeout(h),h=window.setTimeout(()=>M("debounce"),200)}function U(e){b.add(e),null===v&&(v=window.setTimeout(()=>{v=null;const e=Array.from(b).join("+");b.clear(),M(e)},0))}function x(){if(!(0,c.fj)())return void p.info("BFCache ADV restore skipped: GPT not ready");const e=function(){const e=k();if(!e?.cmd)return[];try{return e.pubads().getSlots?.()??[]}catch(e){return p.error("Unable to collect GPT slots for BFCache refresh",e),[]}}();e.length?($(),B(),D(e,"bfcache-restore")):p.info("BFCache ADV restore skipped: no GPT slots")}async function H(){if(m)return;!function(){const e=window;e.pbjs=e.pbjs||{},e.pbjs.que=e.pbjs.que||[],e.pbjs.que.push(()=>{try{e.pbjs.setConfig?.({consentManagement:{gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0,allowAuctionWithoutConsent:!1},usp:{timeout:50}}})}catch(e){p.error("Failed to prime pbjs consent queue",e)}})}();if(document.querySelector(`script[src*="${g}"]`))return m=!0,void(0,s.Qr)("hb:ready");const e=document.createElement("script");e.async=!0,e.src=g,e.onload=()=>{m=!0,p.info("Magnite wrapper loaded"),(0,s.Qr)("hb:ready")},e.onerror=()=>{p.error("Magnite wrapper failed"),(0,s.Qr)("hb:error",{reason:"script-load-failed"})},document.head.appendChild(e)}async function N(e,t=[640,360]){return await H(),new Promise(n=>{const o=window.pbjs,r=window.setTimeout(()=>{p.warn("HB Video auction timeout",{adUnitCode:e}),n({})},f);if(!o)return p.error("HB Video ERRORE: pbjs non trovato in pagina"),window.clearTimeout(r),n({});const a=[],s=new Promise(n=>{o.que.push(()=>{const r=o.rp;if(!r||"function"!=typeof r.requestVideoBids)return p.error("HB Video ERRORE: pbjs.rp.requestVideoBids non esiste"),n({});try{p.info(`Lancio requestVideoBids (Prebid) per: ${e}`),r.requestVideoBids({adSlotName:e,playerSize:t,callback:function(){const t=o.getAdserverTargeting()?.[e]||{};p.info(`🎯 Prebid callback response per ${e}:`,t),n(t)}})}catch(e){p.error("Exception in Prebid video",e),n({})}})});a.push(s),a.push((0,i.nH)(e)),Promise.all(a).then(e=>{window.clearTimeout(r);const t={};e.forEach(e=>{if(e&&"object"==typeof e)for(const[n,o]of Object.entries(e))null!=o&&""!==o&&(t[n]=String(o))}),p.info("🎯 HB Video Targeting FINALE fuso:",t),n(t)})})}const O={name:"hb",priority:"normal",requiresConsent:"advertising",async register(){var e;e="register",T(),_.clear(),"complete"!==document.readyState&&"interactive"!==document.readyState||E(),p.info("HB state reset",{reason:e}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{E();r.s.get()&&U("dom-ready")}):E();const t=r.s.get();!!t&&await I(t)&&(L(),j(),U("initial-consent")),(0,s.HS)("hb:ready",()=>{L(),j(),U("hb-ready")}),(0,s.HS)("gpt:ready",()=>{L(),j(),U("gpt-ready")}),(0,s.HS)("dmp:ready",()=>{L(),j(),U("dmp-ready")}),(0,s.HS)("aps:ready",()=>{L(),j(),U("aps-ready")}),(0,s.HS)("hb:slot-registered",e=>{"sra"===e?.group&&(L(),j())}),(0,s.HS)("hb:lazy-trigger",e=>{e?.slot&&D([e.slot],`lazy-${e.id}`)}),(0,s.HS)("adv:trigger-skyscrapers",()=>{p.info("Triggering Skyscraper auction, adv:trigger-skyscrapers event received");D((0,u.C9)("skyscraper"),"skyscraper-group")}),(0,s.HS)("adv:bfcache-restore",()=>{x()})},async onConsentReady(e){e&&(await I(e),L(),j(),U("consent-ready"))},async onConsentChanged(e){e&&(await I(e),L(),j(),U("consent-changed"))},async onUserActionComplete(e){e&&(await I(e),L(),j(),U("user-action"))}};t.Ay=O},32781:function(e,t,n){n.d(t,{p:function(){return g}});var o=n(75735),r=n.n(o),a=n(47455),i=n(55821),s=n(1853),c=n(51405),d=n(23782),u=n(2549),l=n(8051);const p=(0,c.h)("adv","vendor");function g(e){if(!e)return!0;const t=(0,a.zY)(e,a.nb.StorageAndAccess),n=(0,a.zY)(e,a.nb.PersonalisedProfile),o=(0,a.zY)(e,a.nb.PersonalisedAds);return!t||!n&&!o}async function f(e,t){p.info(`bootAdvertising (${t})`),await new Promise(e=>{const t=window.googletag;if(t?.apiReady)return e();window.googletag=t||{cmd:[]},window.googletag.cmd.push(()=>e())});const n=window.googletag;!function(e){const t=window.googletag||{cmd:[]};t.cmd.push(()=>{const n=l.V.getCommonParams(e);
1Object.entries(n).forEach(([e,n])=>{n&&t.pubads().setTargeting(e,n)}),console.log("Targeting Globale Inizializzato:",n)})}(e),(0,u.Zm)()?p.info("gpt already booted."):((0,u.Wy)(),n.cmd.push(()=>{const t=n.pubads(),o=g(e);t.setPrivacySettings({nonPersonalizedAds:o}),n.enableServices(),(0,u.kn)(),(0,d.Qr)("gpt:ready");const r=(0,u.EW)()?.site??"";(0,d.Qr)("adv:ready",{site:r}),p.info("gpt services enabled (waiting for HB to refresh)",{limitedAds:o})}))}const m={name:"adv",priority:"normal",requiresConsent:"advertising",async register(){l.V.initListeners(),await new Promise(e=>{window.googletag=window.googletag||{cmd:[]};const t=window.googletag;if(t.apiReady)return e();const n=document.createElement("script");n.async=!0,n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.addEventListener("load",()=>t.cmd.push(()=>e())),n.addEventListener("error",()=>e()),document.head.appendChild(n)});const e=window.googletag;e.cmd.push(()=>{const t=e.pubads();e.setConfig({singleRequest:!0,disableInitialLoad:!0,collapseDiv:"DISABLED",lazyLoad:{fetchMarginPercent:200,renderMarginPercent:30,mobileScaling:2}}),t.enableAsyncRendering();const n=window.matchMedia("(max-width: 767px)").matches?"Mobile":"Desktop",o=(0,s.J)("gam");o&&"object"==typeof o&&Object.entries(o).forEach(([e,o])=>{const r=o.replace("[DEVICE]",n);t.setTargeting(e,r)});const a=l.V.getPpid();if(a){const e=r().hash(a);t.setPublisherProvidedId(e)}});const t=i.s.get();if(t&&"cmpuishown"!==t.eventStatus)try{await f(t,"register")}catch(e){p.warn("bootAdvertising failed",e)}},async onConsentReady(e){e&&"cmpuishown"===e.eventStatus?p.info("CMP UI is open. Waiting for user action..."):await f(e,"consent-ready")},async onConsentChanged(e){e&&"cmpuishown"===e.eventStatus||await f(e,"consent-changed")},onUserActionComplete(e){setTimeout(()=>{f(e,"user-action").catch(e=>console.error(e))},200)}};t.A=m},2549:function(e,t,n){n.d(t,{EW:function(){return l},Wy:function(){return s},Zm:function(){return i},_r:function(){return u},fj:function(){return c},kn:function(){return d}});let o,r=!1,a=!1;function i(){return r}function s(){r=!0}function c(){return a}function d(){a=!0}function u(e){o=e}function l(){return o}},8051:function(e,t,n){n.d(t,{V:function(){return u}});var o=n(75735),r=n.n(o),a=n(47455),i=n(55821);function s(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t?decodeURIComponent(t[2]):null}var c=n(1853);class d{static resolve(){try{const e=localStorage.getItem(this.LS_KEY);if(e){const t=JSON.parse(e);return{city:t.city,outlook:t.outlook,temperature:t.temperature,sea:t.sea,altitude:t.altitude,uv:t.uv,precipitationType:t.precipitationType}}}catch(e){}const e=s("meteoOutlook");return{outlook:e?encodeURIComponent(e):void 0,temperature:s("meteoTemp")||void 0,sea:s("meteoSea")||void 0,altitude:s("meteoAltitude")||void 0,uv:s("meteoUv")||void 0,precipitationType:s("meteoPrecipitationType")||void 0}}}d.LS_KEY="gzn_meteo";class u{static getCommonParams(e){const t={},n=(0,c.K)(),o=e||i.s.get(),r=window.matchMedia("(max-width: 767px)").matches,l=r?"Mobile":"Desktop",p=n?.adv?.page_type||"articolo",g=n?.adv?.site||"Gazzanet",f=g.charAt(0).toUpperCase()+g.slice(1);t.tipo_pagina=p,t.sito_device_tipo=`${f}_${l}_${p}`,t.gestione_APP="false",t.gestione_AMP=!0===n?.is_amp?"true":"false",t["lowend-device"]=this.isLowEndDevice(),t.inventory_type=r?"mWeb":"web",t.Chrome=this.getBrowserTargeting(),t.exclude_nsb="false",t.expandingADV=r?"false":"true",t["top&topleft"]="false",t.manine="false";const m=d.resolve();if(m.city&&(t.city=m.city),m.outlook&&(t.outlook=m.outlook),m.temperature&&(t.temperature=m.temperature),m.sea&&(t.sea=m.sea),m.altitude&&(t.altitude=m.altitude),m.uv&&(t.uv=m.uv),m.precipitationType&&(t.precipitationType=m.precipitationType),o){const e=(0,a.zY)(o,a.nb.StorageAndAccess),n=(0,a.zY)(o,a.nb.PersonalisedProfile),r=(0,a.zY)(o,a.nb.PersonalisedAds);e&&(n||r)||(t.limitedads="1")}else t.limitedads="1";const h=s("s_fid");h&&(t.RCSadobe=h);const w=this.getPermutiveSegments();w&&(t.permutive=w);const y=this.getLegacyCompatibleKeywords();y.length>0&&(t.keyword=y);try{const e=localStorage.getItem(this.ADV_REFRESH_KEY),n=window.location.origin+window.location.pathname;if(e){if(e===n){const e=document.hidden;t.advDFPRefresh=e?"autoRefreshNonInView":"humanRefresh"}setTimeout(()=>{localStorage.removeItem(this.ADV_REFRESH_KEY)},1e3)}}catch(e){}t["permutive-id"]=u.getPermutiveId();const v=localStorage.getItem("_gzn_permutive_rand_num"),b=v?parseInt(v,10):Math.floor(10*Math.random());t.soggetto=String(b%4+1);const P=document.querySelector('[data-controller~="adv"][data-id="Position1"]'),S=P&&"sra"===P.getAttribute("data-adv
1-fetch-group-value");return t.pos1=S?"true":"false",t}static getPpid(){const e=s("ppid");if(e)return e;const t=s("s_fid");if(t)return r().hash(t);const n=this.getPermutiveId();return n?r().hash(n):""}static initListeners(){window.addEventListener("pagehide",()=>{try{const e=window.location.origin+window.location.pathname;localStorage.setItem(this.ADV_REFRESH_KEY,e)}catch(e){}})}static getPermutiveId(){try{const e=localStorage.getItem("permutive-id");if(e)return e}catch(e){}return s("permutive-id")||""}static getPermutiveSegments(){try{const e=localStorage.getItem("_pdfps");if(e){const t=JSON.parse(e);if(Array.isArray(t))return t.join(",")}}catch(e){}return""}static getBrowserTargeting(){const e=navigator.userAgent||"";let t="other";e.includes("Edg")?t="edge":e.includes("Chrome")?t="control_1":e.includes("Firefox")?t="firefox":e.includes("Safari")&&!e.includes("Chrome")?t="safari":e.includes("Android")&&(t="android");return t+("true"===sessionStorage.getItem("FP_PRVT_USER")?"_incognito":"")}static isLowEndDevice(){const e=navigator,t=(e.userAgent||e.vendor||window.opera||"").toLowerCase().includes("android"),n="deviceMemory"in e&&e.deviceMemory<8;return t&&n?"true":"false"}static getLegacyCompatibleKeywords(){const e=window.location.href,t=new Set;e.split(/[^a-zA-Z0-9]+/).forEach(e=>{e&&e.length>1&&t.add(e)});const n=new URL(e),o=n.searchParams.get("keyword");o&&o.split(",").forEach(e=>{const n=e.trim();n&&t.add(n)});const r=n.searchParams.get("k");return r&&t.add(r),Array.from(t)}}u.ADV_REFRESH_KEY="_gzn_adv_refresh"},73113:function(e,t,n){var o=n(55821),r=n(1853),a=n(51405),i=n(8051);const s=(0,a.h)("player","vast-manager");t.A=class{static buildVastUrl(e,t){const n=(0,r.K)(),a=o.s.get(),c=a?"1":"0",d=a?.tcString||"",u={video:e,options:t,pageData:n,tcData:a},{autoplay:l,vid_d:p,sz:g="640x360",iu:f=n.adv.pre_roll,vpos:m="preroll",gdfp_req:h="1",env:w="vp",output:y="xml_vast4",unviewed_position_start:v="1",url:b=window.location.href,description_url:P=window.location.href,correlator:S=Math.floor(1e7*Math.random()).toString(),vpa:A=(l?"auto":"click"),vpmute:_=(l?"1":"0"),plcmt:V,ciu_szs:C="2x2",ppid:z=i.V.getPpid(),cmsid:k=n.adv?.cmsid?.toString()||"4131255",ppos:T=1,vid:E=e.id.toString(),vconp:I=1,media_url:$="",kadpageurl:B=window.location.href,hl:R=n.adv?.hl,is_amp:D=0,gdpr:M=c,gdpr_consent:L=d}=t,j=new URL("https://securepubads.g.doubleclick.net/gampad/ads");j.searchParams.set("sz",g),j.searchParams.set("iu",f),j.searchParams.set("vpos",m.toLowerCase()),j.searchParams.set("gdfp_req",h),j.searchParams.set("env",w),j.searchParams.set("output",y),j.searchParams.set("unviewed_position_start",v),j.searchParams.set("url",b),j.searchParams.set("description_url",P),j.searchParams.set("correlator",S),j.searchParams.set("gdpr",M),j.searchParams.set("vpa",A),j.searchParams.set("vpmute",_),j.searchParams.set("vid_d",p.toString()),j.searchParams.set("plcmt",V),j.searchParams.set("ciu_szs",C),j.searchParams.set("ppid",z),j.searchParams.set("cmsid",k),j.searchParams.set("ppos",T.toString()),j.searchParams.set("vid",E.toString()),j.searchParams.set("vconp",I.toString()),j.searchParams.set("media_url",$),j.searchParams.set("kadpageurl",B),j.searchParams.set("is_amp",D.toString()),R&&j.searchParams.set("hl",R),L&&j.searchParams.set("gdpr_consent",L);const U=this.assembleCustParams(u);j.searchParams.set("cust_params",U);let x="null";if(t.extraCustParams&&Object.keys(t.extraCustParams).length>0){const e=new URLSearchParams;Object.entries(t.extraCustParams).forEach(([t,n])=>{null!=n&&e.set(t,String(n))}),x=decodeURIComponent(e.toString()),s.info("📦 [SCP] Generata stringa scp da inserire nel VAST:",x)}else s.info('📦 [SCP] Nessun parametro HB/APS ricevuto. Imposto scp a "null".');return j.searchParams.set("scp",x),s.info("✅ VAST URL FINALE GENERATO:",j.toString()),j.toString()}static assembleCustParams(e){const{video:t,options:n,pageData:o}=e,r=new URLSearchParams;r.set("verticale",t.isPortrait?"yes":"no"),r.set("video_autoplay",n.autoplay?"true":"false");let a=n.sz||"640x360";n.playerWidth&&n.playerHeight&&(a=`${n.playerWidth}
1x${n.playerHeight}`),r.set("dimensione_player",a),r.set("channel",o.adv.channel||""),r.set("player",o.adv.player||"");const s=window.matchMedia("(max-width: 767px)").matches?"mobile":"desktop",c=o.adv?.video_type||"articolo_ancorato";r.set("tipo_video",c),r.set("player_size",`${s}_${c}_large`),n.extraCustParams&&Object.entries(n.extraCustParams).forEach(([e,t])=>{null!=t&&r.set(e,String(t))});const d=i.V.getCommonParams();return Object.entries(d).forEach(([e,t])=>{const n=Array.isArray(t)?t.join(","):t;r.set(e,n)}),decodeURIComponent(r.toString())}static getDmConfigFromVast(e){const t=new URL(e);return{dynamiciu:t.searchParams.get("iu"),keyvalues:t.searchParams.get("cust_params"),ppid:t.searchParams.get("ppid")||"",plcmt:t.searchParams.get("plcmt")||"1",otherparams:[`vid=${t.searchParams.get("vid")||""}`,`vconp=${t.searchParams.get("vconp")||""}`,`kadpageurl=${encodeURIComponent(t.searchParams.get("kadpageurl")||"")}`,`scp=${t.searchParams.get("scp")||"null"}`,`sz=${t.searchParams.get("sz")||"640x360"}`,`gdpr=${t.searchParams.get("gdpr")||"0"}`,`gdpr_consent=${t.searchParams.get("gdpr_consent")||""}`].join("&")}}}},68169:function(e,t,n){n.d(t,{KR:function(){return r},dV:function(){return a}});let o=!1;function r(){o=!0}function a(){return o}}}]);
2//# sourceMappingURL=7119.ba90279b.js.map

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.