var __extends=this&&this.__extends||function(){var n=function(t,i){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))n[i]=t[i]};return n(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();System.register(["./p-D1opIX9W.system.js","./p-DDPYMMGG.system.js","./p-D7_eHNTI.system.js"],(function(n){"use strict";var t,i,e,r,u;return{setters:[function(n){t=n.k;i=n.r},function(n){e=n.L;r=n.a},function(n){u=n.b}],execute:function(){n("L",o);var s=function(n){__extends(i,n);function i(){var i=n.apply(this,arguments)||this;i.debouncedNotify=t((function(n){return i.notify(n)}),42);return i}i.prototype.connect=function(t){var i=this;var e;n.prototype.connect.call(this,t);if(typeof ResizeObserver==="undefined"){return}if(this.resizeObserver!==undefined){(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.resizeObserver=undefined}this.resizeObserver=new ResizeObserver((function(n){if(u.hasWindow){window.requestAnimationFrame((function(){if(!Array.isArray(n)||!n.length){return}var t=n[0];if(i.lastWidth===undefined&&i.lastHeight===undefined){i.lastWidth=t.contentRect.width;i.lastHeight=t.contentRect.height}else{var e=i.lastWidth!==t.contentRect.width;var r=i.lastHeight!==t.contentRect.height;if(e||r){i.debouncedNotify({width:e,height:r});i.lastWidth=t.contentRect.width;i.lastHeight=t.contentRect.height}}}))}}));this.resizeObserver.observe(t)};i.prototype.disconnect=function(){var t;n.prototype.disconnect.call(this);(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect();this.resizeObserver=undefined};return i}(e);var f=function(n){__extends(t,n);function t(){var t=n.call(this,(function(n,t){i((function(){return n.resizeListener(t)}))}))||this;t.listener=new s;return t}t.prototype.attach=function(t){var i=this;n.prototype.attach.call(this,t);this.listener.connect(t.el);this.listener.add((function(t){return n.prototype.notify.call(i,t)}))};t.prototype.detach=function(){n.prototype.detach.call(this);this.listener.disconnect()};return t}(r);function o(){return function(n,t,i){var e=n.connectedCallback,r=n.disconnectedCallback;n.connectedCallback=function(){if(!this._balResizeSubject){this._balResizeSubject=new f;this._balResizeSubject.attach(this)}return e&&e.call(this)};n.disconnectedCallback=function(){if(this._balResizeSubject){this._balResizeSubject.detach();this._balResizeSubject=undefined}return r&&r.call(this)}}}}}}));