* @copyright 2018 (c) FOREFRONT International Sdn Bhd
*/varr=this&&this.__assign||function(){return(r=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)};n(1);vari=n(2),o=function(){functiont(e){void0===e&&(e={});varn=this;(this._untrackFns=newMap,this._observer=null,this.options=r({},t.defaultOptions,e),this._observer=newIntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&(n._onTrackedView(t.target,e),e.unobserve(t.target))})},this.options.observerOptions),this.options.defer)||("complete"===document.readyState||"interactive"===document.readyState?this.start():window.addEventListener("DOMContentLoaded",function(){returnn.start()}))}returnt.prototype.start=function(t){vare=this;void0===t&&(t=document.body),i.toArray(t.querySelectorAll("[data-track], [data-track-view]")).map(function(t){returne.track(t)})},t.prototype.track=function(t){this._untrackFns.has(t)||this._untrackFns.set(t,{click:null,view:null});vare=this._untrackFns.get(t);null!==t.getAttribute("data-track")&&null==e.click&&(e.click=this._trackClicks(t)),null!==t.getAttribute("data-track-view")&&null==e.view&&(e.view=this._trackViews(t)),this._untrackFns.set(t,e)},t.prototype.untrack=function(t){vare=this._untrackFns.get(t);void0!==e&&(null!==e.click&&e.click(),null!==e.view&&e.view(),this._untrackFns.delete(t))},t.prototype.send=function(t){if(null!==this.options.sendEventFn)returnthis.options.sendEventFn(t);if("function"==typeofwindow.gtag)returnwindow.gtag("event",t.action,r({event_label:t.label,event_category:t.category,non_interaction:!t.interaction},t.metrics,t.dimensions));if("function"==typeofwindow.ga)returnwindow.ga("send",{hitType:"event",eventCategory:t.category,eventAction:t.action,eventLabel:t.label,nonInteraction:!t.interaction},r({},t.metrics,t.dimensions));throw"No available analytics backend found. Has Google Analytics been loaded yet?"},t.prototype._parseEventString=function(t){vare=t.split(";"),n=e[0],r=e[1],i=e[2];return1===e.length&&(r=n,n=void0),{category:n,action:r,label:i,interaction:!0}},t.prototype._trackClicks=function(t){vare=this,n=function(n){returne._onTrackedClick(t,n)};returnt.addEventListener("click",n),t.addEventListener("auxclick",n),function(){t.removeEventListener("click",n),t.removeEventListener("auxclick",n)}},t.prototype._trackViews=function(t){vare=this;returnthis._observer.observe(t),function(){e._observer.unobserve(t)}},t.prototype._onTrackedClick=function(t,e){varn=t.getAttribute("data-track"),r=this._parseEventString(n);r.metrics=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track:metrics")}).reduce(function(t,e){varn=e.name.replace(/data-track:metrics:/,""),r=""===e.value?1:e.value;returnt[n]=r,t},{}),r.dimensions=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track:dimensions")}).reduce(function(t,e){if(""===e.value)returnconsole.warn("No dimension value provided for "+e.name),t;varn=e.name.replace(/data-track:dimensions:/,""),r=e.value;returnt[n]=r,t},{}),r.interaction=this.options.clicksAreInteractions,null!==t.getAttribute("data-track:non-interaction")&&(r.interaction=!1),this.send(r)},t.prototype._onTrackedView=function(t,e){varn=t.getAttribute("data-track-view"),r=this._parseEventString(n);r.metrics=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track-view:metrics")}).reduce(function(t,e){varn=e.name.replace(/data-track-view:metrics:/,""),r=""===e.value?1:e.value;returnt[n]=r,t},{}),r.dimensions=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track-view:dimensions")}).reduce(function(t,e){if(""===e.value)returnconsole.warn("No dimension value provided for "+e.name),t;varn=e.name.replace(/data-track-view:dimensions:/,""),r=e.value;returnt[n]=r,t},{}),r.interaction=this.options.viewsAreInteractions,null!==t.getAttribute("data-track-view:interaction")&&(r.interaction=!0),this.send(r)},t.defaultOptions={defer:!1,observerOptions:{},clicksAreInteractions:!0,viewsAreInteractions:!1,sendEventFn:null},t}();t.exports=o},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"int&&"IntersectionObserverEntry"int&&"intersectionRatio"int.IntersectionObserverEntry.prototype)"isIntersecting"int.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){returnthis.intersectionRatio>0}});else{varn=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){if(!this._observationTargets.some(function(e){returne.element==t})){if(!t||1!=t.nodeType)thrownewError("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){returne.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){vart=this._queuedEntries.slice();returnthis._queuedEntries=[],t},i.prototype._initThresholds=function(t){vare=t||[0];returnArray.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeoft||isNaN(t)||t<0||t>1)thrownewError("threshold must be a number between 0 and 1 inclusively");returnt!==n[e-1]})},i.prototype._parseRootMargin=function(t){vare=(t||"0px").split(/\s+/).map(function(t){vare=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)thrownewError("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});returne[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(t,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"int&&(this._domObserver=newMutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){vare=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(i){varo=i.element,s=a(o),c=this._rootContainsTarget(o),u=i.entry,h=e&&c&&this._computeTargetAndRootIntersection(o,n),l=i.entry=newr({time:t.performance&&performance.now&&performance.now(),target:o,boundingClientRect:s,rootBounds:n,intersectionRect:h});u?e&&c?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(vari=a(n),o=h(n),s=!1;!s;){varu=null,l=1==o.nodeType?t.getComputedStyle(o):{};if("none"==l.display)return;if(o==this.root||o==e?(s=!0,u=r):o!=e.body&&o!=e.documentElement&&"visible"!=l.overflow&&(u=a(o)),u&&!(i=c(u,i)))break;o=h(o)}returni}},i.prototype._getRootRect=function(){vart;if(this.root)t=a(this.root);else{varn=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}returnthis._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(t){vare=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};returnn.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){varn=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(vari=0;i<this.thresholds.length;i++){varo=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},i.prototype._rootIsInDom=function(){return!this.root||u(e,this.root)},i.prototype._rootContainsTarget=function(t){returnu(this.root||e,t)},i.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},i.prototype._unregisterInstance=function(){vart=n.indexOf(this);-1!=t&&n.splice(t,1)},t.IntersectionObserver=i,t.IntersectionObserverEntry=r}functionr(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;vare=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?i/n:this.isIntersecting?1:0}functioni(t,e){varn=e||{};if("function"!=typeoft)thrownewError("callback must be a function");if(n.root&&1!=n.root.nodeType)thrownewError("root must be an Element");this._checkForIntersections=function(t,e){varn=null;returnfunction(){n||(n=setTimeout(function(){t(),n=null},e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){returnt.value+t.unit}).join(" ")}functiono(t,e,n,r){"function"==typeoft.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeoft.attachEvent&&t.attachEvent("on"+e,n)}functions(t,e,n,r){"function"==typeoft.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeoft.detatchEvent&&t.detatchEvent("on"+e,n)}functionc(t,e){varn=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),o=Math.min(t.right,e.right),s=o-i,c=r-n;returns>=0&&c>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:c}}functiona(t){vare;try{e=t.getBoundingClientRect()}catch(t){}returne?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}functionu(t,e){for(varn=e;n;){if(n==t)return!0;n=h(n)}return!1}functionh(t){vare=t.parentNode;returne&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varr=n(3);e.toArray=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return[].slice.call(t)}}])});
\ No newline at end of file
*/varr=this&&this.__assign||function(){return(r=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)};n(1);vari=n(2),o=function(){functiont(e){void0===e&&(e={});varn=this;(this._untrackFns=newMap,this._observer=null,this.options=r({},t.defaultOptions,e),this._observer=newIntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&(n._onTrackedView(t.target,e),e.unobserve(t.target))})},this.options.observerOptions),this.options.defer)||("complete"===document.readyState||"interactive"===document.readyState?this.start():window.addEventListener("DOMContentLoaded",function(){returnn.start()}))}returnt.prototype.start=function(t){vare=this;void0===t&&(t=document.body),i.toArray(t.querySelectorAll("[data-track], [data-track-view]")).map(function(t){returne.track(t)})},t.prototype.track=function(t){this._untrackFns.has(t)||this._untrackFns.set(t,{click:null,view:null});vare=this._untrackFns.get(t);null!==t.getAttribute("data-track")&&null==e.click&&(e.click=this._trackClicks(t)),null!==t.getAttribute("data-track-view")&&null==e.view&&(e.view=this._trackViews(t)),this._untrackFns.set(t,e)},t.prototype.untrack=function(t){vare=this._untrackFns.get(t);void0!==e&&(null!==e.click&&e.click(),null!==e.view&&e.view(),this._untrackFns.delete(t))},t.prototype.send=function(t){if(null!==this.options.sendEventFn)returnthis.options.sendEventFn(t);if("function"==typeofwindow.gtag)returnwindow.gtag("event",t.action,r({event_label:t.label,event_category:t.category,non_interaction:!t.interaction},t.metrics,t.dimensions));if("function"==typeofwindow.ga)returnwindow.ga("send",{hitType:"event",eventCategory:t.category,eventAction:t.action,eventLabel:t.label,nonInteraction:!t.interaction},r({},t.metrics,t.dimensions));throw"No available analytics backend found. Has Google Analytics been loaded yet?"},t.prototype._parseEventString=function(t){vare=t.split(";").map(function(t){returnt.trim()}),n=e[0],r=e[1],i=e[2];return1===e.length&&(r=n,n=void0),{category:n,action:r,label:i,interaction:!0}},t.prototype._trackClicks=function(t){vare=this,n=function(n){returne._onTrackedClick(t,n)};returnt.addEventListener("click",n),t.addEventListener("auxclick",n),function(){t.removeEventListener("click",n),t.removeEventListener("auxclick",n)}},t.prototype._trackViews=function(t){vare=this;returnthis._observer.observe(t),function(){e._observer.unobserve(t)}},t.prototype._onTrackedClick=function(t,e){varn=t.getAttribute("data-track"),r=this._parseEventString(n);r.metrics=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track:metrics")}).reduce(function(t,e){varn=e.name.replace(/data-track:metrics:/,""),r=""===e.value?1:e.value;returnt[n]=r,t},{}),r.dimensions=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track:dimensions")}).reduce(function(t,e){if(""===e.value)returnconsole.warn("No dimension value provided for "+e.name),t;varn=e.name.replace(/data-track:dimensions:/,""),r=e.value;returnt[n]=r,t},{}),r.interaction=this.options.clicksAreInteractions,null!==t.getAttribute("data-track:non-interaction")&&(r.interaction=!1),this.send(r)},t.prototype._onTrackedView=function(t,e){varn=t.getAttribute("data-track-view"),r=this._parseEventString(n);r.metrics=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track-view:metrics")}).reduce(function(t,e){varn=e.name.replace(/data-track-view:metrics:/,""),r=""===e.value?1:e.value;returnt[n]=r,t},{}),r.dimensions=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track-view:dimensions")}).reduce(function(t,e){if(""===e.value)returnconsole.warn("No dimension value provided for "+e.name),t;varn=e.name.replace(/data-track-view:dimensions:/,""),r=e.value;returnt[n]=r,t},{}),r.interaction=this.options.viewsAreInteractions,null!==t.getAttribute("data-track-view:interaction")&&(r.interaction=!0),this.send(r)},t.defaultOptions={defer:!1,observerOptions:{},clicksAreInteractions:!0,viewsAreInteractions:!1,sendEventFn:null},t}();t.exports=o},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"int&&"IntersectionObserverEntry"int&&"intersectionRatio"int.IntersectionObserverEntry.prototype)"isIntersecting"int.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){returnthis.intersectionRatio>0}});else{varn=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){if(!this._observationTargets.some(function(e){returne.element==t})){if(!t||1!=t.nodeType)thrownewError("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){returne.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){vart=this._queuedEntries.slice();returnthis._queuedEntries=[],t},i.prototype._initThresholds=function(t){vare=t||[0];returnArray.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeoft||isNaN(t)||t<0||t>1)thrownewError("threshold must be a number between 0 and 1 inclusively");returnt!==n[e-1]})},i.prototype._parseRootMargin=function(t){vare=(t||"0px").split(/\s+/).map(function(t){vare=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)thrownewError("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});returne[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(t,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"int&&(this._domObserver=newMutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){vare=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(i){varo=i.element,s=a(o),c=this._rootContainsTarget(o),u=i.entry,h=e&&c&&this._computeTargetAndRootIntersection(o,n),l=i.entry=newr({time:t.performance&&performance.now&&performance.now(),target:o,boundingClientRect:s,rootBounds:n,intersectionRect:h});u?e&&c?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(vari=a(n),o=h(n),s=!1;!s;){varu=null,l=1==o.nodeType?t.getComputedStyle(o):{};if("none"==l.display)return;if(o==this.root||o==e?(s=!0,u=r):o!=e.body&&o!=e.documentElement&&"visible"!=l.overflow&&(u=a(o)),u&&!(i=c(u,i)))break;o=h(o)}returni}},i.prototype._getRootRect=function(){vart;if(this.root)t=a(this.root);else{varn=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}returnthis._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(t){vare=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};returnn.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){varn=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(vari=0;i<this.thresholds.length;i++){varo=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},i.prototype._rootIsInDom=function(){return!this.root||u(e,this.root)},i.prototype._rootContainsTarget=function(t){returnu(this.root||e,t)},i.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},i.prototype._unregisterInstance=function(){vart=n.indexOf(this);-1!=t&&n.splice(t,1)},t.IntersectionObserver=i,t.IntersectionObserverEntry=r}functionr(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;vare=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?i/n:this.isIntersecting?1:0}functioni(t,e){varn=e||{};if("function"!=typeoft)thrownewError("callback must be a function");if(n.root&&1!=n.root.nodeType)thrownewError("root must be an Element");this._checkForIntersections=function(t,e){varn=null;returnfunction(){n||(n=setTimeout(function(){t(),n=null},e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){returnt.value+t.unit}).join(" ")}functiono(t,e,n,r){"function"==typeoft.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeoft.attachEvent&&t.attachEvent("on"+e,n)}functions(t,e,n,r){"function"==typeoft.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeoft.detatchEvent&&t.detatchEvent("on"+e,n)}functionc(t,e){varn=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),o=Math.min(t.right,e.right),s=o-i,c=r-n;returns>=0&&c>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:c}}functiona(t){vare;try{e=t.getBoundingClientRect()}catch(t){}returne?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}functionu(t,e){for(varn=e;n;){if(n==t)return!0;n=h(n)}return!1}functionh(t){vare=t.parentNode;returne&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varr=n(3);e.toArray=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return[].slice.call(t)}}])});