1
(self.AMP=self.AMP||[]).push({n:"amp-intersection-observer-polyfill",v:"2011252111002",f:(function(AMP,_){
2
'use strict';function A(c){for(var f=["object"==typeof globalThis&&globalThis,c,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],e=0;e<f.length;++e){var l=f[e];if(l&&l.Math==Math)return}
3
(function(){throw Error("Cannot find global object");}
4
)()}
5
A(this);
6
function E(){(function(){function c(a){try{return a.defaultView&&a.defaultView.frameElement||null}
7
catch(b){return null}
8
}
9
function f(a){this.time=a.time;this.target=a.target;this.rootBounds=D(a.rootBounds);this.boundingClientRect=D(a.boundingClientRect);this.intersectionRect=D(a.intersectionRect||B());this.isIntersecting=!!a.intersectionRect;var b=this.boundingClientRect,d=b.width*b.height,g=this.intersectionRect,h=g.width*g.height;this.intersectionRatio=d?Number((h/d).toFixed(4)):this.isIntersecting?
10
1:0}
11
function e(a,b){b=b||{}
12
;if("function"!=typeof a)throw Error("callback must be a function");if(b.root&&1!=b.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=k(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=a;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(b.rootMargin);this.thresholds=this._initThresholds(b.threshold);this.root=b.root||null;this.rootMargin=this._rootMarginValues.map(function(d){return d.value+
13
d.unit}
14
).join(" ");this._monitoringDocuments=[];this._monitoringUnsubscribes=[]}
15
function l(){return window.performance&&performance.now&&performance.now()}
16
function k(a,b){var d=null;return function(){d||(d=setTimeout(function(){a();d=null}
17
,b))}
18
}
19
function q(a,b,d,g){"function"==typeof a.addEventListener?a.addEventListener(b,d,g||!1):"function"==typeof a.attachEvent&&a.attachEvent("on"+b,d)}
20
function p(a,b,d,g){"function"==typeof a.removeEventListener?a.removeEventListener(b,d,g||!1):"function"==typeof a.detatchEvent&&
21
a.detatchEvent("on"+b,d)}
22
function t(a,b){var d=Math.max(a.top,b.top),g=Math.min(a.bottom,b.bottom),h=Math.max(a.left,b.left),m=Math.min(a.right,b.right),n=m-h,u=g-d;return 0<=n&&0<=u&&{top:d,bottom:g,left:h,right:m,width:n,height:u}
23
||null}
24
function v(a){try{var b=a.getBoundingClientRect()}
25
catch(d){}
26
if(!b)return B();b.width&&b.height||(b={top:b.top,right:b.right,bottom:b.bottom,left:b.left,width:b.right-b.left,height:b.bottom-b.top}
27
);return b}
28
function B(){return{top:0,bottom:0,left:0,right:0,width:0,
29
height:0}
30
}
31
function D(a){return!a||"x"in a?a:{top:a.top,y:a.top,bottom:a.bottom,left:a.left,x:a.left,right:a.right,width:a.width,height:a.height}
32
}
33
function H(a,b){var d=b.top-a.top,g=b.left-a.left;return{top:d,left:g,height:b.height,width:b.width,bottom:d+b.height,right:g+b.width}
34
}
35
function I(a,b){for(var d=b;d;){if(d==a)return!0;d=C(d)}
36
return!1}
37
function C(a){var b=a.parentNode;return 9==a.nodeType&&a!=r?c(a):b&&11==b.nodeType&&b.host?b.host:b&&b.assignedSlot?b.assignedSlot.parentNode:b}
38
if("object"===
39
typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}
40
}
...
</html>