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 r(){this.constructor=n}n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();System.register(["./p-D1opIX9W.system.js","./p-DDPYMMGG.system.js"],(function(t){"use strict";var n,i,r,u,e,s;return{setters:[function(t){n=t.k;i=t.u;r=t.o;u=t.p},function(t){e=t.L;s=t.a}],execute:function(){t("L",c);var o=function(t){__extends(e,t);function e(){var r=t.apply(this,arguments)||this;r.debouncedNotify=n((function(t){return r.notify({target:t})}),42);r.callbackWillAnimate=function(t){i(t,r.el,(function(t){return r.debouncedNotify(t)}))};r.callbackDidAnimate=function(t){i(t,r.el,(function(t){return r.debouncedNotify(t)}))};return r}e.prototype.connect=function(n){t.prototype.connect.call(this,n);var i=window;if(i){r(i,"balWillAnimate",this.callbackWillAnimate,{passive:true});r(i,"balDidAnimate",this.callbackDidAnimate,{passive:true})}};e.prototype.disconnect=function(){t.prototype.disconnect.call(this);var n=window;if(n){u(n,"balWillAnimate",this.callbackWillAnimate);u(n,"balDidAnimate",this.callbackDidAnimate)}};return e}(e);var f=function(t){__extends(n,t);function n(){var n=t.call(this,(function(t,n){t.animationListener(n)}))||this;n.listener=new o;return n}n.prototype.attach=function(n){var i=this;t.prototype.attach.call(this,n);this.listener.connect(n.el);this.listener.add((function(n){return t.prototype.notify.call(i,n)}))};n.prototype.detach=function(){t.prototype.detach.call(this);this.listener.disconnect()};return n}(s);new f;function c(){return function(t,n,i){var r=t.connectedCallback,u=t.componentDidLoad,e=t.disconnectedCallback;t.connectedCallback=function(){if(!this._balAnimationSubject){this._balAnimationSubject=new f}return r&&r.call(this)};t.componentDidLoad=function(){this._balAnimationSubject.attach(this);return u&&u.call(this)};t.disconnectedCallback=function(){if(this._balAnimationSubject){this._balAnimationSubject.detach();this._balAnimationSubject=undefined}return e&&e.call(this)}}}}}}));