PageSourceSearch

https://www.fondazionesicilia.it/wp-content/plugins/ajax-search-pr…/plugin/optimized/asp-wrapper.js?ver=OKvAm2

js fondazionesicilia.it collected 2026-10-02 11:42:11 UTC 5,222 bytes, 10 lines download raw bytes

1window._ASP_load=function(){let e=WPD.dom;window.ASP.instances={instances:[],get:function(b,c){this.clean();if("undefined"===typeof b||0==b)return this.instances;if("undefined"===typeof c){c=[];for(var a=0;a<this.instances.length;a++)this.instances[a].o.id==b&&c.push(this.instances[a]);return 0<c.length?c:!1}for(a=0;a<this.instances.length;a++)if(this.instances[a].o.id==b&&this.instances[a].o.iid==c)return this.instances[a];return!1},set:function(b){if(this.exist(b.o.id,b.o.iid))return!1;this.instances.push(b);
2return!0},exist:function(b,c){this.clean();for(let a=0;a<this.instances.length;a++)if(this.instances[a].o.id==b&&("undefined"===typeof c||this.instances[a].o.iid==c))return!0;return!1},clean:function(){let b=[],c=this;this.instances.forEach(function(a,d){0==e(".asp_m_"+a.o.rid).length&&b.push(d)});b.forEach(function(a){"undefined"!==typeof c.instances[a]&&(c.instances[a].destroy(),c.instances.splice(a,1))})},destroy:function(b,c){let a=this.get(b,c);if(!1!==a)if(Array.isArray(a))a.forEach(function(d){d.destroy()}),
3this.instances=[];else{let d=0;this.instances.forEach(function(f,g){f.o.id==b&&f.o.iid==c&&(d=g)});a.destroy();this.instances.splice(d,1)}}};window.ASP.initialized=!1;window.ASP.initializeSearchByID=function(b){let c=ASP.getInstances();if("undefined"!==typeof b&&"object"!=typeof b)if("undefined"!==typeof c[b]){let d=[];d[b]=c[b];c=d}else return!1;let a=0;
3c.forEach(function(d,f){e(".asp_m_"+f).forEach(function(g){let h=e(g);if("undefined"!=typeof h.get(0).hasAsp)return++a,!0;g.hasAsp=!0;++a;return h.ajaxsearchpro(d)})})};
4window.ASP.getInstances=function(){if("undefined"!==typeof window.ASP_INSTANCES)return window.ASP_INSTANCES;let b=[];e(".asp_init_data").forEach(function(c){if("undefined"===typeof c.dataset.aspdata)return!0;let a=WPD.Base64.decode(c.dataset.aspdata);if("undefined"===typeof a||""==a)return!0;b[c.dataset.aspId]=JSON.parse(a)});return b};window.ASP.initialize=function(b){if("undefined"==typeof ASP.version)return!1;if(window.IntersectionObserver)if(ASP.script_async_load||ASP.init_only_in_viewport){b=
5document.querySelectorAll(".asp_w_container");if(b.length){let c=new IntersectionObserver(function(a){a.forEach(function(d){d.isIntersecting&&(ASP.initializeSearchByID(d.target.dataset.id),c.unobserve(d.target))})});b.forEach(function(a){c.observe(a)})}ASP.getInstances().forEach(function(c,a){1==c.compact.enabled&&"fixed"==c.compact.position&&ASP.initializeSearchByID(a)})}else ASP.initializeSearchByID(b);else ASP.initializeSearchByID(b);ASP.initializeMutateDetector();ASP.initializeHighlight();ASP.initializeOtherEvents();
6ASP.initialized=!0};window.ASP.initializeHighlight=function(){if(this.highlight.enabled){let b=localStorage.getItem("asp_phrase_highlight");localStorage.removeItem("asp_phrase_highlight");null!=b&&(b=JSON.parse(b),this.highlight.data.forEach(function(c){if(c.id==b.id){var a=""!=c.selector&&0<e(c.selector).length?c.selector:"article";a=0<e(a).length?a:"body";e(a).highlight(b.phrase.split(" "),{element:"span",className:"asp_single_highlighted_"+b.id,wordsOnly:c.whole,excludeParents:".asp_w, .asp-try"});
7a=e(".asp_single_highlighted_"+b.id);if(c.scroll&&0<a.length){a=a.offset().top-120;let d=e("#wpadminbar");0<d.length&&(a-=d.height());a+=c.scroll_offset;a=0>a?0:a;e("html").animate({scrollTop:a},500)}return!1}}))}};window.ASP.initializeOtherEvents=function(){let b,c=this;e("body").on("click touchend","#menu-item-search, .fa-search, .fa, .fas, .fusion-flyout-menu-toggle, .fusion-main-menu-search-open, #search_button, .mini-search.popup-search, .icon-search, .menu-item-search-dropdown, .mobile-menu-button, .td-icon-search, .tdb-search-icon, .side_menu_button, .search_button, .raven-search-form-toggle, [data-elementor-open-lightbox], .elementor-button-link, .elementor-button, i[class*=-search], a[class*=-search]",
8function(){clearTimeout(b);b=setTimeout(function(){c.initializeSearchByID()},300)});if("undefined"!=typeof jQuery)jQuery(document).on("elementor/popup/show",function(){setTimeout(function(){c.initializeSearchByID()},10)})};window.ASP.initializeMutateDetector=function(){let b;"undefined"!=typeof ASP.detect_ajax&&1==ASP.detect_ajax&&(new MutationObserver(function(){clearTimeout(b);b=setTimeout(function(){ASP.initializeSearchByID()},500)})).observe(document.querySelector("body"),{subtree:!0,childList:!0})};
9window.ASP.ready=function(){if("complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState)this.initialize();else e(document).on("DOMContentLoaded",this.initialize)};window.ASP.loadScriptStack=function(b){let c;0<b.length&&(c=document.createElement("script"),c.src=b.shift().src,c.onload=function(){0<b.length?window.ASP.loadScriptStack(b):window.ASP.ready()},document.body.appendChild(c))};window.ASP.init=function(){ASP.script_async_load?window.ASP.loadScriptStack(ASP.additional_scripts):
10"undefined"!==typeof WPD.ajaxsearchpro&&window.ASP.ready()};window.WPD.intervalUntilExecute(window.ASP.init,function(){return"undefined"!=typeof window.ASP.version&&"undefined"!=e.fn.ajaxsearchpro})};(function(){"undefined"!=typeof WPD&&"undefined"!=typeof WPD.dom?window._ASP_load():document.addEventListener("wpd-dom-core-loaded",window._ASP_load)})();

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.