PageSourceSearch

https://www.magicnet.it/wp-content/plugins/myagileprivacy-advanced…/assets/js/map-advanced.js?ver=3.4.0

js magicnet.it collected 2026-10-10 01:01:24 UTC 15,764 bytes, 1 lines download raw bytes

1!function(){"use strict";if("undefined"!=typeof map_full_config){var _listeners={},_nextId=0,_optedOut=!1,_decided=!1,_tcfSeen=!1,_chainOpen=!1,_tcfSection="",_tcfParsed=null,_cmpStatus="loading",_signalStatus="not ready",_displayed="hidden",_readyTimer=null,_geoRaw=null,_geoVal=null;window.MAPUpdateGPP=function(optedOut){_beginChange(),_decided=!0,_optedOut=!!optedOut,_endChange(_isUsVisitor()?"usnat":null)},window.MAPUpdateGPPSection=function(section,parsed){if("string"!=typeof section||-1===section.indexOf("~")){var value="string"==typeof section?section:"";_tcfParsed=parsed&&"object"==typeof parsed?parsed:null,value!==_tcfSection&&(_beginChange(),_tcfSeen&&(_decided=!0),_tcfSeen=!0,_tcfSection=value,_endChange("tcfeuv2"))}},window.addEventListener("myagileprivacy_cookie_accept",_onDecision(!1)),window.addEventListener("myagileprivacy_cookie_reject",_onDecision(!0)),window.addEventListener("myagileprivacy_single_cookie_accept",_onGranularChoice),window.addEventListener("myagileprivacy_single_cookie_reject",_onGranularChoice),window.addEventListener("myagileprivacy_iab_accept_all",_onIabChoice),window.addEventListener("myagileprivacy_iab_reject_all",_onIabChoice),window.addEventListener("myagileprivacy_resurface",function(){_beginChange()}),window.addEventListener("myagileprivacy_bar_shown",function(){_setDisplayStatus("visible")}),window.addEventListener("myagileprivacy_bar_hidden",function(){_setDisplayStatus("hidden"),_chainOpen&&_endChange(null)}),_optedOut=_gpcActive();var queue=window.__gpp&&Array.isArray(window.__gpp.queue)?window.__gpp.queue.slice():[];window.__gpp=_gpp,window.addEventListener("message",function(event){var asString="string"==typeof event.data,json=null;try{json=asString?JSON.parse(event.data):event.data}catch(e){return}if("object"==typeof json&&null!==json&&"__gppCall"in json){var call=json.__gppCall;"object"==typeof call&&null!==call&&event.source&&_gpp(call.command,function(value,success){var reply={__gppReturn:{returnValue:value,success:success,callId:call.callId}};try{event.source.postMessage(asString?JSON.stringify(reply):reply,"*")}catch(e){}},"parameter"in call?call.parameter:null)}},!1),function _addLocator(){if(!window.frames.__gppLocator)if(document.body){var f=document.createElement("iframe");f.style.cssText="display:none",f.name="__gppLocator",document.body.appendChild(f)}else setTimeout(_addLocator,5)}();for(var i=0;i<queue.length;i++)try{_gpp.apply(null,queue[i])}catch(e){}var _started=!1,_startTries=0;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",_start):_start()}function _gpcActive(){return"undefined"!=typeof navigator&&!0===navigator.globalPrivacyControl}function _geoCookie(){return _geoVal}function _readGeo(){try{if("undefined"==typeof MAP_Cookie)return!1;var raw=MAP_Cookie.read("map_geo");return raw!==_geoRaw&&(_geoRaw=raw,_geoVal=raw?JSON.parse(raw):null,!0)}catch(e){return _geoVal=null,!1}}function _noticeGiven(){return!function(){var geo=_geoCookie();if(!geo||"noblock"!==geo.native)return!1;if(!map_full_config.geo_sede_strong)return!0;var forced=map_full_config.geo_force_optout;return!(!forced||!forced[geo.country])}()||_gpcActive()}function _sectionString(){return _noticeGiven()?(_optedOut?"CVVVqqqqqqqA":"CVVqqqqqqqqA")+(_gpcActive()?".YA":".QA"):"CAAAAAAAAACA.QA"}function _isUsVisitor(){var geo=_geoCookie();return!(!geo||"us"!==geo.country)}function _applicableSections(){var list=_sectionList();return list.length?list:"ready"===_signalStatus?[-1]:[0]}function _sectionList(){var list=[];return _tcfSection&&list.push(2),_isUsVisitor()&&list.push(7),list}function _filled(n,value){for(var a=[],i=0;i<n;i++)a.push(value);return a}function _parsedSections(){var notice,v,other,out={};return _tcfSection&&_tcfParsed&&(out.tcfeuv2=_tcfParsed),_isUsVisitor()&&(out.usnat={Version:2,SharingNotice:notice=_noticeGiven()?1:0,SaleOptOutNotice:notice,SharingOptOutNotice:notice,TargetedAdvertisingOptOutNotice:notice,SensitiveDataProcessingOptOutNotice:notice,SensitiveDataLimitUseNotice:notice,SaleOptOut:v=0===notice?0:_optedOut?1:2,SharingOptOut:v,TargetedAdvertisingOptOut:v,SensitiveDataProcessing:_filled(16,other=0===notice?0:2),KnownChildSensitiveDataConsents:_filled(3,other),PersonalDataConsents:other,MspaCoveredTransaction:2,MspaOptOutOptionMode:0,MspaServiceProviderMode:0,GpcSegmentType:1,Gpc:0!==notice&&_gpcActive()}),out}function _ping(){return{gppVersion:"1.1",cmpId:403,cmpStatus:_cmpStatus,cmpDisplayStatus:_displayed,supportedAPIs:["2:tcfeuv2","7:usnat"],sectionList:_sectionList(),applicableSections:_applicableSections(),gppString:(us=_isUsVisitor(),_tcfSection&&us?"DBACMMA~"+_tcfSection+"~"+_sectionString():_tcfSection?"DBABMA~"+_tcfSection:us?"DBABLA~"+_sectionString():"DBAA"),parsedSections:_parsedSections(),signalStatus:_signalStatus};var us}function _notifyListeners(eventName,data){for(var ids=Object.keys(_listeners),i=0;i<ids.length;i++){var id=ids[i];try{_listeners[id]({eventName:eventName,listenerId:parseInt(id,10),data:data,pingData:_ping()},!0)}catch(e){}}}function _setDisplayStatus(value){_displayed!==value&&(_displayed=value,_notifyListeners("cmpDisplayStatus",value))}function _setSignalStatus(value){_signalStatus!==value&&(_signalStatus=value,_notifyListeners("signalStatus",value))}function _beginChange(){_readyTimer&&(clearTimeout(_readyTimer),_readyTimer=null),_chainOpen=!0,_setSignalStatus("not ready")}function _endChange(sectionName){_chainOpen=!1,sectionName&&_notifyListeners("sectionChange",sectionName),_decisionPending()||_setSignalStatus("ready")}function _gpp(command,callback,parameter){if("function"!=typeof callback&&"ping"!==command)return!1;switch(command){case"ping":var p=_ping();return"function"==typeof callback&&callback(p,!0),p;case"addEventListener":if(Object.keys(_listeners).length>=200)return callback({eventName:"listenerRegistered",listenerId:0,data:!1,pingData:_ping()},!1),0;var id=++_nextId;return _listeners[id]=callback,callback({eventName:"listenerRegistered",listenerId:id,data:!0,pingData:_ping()},!0),id;case"removeEventListener":var lid=parameter;return Object.prototype.hasOwnProperty.call(_listeners,lid)?(delete _listeners[lid],callback({eventName:"listenerRemoved",listenerId:lid,data:!0,pingData:_ping()},!0),!0):(callback({eventName:"listenerRemoved",listenerId:lid,data:!1,pingData:_ping()},!1),!1);case"hasSection":var has=-1!==_sectionList().indexOf({tcfeuv2:2,usnat:7}[parameter]);return callback(has,!0),has;case"getSection":var sec=_parsedSections()[parameter];return sec?(callback(sec,!0),sec):(callback(null,!1),null);case"getField":var parts="string"==typeof parameter?parameter.split("."):[],parsed=_parsedSections()[parts[0]];if(parsed&&parts[1]&&Object.prototype.hasOwnProperty.call(parsed,parts[1])){var fv=parsed[parts[1]];return callback(fv,!0),fv}return callback(null,!1),null;default:return"function"==typeof callback&&callback(null,!1),null}}function _onDecision(optedOut){return function(){window.MAPUpdateGPP(optedOut)}}function _onIabChoice(){_beginChange(),_decided=!0,_endChange(null)}function _onGranularChoice(){_beginChange(),_decided=!0,setTimeout(function(){_optedOut=_readOptOutFromCookie(_optedOut),_endChange(_isUsVisitor()?"usnat":null)},0)}function _decisionPending(){return!_decided&&(_noticeGiven()&&!function(){try{if("undefined"==typeof MAP_Cookie)return!1;if("undefined"!=typeof MAP_ACCEPTED_ALL_COOKIE_NAME&&MAP_Cookie.exists(MAP_ACCEPTED_ALL_COOKIE_NAME))return!0;
1if("undefined"!=typeof MAP_ACCEPTED_SOMETHING_COOKIE_NAME&&MAP_Cookie.exists(MAP_ACCEPTED_SOMETHING_COOKIE_NAME))return!0}catch(e){}return!1}())}function _readOptOutFromCookie(fallback){try{if("undefined"==typeof MAP_Cookie||"undefined"==typeof MAP_ACCEPTED_ALL_COOKIE_NAME)return fallback;var v=MAP_Cookie.read(MAP_ACCEPTED_ALL_COOKIE_NAME);if("-1"===v)return!0;if("1"===v)return!1}catch(e){}return fallback}function _start(){if(!_started){if("undefined"==typeof MAP_Cookie&&_startTries<100)return _startTries++,void setTimeout(_start,100);var value,tries;_started=!0,_readGeo(),_optedOut=_readOptOutFromCookie(_optedOut),"string"==typeof window.MAP_GPP_TCFEU_SECTION&&window.MAP_GPP_TCFEU_SECTION&&(_tcfSection=window.MAP_GPP_TCFEU_SECTION,_tcfSeen=!0),_cmpStatus!==(value="loaded")&&(_cmpStatus=value,_notifyListeners("cmpStatus",value)),_setDisplayStatus(function(){try{var el="undefined"!=typeof MAP&&MAP&&MAP.bar_elm?MAP.bar_elm:document.getElementById("my-agile-privacy-notification-area");if(el&&el.getClientRects().length>0)return"visible"}catch(e){}return-1===_applicableSections()[0]?"disabled":"hidden"}()),tries=0,function look(){if(!(tries>100)){if(tries++,_readGeo())return _beginChange(),void _endChange(null);setTimeout(look,100)}}(),_decisionPending()||(map_full_config.load_iab_tcf&&!_tcfSection?_readyTimer=setTimeout(function(){_readyTimer=null,_setSignalStatus("ready")},4e3):_setSignalStatus("ready"))}}}(),function(){"use strict";if("undefined"!=typeof map_full_config&&map_full_config.split_test){var cfg=map_full_config.split_test;if(cfg.active&&!cfg.preview&&cfg.ids&&cfg.ids.length){var release,settled=!1;window.map_banner_ready=new Promise(function(resolve){release=resolve});var COOKIE="map_banner_variant",deadline=0;if(ready())start();else var waited=0,wait=setInterval(function(){if(waited++,ready())return clearInterval(wait),void start();waited>100&&(clearInterval(wait),settle())},100)}}function settle(){settled||(settled=!0,release())}function ready(){return"undefined"!=typeof MAP_Cookie&&("undefined"!=typeof MAP_SYS&&("undefined"!=typeof map_cookiebar_settings&&!!document.getElementById("map-inject-root")))}function writeCookie(value){try{MAP_Cookie.set(COOKIE,value,cfg.cookie_days||30,function(){var domain="string"==typeof map_full_config.cookie_domain?map_full_config.cookie_domain:"";if(""===domain)return null;var bare="."===domain.charAt(0)?domain.substring(1):domain,host=window.location.hostname;return host===bare||host.length>bare.length&&host.slice(-(bare.length+1))==="."+bare?null:host}())}catch(e){}}function giveUp(){-1!==cfg.ids.indexOf(cfg.served)&&writeCookie(cfg.served),settle()}function swap(chosen){var prefix,token,name,buster,look=cfg.looks&&cfg.looks[chosen]?cfg.looks[chosen]:null;(function(urls){function attempt(url){var left=deadline-Date.now();if(left<=0)return Promise.reject();var controller="undefined"!=typeof AbortController?new AbortController:null,timer=controller?setTimeout(function(){controller.abort()},left):null,options={credentials:"omit"};return controller&&(options.signal=controller.signal),fetch(url,options).then(function(response){if(!response.ok)throw new Error("status");return response.json()}).then(function(payload){return timer&&clearTimeout(timer),payload},function(error){throw timer&&clearTimeout(timer),error})}return attempt(urls.direct).catch(function(){return attempt(urls.shim)})})((prefix="notify_html_def_",token=chosen,name=prefix+token+"_"+cfg.suffix+".json",buster=Math.floor(Date.now()/36e5),{direct:cfg.json_base+name+"?v="+buster,shim:cfg.shim_base+"?f=json/"+encodeURIComponent(name)+"&v="+buster})).then(function(payload){var markup=payload&&"string"==typeof payload.data?payload.data:"",root=document.getElementById("map-inject-root"),id=(map_cookiebar_settings.notify_div_id||"").replace(/^#/,"");MAP_SYS.map_initted?giveUp():root&&markup&&id&&-1!==markup.indexOf(id)?(root.innerHTML=markup,look&&(void 0!==look.title&&(map_cookiebar_settings.map_notify_title=look.title),void 0!==look.branded&&(map_cookiebar_settings.map_first_layer_branded=look.branded)),map_full_config.banner_variant_id=chosen,writeCookie(chosen),settle()):giveUp()}).catch(function(){giveUp()})}
1function start(){if(function(){var current="";try{current=MAP_Cookie.read(COOKIE)||""}catch(e){}var mine=String(cfg.ids[0]||"").match(/^t(\d+)v\d+$/),owned=String(current).match(/^t(\d+)v\d+$/);return!!(mine&&owned&&parseInt(owned[1],10)>parseInt(mine[1],10))}())settle();else{var chosen=function(){var current="";try{current=MAP_Cookie.read(COOKIE)||""}catch(e){}return-1!==cfg.ids.indexOf(current)?current:cfg.ids[Math.floor(Math.random()*cfg.ids.length)]}(),budget=cfg.timeout_ms||800;if(deadline=Date.now()+budget,setTimeout(function(){settled||giveUp()},budget+200),chosen===cfg.served)return writeCookie(chosen),void settle();swap(chosen)}}}(),function(){"use strict";if("undefined"!=typeof map_full_config&&map_full_config.stats_enabled){var DEVICE=window.matchMedia&&window.matchMedia("(pointer:coarse)").matches?"mobile":"desktop",mem={};if(window.addEventListener("myagileprivacy_cookie_accept",function(){isGeoNoblock()||sendOutcome("accept_all",!0)}),window.addEventListener("myagileprivacy_cookie_reject",function(){sendOutcome("reject_all",!1)}),window.addEventListener("myagileprivacy_single_cookie_accept",onCustomAccept),window.addEventListener("myagileprivacy_iab_item_accept",onCustomAccept),window.map_banner_ready&&"function"==typeof window.map_banner_ready.then){var budget=map_full_config.split_test&&map_full_config.split_test.timeout_ms?map_full_config.split_test.timeout_ms:800;Promise.race([window.map_banner_ready,new Promise(function(resolve){setTimeout(resolve,budget)})]).then(startGeoPolling,startGeoPolling)}else startGeoPolling();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",install):install()}function apiReady(){return"undefined"!=typeof map_ajax&&map_ajax.advanced_api_url&&map_ajax.api_token}function variant(){return"undefined"!=typeof map_full_config&&map_full_config.banner_variant_id?map_full_config.banner_variant_id:"default"}function marker(kind){var v=variant();return"gnb"!==kind&&"default"!==v?"map_stats_"+kind+"_"+v:"map_stats_"+kind+"_"+function(){var d=new Date;function p(n){return(n<10?"0":"")+n}return""+d.getFullYear()+p(d.getMonth()+1)+p(d.getDate())}()}function seen(kind){var k=marker(kind);if(mem[k])return!0;try{if(window.localStorage&&"1"===localStorage.getItem(k))return!0}catch(e){}return!1}function markSeen(kind){var k=marker(kind);mem[k]=!0;try{window.localStorage&&localStorage.setItem(k,"1")}catch(e){}}function sendHit(type,outcome,consent){var body="action=map_stats_hit&map_api_token="+encodeURIComponent(map_ajax.api_token)+"&type="+encodeURIComponent(type)+"&outcome="+encodeURIComponent(outcome||"")+"&consent="+(consent?"1":"0")+"&variant="+encodeURIComponent(variant())+"&device="+encodeURIComponent(DEVICE);try{fetch(map_ajax.advanced_api_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:body,keepalive:!0,credentials:"omit"}).catch(function(){})}catch(e){}}function isGeoNoblock(){if("undefined"==typeof MAP_SYS)return!1;if(!MAP_SYS.geo_enabled||!MAP_SYS.geo_resolved)return!1;if("noblock"!==MAP_SYS.geo_eff_type)return!1;if(!0===navigator.globalPrivacyControl)return!1;try{if("undefined"!=typeof MAP_Cookie&&"undefined"!=typeof MAP_ACCEPTED_ALL_COOKIE_NAME&&"-1"===MAP_Cookie.read(MAP_ACCEPTED_ALL_COOKIE_NAME))return!1}catch(e){}return!0}function onImpression(){!seen("imp")&&apiReady()&&(markSeen("imp"),sendHit("impression","",!1))}function sendOutcome(outcome,consent){!seen("out")&&apiReady()&&(markSeen("out"),sendHit("outcome",outcome,consent))}function onCustomAccept(){sendOutcome("save_custom",!0)}function checkGeoNoblock(){return!!seen("gnb")||!!apiReady()&&(!("undefined"==typeof MAP_SYS||!MAP_SYS.geo_enabled||!MAP_SYS.geo_resolved)&&(isGeoNoblock()&&(markSeen("gnb"),sendHit("geo_noblock","",!1)),!0))}function install(){window.addEventListener("myagileprivacy_bar_shown",onImpression);try{!seen("imp")&&"undefined"!=typeof MAP&&MAP&&MAP.bar_elm&&MAP.bar_elm.style&&"block"===MAP.bar_elm.style.display&&onImpression()}catch(e){}checkGeoNoblock()}function startGeoPolling(){var tries=0,iv=setInterval(function(){tries++,(checkGeoNoblock()||tries>100)&&clearInterval(iv)},100)}}();

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.