text: self.ElementObserver=function(e){"use strict";function t(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a="attributeChangedCallback",n="connectedCallback",r=new WeakMap,i=new WeakMap,o=function(e,t){for(var a=r.get(t),n=0,i=e.length;n<i;n++){var o=e[n],l=o.target,c=o.attributeName,s=o.oldValue;a.get(l).attributeChangedCallback(l,c,s,l.getAttribute(c))}},l=function(e){e.disconnect(),r.delete(e)},c=function(e,t,a){for(var n=0,r=t.length;n<r;n++)if(e.has(t[n])){var i=e.get(t[n]);a in i&&i[a](t[n])}},s=function(e,t){for(var a=r.get(t),i=0,o=e.length;i<o;i++)c(a,e[i].removedNodes,"disconnectedCallback"),c(a,e[i].addedNodes,n)};return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var a=new MutationObserver(s),n=new Map;r.set(a,n),i.set(this,{h:t,a:new Map,m:a,o:n})}var c,u,b;return c=e,(u=[{key:"observe",value:function(e,t){var l=i.get(this);if(l.o.has(e)&&this.disconnect(e),l.o.size||l.m.observe(e.ownerDocument,{childList:!0,subtree:!0}),l.o.set(e,l.h),t&&a in l.h){var c=t.attributes,s=t.attributeFilter,u=t.attributeOldValue,b=new MutationObserver(o);b.observe(e,{attributes:c,attributeFilter:s,attributeOldValue:u}),r.set(b,l.o),l.a.set(e,b);for(var f=e.attributes,d=0;d<f.length;d++){var h=f[d],v=h.name,g=h.value;(!s||-1<s.indexOf(v))&&l.h.attributeChangedCallback(e,v,null,g)}}e.isConnected&&n in l.h&&l.h.connectedCallback(e)}},{key:"disconnect",value:function(e){var t=i.get(this);if(e){if(t.o.has(e)&&(t.a.has(e)&&(l(t.a.get(e)),t.a.delete(e)),t.o.delete(e),t.o.size))return}else t.a.forEach(l),t.a.clear(),t.o.clear();t.m.disconnect()}}])&&t(c.prototype,u),b&&t(c,b),e}()}();