(window.mvtrellisJsonp=window.mvtrellisJsonp||[]).push([[0],{4:function(a,b){!function(){"use strict";if("object"==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 this.intersectionRatio>0}});else{var b=window.document,c=[];a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a.prototype.observe=function(a){if(!this._observationTargets.some(function(b){return b.element==a})){if(!a||1!=a.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:a,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},a.prototype.unobserve=function(a){this._observationTargets=this._observationTargets.filter(function(b){return b.element!=a}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var a=this._queuedEntries.slice();return this._queuedEntries=[],a},a.prototype._initThresholds=function(b){var a=b||[0];return Array.isArray(a)||(a=[a]),a.sort().filter(function(a,b,c){if("number"!=typeof a||isNaN(a)||a<0||a>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return a!==c[b-1]})},a.prototype._parseRootMargin=function(b){var a=(b||"0px").split(/\s+/).map(function(b){var a=/^(-?\d*\.?\d+)(px|%)$/.exec(b);if(!a)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(a[1]),unit:a[2]}});return a[1]=a[1]||a[0],a[2]=a[2]||a[0],a[3]=a[3]||a[1],a},a.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(f(window,"resize",this._checkForIntersections,!0),f(b,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},a.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,g(window,"resize",this._checkForIntersections,!0),g(b,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},a.prototype._checkForIntersections=function(){var a=this._rootIsInDom(),b=a?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(g){var e=g.element,j=d(e),h=this._rootContainsTarget(e),f=g.entry,k=a&&h&&this._computeTargetAndRootIntersection(e,b),c=g.entry=new i({time:window.performance&&performance.now&&performance.now(),target:e,boundingClientRect:j,rootBounds:b,intersectionRect:k});f?a&&h?this._hasCrossedThreshold(f,c)&&this._queuedEntries.push(c):f&&f.isIntersecting&&this._queuedEntries.push(c):this._queuedEntries.push(c)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},a.prototype._computeTargetAndRootIntersection=function(o,r){var c,f,h,i,j,k,m,l,n,a,p,g,q;if("none"!=window.getComputedStyle(o).display){for(c,f,h,i,j,k,m,l,n=d(o),a=e(o),p=!1;!p;){if(g=null,q=1==a.nodeType?window.getComputedStyle(a):{},"none"==q.display)return;if(a==this.root||a==b?(p=!0,g=r):a!=b.body&&a!=b.documentElement&&"visible"!=q.overflow&&(g=d(a)),g&&(c=g,f=n,h=void 0,i=void 0,j=void 0,k=void 0,m=void 0,l=void 0,h=Math.max(c.top,f.top),i=Math.min(c.bottom,f.bottom),j=Math.max(c.left,f.left),k=Math.min(c.right,f.right),l=i-h,!(n=(m=k-j)>=0&&l>=0&&{top:h,bottom:i,left:j,right:k,width:m,height:l})))break;a=e(a)}return n}},a.prototype._getRootRect=function(){var e,a,c;return this.root?e=d(this.root):(a=b.documentElement,c=b.body,e={top:0,left:0,right:a.clientWidth||c.clientWidth,width:a.clientWidth||c.clientWidth,bottom:a.clientHeight||c.clientHeight,height:a.clientHeight||c.clientHeight}),this._expandRectByRootMargin(e)},a.prototype._expandRectByRootMargin=function(b){var c=this._rootMarginValues.map(function(a,c){return"px"==a.unit?a.value:a.value*(c%2?b.width:b.height)/100}),a={top:b.top-c[0],right:b.right+c[1],bottom:b.bottom+c[2],left:b.left-c[3]};return a.width=a.right-a.left,a.height=a.bottom-a.top,a},a.prototype._hasCrossedThreshold=function(b,f){var c=b&&b.isIntersecting?b.intersectionRatio||0:-1,d=f.isIntersecting?f.intersectionRatio||0:-1,e,a;if(c!==d)for(e=0;e<this.thresholds.length;e++)if(a=this.thresholds[e],a==c||a==d||a<c!=a<d)return!0},a.prototype._rootIsInDom=function(){return!this.root||h(b,this.root)},a.prototype._rootContainsTarget=function(a){return h(this.root||b,a)},a.prototype._registerInstance=function(){c.indexOf(this)<0&&c.push(this)},a.prototype._unregisterInstance=function(){var a=c.indexOf(this);-1!=a&&c.splice(a,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function i(a){this.time=a.time,this.target=a.target,this.rootBounds=a.rootBounds,this.boundingClientRect=a.boundingClientRect,this.intersectionRect=a.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!a.intersectionRect;var b=this.boundingClientRect,c=b.width*b.height,d=this.intersectionRect,e=d.width*d.height;this.intersectionRatio=c?Number((e/c).toFixed(4)):this.isIntersecting?1:0}function a(c,f){var d,e,b,a=f||{};if("function"!=typeof c)throw new Error("callback must be a function");if(a.root&&1!=a.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(d=this._checkForIntersections.bind(this),e=this.THROTTLE_TIMEOUT,b=null,function(){b||(b=setTimeout(function(){d(),b=null},e))}),this._callback=c,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map(function(a){return a.value+a.unit}).join(" ")}function f(a,b,c,d){"function"==typeof a.addEventListener?a.addEventListener(b,c,d||!1):"function"==typeof a.attachEvent&&a.attachEvent("on"+b,c)}function g(a,b,c,d){"function"==typeof a.removeEventListener?a.removeEventListener(b,c,d||!1):"function"==typeof a.detatchEvent&&a.detatchEvent("on"+b,c)}function d(b){var a;try{a=b.getBoundingClientRect()}catch(a){}return a?(a.width&&a.height||(a={top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.right-a.left,height:a.bottom-a.top}),a):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(b,c){for(var a=c;a;){if(a==b)return!0;a=e(a)}return!1}function e(b){var a=b.parentNode;return a&&11==a.nodeType&&a.host?a.host:a&&a.assignedSlot?a.assignedSlot.parentNode:a}}()}}])