(()=>{"use strict";var e,t,n,o={5659:(e,t,n)=>{function o(){function e(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.setAttribute("src",e),n.setAttribute("async","true"),t.appendChild(n)}e("IntersectionObserver"in window?"https://cdn.viafoura.net/entry/index.js":"https://cdn.viafoura.net/vf-v2.js")}n.d(t,{Z:()=>o})},5023:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d,loadVBMembershipScripts:()=>s});var o=n(6522),a=n(5659);function i(){var e=document.createElement("script");e.src="https://www.gstatic.com/firebasejs/ui/4.5.1/firebase-ui-auth.js",e.setAttribute("async",!0),window.requestAnimationFrame((function(){document.getElementsByTagName("head")[0].appendChild(e),e.addEventListener("load",(function(){var e=new CustomEvent("firebaseScriptsLoaded");document.dispatchEvent(e)}))}))}function r(){var e=document.createElement("script");e.src="https://www.gstatic.com/firebasejs/7.15.0/firebase-auth.js",e.setAttribute("async",!0),window.requestAnimationFrame((function(){document.getElementsByTagName("head")[0].appendChild(e),e.addEventListener("load",i)}))}function s(){var e,t,n;vb_page_info.membershipScriptsLoaded||(vb_page_info.membershipScriptsLoaded=!0,(n=document.createElement("script")).src="https://cdn.wallkit.net/js/sdk/0.0.44/wallkit.umd.min.js",n.id="wallkit-js-sdk",window.requestAnimationFrame((function(){return document.getElementsByTagName("head")[0].appendChild(n)})),(t=document.createElement("script")).src="https://cdn.wallkit.net/js/integration/2.0.7/wallkit-intergration-library.min.js",t.id="wallkit-integration-library",window.requestAnimationFrame((function(){return document.getElementsByTagName("head")[0].appendChild(t)})),(e=document.createElement("script")).src="https://www.gstatic.com/firebasejs/7.15.0/firebase-app.js",e.setAttribute("async",!0),window.requestAnimationFrame((function(){document.getElementsByTagName("head")[0].appendChild(e),e.addEventListener("load",r)})))}function d(){var e,t,n,i,r,d;(vb_page_info.dfp_enabled&&vb_page_info.is_accessible_for_free&&(function(){var e=document.createElement("script");e.src="https://ccpa-wrapper.privacymanager.io/ccpa/97082975-8b63-41cd-b0c5-158278da4cc4/ccpa-liveramp.js",e.id="liveramp-ccpa",e.setAttribute("async",!0),window.requestAnimationFrame((function(){return document.getElementsByTagName("head")[0].appendChild(e)}));var t=document.createElement("script");t.src="https://gdpr-wrapper.privacymanager.io/gdpr/c0e92fc2-9f8f-48f7-a529-7c3b1d744a7d/gdpr-liveramp.js",t.setAttribute("async",!0),document.getElementsByTagName("head")[0].appendChild(t),window.requestAnimationFrame((function(){return document.getElementsByTagName("head")[0].appendChild(t)})),function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==(0,o.Z)(e)&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://gdpr.privacymanager.io/1.0.10/",n(n.s=2)}({2:function(e,t){!function(){if("function"!=typeof window.__tcfapi){var e,t=[],n=window,o=n.document,a=n.__tcfapi?n.__tcfapi.start:function(){};!n.__tcfapi&&function e(){var t=!!n.frames.__tcfapiLocator;if(!t)if(o.body){var a=o.createElement("iframe");a.style.cssText="display:none",a.name="__tcfapiLocator",o.body.appendChild(a)}else setTimeout(e,5);return!t}()&&(n.__tcfapi=function(n,o,a,i){var r=[n,o,a,i];if(!r.length)return t;if("setGdprApplies"===r[0])r.length>3&&2===parseInt(r[1],10)&&"boolean"==typeof r[3]&&(e=r[3],"function"==typeof r[2]&&r[2]("set",!0));else if("ping"===r[0]){var s={gdprApplies:e,cmpLoaded:!1,apiVersion:"2.0"};"function"==typeof r[2]&&r[2](s,!0)}else t.push(r)},n.__tcfapi.commandQueue=t,n.__tcfapi.start=a,n.addEventListener("message",(function(e){var t="string"==typeof e.data,o={};try{o=t?JSON.parse(e.data):e.data}catch(e){}var a=o.__tcfapiCall;a&&n.__tcfapi(a.command,a.version,(function(n,o){if(e.source){var i={__tcfapiReturn:{returnValue:n,success:o,callId:a.callId,command:a.command}};t&&(i=JSON.stringify(i)),e.source.postMessage(i,"*")}}),a.parameter)}),!1))}}()}})}(),(e=document.createElement("script")).src="https://cdn.browsiprod.com/bootstrap/bootstrap.js",e.id="browsi-tag",e.setAttribute("data-pubKey","venturebeat"),e.setAttribute("data-siteKey","venturebeat"),e.setAttribute("async",!0),window.requestAnimationFrame((function(){return document.getElementsByTagName("head")[0].appendChild(e)})),function(){window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[];var e=[];function t(){var e=document.createElement("script");e.setAttribute("src","https://securepubads.g.doubleclick.net/tag/js/gpt.js"),e.setAttribute("async",!0),document.body?document.body.appendChild(e):window.onload=function(){document.body.appendChild(e)}}__tcfapi("gdprApplies",2,(function(e,n){e?__tcfapi("consentDataExist",2,(function(e,n){e&&t()})):t()})),window.googletag.cmd.push((function(){var t=[].slice.call(document.getElementsByClassName("adslot"));for(var n in t.forEach((function(t){var n,o=t.getAttribute("id"),a=JSON.parse(t.getAttribute("data-sizes"));n=window.googletag.defineSlot("/1038375/".concat(o),a,o).setCollapseEmptyDiv(!0).addService(window.googletag.pubads()),"m0-p2-s2"===o&&n.setTargeting("Mob","Interstitial"),e.push(n)})),dfpTargeting)if(dfpTargeting.hasOwnProperty(n)&&void 0!==dfpTargeting[n])if("tags"===n){if(dfpTargeting[n]){var o=dfpTargeting[n].split(",");window.googletag.pubads().setTargeting(n,o)}}else window.googletag.pubads().setTargeting(n,dfpTargeting[n].toString());"undefined"!=typeof _ml&&(void 0!==_ml.us&&void 0!==_ml.us.tp&&_ml.us.tp.length>0&&window.googletag.pubads().setTargeting("bombora_tp",_ml.us.tp[0]),void 0!==_ml.us&&void 0!==_ml.us.cr&&window.googletag.pubads().setTargeting("bombora_cr",_ml.us.cr),void 0!==_ml.us&&void 0!==_ml.us.cs&&window.googletag.pubads().setTargeting("bombora_cs",_ml.us.cs),void 0!==_ml.us&&void 0!==_ml.us.dm&&window.googletag.pubads().setTargeting("bombora_dm",_ml.us.dm),void 0!==_ml.us&&void 0!==_ml.us.sn&&window.googletag.pubads().setTargeting("bombora_sn",_ml.us.sn),void 0!==_ml.us&&void 0!==_ml.us.pc&&_ml.us.pc.length>0&&window.googletag.pubads().setTargeting("bombora_pc",_ml.us.pc[0]),void 0!==_ml.us&&void 0!==_ml.us.dcm&&window.googletag.pubads().setTargeting("bombora_dcm",_ml.us.dcm),void 0!==_ml.us&&void 0!==_ml.us.fa&&_ml.us.fa.length>0&&window.googletag.pubads().setTargeting("bombora_fa",_ml.us.fa[0]),void 0!==_ml.us&&void 0!==_ml.us.ins&&_ml.us.ins.length>0&&window.googletag.pubads().setTargeting("bombora_ins",_ml.us.ins[0]),void 0!==_ml.us&&void 0!==_ml.us.pg&&_ml.us.pg.length>0&&window.googletag.pubads().setTargeting("bombora_pg",_ml.us.pg[0]),void 0!==_ml.us&&void 0!==_ml.us.edu&&window.googletag.pubads().setTargeting("bombora_edu",_ml.us.edu),void 0!==_ml.us&&void 0!==_ml.us.ind&&window.googletag.pubads().setTargeting("bombora_ind",_ml.us.ind)),window.googletag.pubads().enableSingleRequest(),window.googletag.enableServices(),t.forEach((function(e){window.googletag.display(e.getAttribute("id"))}))}))}()),"undefined"!=typeof vbSettings&&vbSettings.segmentKey&&function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(var t=0;t0&&(e+=","),e+="Author."+vb_page_info.authors[n];void 0!==vb_page_info.story_type&&vb_page_info.story_type&&(e.length>0&&(e+=","),e+="HelmStoryType."+vb_page_info.story_type)}"category"===vb_page_info.page_type&&void 0!==vb_page_info.channel&&(e+="Channel."+vb_page_info.channel),"home"===vb_page_info.page_type&&(e+="Channel.home")}e.length>0&&(t.labels=e),window.ezt.push(t)}(),(d=d||[]).push({c1:"2",c2:"6035753"}),i=document.createElement("script"),r=document.getElementsByTagName("script")[0],i.async=!0,i.src=("https:"==document.location.protocol?"https://sb":"http://b")+".scorecardresearch.com/beacon.js",r.parentNode.insertBefore(i,r)),vb_page_info.membershipScriptsLoaded=!1,vb_page_info.loadMemberbershipScripts)?s():(window.vfQ=window.vfQ||[],window.vfQ.push((function(){window.vf.$subscribe("tray","open",(function(){s()}))})),localStorage.getItem("firebase-token")&&s())}},6522:(e,t,n)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,{Z:()=>o})}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.m=o,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);i.r(a);var r={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>r[e]=()=>n[e]));return r.default=()=>n,i.d(a,r),a},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>326===e?"js/firebase.3b6f5abc30b055cdb100.js":394===e?"js/wallkit.cd1c7182859fbd5ce937.js":791===e?"js/membership.7c0daca7155c1596b136.js":136===e?"js/events.87534687dc3c3954604d.js":470===e?"js/navbar.5ea792bd2c6718c4eeab.js":608===e?"js/social-share.98d5186d55bd9397fded.js":559===e?"js/adblock-recovery.eaca8fa4749ef6e86a5a.js":483===e?"js/vb-dfp.4d86e9ede7bc0bedb83c.js":841===e?"js/infinite-articles.30d5901a13b6c8142adc.js":void 0,i.miniCssF=e=>"css/article.css",i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var r,s;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c{r.onerror=r.onload=null,clearTimeout(p);var a=n[e];if(delete n[e],r.parentNode&&r.parentNode.removeChild(r),a&&a.forEach((e=>e(o))),t)return t(o)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),s&&document.head.appendChild(r)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="/wp-content/themes/vb-news/dist/",(()=>{var e={942:0,23:0};i.f.j=(t,n)=>{var o=i.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var a=new Promise(((n,a)=>o=e[t]=[n,a]));n.push(o[2]=a);var r=i.p+i.u(t),s=new Error;i.l(r,(n=>{if(i.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+r+")",s.name="ChunkLoadError",s.type=a,s.request=r,o[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,a,[r,s,d]=n,c=0;if(r.some((t=>0!==e[t]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(d)d(i)}for(t&&t(n);c{var e,t,n=i(5023);e=null,t=document.getElementById("the_footer"),document.addEventListener("preloadSponsoredPost",(function(t){e=t.detail})),new IntersectionObserver((function(n,o){n.forEach((function(n){n.isIntersecting&&(o.unobserve(t),e&&i.e(841).then(i.bind(i,5302)).then((function(t){(0,t.default)(e)})))}))})).observe(t);var o=document.getElementById("vf-comment-count-icon");o&&o.addEventListener("click",(function(){(0,n.loadVBMembershipScripts)()}));var a=function(){i.e(326).then(i.bind(i,9494)).then((function(e){(0,e.vbFirebaseInit)(),i.e(394).then(i.bind(i,5246)),i.e(791).then(i.t.bind(i,6408,23)),i.e(136).then(i.t.bind(i,9468,23))}))},r=null;function s(){!function(){if("single"===vb_page_info.page_type&&!vb_page_info.isMobile&&-1===vb_page_info.url.indexOf("/event/")){var e=document.createElement("script");e.id="jobbio-masonry-script",e.src="https://widgets.jobbio.com/partner_fluid_widgets_v1.4/masonry.js",e.aync=!0,e.onload=function(){jobbio_masonry.widget({slug:"venturebeat",container:"masonry",location:"https://jobs.venturebeat.com/company",count:4,type:"multiple",content:"companies"});var e=document.getElementById("masonry"),t=document.createElement("h3"),n=document.createAttribute("class");n.value="jobbio",t.setAttributeNode(n),t.append("Find your dream job on VentureBeat Careers"),e.prepend(t)},document.getElementsByTagName("head")[0].appendChild(e)}}(),(0,n.loadVBMembershipScripts)()}function d(){var e=document.querySelector(".article-content").querySelectorAll("p");(r=e[Math.floor(e.length/2)]).getBoundingClientRect().top<0?s():new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(s(),t.unobserve(r))}))})).observe(r)}window.addEventListener("load",(function(){document.addEventListener("firebaseScriptsLoaded",a),Promise.resolve().then(i.bind(i,5023)).then((function(e){(0,e.default)(),i.e(470).then(i.bind(i,5147)),i.e(608).then(i.t.bind(i,754,23)),i.e(559).then(i.t.bind(i,9366,23)),vb_page_info.dfp_enabled&&vb_page_info.is_accessible_for_free&&i.e(483).then(i.t.bind(i,8167,23))})),vb_page_info.url.includes("/event/")||d()}))})()})();; !function(){function t(){if(this.complete){var e=this.getAttribute("data-lazy-src");if(e&&this.src!==e)this.addEventListener("onload",t);else{var d=this.width,n=this.height;d&&d>0&&n&&n>0&&(this.setAttribute("width",d),this.setAttribute("height",n),i(this))}}else this.addEventListener("onload",t)}var e=function(){for(var e=document.querySelectorAll("img[data-recalc-dims]"),i=0;ia;)o(e,r=n[a++])&&(~u(p,r)||f(p,r));return p}},function(t,n,r){var e=r(10),o=r(55),i=r(57);r=function(t){return function(n,r,u){var c,f=e(n),a=i(f),p=o(u,a);if(t&&r!=r){for(;p"+t+""}var u,c=e(42),f=e(64),a=e(59),p=e(48),s=e(66),l=e(39),y=(e=e(47),"prototype"),v="script",d=e("IE_PROTO"),b=function(){try{u=new ActiveXObject("htmlfile")}catch(t){}var t;b="undefined"==typeof document||document.domain&&u?function(t){t.write(i("")),t.close();var n=t.parentWindow.Object;return t=null,n}(u):((t=l("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(i("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete b[y][a[n]];return b()};p[d]=!0,n.exports=Object.create||function(n,r){var e;return null!==n?(o[y]=c(n),e=new o,o[y]=null,e[d]=n):e=b(),r===t?e:f(e,r)}},function(t,n,r){var e=r(5),o=r(41),i=r(42),u=r(10),c=r(65);t.exports=e?Object.defineProperties:function(t,n){i(t);for(var r,e=u(n),f=c(n),a=f.length,p=0;p3&&void 0!==arguments[3]?arguments[3]:10;const u=n[t];if(!e(o))return;if(!r(i))return;if("function"!=typeof c)return void console.error("The hook callback must be a function.");if("number"!=typeof s)return void console.error("If specified, the hook priority must be a number.");const l={callback:c,priority:s,namespace:i};if(u[o]){const n=u[o].handlers;let t;for(t=n.length;t>0&&!(s>=n[t-1].priority);t--);t===n.length?n[t]=l:n.splice(t,0,l),u.__current.forEach((n=>{n.name===o&&n.currentIndex>=t&&n.currentIndex++}))}else u[o]={handlers:[l],runs:0};"hookAdded"!==o&&n.doAction("hookAdded",o,i,c,s)}};var i=function(n,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,c){const s=n[t];if(!e(i))return;if(!o&&!r(c))return;if(!s[i])return 0;let u=0;if(o)u=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else{const n=s[i].handlers;for(let t=n.length-1;t>=0;t--)n[t].namespace===c&&(n.splice(t,1),u++,s.__current.forEach((n=>{n.name===i&&n.currentIndex>=t&&n.currentIndex--})))}return"hookRemoved"!==i&&n.doAction("hookRemoved",i,c),u}};var c=function(n,t){return function(r,e){const o=n[t];return void 0!==e?r in o&&o[r].handlers.some((n=>n.namespace===e)):r in o}};var s=function(n,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(e){const o=n[t];o[e]||(o[e]={handlers:[],runs:0}),o[e].runs++;const i=o[e].handlers;for(var c=arguments.length,s=new Array(c>1?c-1:0),u=1;u0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.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},e.forEach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(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]}))},s.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},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var h=i(e);h&&this._unmonitorIntersections(h.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.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}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100})),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i0;)s(n[0])}function c(e){for(let t=0;t0&&(i.unobserve(n.target),s(n.target))}0===n.length&&i.disconnect()}function l(){if(!a&&(n.length>0||t.length>0)){a=document.createElement("div"),a.id="loadingWarning",a.style.fontWeight="bold",a.innerText=jetpackLazyImagesL10n.loading_warning;const e=document.createElement("style");e.innerHTML="#loadingWarning { display: none; }\n@media print {\n#loadingWarning { display: block; }\nbody > #loadingWarning ~ * { display: none !important; }\n}",a.appendChild(e),o.insertBefore(a,o.firstChild)}n.length>0&&r(),a&&alert(jetpackLazyImagesL10n.loading_warning)}function s(e){let a;if(!(e instanceof HTMLImageElement))return;const i=e.getAttribute("data-lazy-srcset"),o=e.getAttribute("data-lazy-sizes");e.removeAttribute("data-lazy-srcset"),e.removeAttribute("data-lazy-sizes"),e.removeAttribute("data-lazy-src"),e.classList.add("jetpack-lazy-image--handled"),e.setAttribute("data-lazy-loaded",1),o&&e.setAttribute("sizes",o),i?e.setAttribute("srcset",i):e.removeAttribute("srcset"),e.setAttribute("loading","eager"),t.push(e);const d=n.indexOf(e);d>=0&&n.splice(d,1),e.complete?g.call(e,null):(e.addEventListener("load",g,{once:!0}),e.addEventListener("error",g,{once:!0}));try{a=new Event("jetpack-lazy-loaded-image",{bubbles:!0,cancelable:!0})}catch(e){a=document.createEvent("Event"),a.initEvent("jetpack-lazy-loaded-image",!0,!0)}e.dispatchEvent(a)}function g(){const e=t.indexOf(this);e>=0&&t.splice(e,1),a&&0===n.length&&0===t.length&&(a.parentNode.removeChild(a),a=null)}o&&(o.addEventListener("is.post-load",d),o.addEventListener("jetpack-lazy-images-load",d))};"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)}();;