Cube("static:/390.js",["static:/391.js","static:/396.js"],function(a,b,c){Object.defineProperty(b,"__esModule",{value:!0}),b.joinStrict=b.joinConcat=b.joinLeading=b.joinTrailing=b.fetchInitialState=b.stopListeningToAll=b.stopListeningTo=b.listenTo=b.validateListening=b.listenToMany=b.hasListener=void 0;var d=c("static:/391.js"),e=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(d),f=c("static:/396.js"),g=function(a){for(var b,c=0,d={};c<(a.children||[]).length;++c)b=a.children[c],a[b]&&(d[b]=a[b]);return d},h=function a(b){var c={};for(var d in b){var f=b[d],h=g(f),i=a(h);for(var j in c[d]=f,i){var k=i[j];c[d+e.capitalize(j)]=k}}return c},i=b.hasListener=function(a){for(var b,c,d,e=0;e<(this.subscriptions||[]).length;++e)for(d=[].concat(this.subscriptions[e].listenable),b=0;b<d.length;b++)if(c=d[b],c===a||c.hasListener&&c.hasListener(a))return!0;return!1},j=b.listenToMany=function(a){var b=h(a);for(var c in b){var d=e.callbackName(c),f=this[d]?d:this[c]?c:void 0;f&&this.listenTo(b[c],f,this[d+"Default"]||this[f+"Default"]||f)}},k=b.validateListening=function(a){return a===this?"Listener is not able to listen to itself":e.isFunction(a.listen)?a.hasListener&&a.hasListener(this)?"Listener cannot listen to this listenable because of circular loop":void 0:a+" is missing a listen method"},l=b.listenTo=function(a,b,c){var d,f,g,h=this.subscriptions=this.subscriptions||[];return e.throwIf(this.validateListening(a)),this.fetchInitialState(a,c),d=a.listen(this[b]||b,this),f=function(){var a=h.indexOf(g);e.throwIf(-1===a,"Tried to remove listen already gone from subscriptions list!"),h.splice(a,1),d()},g={stop:f,listenable:a},h.push(g),g},m=b.stopListeningTo=function(a){for(var b,c=0,d=this.subscriptions||[];c<d.length;c++)if(b=d[c],b.listenable===a)return b.stop(),e.throwIf(-1!==d.indexOf(b),"Failed to remove listen from subscriptions list!"),!0;return!1},n=b.stopListeningToAll=function(){for(var a,b=this.subscriptions||[];a=b.length;)b[0].stop(),e.throwIf(b.length!==a-1,"Failed to remove listen from subscriptions list!")},o=b.fetchInitialState=function(a,b){b=b&&this[b]||b;var c=this;if(e.isFunction(b)&&e.isFunction(a.getInitialState)){var d=a.getInitialState();d&&e.isFunction(d.then)?d.then(function(){b.apply(c,arguments)}):b.call(this,d)}},p=b.joinTrailing=(0,f.instanceJoinCreator)("last"),q=b.joinLeading=(0,f.instanceJoinCreator)("first"),r=b.joinConcat=(0,f.instanceJoinCreator)("all"),s=b.joinStrict=(0,f.instanceJoinCreator)("strict");return a.exports});