var __extends=this&&this.__extends||function(){var t=function(n,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))t[i]=n[i]};return t(n,i)};return function(n,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function e(){this.constructor=n}n.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();var __awaiter=this&&this.__awaiter||function(t,n,i,e){function r(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,u){function o(t){try{c(e.next(t))}catch(t){u(t)}}function s(t){try{c(e["throw"](t))}catch(t){u(t)}}function c(t){t.done?i(t.value):r(t.value).then(o,s)}c((e=e.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},e,r,u,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(n){return c([t,n])}}function c(s){if(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(e=1,r&&(u=s[0]&2?r["return"]:s[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;if(r=0,u)s=[s[0]&2,u.value];switch(s[0]){case 0:case 1:u=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(u=i.trys,u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1];u=s;break}if(u&&i.label<u[2]){i.label=u[2];i.ops.push(s);break}if(u[2])i.ops.pop();i.trys.pop();continue}s=n.call(t,i)}catch(t){s=[6,t];r=0}finally{e=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-D1opIX9W.system.js","./p-DDPYMMGG.system.js"],(function(t){"use strict";var n,i,e,r,u;return{setters:[function(t){n=t.d;i=t.a;e=t.k},function(t){r=t.L;u=t.a}],execute:function(){t("L",c);var o=function(t){__extends(e,t);function e(){var n=t.apply(this,arguments)||this;n.waitAfterFramePrint=false;n.intersectionObserver=undefined;n.intersectionCallback=function(t){var i=t.some((function(t){return t.isIntersecting}));if(i){n.notify()}};return n}e.prototype.connect=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:t.prototype.connect.call(this,e);if(typeof IntersectionObserver==="undefined"){return[2]}if(!this.waitAfterFramePrint)return[3,3];return[4,n(e)];case 1:r.sent();return[4,i()];case 2:r.sent();r.label=3;case 3:this.destroyMutationObserver();this.intersectionObserver=new IntersectionObserver(this.intersectionCallback,{root:null,threshold:.5});this.intersectionObserver.observe(e);return[2]}}))}))};e.prototype.disconnect=function(){t.prototype.disconnect.call(this);this.destroyMutationObserver()};e.prototype.destroyMutationObserver=function(){if(this.intersectionObserver!==undefined){this.intersectionObserver.disconnect();this.intersectionObserver=undefined}};return e}(r);var s=function(t){__extends(n,t);function n(){var n=t.call(this,(function(t){t.visibilityListener()}))||this;n.debouncedNotify=e((function(){return n.notify()}),50);n.listener=new o;return n}n.prototype.attach=function(n){var i=this;var e,r;t.prototype.attach.call(this,n);(e=this.listener)===null||e===void 0?void 0:e.connect(n.el);(r=this.listener)===null||r===void 0?void 0:r.add((function(){return i.debouncedNotify()}))};n.prototype.detach=function(){var n;t.prototype.detach.call(this);(n=this.listener)===null||n===void 0?void 0:n.disconnect()};return n}(u);function c(){return function(t,n,i){var e=t.connectedCallback,r=t.componentDidLoad,u=t.disconnectedCallback;t.connectedCallback=function(){if(!this._balVisibilitySubject){this._balVisibilitySubject=new s}return e&&e.call(this)};t.componentDidLoad=function(){this._balVisibilitySubject.attach(this);return r&&r.call(this)};t.disconnectedCallback=function(){if(this._balVisibilitySubject){this._balVisibilitySubject.detach();this._balVisibilitySubject=undefined}return u&&u.call(this)}}}}}}));