!function(){function t(){if(complete){var e=getattribute("data-lazy-src");if(e&&src!==e)addeventlistener("onload",t);else{var d=width,n=height;d&&d>0&&n&&n>0&&(setattribute("width",d),setattribute("height",n),i(this))}}else addeventlistener("onload",t)}var e=function(){for(var e=queryselectorall("img[data-recalc-dims]"),i=0;i0}});else{var t=function(t){for(var e=document,o=i(e);o;)o=i(e=ownerdocument);return e}(),e=[],o=null,n=null;throttle_TIMEOUT=100,poll_INTERVAL=null,use_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},foreach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},observe=function(t){if(!some((function(e){return element==t}))){if(!t||1!=nodetype)throw new Error("target must be an Element");this._registerInstance(),push({element:t,entry:null}),this._monitorIntersections(ownerdocument),this._checkForIntersections()}},unobserve=function(t){this._observationTargets=filter((function(e){return element!=t})),this._unmonitorIntersections(ownerdocument),0==length&&this._unregisterInstance()},disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},takerecords=function(){var t=slice();return this._queuedEntries=[],t},prototype._initThresholds=function(t){var e=t||[0];return isarray(e)||(e=[e]),sort().filter((function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]}))},prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},prototype._monitorIntersections=function(e){var o=defaultview;if(o&&-1==indexof(e)){var n=this._checkForIntersections,r=null,s=null;poll_INTERVAL?r=setinterval(n,poll_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),use_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new mutationobserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),push(e),push((function(){var t=defaultview;t&&(r&&clearinterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&disconnect()}));var u=root&&(ownerdocument||root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(ownerdocument)}}},prototype._unmonitorIntersections=function(e){var o=indexof(e);if(-1!=o){var n=root&&(ownerdocument||root)||t,r=some((function(t){var o=ownerdocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&ownerdocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[o];if(splice(o,1),splice(o,1),s(),e!=n){var h=i(e);h&&this._unmonitorIntersections(ownerdocument)}}}},prototype._unmonitorAllIntersections=function(){var t=slice(0);length=0,length=0;for(var e=0;e=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},prototype._getRootRect=function(){var e;if(root&&!d(root))e=u(root);else{var o=d(root)?root:t,n=documentelement,i=body;e={top:0,left:0,right:clientwidth||clientwidth,width:clientwidth||clientwidth,bottom:clientheight||clientheight,height:clientheight||clientheight}}return this._expandRectByRootMargin(e)},prototype._expandRectByRootMargin=function(t){var e=map((function(e,o){return"px"==unit?value:value*(o%2?width:height)/100})),o={top:top-e[0],right:right+e[1],bottom:bottom+e[2],left:left-e[3]};return width=left,height=top,o},prototype._hasCrossedThreshold=function(t,e){var o=t&&isintersecting?intersectionratio||0:-1,n=isintersecting?intersectionratio||0:-1;if(o!==n)for(var i=0;i0;)s(e[0])}function l(t){for(var a=0;a0&&(unobserve(target),s(target))}0===length&&disconnect()}function c(){if(!t&&(length>0||length>0)){(t=createelement("div")).id="loadingWarning",fontweight="bold",innertext=loading_warning;var n=createelement("style");innerhtml="#loadingWarning { display: none; }\n@media print {\n#loadingWarning { display: block; }\nbody > #loadingWarning ~ * { display: none !important; }\n}",appendchild(n),insertbefore(t,firstchild)}length>0&&o(),t&&alert(loading_warning)}function s(t){var n;if(t instanceof HTMLImageElement){var a=getattribute("data-lazy-srcset"),r=getattribute("data-lazy-sizes");removeattribute("data-lazy-srcset"),removeattribute("data-lazy-sizes"),removeattribute("data-lazy-src"),add("jetpack-lazy-image--handled"),setattribute("data-lazy-loaded",1),r&&setattribute("sizes",r),a?setattribute("srcset",a):removeattribute("srcset"),setattribute("loading","eager"),push(t);var d=indexof(t);d>=0&&splice(d,1),complete?call(t,null):(addeventlistener("load",g,{once:!0}),addeventlistener("error",g,{once:!0}));try{n=new Event("jetpack-lazy-loaded-image",{bubbles:!0,cancelable:!0})}catch(e){(n=createevent("Event")).initEvent("jetpack-lazy-loaded-image",!0,!0)}dispatchevent(n)}}function g(){var n=indexof(this);n>=0&&splice(n,1),t&&0===length&&0===length&&(removechild(t),t=null)}r&&(addeventlistener("post-load",d),addeventlistener("jetpack-lazy-images-load",d))};"interactive"===readystate||"complete"===readystate?e():addeventlistener("DOMContentLoaded",e)}();;