PageSourceSearch

https://www.bakourhotels.com/assets/styles/js/lazyload.js

js bakourhotels.com collected 2026-09-30 20:09:43 UTC 8,029 bytes, 1 lines download raw bytes

1!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self).LazyLoad=b()}(this,(function(){function aP(){return(aP=Object.assign||function(b){for(var d=1;d<arguments.length;d++){var c=arguments[d];for(var a in c){Object.prototype.hasOwnProperty.call(c,a)&&(b[a]=c[a])}}return b}).apply(this,arguments)}var aW="undefined"!=typeof window,a7=aW&&!("onscroll" in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),a2=aW&&"IntersectionObserver" in window,aV=aW&&"classList" in document.createElement("p"),bb=aW&&window.devicePixelRatio>1,aR={elements_selector:"img",container:a7||aW?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,cancel_on_exit:!1,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},a9=function(a){return aP({},aR,a)},aY=function(b,d){var c,a=new b(d);try{c=new CustomEvent("LazyLoad::Initialized",{detail:{instance:a}})}catch(b){(c=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:a})}window.dispatchEvent(c)},aQ=function(a,b){return a.getAttribute("data-"+b)},aO=function(b,d,c){var a="data-"+d;null!==c?b.setAttribute(a,c):b.removeAttribute(a)},a8=function(a){return aQ(a,"ll-status")},a6=function(a,b){return aO(a,"ll-status",b)},bc=function(a){return a6(a,null)},a4=function(a){return null===a8(a)},aN=function(a){return"delayed"===a8(a)},ba=["loading","applied","loaded","error"],aU=function(a){return ba.indexOf(a8(a))>-1},aX=function(a,b){return aO(a,"ll-timeout",b)},a3=function(a){return aQ(a,"ll-timeout")},ay=function(b,d,c,a){b&&(void 0===a?void 0===c?b(d):b(d,c):b(d,c,a))},aK=function(a,b){aV?a.classList.add(b):a.className+=(a.className?" ":"")+b},ap=function(a,b){aV?a.classList.remove(b):a.className=a.className.replace(new RegExp("(^|\\s+)"+b+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},au=function(a){return a.llTempImage},aZ=function(b,d,c){if(c){var a=c._observer;a&&d.auto_unobserve&&a.unobserve(b)}},aC=function(a){a&&(a.loadingCount+=1)},aM=function(b){for(var d,c=[],a=0;d=b.children[a];a+=1){"SOURCE"===d.tagName&&c.push(d)}return c},aJ=function(a,c,b){b&&a.setAttribute(c,b)},aA=function(a,b){a.removeAttribute(b)},am=function(a){return !!a.llOriginalAttrs},aL=function(a){if(!am(a)){var b={};b.src=a.getAttribute("src"),b.srcset=a.getAttribute("srcset"),b.sizes=a.getAttribute("sizes"),a.llOriginalAttrs=b}},an=function(a){if(am(a)){var b=a.llOriginalAttrs;aJ(a,"src",b.src),aJ(a,"srcset",b.srcset),aJ(a,"sizes",b.sizes)}},ao=function(a,b){aJ(a,"sizes",aQ(a,b.data_sizes)),aJ(a,"srcset",aQ(a,b.data_srcset)),aJ(a,"src",aQ(a,b.data_src))},aj=function(a){aA(a,"src"),aA(a,"srcset"),aA(a,"sizes")},ag=function(a,c){var b=a.parentNode;b&&"PICTURE"===b.tagName&&aM(b).forEach(c)},aw={IMG:function(a,b){ag(a,(function(c){aL(c),ao(c,b)})),aL(a),ao(a,b)},IFRAME:function(a,b){aJ(a,"src",aQ(a,b.data_src))},VIDEO:function(a,b){aM(a).forEach((function(c){aJ(c,"src",aQ(c,b.data_src))})),aJ(a,"poster",aQ(a,b.data_poster)),aJ(a,"src",aQ(a,b.data_src)),a.load()}},ai=function(b,d,c){var a=aw[b.tagName];a&&(a(b,d),aC(c),aK(b,d.class_loading),a6(b,"loading"),ay(d.callback_loading,b,c),ay(d.callback_reveal,b,c))},a1=["IMG","IFRAME","VIDEO"],az=function(a){a&&(a.loadingCount-=1)},ax=function(a,b){!b||b.toLoadCount||b.loadingCount||ay(a.callback_finish,b)},al=function(a,c,b){a.addEventListener(c,b),a.llEvLisnrs[c]=b},ae=function(a,c,b){a.removeEventListener(c,b)},af=function(a){return !!a.llEvLisnrs},aI=function(b){if(af(b)){var d=b.llEvLisnrs;for(var c in d){var a=d[c];ae(b,c,a)}delete b.llEvLisnrs}},aS=function(a,c,b){!function(d){delete d.llTempImage}(a),az(b),ap(a,c.class_loading),aZ(a,c,b)},av=function(b,d,c){var a=au(b)||b;if(!af(a)){!function(f,h,g){af(f)||(f.llEvLisnrs={}),al(f,"load",h),al(f,"error",g),"VIDEO"===f.tagName&&al(f,"loadeddata",h)}
1(a,(function(e){!function(g,j,h,f){aS(j,h,f),aK(j,h.class_loaded),a6(j,"loaded"),ay(h.callback_loaded,j,f),ax(h,f)}(0,b,d,c),aI(a)}),(function(e){!function(g,j,h,f){aS(j,h,f),aK(j,h.class_error),a6(j,"error"),ay(h.callback_error,j,f),ax(h,f)}(0,b,d,c),aI(a)}))}},aB=function(a){a&&(a.toLoadCount-=1)},ar=function(a,c,b){!function(d){d.llTempImage=document.createElement("img")}(a),av(a,c,b),function(f,k,h){var d=aQ(f,k.data_bg),j=aQ(f,k.data_bg_hidpi),g=bb&&j?j:d;g&&(f.style.backgroundImage='url("'.concat(g,'")'),au(f).setAttribute("src",g),aC(h),aK(f,k.class_loading),a6(f,"loading"),ay(k.callback_loading,f,h),ay(k.callback_reveal,f,h))}(a,c,b),function(f,k,h){var d=aQ(f,k.data_bg_multi),j=aQ(f,k.data_bg_multi_hidpi),g=bb&&j?j:d;g&&(f.style.backgroundImage=g,aK(f,k.class_applied),a6(f,"applied"),aZ(f,k,h),ay(k.callback_applied,f,h))}(a,c,b)},aq=function(a,c,b){!function(d){return a1.indexOf(d.tagName)>-1}(a)?ar(a,c,b):function(d,g,f){av(d,g,f),ai(d,g,f)}(a,c,b),aB(b),ax(c,b)},ak=function(a){var b=a3(a);b&&(aN(a)&&bc(a),clearTimeout(b),aX(a,null))},ad=function(b,d,c,a){"IMG"===b.tagName&&(aI(b),function(e){ag(e,(function(f){aj(f)})),aj(e)}(b),function(e){ag(e,(function(f){an(f)})),an(e)}(b),ap(b,c.class_loading),az(a),ay(c.callback_cancel,b,d,a),setTimeout((function(){a.resetElementStatus(b,a)}),0))},ac=function(b,d,c,a){ay(c.callback_enter,b,d,a),aU(b)||(c.load_delay?function(g,k,h){var f=k.load_delay,j=a3(g);j||(j=setTimeout((function(){aq(g,k,h),ak(g)}),f),a6(g,"delayed"),aX(g,j))}(b,c,a):aq(b,c,a))},ab=function(b,d,c,a){a4(b)||(c.cancel_on_exit&&function(e){return"loading"===a8(e)}(b)&&ad(b,d,c,a),ay(c.callback_exit,b,d,a),c.load_delay&&aN(b)&&ak(b))},aa=["IMG","IFRAME"],a5=function(a){return a.use_native&&"loading" in HTMLImageElement.prototype},a0=function(a,c,b){a.forEach((function(d){-1!==aa.indexOf(d.tagName)&&(d.setAttribute("loading","lazy"),function(f,h,g){av(f,h,g),ai(f,h,g),aB(g),a6(f,"native"),ax(h,g)}(d,c,b))})),b.toLoadCount=0},aT=function(a){var b=a._settings;a2&&!a5(a._settings)&&(a._observer=new IntersectionObserver((function(c){!function(d,g,f){d.forEach((function(e){return function(h){return h.isIntersecting||h.intersectionRatio>0}(e)?ac(e.target,e,g,f):ab(e.target,e,g,f)}))}(c,b,a)}),function(c){return{root:c.container===document?null:c.container,rootMargin:c.thresholds||c.threshold+"px"}}(b)))},aE=function(a){return Array.prototype.slice.call(a)},aG=function(a){return a.container.querySelectorAll(a.elements_selector)},ah=function(a){return function(b){return"error"===a8(b)}(a)},aH=function(a,b){return function(c){return aE(c).filter(a4)}(a||aG(b))},aD=function(a){var c,b=a._settings;(c=aG(b),aE(c).filter(ah)).forEach((function(d){ap(d,b.class_error),bc(d)})),a.update()},aF=function(b,c){var a;this._settings=a9(b),this.loadingCount=0,aT(this),a=this,aW&&window.addEventListener("online",(function(d){aD(a)})),this.update(c)};return aF.prototype={update:function(c){var f,e,b=this._settings,d=aH(c,b);(this.toLoadCount=d.length,!a7&&a2)?a5(b)?a0(d,b,this):(f=this._observer,e=d,function(a){a.disconnect()}(f),function(a,g){g.forEach((function(h){a.observe(h)}))}(f,e)):this.loadAll(d)},destroy:function(){this._observer&&this._observer.disconnect(),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(a){var c=this,b=this._settings;aH(a,b).forEach((function(d){aq(d,b,c)}))},resetElementStatus:function(a){!function(b,c){aU(b)&&function(d){d&&(d.toLoadCount+=1)}(c),a6(b,null)}(a,this)},load:function(a){aq(a,this._settings,this)}},aF.load=function(a,c){var b=a9(c);aq(a,b)},aW&&function(b,d){if(d){if(d.length){for(var c,a=0;c=d[a];a+=1){aY(b,c)}}else{aY(b,d)}}}(aF,window.lazyLoadOptions),aF}));

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.