Socket
Socket
Sign inDemoInstall

flux

Package Overview
Dependencies
19
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.3 to 4.0.4

0

CHANGELOG.md

@@ -0,0 +0,0 @@ # Changelog

90

dist/Flux.js
/**
* Flux v4.0.3
* Flux v4.0.4
*/

@@ -61,3 +61,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/**
* Copyright (c) 2014-present, Facebook, Inc.
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.

@@ -69,2 +69,3 @@ *

*/
module.exports.Dispatcher = __webpack_require__(1);

@@ -77,3 +78,3 @@

/**
* Copyright (c) 2014-present, Facebook, Inc.
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.

@@ -89,5 +90,7 @@ *

*/
'use strict';
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {

@@ -103,9 +106,21 @@ Object.defineProperty(obj, key, {

}
return obj;
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
var invariant = __webpack_require__(2);
var _prefix = 'ID_';
var _prefix = 'ID_';
/**

@@ -198,17 +213,10 @@ * Dispatcher is used to broadcast payloads to registered callbacks. This is

*/
var Dispatcher = /*#__PURE__*/function () {
function Dispatcher() {
_defineProperty(this, "_callbacks", void 0);
_defineProperty(this, "_isDispatching", void 0);
_defineProperty(this, "_isHandled", void 0);
_defineProperty(this, "_isPending", void 0);
_defineProperty(this, "_lastID", void 0);
_defineProperty(this, "_pendingPayload", void 0);
this._callbacks = {};

@@ -220,2 +228,3 @@ this._isDispatching = false;

}
/**

@@ -225,6 +234,3 @@ * Registers a callback to be invoked with every dispatched payload. Returns

*/
var _proto = Dispatcher.prototype;
_proto.register = function register(callback) {

@@ -235,7 +241,6 @@ var id = _prefix + this._lastID++;

}
/**
* Removes a callback based on its token.
*/
;
*/;
_proto.unregister = function unregister(id) {

@@ -245,2 +250,3 @@ !this._callbacks[id] ? true ? invariant(false, 'Dispatcher.unregister(...): `%s` does not map to a registered callback.', id) : invariant(false) : void 0;

}
/**

@@ -250,11 +256,7 @@ * Waits for the callbacks specified to be invoked before continuing execution

* response to a dispatched payload.
*/
;
*/;
_proto.waitFor = function waitFor(ids) {
!this._isDispatching ? true ? invariant(false, 'Dispatcher.waitFor(...): Must be invoked while dispatching.') : invariant(false) : void 0;
for (var ii = 0; ii < ids.length; ii++) {
var id = ids[ii];
if (this._isPending[id]) {

@@ -264,18 +266,13 @@ !this._isHandled[id] ? true ? invariant(false, 'Dispatcher.waitFor(...): Circular dependency detected while ' + 'waiting for `%s`.', id) : invariant(false) : void 0;

}
!this._callbacks[id] ? true ? invariant(false, 'Dispatcher.waitFor(...): `%s` does not map to a registered callback.', id) : invariant(false) : void 0;
this._invokeCallback(id);
}
}
/**
* Dispatches a payload to all registered callbacks.
*/
;
*/;
_proto.dispatch = function dispatch(payload) {
!!this._isDispatching ? true ? invariant(false, 'Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch.') : invariant(false) : void 0;
this._startDispatching(payload);
try {

@@ -286,3 +283,2 @@ for (var id in this._callbacks) {

}
this._invokeCallback(id);

@@ -294,10 +290,10 @@ }

}
/**
* Is this Dispatcher currently dispatching.
*/
;
*/;
_proto.isDispatching = function isDispatching() {
return this._isDispatching;
}
/**

@@ -308,12 +304,9 @@ * Call the callback stored with the given id. Also do some internal

* @internal
*/
;
*/;
_proto._invokeCallback = function _invokeCallback(id) {
this._isPending[id] = true;
this._callbacks[id](this._pendingPayload);
this._isHandled[id] = true;
}
/**

@@ -323,5 +316,3 @@ * Set up bookkeeping needed when dispatching.

* @internal
*/
;
*/;
_proto._startDispatching = function _startDispatching(payload) {

@@ -332,6 +323,6 @@ for (var id in this._callbacks) {

}
this._pendingPayload = payload;
this._isDispatching = true;
}
/**

@@ -341,5 +332,3 @@ * Clear bookkeeping used for dispatching.

* @internal
*/
;
*/;
_proto._stopDispatching = function _stopDispatching() {

@@ -349,6 +338,4 @@ delete this._pendingPayload;

};
return Dispatcher;
}();
module.exports = Dispatcher;

@@ -389,8 +376,5 @@

}
validateFormat(format);
if (!condition) {
var error;
if (format === undefined) {

@@ -405,3 +389,2 @@ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');

}
error.framesToPop = 1; // Skip invariant's own stack frame.

@@ -412,3 +395,2 @@

}
module.exports = invariant;

@@ -415,0 +397,0 @@

/**
* Flux v4.0.3
* Flux v4.0.4
*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*

@@ -10,2 +10,2 @@ * This source code is licensed under the BSD-style license found in the

*/
!function(i,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Flux=t():i.Flux=t()}(this,function(){return function(i){function t(s){if(n[s])return n[s].exports;var e=n[s]={exports:{},id:s,loaded:!1};return i[s].call(e.exports,e,e.exports,t),e.loaded=!0,e.exports}var n={};return t.m=i,t.c=n,t.p="",t(0)}([function(i,t,n){i.exports.Dispatcher=n(1)},function(i,t,n){"use strict";function s(i,t,n){return t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}var e=n(2),o="ID_",a=function(){function i(){s(this,"_callbacks",void 0),s(this,"_isDispatching",void 0),s(this,"_isHandled",void 0),s(this,"_isPending",void 0),s(this,"_lastID",void 0),s(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=i.prototype;return t.register=function(i){var t=o+this._lastID++;return this._callbacks[t]=i,t},t.unregister=function(i){this._callbacks[i]?void 0:e(!1),delete this._callbacks[i]},t.waitFor=function(i){var t,n;for(this._isDispatching?void 0:e(!1),t=0;t<i.length;t++)n=i[t],this._isPending[n]?this._isHandled[n]?void 0:e(!1):(this._callbacks[n]?void 0:e(!1),this._invokeCallback(n))},t.dispatch=function(i){this._isDispatching?e(!1):void 0,this._startDispatching(i);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},t.isDispatching=function(){return this._isDispatching},t._invokeCallback=function(i){this._isPending[i]=!0,this._callbacks[i](this._pendingPayload),this._isHandled[i]=!0},t._startDispatching=function(i){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=i,this._isDispatching=!0},t._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},i}();i.exports=a},function(i,t,n){"use strict";function s(i,t){var n,s,o,a,r;for(n=arguments.length,s=new Array(n>2?n-2:0),o=2;o<n;o++)s[o-2]=arguments[o];if(e(t),!i)throw void 0===t?a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(r=0,a=new Error(t.replace(/%s/g,function(){return String(s[r++])})),a.name="Invariant Violation"),a.framesToPop=1,a}var e=function(i){};i.exports=s}])});
!function(i,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Flux=t():i.Flux=t()}(this,function(){return function(i){function t(e){if(n[e])return n[e].exports;var s=n[e]={exports:{},id:e,loaded:!1};return i[e].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var n={};return t.m=i,t.c=n,t.p="",t(0)}([function(i,t,n){i.exports.Dispatcher=n(1)},function(i,t,n){"use strict";function e(i,t,n){return t=s(t),t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function s(i){var t=r(i,"string");return"symbol"==typeof t?t:String(t)}function r(i,t){var n,e;if("object"!=typeof i||null===i)return i;if(n=i[Symbol.toPrimitive],void 0!==n){if(e=n.call(i,t||"default"),"object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(i)}var o=n(2),a="ID_",c=function(){function i(){e(this,"_callbacks",void 0),e(this,"_isDispatching",void 0),e(this,"_isHandled",void 0),e(this,"_isPending",void 0),e(this,"_lastID",void 0),e(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=i.prototype;return t.register=function(i){var t=a+this._lastID++;return this._callbacks[t]=i,t},t.unregister=function(i){this._callbacks[i]?void 0:o(!1),delete this._callbacks[i]},t.waitFor=function(i){var t,n;for(this._isDispatching?void 0:o(!1),t=0;t<i.length;t++)n=i[t],this._isPending[n]?this._isHandled[n]?void 0:o(!1):(this._callbacks[n]?void 0:o(!1),this._invokeCallback(n))},t.dispatch=function(i){this._isDispatching?o(!1):void 0,this._startDispatching(i);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},t.isDispatching=function(){return this._isDispatching},t._invokeCallback=function(i){this._isPending[i]=!0,this._callbacks[i](this._pendingPayload),this._isHandled[i]=!0},t._startDispatching=function(i){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=i,this._isDispatching=!0},t._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},i}();i.exports=c},function(i,t,n){"use strict";function e(i,t){var n,e,r,o,a;for(n=arguments.length,e=new Array(n>2?n-2:0),r=2;r<n;r++)e[r-2]=arguments[r];if(s(t),!i)throw void 0===t?o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(a=0,o=new Error(t.replace(/%s/g,function(){return String(e[a++])})),o.name="Invariant Violation"),o.framesToPop=1,o}var s=function(i){};i.exports=e}])});
/**
* Flux v4.0.3
* Flux v4.0.4
*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*

@@ -10,3 +10,3 @@ * This source code is licensed under the BSD-style license found in the

*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FluxUtils=e():t.FluxUtils=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports.Container=r(1),t.exports.Mixin=r(9),t.exports.ReduceStore=r(10),t.exports.Store=r(11)},function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function s(t){var e,r;for(e=1;e<arguments.length;e++)r=null!=arguments[e]?arguments[e]:{},e%2?u(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))});return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){var r,i,u,a,p,d;return l(t),r=s(s({},b),e||{}),i=function(e,n,o){var i=r.withProps?n:void 0,u=r.withContext?o:void 0;return t.calculateState(e,i,u)},u=function(e,n){var o=r.withProps?e:void 0,i=r.withContext?n:void 0;return t.getStores(o,i)},a=function(t){function e(e,r){var o,a=t.call(this,e,r)||this;return c(n(a),"_fluxContainerSubscriptions",void 0),a._fluxContainerSubscriptions=new h,a._fluxContainerSubscriptions.setStores(u(e,r)),a._fluxContainerSubscriptions.addListener(function(){a.setState(function(t,e){return i(t,e,r)})}),o=i(void 0,e,r),a.state=s(s({},a.state||{}),o),a}o(e,t);var a=e.prototype;return a.UNSAFE_componentWillReceiveProps=function(e,n){t.prototype.UNSAFE_componentWillReceiveProps&&t.prototype.UNSAFE_componentWillReceiveProps.call(this,e,n),t.prototype.componentWillReceiveProps&&t.prototype.componentWillReceiveProps.call(this,e,n),(r.withProps||r.withContext)&&(this._fluxContainerSubscriptions.setStores(u(e,n)),this.setState(function(t){return i(t,e,n)}))},a.componentWillUnmount=function(){t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this),this._fluxContainerSubscriptions.reset()},e}(t),p=r.pure?f(a):a,d=t.displayName||t.name,p.displayName="FluxContainer("+d+")",p}function f(t){var e=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t,e){return!y(this.props,t)||!y(this.state,e)},e}(t);return e}function l(t){t.getStores?void 0:_(!1),t.calculateState?void 0:_(!1)}function p(t,e,r,i){var u=function(i){function u(){var t,e,r,o;for(e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t=i.call.apply(i,[this].concat(r))||this,c(n(t),"state",void 0),t}o(u,i),u.getStores=function(t,r){return e(t,r)},u.calculateState=function(t,e,n){return r(t,e,n)};var s=u.prototype;return s.render=function(){return t(this.state)},u}(v),s=t.displayName||t.name||"FunctionalContainer";return u.displayName=s,a(u,i)}var h=r(2),d=r(5),_=r(4),y=r(8),v=d.Component,b={pure:!0,withProps:!1,withContext:!1};t.exports={create:a,createFunctional:p}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}var i=r(3),u=function(){function t(){n(this,"_callbacks",void 0),n(this,"_storeGroup",void 0),n(this,"_stores",void 0),n(this,"_tokens",void 0),this._callbacks=[]}var e=t.prototype;return e.setStores=function(t){var e,r,n,u,s=this;this._stores&&o(this._stores,t)||(this._stores=t,this._resetTokens(),this._resetStoreGroup(),e=!1,r=[],n=function(){e=!0},this._tokens=t.map(function(t){return t.addListener(n)}),u=function(){e&&(s._callbacks.forEach(function(t){return t()}),e=!1)},this._storeGroup=new i(t,u))},e.addListener=function(t){this._callbacks.push(t)},e.reset=function(){this._resetTokens(),this._resetStoreGroup(),this._resetCallbacks(),this._resetStores()},e._resetTokens=function(){this._tokens&&(this._tokens.forEach(function(t){return t.remove()}),this._tokens=null)},e._resetStoreGroup=function(){this._storeGroup&&(this._storeGroup.release(),this._storeGroup=null)},e._resetStores=function(){this._stores=null},e._resetCallbacks=function(){this._callbacks=[]},t}();t.exports=u},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){var e;return t&&t.length?void 0:i(!1),e=t[0].getDispatcher()}var i=r(4),u=function(){function t(t,e){var r,i=this;n(this,"_dispatcher",void 0),n(this,"_dispatchToken",void 0),this._dispatcher=o(t),r=t.map(function(t){return t.getDispatchToken()}),this._dispatchToken=this._dispatcher.register(function(t){i._dispatcher.waitFor(r),e()})}var e=t.prototype;return e.release=function(){this._dispatcher.unregister(this._dispatchToken)},t}();t.exports=u},function(t,e,r){"use strict";function n(t,e){var r,n,i,u,s;for(r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(o(e),!t)throw void 0===e?u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(s=0,u=new Error(e.replace(/%s/g,function(){return String(n[s++])})),u.name="Invariant Violation"),u.framesToPop=1,u}var o=function(t){};t.exports=n},function(t,e,r){"use strict";t.exports=r(6)},function(t,e,r){/** @license React v17.0.2
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FluxUtils=e():t.FluxUtils=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports.Container=r(1),t.exports.Mixin=r(9),t.exports.ReduceStore=r(10),t.exports.Store=r(11)},function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function s(t){var e,r;for(e=1;e<arguments.length;e++)r=null!=arguments[e]?arguments[e]:{},e%2?u(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))});return t}function c(t,e,r){return e=a(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){var e=f(t,"string");return"symbol"==typeof e?e:String(e)}function f(t,e){var r,n;if("object"!=typeof t||null===t)return t;if(r=t[Symbol.toPrimitive],void 0!==r){if(n=r.call(t,e||"default"),"object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function l(t,e){var r,o,u,a,f,l;return h(t),r=s(s({},g),e||{}),o=function(e,n,i){var o=r.withProps?n:void 0,u=r.withContext?i:void 0;return t.calculateState(e,o,u)},u=function(e,n){var i=r.withProps?e:void 0,o=r.withContext?n:void 0;return t.getStores(i,o)},a=function(t){function e(e,r){var i,a=t.call(this,e,r)||this;return c(n(a),"_fluxContainerSubscriptions",void 0),a._fluxContainerSubscriptions=new d,a._fluxContainerSubscriptions.setStores(u(e,r)),a._fluxContainerSubscriptions.addListener(function(){a.setState(function(t,e){return o(t,e,r)})}),i=o(void 0,e,r),a.state=s(s({},a.state||{}),i),a}i(e,t);var a=e.prototype;return a.UNSAFE_componentWillReceiveProps=function(e,n){t.prototype.UNSAFE_componentWillReceiveProps&&t.prototype.UNSAFE_componentWillReceiveProps.call(this,e,n),t.prototype.componentWillReceiveProps&&t.prototype.componentWillReceiveProps.call(this,e,n),(r.withProps||r.withContext)&&(this._fluxContainerSubscriptions.setStores(u(e,n)),this.setState(function(t){return o(t,e,n)}))},a.componentWillUnmount=function(){t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this),this._fluxContainerSubscriptions.reset()},e}(t),f=r.pure?p(a):a,l=t.displayName||t.name,f.displayName="FluxContainer("+l+")",f}function p(t){var e=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t,e){return!b(this.props,t)||!b(this.state,e)},e}(t);return e}function h(t){t.getStores?void 0:_(!1),t.calculateState?void 0:_(!1)}function y(t,e,r,o){var u=function(o){function u(){var t,e,r,i;for(e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t=o.call.apply(o,[this].concat(r))||this,c(n(t),"state",void 0),t}i(u,o),u.getStores=function(t,r){return e(t,r)},u.calculateState=function(t,e,n){return r(t,e,n)};var s=u.prototype;return s.render=function(){return t(this.state)},u}(m),s=t.displayName||t.name||"FunctionalContainer";return u.displayName=s,l(u,o)}var d=r(2),v=r(5),_=r(4),b=r(8),m=v.Component,g={pure:!0,withProps:!1,withContext:!1};t.exports={create:l,createFunctional:y}},function(t,e,r){"use strict";function n(t,e,r){return e=i(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t){var e=o(t,"string");return"symbol"==typeof e?e:String(e)}function o(t,e){var r,n;if("object"!=typeof t||null===t)return t;if(r=t[Symbol.toPrimitive],void 0!==r){if(n=r.call(t,e||"default"),"object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function u(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}var s=r(3),c=function(){function t(){n(this,"_callbacks",void 0),n(this,"_storeGroup",void 0),n(this,"_stores",void 0),n(this,"_tokens",void 0),this._callbacks=[]}var e=t.prototype;return e.setStores=function(t){var e,r,n,i,o=this;this._stores&&u(this._stores,t)||(this._stores=t,this._resetTokens(),this._resetStoreGroup(),e=!1,r=[],n=function(){e=!0},this._tokens=t.map(function(t){return t.addListener(n)}),i=function(){e&&(o._callbacks.forEach(function(t){return t()}),e=!1)},this._storeGroup=new s(t,i))},e.addListener=function(t){this._callbacks.push(t)},e.reset=function(){this._resetTokens(),this._resetStoreGroup(),this._resetCallbacks(),this._resetStores()},e._resetTokens=function(){this._tokens&&(this._tokens.forEach(function(t){return t.remove()}),this._tokens=null)},e._resetStoreGroup=function(){this._storeGroup&&(this._storeGroup.release(),this._storeGroup=null)},e._resetStores=function(){this._stores=null},e._resetCallbacks=function(){this._callbacks=[]},t}();t.exports=c},function(t,e,r){"use strict";function n(t,e,r){return e=i(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t){var e=o(t,"string");return"symbol"==typeof e?e:String(e)}function o(t,e){var r,n;if("object"!=typeof t||null===t)return t;if(r=t[Symbol.toPrimitive],void 0!==r){if(n=r.call(t,e||"default"),"object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function u(t){var e;return t&&t.length?void 0:s(!1),e=t[0].getDispatcher()}var s=r(4),c=function(){function t(t,e){var r,i=this;n(this,"_dispatcher",void 0),n(this,"_dispatchToken",void 0),this._dispatcher=u(t),r=t.map(function(t){return t.getDispatchToken()}),this._dispatchToken=this._dispatcher.register(function(t){i._dispatcher.waitFor(r),e()})}var e=t.prototype;return e.release=function(){this._dispatcher.unregister(this._dispatchToken)},t}();t.exports=c},function(t,e,r){"use strict";function n(t,e){var r,n,o,u,s;for(r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(i(e),!t)throw void 0===e?u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(s=0,u=new Error(e.replace(/%s/g,function(){return String(n[s++])})),u.name="Invariant Violation"),u.framesToPop=1,u}var i=function(t){};t.exports=n},function(t,e,r){"use strict";t.exports=r(6)},function(t,e,r){/** @license React v17.0.2
* react.production.min.js

@@ -19,3 +19,3 @@ *

*/
"use strict";function n(t){return null===t||"object"!=typeof t?null:(t=x&&t[x]||t["@@iterator"],"function"==typeof t?t:null)}function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(t,e,r){this.props=t,this.context=e,this.refs=j,this.updater=r||O}function u(){}function s(t,e,r){this.props=t,this.context=e,this.refs=j,this.updater=r||O}function c(t,e,r){var n,o,i,u,s={},c=null,a=null;if(null!=e)for(n in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(c=""+e.key),e)P.call(e,n)&&!C.hasOwnProperty(n)&&(s[n]=e[n]);if(o=arguments.length-2,1===o)s.children=r;else if(1<o){for(i=Array(o),u=0;u<o;u++)i[u]=arguments[u+2];s.children=i}if(t&&t.defaultProps)for(n in o=t.defaultProps)void 0===s[n]&&(s[n]=o[n]);return{$$typeof:$,type:t,key:c,ref:a,props:s,_owner:E.current}}function a(t,e){return{$$typeof:$,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function f(t){return"object"==typeof t&&null!==t&&t.$$typeof===$}function l(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}function p(t,e){return"object"==typeof t&&null!==t&&null!=t.key?l(""+t.key):e.toString(36)}function h(t,e,r,i,u){var s,c,l,d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),s=!1,null===t)s=!0;else switch(d){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case $:case D:s=!0}}if(s)return s=t,u=u(s),t=""===i?"."+p(s,0):i,Array.isArray(u)?(r="",null!=t&&(r=t.replace(T,"$&/")+"/"),h(u,e,r,"",function(t){return t})):null!=u&&(f(u)&&(u=a(u,r+(!u.key||s&&s.key===u.key?"":(""+u.key).replace(T,"$&/")+"/")+t)),e.push(u)),1;if(s=0,i=""===i?".":i+":",Array.isArray(t))for(c=0;c<t.length;c++)d=t[c],l=i+p(d,c),s+=h(d,e,r,l,u);else if(l=n(t),"function"==typeof l)for(t=l.call(t),c=0;!(d=t.next()).done;)d=d.value,l=i+p(d,c++),s+=h(d,e,r,l,u);else if("object"===d)throw e=""+t,Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function d(t,e,r){if(null==t)return t;var n=[],o=0;return h(t,n,"","",function(t){return e.call(r,t,o++)}),n}function _(t){if(-1===t._status){var e=t._result;e=e(),t._status=0,t._result=e,e.then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})}if(1===t._status)return t._result;throw t._result}function y(){var t=R.current;if(null===t)throw Error(o(321));return t}var v,b,m,g,S,w,x,O,j,k,E,P,C,T,R,F,A=r(7),$=60103,D=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114,v=60109,b=60110,m=60112,e.Suspense=60113,g=60115,S=60116,"function"==typeof Symbol&&Symbol.for&&(w=Symbol.for,$=w("react.element"),D=w("react.portal"),e.Fragment=w("react.fragment"),e.StrictMode=w("react.strict_mode"),e.Profiler=w("react.profiler"),v=w("react.provider"),b=w("react.context"),m=w("react.forward_ref"),e.Suspense=w("react.suspense"),g=w("react.memo"),S=w("react.lazy")),x="function"==typeof Symbol&&Symbol.iterator,O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j={},i.prototype.isReactComponent={},i.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(o(85));this.updater.enqueueSetState(this,t,e,"setState")},i.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},u.prototype=i.prototype,k=s.prototype=new u,k.constructor=s,A(k,i.prototype),k.isPureReactComponent=!0,E={current:null},P=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0},T=/\/+/g,R={current:null},F={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:A},e.Children={map:d,forEach:function(t,e,r){d(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return d(t,function(){e++}),e},toArray:function(t){return d(t,function(t){return t})||[]},only:function(t){if(!f(t))throw Error(o(143));return t}},e.Component=i,e.PureComponent=s,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,e.cloneElement=function(t,e,r){var n,i,u,s,c,a,f;if(null===t||void 0===t)throw Error(o(267,t));if(n=A({},t.props),i=t.key,u=t.ref,s=t._owner,null!=e){void 0!==e.ref&&(u=e.ref,s=E.current),void 0!==e.key&&(i=""+e.key),t.type&&t.type.defaultProps&&(c=t.type.defaultProps);for(a in e)P.call(e,a)&&!C.hasOwnProperty(a)&&(n[a]=void 0===e[a]&&void 0!==c?c[a]:e[a])}if(a=arguments.length-2,1===a)n.children=r;else if(1<a){for(c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];n.children=c}return{$$typeof:$,type:t.type,key:i,ref:u,props:n,_owner:s}},e.createContext=function(t,e){return void 0===e&&(e=null),t={$$typeof:b,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:v,_context:t},t.Consumer=t},e.createElement=c,e.createFactory=function(t){var e=c.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:m,render:t}},e.isValidElement=f,e.lazy=function(t){return{$$typeof:S,_payload:{_status:-1,_result:t},_init:_}},e.memo=function(t,e){return{$$typeof:g,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return y().useCallback(t,e)},e.useContext=function(t,e){return y().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return y().useEffect(t,e)},e.useImperativeHandle=function(t,e,r){return y().useImperativeHandle(t,e,r)},e.useLayoutEffect=function(t,e){return y().useLayoutEffect(t,e)},e.useMemo=function(t,e){return y().useMemo(t,e)},e.useReducer=function(t,e,r){return y().useReducer(t,e,r)},e.useRef=function(t){return y().useRef(t)},e.useState=function(t){return y().useState(t)},e.version="17.0.2"},function(t,e){/*
"use strict";function n(t){return null===t||"object"!=typeof t?null:(t=j&&t[j]||t["@@iterator"],"function"==typeof t?t:null)}function i(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t,e,r){this.props=t,this.context=e,this.refs=x,this.updater=r||O}function u(){}function s(t,e,r){this.props=t,this.context=e,this.refs=x,this.updater=r||O}function c(t,e,r){var n,i,o,u,s={},c=null,a=null;if(null!=e)for(n in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(c=""+e.key),e)E.call(e,n)&&!C.hasOwnProperty(n)&&(s[n]=e[n]);if(i=arguments.length-2,1===i)s.children=r;else if(1<i){for(o=Array(i),u=0;u<i;u++)o[u]=arguments[u+2];s.children=o}if(t&&t.defaultProps)for(n in i=t.defaultProps)void 0===s[n]&&(s[n]=i[n]);return{$$typeof:$,type:t,key:c,ref:a,props:s,_owner:k.current}}function a(t,e){return{$$typeof:$,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function f(t){return"object"==typeof t&&null!==t&&t.$$typeof===$}function l(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}function p(t,e){return"object"==typeof t&&null!==t&&null!=t.key?l(""+t.key):e.toString(36)}function h(t,e,r,o,u){var s,c,l,y=typeof t;if("undefined"!==y&&"boolean"!==y||(t=null),s=!1,null===t)s=!0;else switch(y){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case $:case N:s=!0}}if(s)return s=t,u=u(s),t=""===o?"."+p(s,0):o,Array.isArray(u)?(r="",null!=t&&(r=t.replace(T,"$&/")+"/"),h(u,e,r,"",function(t){return t})):null!=u&&(f(u)&&(u=a(u,r+(!u.key||s&&s.key===u.key?"":(""+u.key).replace(T,"$&/")+"/")+t)),e.push(u)),1;if(s=0,o=""===o?".":o+":",Array.isArray(t))for(c=0;c<t.length;c++)y=t[c],l=o+p(y,c),s+=h(y,e,r,l,u);else if(l=n(t),"function"==typeof l)for(t=l.call(t),c=0;!(y=t.next()).done;)y=y.value,l=o+p(y,c++),s+=h(y,e,r,l,u);else if("object"===y)throw e=""+t,Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function y(t,e,r){if(null==t)return t;var n=[],i=0;return h(t,n,"","",function(t){return e.call(r,t,i++)}),n}function d(t){if(-1===t._status){var e=t._result;e=e(),t._status=0,t._result=e,e.then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})}if(1===t._status)return t._result;throw t._result}function v(){var t=R.current;if(null===t)throw Error(i(321));return t}var _,b,m,g,S,w,j,O,x,P,k,E,C,T,R,F,A=r(7),$=60103,N=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114,_=60109,b=60110,m=60112,e.Suspense=60113,g=60115,S=60116,"function"==typeof Symbol&&Symbol.for&&(w=Symbol.for,$=w("react.element"),N=w("react.portal"),e.Fragment=w("react.fragment"),e.StrictMode=w("react.strict_mode"),e.Profiler=w("react.profiler"),_=w("react.provider"),b=w("react.context"),m=w("react.forward_ref"),e.Suspense=w("react.suspense"),g=w("react.memo"),S=w("react.lazy")),j="function"==typeof Symbol&&Symbol.iterator,O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x={},o.prototype.isReactComponent={},o.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(i(85));this.updater.enqueueSetState(this,t,e,"setState")},o.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},u.prototype=o.prototype,P=s.prototype=new u,P.constructor=s,A(P,o.prototype),P.isPureReactComponent=!0,k={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0},T=/\/+/g,R={current:null},F={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:A},e.Children={map:y,forEach:function(t,e,r){y(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return y(t,function(){e++}),e},toArray:function(t){return y(t,function(t){return t})||[]},only:function(t){if(!f(t))throw Error(i(143));return t}},e.Component=o,e.PureComponent=s,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,e.cloneElement=function(t,e,r){var n,o,u,s,c,a,f;if(null===t||void 0===t)throw Error(i(267,t));if(n=A({},t.props),o=t.key,u=t.ref,s=t._owner,null!=e){void 0!==e.ref&&(u=e.ref,s=k.current),void 0!==e.key&&(o=""+e.key),t.type&&t.type.defaultProps&&(c=t.type.defaultProps);for(a in e)E.call(e,a)&&!C.hasOwnProperty(a)&&(n[a]=void 0===e[a]&&void 0!==c?c[a]:e[a])}if(a=arguments.length-2,1===a)n.children=r;else if(1<a){for(c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];n.children=c}return{$$typeof:$,type:t.type,key:o,ref:u,props:n,_owner:s}},e.createContext=function(t,e){return void 0===e&&(e=null),t={$$typeof:b,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:_,_context:t},t.Consumer=t},e.createElement=c,e.createFactory=function(t){var e=c.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:m,render:t}},e.isValidElement=f,e.lazy=function(t){return{$$typeof:S,_payload:{_status:-1,_result:t},_init:d}},e.memo=function(t,e){return{$$typeof:g,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return v().useCallback(t,e)},e.useContext=function(t,e){return v().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return v().useEffect(t,e)},e.useImperativeHandle=function(t,e,r){return v().useImperativeHandle(t,e,r)},e.useLayoutEffect=function(t,e){return v().useLayoutEffect(t,e)},e.useMemo=function(t,e){return v().useMemo(t,e)},e.useReducer=function(t,e,r){return v().useReducer(t,e,r)},e.useRef=function(t){return v().useRef(t)},e.useState=function(t){return v().useState(t)},e.version="17.0.2"},function(t,e){/*
object-assign

@@ -25,2 +25,2 @@ (c) Sindre Sorhus

*/
"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(){var t,e,r,n,o;try{if(!Object.assign)return!1;if(t=new String("abc"),t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;return n=Object.getOwnPropertyNames(e).map(function(t){return e[t]}),"0123456789"===n.join("")&&(o={},"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join(""))}catch(t){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=n()?Object.assign:function(t,e){var n,s,c,a,f,l=r(t);for(c=1;c<arguments.length;c++){n=Object(arguments[c]);for(a in n)i.call(n,a)&&(l[a]=n[a]);if(o)for(s=o(n),f=0;f<s.length;f++)u.call(n,s[f])&&(l[s[f]]=n[s[f]])}return l}},function(t,e){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function n(t,e){var n,i,u;if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(n=Object.keys(t),i=Object.keys(e),n.length!==i.length)return!1;for(u=0;u<n.length;u++)if(!o.call(e,n[u])||!r(t[n[u]],e[n[u]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,r){"use strict";function n(t,e){var r,n,i,u,s,c="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!c){if(Array.isArray(t)||(c=o(t))||e&&t&&"number"==typeof t.length)return c&&(t=c),r=0,n=function(){},{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return i=!0,u=!1,{s:function(){c=c.call(t)},n:function(){var t=c.next();return i=t.done,t},e:function(t){u=!0,s=t},f:function(){try{i||null==c.return||c.return()}finally{if(u)throw s}}}}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withProps:!1};return t=t.filter(function(t){return!!t}),{getInitialState:function(){return s(this),e.withProps?this.constructor.calculateState(null,this.props):this.constructor.calculateState(null,void 0)},componentWillMount:function(){var r,n=this,o=!1,i=function(){o=!0};this._fluxMixinSubscriptions=t.map(function(t){return t.addListener(i)}),r=function(){o&&n.setState(function(t){return e.withProps?n.constructor.calculateState(t,n.props):n.constructor.calculateState(t,void 0)}),o=!1},this._fluxMixinStoreGroup=new c(t,r)},componentWillUnmount:function(){var t,e,r;this._fluxMixinStoreGroup.release(),t=n(this._fluxMixinSubscriptions);try{for(t.s();!(e=t.n()).done;)r=e.value,r.remove()}catch(e){t.e(e)}finally{t.f()}this._fluxMixinSubscriptions=[]}}}function s(t){t.constructor.calculateState?void 0:a(!1)}var c=r(3),a=r(4);t.exports=u},function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(11),c=r(19),a=r(4),f=function(t){function e(e){var r;return r=t.call(this,e)||this,u(n(r),"_state",void 0),r._state=r.getInitialState(),r}o(e,t);var r=e.prototype;return r.getState=function(){return this._state},r.getInitialState=function(){return c("FluxReduceStore","getInitialState")},r.reduce=function(t,e){return c("FluxReduceStore","reduce")},r.areEqual=function(t,e){return t===e},r.__invokeOnDispatch=function(t){var e,r;this.__changed=!1,e=this._state,r=this.reduce(e,t),void 0===r?a(!1):void 0,this.areEqual(e,r)||(this._state=r,this.__emitChange()),this.__changed&&this.__emitter.emit(this.__changeEvent)},e}(s);t.exports=f},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(12),i=o.EventEmitter,u=r(4),s=function(){function t(t){var e=this;n(this,"_dispatchToken",void 0),n(this,"__changed",void 0),n(this,"__changeEvent",void 0),n(this,"__className",void 0),n(this,"__dispatcher",void 0),n(this,"__emitter",void 0),this.__className=this.constructor.name,this.__changed=!1,this.__changeEvent="change",this.__dispatcher=t,this.__emitter=new i,this._dispatchToken=t.register(function(t){e.__invokeOnDispatch(t)})}var e=t.prototype;return e.addListener=function(t){return this.__emitter.addListener(this.__changeEvent,t)},e.getDispatcher=function(){return this.__dispatcher},e.getDispatchToken=function(){return this._dispatchToken},e.hasChanged=function(){return this.__dispatcher.isDispatching()?void 0:u(!1),this.__changed},e.__emitChange=function(){this.__dispatcher.isDispatching()?void 0:u(!1),this.__changed=!0},e.__invokeOnDispatch=function(t){this.__changed=!1,this.__onDispatch(t),this.__changed&&this.__emitter.emit(this.__changeEvent)},e.__onDispatch=function(t){u(!1)},t}();t.exports=s},function(t,e,r){var n={EventEmitter:r(13),EmitterSubscription:r(14)};t.exports=n},function(t,e,r){"use strict";var n=r(14),o=r(16),i=r(17),u=r(18),s=function(){function t(){this._subscriber=new o,this._currentSubscription=null}var e=t.prototype;return e.addListener=function(t,e,r){return this._subscriber.addSubscription(t,new n(this._subscriber,e,r))},e.once=function(t,e,r){var n=this;return this.addListener(t,function(){n.removeCurrentListener(),e.apply(r,arguments)})},e.removeAllListeners=function(t){this._subscriber.removeAllSubscriptions(t)},e.removeCurrentListener=function(){this._currentSubscription?void 0:i(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.listeners=function(t){var e=this._subscriber.getSubscriptionsForType(t);return e?e.filter(u.thatReturnsTrue).map(function(t){return t.listener}):[]},e.emit=function(t){var e,r,n,o,i=this._subscriber.getSubscriptionsForType(t);if(i){for(e=Object.keys(i),r=0;r<e.length;r++)n=e[r],o=i[n],o&&(this._currentSubscription=o,this.__emitToSubscription.apply(this,[o].concat(Array.prototype.slice.call(arguments))));this._currentSubscription=null}},e.__emitToSubscription=function(t,e){var r=Array.prototype.slice.call(arguments,2);t.listener.apply(t.context,r)},t}();t.exports=s},function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var o=r(15),i=function(t){function e(e,r,n){var o;return o=t.call(this,e)||this,o.listener=r,o.context=n,o}return n(e,t),e}(o);t.exports=i},function(t,e){"use strict";var r=function(){function t(t){this.subscriber=t}var e=t.prototype;return e.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},t}();t.exports=r},function(t,e,r){"use strict";var n=r(17),o=function(){function t(){this._subscriptionsForType={},this._currentSubscription=null}var e=t.prototype;return e.addSubscription=function(t,e){e.subscriber!==this?n(!1):void 0,this._subscriptionsForType[t]||(this._subscriptionsForType[t]=[]);var r=this._subscriptionsForType[t].length;return this._subscriptionsForType[t].push(e),e.eventType=t,e.key=r,e},e.removeAllSubscriptions=function(t){void 0===t?this._subscriptionsForType={}:delete this._subscriptionsForType[t]},e.removeSubscription=function(t){var e=t.eventType,r=t.key,n=this._subscriptionsForType[e];n&&delete n[r]},e.getSubscriptionsForType=function(t){return this._subscriptionsForType[t]},t}();t.exports=o},function(t,e,r){"use strict";function n(t,e){var r,n,i,u,s;for(r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(o(e),!t)throw void 0===e?u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(s=0,u=new Error(e.replace(/%s/g,function(){return String(n[s++])})),u.name="Invariant Violation"),u.framesToPop=1,u}var o=function(t){};t.exports=n},function(t,e){"use strict";function r(t){return function(){return t}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},function(t,e,r){"use strict";function n(t,e){o(!1)}var o=r(4);t.exports=n}])});
"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(){var t,e,r,n,i;try{if(!Object.assign)return!1;if(t=new String("abc"),t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;return n=Object.getOwnPropertyNames(e).map(function(t){return e[t]}),"0123456789"===n.join("")&&(i={},"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join(""))}catch(t){return!1}}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=n()?Object.assign:function(t,e){var n,s,c,a,f,l=r(t);for(c=1;c<arguments.length;c++){n=Object(arguments[c]);for(a in n)o.call(n,a)&&(l[a]=n[a]);if(i)for(s=i(n),f=0;f<s.length;f++)u.call(n,s[f])&&(l[s[f]]=n[s[f]])}return l}},function(t,e){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function n(t,e){var n,o,u;if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(n=Object.keys(t),o=Object.keys(e),n.length!==o.length)return!1;for(u=0;u<n.length;u++)if(!i.call(e,n[u])||!r(t[n[u]],e[n[u]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,r){"use strict";function n(t,e){var r,n,o,u,s,c="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!c){if(Array.isArray(t)||(c=i(t))||e&&t&&"number"==typeof t.length)return c&&(t=c),r=0,n=function(){},{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return o=!0,u=!1,{s:function(){c=c.call(t)},n:function(){var t=c.next();return o=t.done,t},e:function(t){u=!0,s=t},f:function(){try{o||null==c.return||c.return()}finally{if(u)throw s}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withProps:!1};return t=t.filter(function(t){return!!t}),{getInitialState:function(){return s(this),e.withProps?this.constructor.calculateState(null,this.props):this.constructor.calculateState(null,void 0)},componentWillMount:function(){var r,n=this,i=!1,o=function(){i=!0};this._fluxMixinSubscriptions=t.map(function(t){return t.addListener(o)}),r=function(){i&&n.setState(function(t){return e.withProps?n.constructor.calculateState(t,n.props):n.constructor.calculateState(t,void 0)}),i=!1},this._fluxMixinStoreGroup=new c(t,r)},componentWillUnmount:function(){var t,e,r;this._fluxMixinStoreGroup.release(),t=n(this._fluxMixinSubscriptions);try{for(t.s();!(e=t.n()).done;)r=e.value,r.remove()}catch(e){t.e(e)}finally{t.f()}this._fluxMixinSubscriptions=[]}}}function s(t){t.constructor.calculateState?void 0:a(!1)}var c=r(3),a=r(4);t.exports=u},function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,r){return e=s(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t){var e=c(t,"string");return"symbol"==typeof e?e:String(e)}function c(t,e){var r,n;if("object"!=typeof t||null===t)return t;if(r=t[Symbol.toPrimitive],void 0!==r){if(n=r.call(t,e||"default"),"object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var a=r(11),f=r(18),l=r(4),p=function(t){function e(e){var r;return r=t.call(this,e)||this,u(n(r),"_state",void 0),r._state=r.getInitialState(),r}i(e,t);var r=e.prototype;return r.getState=function(){return this._state},r.getInitialState=function(){return f("FluxReduceStore","getInitialState")},r.reduce=function(t,e){return f("FluxReduceStore","reduce")},r.areEqual=function(t,e){return t===e},r.__invokeOnDispatch=function(t){var e,r;this.__changed=!1,e=this._state,r=this.reduce(e,t),void 0===r?l(!1):void 0,this.areEqual(e,r)||(this._state=r,this.__emitChange()),this.__changed&&this.__emitter.emit(this.__changeEvent)},e}(a);t.exports=p},function(t,e,r){"use strict";function n(t,e,r){return e=i(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t){var e=o(t,"string");return"symbol"==typeof e?e:String(e)}function o(t,e){var r,n;if("object"!=typeof t||null===t)return t;if(r=t[Symbol.toPrimitive],void 0!==r){if(n=r.call(t,e||"default"),"object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var u=r(12),s=u.EventEmitter,c=r(4),a=function(){function t(t){var e=this;n(this,"_dispatchToken",void 0),n(this,"__changed",void 0),n(this,"__changeEvent",void 0),n(this,"__className",void 0),n(this,"__dispatcher",void 0),n(this,"__emitter",void 0),this.__className=this.constructor.name,this.__changed=!1,this.__changeEvent="change",this.__dispatcher=t,this.__emitter=new s,this._dispatchToken=t.register(function(t){e.__invokeOnDispatch(t)})}var e=t.prototype;return e.addListener=function(t){return this.__emitter.addListener(this.__changeEvent,t)},e.getDispatcher=function(){return this.__dispatcher},e.getDispatchToken=function(){return this._dispatchToken},e.hasChanged=function(){return this.__dispatcher.isDispatching()?void 0:c(!1),this.__changed},e.__emitChange=function(){this.__dispatcher.isDispatching()?void 0:c(!1),this.__changed=!0},e.__invokeOnDispatch=function(t){this.__changed=!1,this.__onDispatch(t),this.__changed&&this.__emitter.emit(this.__changeEvent)},e.__onDispatch=function(t){c(!1)},t}();t.exports=a},function(t,e,r){var n={EventEmitter:r(13),EmitterSubscription:r(14)};t.exports=n},function(t,e,r){"use strict";var n=r(14),i=r(16),o=r(4),u=r(17),s=function(){function t(){this._subscriber=new i,this._currentSubscription=null}var e=t.prototype;return e.addListener=function(t,e,r){return this._subscriber.addSubscription(t,new n(this._subscriber,e,r))},e.once=function(t,e,r){var n=this;return this.addListener(t,function(){n.removeCurrentListener(),e.apply(r,arguments)})},e.removeAllListeners=function(t){this._subscriber.removeAllSubscriptions(t)},e.removeCurrentListener=function(){this._currentSubscription?void 0:o(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.listeners=function(t){var e=this._subscriber.getSubscriptionsForType(t);return e?e.filter(u.thatReturnsTrue).map(function(t){return t.listener}):[]},e.emit=function(t){var e,r,n,i,o=this._subscriber.getSubscriptionsForType(t);if(o){for(e=Object.keys(o),r=0;r<e.length;r++)n=e[r],i=o[n],i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].concat(Array.prototype.slice.call(arguments))));this._currentSubscription=null}},e.__emitToSubscription=function(t,e){var r=Array.prototype.slice.call(arguments,2);t.listener.apply(t.context,r)},t}();t.exports=s},function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=r(15),o=function(t){function e(e,r,n){var i;return i=t.call(this,e)||this,i.listener=r,i.context=n,i}return n(e,t),e}(i);t.exports=o},function(t,e){"use strict";var r=function(){function t(t){this.subscriber=t}var e=t.prototype;return e.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},t}();t.exports=r},function(t,e,r){"use strict";var n=r(4),i=function(){function t(){this._subscriptionsForType={},this._currentSubscription=null}var e=t.prototype;return e.addSubscription=function(t,e){e.subscriber!==this?n(!1):void 0,this._subscriptionsForType[t]||(this._subscriptionsForType[t]=[]);var r=this._subscriptionsForType[t].length;return this._subscriptionsForType[t].push(e),e.eventType=t,e.key=r,e},e.removeAllSubscriptions=function(t){void 0===t?this._subscriptionsForType={}:delete this._subscriptionsForType[t]},e.removeSubscription=function(t){var e=t.eventType,r=t.key,n=this._subscriptionsForType[e];n&&delete n[r]},e.getSubscriptionsForType=function(t){return this._subscriptionsForType[t]},t}();t.exports=i},function(t,e){"use strict";function r(t){return function(){return t}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},function(t,e,r){"use strict";function n(t,e){i(!1)}var i=r(4);t.exports=n}])});
/**
* Copyright (c) 2014-present, Facebook, Inc.
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.

@@ -4,0 +4,0 @@ *

/**
* Copyright (c) 2014-present, Facebook, Inc.
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.

@@ -12,10 +12,9 @@ *

*/
'use strict';
var invariant = require("fbjs/lib/invariant");
function abstractMethod(className, methodName) {
!false ? process.env.NODE_ENV !== "production" ? invariant(false, 'Subclasses of %s must override %s() with their own implementation.', className, methodName) : invariant(false) : void 0;
}
module.exports = abstractMethod;
/**
* Copyright (c) 2014-present, Facebook, Inc.
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.

@@ -13,9 +13,11 @@ *

*/
'use strict';
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var invariant = require("fbjs/lib/invariant");
var _prefix = 'ID_';
var _prefix = 'ID_';
/**

@@ -108,17 +110,10 @@ * Dispatcher is used to broadcast payloads to registered callbacks. This is

*/
var Dispatcher = /*#__PURE__*/function () {
function Dispatcher() {
_defineProperty(this, "_callbacks", void 0);
_defineProperty(this, "_isDispatching", void 0);
_defineProperty(this, "_isHandled", void 0);
_defineProperty(this, "_isPending", void 0);
_defineProperty(this, "_lastID", void 0);
_defineProperty(this, "_pendingPayload", void 0);
this._callbacks = {};

@@ -130,2 +125,3 @@ this._isDispatching = false;

}
/**

@@ -135,6 +131,3 @@ * Registers a callback to be invoked with every dispatched payload. Returns

*/
var _proto = Dispatcher.prototype;
_proto.register = function register(callback) {

@@ -145,7 +138,6 @@ var id = _prefix + this._lastID++;

}
/**
* Removes a callback based on its token.
*/
;
*/;
_proto.unregister = function unregister(id) {

@@ -155,2 +147,3 @@ !this._callbacks[id] ? process.env.NODE_ENV !== "production" ? invariant(false, 'Dispatcher.unregister(...): `%s` does not map to a registered callback.', id) : invariant(false) : void 0;

}
/**

@@ -160,11 +153,7 @@ * Waits for the callbacks specified to be invoked before continuing execution

* response to a dispatched payload.
*/
;
*/;
_proto.waitFor = function waitFor(ids) {
!this._isDispatching ? process.env.NODE_ENV !== "production" ? invariant(false, 'Dispatcher.waitFor(...): Must be invoked while dispatching.') : invariant(false) : void 0;
for (var ii = 0; ii < ids.length; ii++) {
var id = ids[ii];
if (this._isPending[id]) {

@@ -174,18 +163,13 @@ !this._isHandled[id] ? process.env.NODE_ENV !== "production" ? invariant(false, 'Dispatcher.waitFor(...): Circular dependency detected while ' + 'waiting for `%s`.', id) : invariant(false) : void 0;

}
!this._callbacks[id] ? process.env.NODE_ENV !== "production" ? invariant(false, 'Dispatcher.waitFor(...): `%s` does not map to a registered callback.', id) : invariant(false) : void 0;
this._invokeCallback(id);
}
}
/**
* Dispatches a payload to all registered callbacks.
*/
;
*/;
_proto.dispatch = function dispatch(payload) {
!!this._isDispatching ? process.env.NODE_ENV !== "production" ? invariant(false, 'Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch.') : invariant(false) : void 0;
this._startDispatching(payload);
try {

@@ -196,3 +180,2 @@ for (var id in this._callbacks) {

}
this._invokeCallback(id);

@@ -204,10 +187,10 @@ }

}
/**
* Is this Dispatcher currently dispatching.
*/
;
*/;
_proto.isDispatching = function isDispatching() {
return this._isDispatching;
}
/**

@@ -218,12 +201,9 @@ * Call the callback stored with the given id. Also do some internal

* @internal
*/
;
*/;
_proto._invokeCallback = function _invokeCallback(id) {
this._isPending[id] = true;
this._callbacks[id](this._pendingPayload);
this._isHandled[id] = true;
}
/**

@@ -233,5 +213,3 @@ * Set up bookkeeping needed when dispatching.

* @internal
*/
;
*/;
_proto._startDispatching = function _startDispatching(payload) {

@@ -242,6 +220,6 @@ for (var id in this._callbacks) {

}
this._pendingPayload = payload;
this._isDispatching = true;
}
/**

@@ -251,5 +229,3 @@ * Clear bookkeeping used for dispatching.

* @internal
*/
;
*/;
_proto._stopDispatching = function _stopDispatching() {

@@ -259,6 +235,4 @@ delete this._pendingPayload;

};
return Dispatcher;
}();
module.exports = Dispatcher;
/**
* Copyright (c) 2014-present, Facebook, Inc.
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.

@@ -12,24 +12,17 @@ *

*/
'use strict';
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var FluxContainerSubscriptions = require("./FluxContainerSubscriptions");
var React = require("react");
var invariant = require("fbjs/lib/invariant");
var shallowEqual = require("fbjs/lib/shallowEqual");
var Component = React.Component;

@@ -41,2 +34,3 @@ var DEFAULT_OPTIONS = {

};
/**

@@ -108,8 +102,7 @@ * A FluxContainer is used to subscribe a react component to multiple stores.

*/
function create(Base, options) {
enforceInterface(Base); // Construct the options using default, override with user values as necessary.
enforceInterface(Base);
// Construct the options using default, override with user values as necessary.
var realOptions = _objectSpread(_objectSpread({}, DEFAULT_OPTIONS), options || {});
var getState = function getState(state, maybeProps, maybeContext) {

@@ -120,3 +113,2 @@ var props = realOptions.withProps ? maybeProps : undefined;

};
var getStores = function getStores(maybeProps, maybeContext) {

@@ -126,19 +118,13 @@ var props = realOptions.withProps ? maybeProps : undefined;

return Base.getStores(props, context);
}; // Build the container class.
};
// Build the container class.
var ContainerClass = /*#__PURE__*/function (_Base) {
_inheritsLoose(ContainerClass, _Base);
function ContainerClass(props, context) {
var _this;
_this = _Base.call(this, props, context) || this;
_defineProperty(_assertThisInitialized(_this), "_fluxContainerSubscriptions", void 0);
_this._fluxContainerSubscriptions = new FluxContainerSubscriptions();
_this._fluxContainerSubscriptions.setStores(getStores(props, context));
_this._fluxContainerSubscriptions.addListener(function () {

@@ -149,3 +135,2 @@ _this.setState(function (prevState, currentProps) {

});
var calculatedState = getState(undefined, props, context);

@@ -155,5 +140,3 @@ _this.state = _objectSpread(_objectSpread({}, _this.state || {}), calculatedState);

}
var _proto = ContainerClass.prototype;
_proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps, nextContext) {

@@ -163,11 +146,8 @@ if (_Base.prototype.UNSAFE_componentWillReceiveProps) {

}
if (_Base.prototype.componentWillReceiveProps) {
_Base.prototype.componentWillReceiveProps.call(this, nextProps, nextContext);
}
if (realOptions.withProps || realOptions.withContext) {
// Update both stores and state.
this._fluxContainerSubscriptions.setStores(getStores(nextProps, nextContext));
this.setState(function (prevState) {

@@ -178,3 +158,2 @@ return getState(prevState, nextProps, nextContext);

};
_proto.componentWillUnmount = function componentWillUnmount() {

@@ -184,6 +163,4 @@ if (_Base.prototype.componentWillUnmount) {

}
this._fluxContainerSubscriptions.reset();
};
return ContainerClass;

@@ -193,6 +170,5 @@ }(Base); // Make sure we override shouldComponentUpdate only if the pure option is

// the default behavior on accident. Super works weird with react ES6 classes.
var container = realOptions.pure ? createPureComponent(ContainerClass) : ContainerClass;
var container = realOptions.pure ? createPureComponent(ContainerClass) : ContainerClass; // Update the name of the container before returning
// Update the name of the container before returning
var componentName = Base.displayName || Base.name;

@@ -202,23 +178,16 @@ container.displayName = 'FluxContainer(' + componentName + ')';

}
function createPureComponent(BaseComponent) {
var PureComponent = /*#__PURE__*/function (_BaseComponent) {
_inheritsLoose(PureComponent, _BaseComponent);
function PureComponent() {
return _BaseComponent.apply(this, arguments) || this;
}
var _proto2 = PureComponent.prototype;
_proto2.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
return !shallowEqual(this.props, nextProps) || !shallowEqual(this.state, nextState);
};
return PureComponent;
}(BaseComponent);
return PureComponent;
}
function enforceInterface(o) {

@@ -228,2 +197,3 @@ !o.getStores ? process.env.NODE_ENV !== "production" ? invariant(false, 'Components that use FluxContainer must implement `static getStores()`') : invariant(false) : void 0;

}
/**

@@ -261,40 +231,26 @@ * This is a way to connect stores to a functional stateless view. Here's a

*/
function createFunctional(viewFn, _getStores, _calculateState, options) {
var FunctionalContainer = /*#__PURE__*/function (_Component) {
_inheritsLoose(FunctionalContainer, _Component);
function FunctionalContainer() {
var _this2;
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this2 = _Component.call.apply(_Component, [this].concat(args)) || this;
_defineProperty(_assertThisInitialized(_this2), "state", void 0);
return _this2;
}
FunctionalContainer.getStores = function getStores(props, context) {
return _getStores(props, context);
};
FunctionalContainer.calculateState = function calculateState(prevState, props, context) {
return _calculateState(prevState, props, context);
};
var _proto3 = FunctionalContainer.prototype;
_proto3.render = function render() {
return viewFn(this.state);
};
return FunctionalContainer;
}(Component); // Update the name of the component before creating the container.
var viewFnName = viewFn.displayName || viewFn.name || 'FunctionalContainer';

@@ -304,3 +260,2 @@ FunctionalContainer.displayName = viewFnName;

}
module.exports = {

@@ -307,0 +262,0 @@ create: create,

/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
* Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
*

@@ -11,8 +11,9 @@ * This source code is licensed under the BSD-style license found in the

*/
'use strict';
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var FluxStoreGroup = require("./FluxStoreGroup");
function shallowArrayEqual(a, b) {

@@ -22,7 +23,5 @@ if (a === b) {

}
if (a.length !== b.length) {
return false;
}
for (var i = 0; i < a.length; i++) {

@@ -33,37 +32,23 @@ if (a[i] !== b[i]) {

}
return true;
}
var FluxContainerSubscriptions = /*#__PURE__*/function () {
function FluxContainerSubscriptions() {
_defineProperty(this, "_callbacks", void 0);
_defineProperty(this, "_storeGroup", void 0);
_defineProperty(this, "_stores", void 0);
_defineProperty(this, "_tokens", void 0);
this._callbacks = [];
}
var _proto = FluxContainerSubscriptions.prototype;
_proto.setStores = function setStores(stores) {
var _this = this;
if (this._stores && shallowArrayEqual(this._stores, stores)) {
return;
}
this._stores = stores;
this._resetTokens();
this._resetStoreGroup();
var changed = false;
var changedStores = [];
if (process.env.NODE_ENV !== "production") {

@@ -81,3 +66,2 @@ // Keep track of the stores that changed for debugging purposes only

};
this._tokens = stores.map(function (store) {

@@ -87,3 +71,2 @@ return store.addListener(setChanged);

}
var callCallbacks = function callCallbacks() {

@@ -94,5 +77,3 @@ if (changed) {

});
changed = false;
if (process.env.NODE_ENV !== "production") {

@@ -105,20 +86,13 @@ // Uncomment this to print the stores that changed.

};
this._storeGroup = new FluxStoreGroup(stores, callCallbacks);
};
_proto.addListener = function addListener(fn) {
this._callbacks.push(fn);
};
_proto.reset = function reset() {
this._resetTokens();
this._resetStoreGroup();
this._resetCallbacks();
this._resetStores();
};
_proto._resetTokens = function _resetTokens() {

@@ -129,26 +103,19 @@ if (this._tokens) {

});
this._tokens = null;
}
};
_proto._resetStoreGroup = function _resetStoreGroup() {
if (this._storeGroup) {
this._storeGroup.release();
this._storeGroup = null;
}
};
_proto._resetStores = function _resetStores() {
this._stores = null;
};
_proto._resetCallbacks = function _resetCallbacks() {
this._callbacks = [];
};
return FluxContainerSubscriptions;
}();
module.exports = FluxContainerSubscriptions;
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
* Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
*

@@ -11,14 +11,10 @@ * This source code is licensed under the BSD-style license found in the

*/
'use strict';
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
var FluxStoreGroup = require("./FluxStoreGroup");
var invariant = require("fbjs/lib/invariant");
/**

@@ -74,17 +70,16 @@ * `FluxContainer` should be preferred over this mixin, but it requires using

var _this = this;
// This tracks when any store has changed and we may need to update.
var changed = false;
var setChanged = function setChanged() {
changed = true;
}; // This adds subscriptions to stores. When a store changes all we do is
};
// This adds subscriptions to stores. When a store changes all we do is
// set changed to true.
this._fluxMixinSubscriptions = stores.map(function (store) {
return store.addListener(setChanged);
}); // This callback is called after the dispatch of the relevant stores. If
});
// This callback is called after the dispatch of the relevant stores. If
// any have reported a change we update the state, then reset changed.
var callback = function callback() {

@@ -96,6 +91,4 @@ if (changed) {

}
changed = false;
};
this._fluxMixinStoreGroup = new FluxStoreGroup(stores, callback);

@@ -105,6 +98,4 @@ },

this._fluxMixinStoreGroup.release();
var _iterator = _createForOfIteratorHelper(this._fluxMixinSubscriptions),
_step;
_step;
try {

@@ -120,3 +111,2 @@ for (_iterator.s(); !(_step = _iterator.n()).done;) {

}
this._fluxMixinSubscriptions = [];

@@ -126,7 +116,5 @@ }

}
function enforceInterface(o) {
!o.constructor.calculateState ? process.env.NODE_ENV !== "production" ? invariant(false, 'Components that use FluxMixinLegacy must implement ' + '`calculateState()` on the statics object') : invariant(false) : void 0;
}
module.exports = FluxMixinLegacy;
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
* Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
*

@@ -11,17 +11,15 @@ * This source code is licensed under the BSD-style license found in the

*/
'use strict';
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var FluxStore = require("./FluxStore");
var abstractMethod = require("./abstractMethod");
var invariant = require("fbjs/lib/invariant");
var invariant = require("fbjs/lib/invariant");
/**

@@ -48,17 +46,12 @@ * This is the basic building block of a Flux application. All of your stores

*/
var FluxReduceStore = /*#__PURE__*/function (_FluxStore) {
_inheritsLoose(FluxReduceStore, _FluxStore);
function FluxReduceStore(dispatcher) {
var _this;
_this = _FluxStore.call(this, dispatcher) || this;
_defineProperty(_assertThisInitialized(_this), "_state", void 0);
_this._state = _this.getInitialState();
return _this;
}
/**

@@ -68,53 +61,47 @@ * Getter that exposes the entire state of this store. If your state is not

*/
var _proto = FluxReduceStore.prototype;
_proto.getState = function getState() {
return this._state;
}
/**
* Constructs the initial state for this store. This is called once during
* construction of the store.
*/
;
*/;
_proto.getInitialState = function getInitialState() {
return abstractMethod('FluxReduceStore', 'getInitialState');
}
/**
* Used to reduce a stream of actions coming from the dispatcher into a
* single state object.
*/
;
*/;
_proto.reduce = function reduce(state, action) {
return abstractMethod('FluxReduceStore', 'reduce');
}
/**
* Checks if two versions of state are the same. You do not need to override
* this if your state is immutable.
*/
;
*/;
_proto.areEqual = function areEqual(one, two) {
return one === two;
};
_proto.__invokeOnDispatch = function __invokeOnDispatch(action) {
this.__changed = false; // Reduce the stream of incoming actions to state, update when necessary.
this.__changed = false;
// Reduce the stream of incoming actions to state, update when necessary.
var startingState = this._state;
var endingState = this.reduce(startingState, action); // This means your ending state should never be undefined.
var endingState = this.reduce(startingState, action);
// This means your ending state should never be undefined.
!(endingState !== undefined) ? process.env.NODE_ENV !== "production" ? invariant(false, '%s returned undefined from reduce(...), did you forget to return ' + 'state in the default case? (use null if this was intentional)', this.constructor.name) : invariant(false) : void 0;
if (!this.areEqual(startingState, endingState)) {
this._state = endingState;
if (!this.areEqual(startingState, endingState)) {
this._state = endingState; // `__emitChange()` sets `this.__changed` to true and then the actual
// `__emitChange()` sets `this.__changed` to true and then the actual
// change will be fired from the emitter at the end of the dispatch, this
// is required in order to support methods like `hasChanged()`
this.__emitChange();
}
if (this.__changed) {

@@ -124,6 +111,4 @@ this.__emitter.emit(this.__changeEvent);

};
return FluxReduceStore;
}(FluxStore);
module.exports = FluxReduceStore;
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
* Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
*

@@ -11,10 +11,12 @@ * This source code is licensed under the BSD-style license found in the

*/
'use strict';
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var _require = require("fbemitter"),
EventEmitter = _require.EventEmitter;
EventEmitter = _require.EventEmitter;
var invariant = require("fbjs/lib/invariant");
var invariant = require("fbjs/lib/invariant");
/**

@@ -25,22 +27,15 @@ * This class represents the most basic functionality for a FluxStore. Do not

*/
var FluxStore = /*#__PURE__*/function () {
// private
// protected, available to subclasses
function FluxStore(dispatcher) {
var _this = this;
_defineProperty(this, "_dispatchToken", void 0);
_defineProperty(this, "__changed", void 0);
_defineProperty(this, "__changeEvent", void 0);
_defineProperty(this, "__className", void 0);
_defineProperty(this, "__dispatcher", void 0);
_defineProperty(this, "__emitter", void 0);
this.__className = this.constructor.name;

@@ -55,12 +50,10 @@ this.__changed = false;

}
var _proto = FluxStore.prototype;
_proto.addListener = function addListener(callback) {
return this.__emitter.addListener(this.__changeEvent, callback);
};
_proto.getDispatcher = function getDispatcher() {
return this.__dispatcher;
}
/**

@@ -70,13 +63,10 @@ * This exposes a unique string to identify each store's registered callback.

* on other stores updating themselves first.
*/
;
*/;
_proto.getDispatchToken = function getDispatchToken() {
return this._dispatchToken;
}
/**
* Returns whether the store has changed during the most recent dispatch.
*/
;
*/;
_proto.hasChanged = function hasChanged() {

@@ -86,3 +76,2 @@ !this.__dispatcher.isDispatching() ? process.env.NODE_ENV !== "production" ? invariant(false, '%s.hasChanged(): Must be invoked while dispatching.', this.__className) : invariant(false) : void 0;

};
_proto.__emitChange = function __emitChange() {

@@ -92,2 +81,3 @@ !this.__dispatcher.isDispatching() ? process.env.NODE_ENV !== "production" ? invariant(false, '%s.__emitChange(): Must be invoked while dispatching.', this.__className) : invariant(false) : void 0;

}
/**

@@ -97,10 +87,6 @@ * This method encapsulates all logic for invoking __onDispatch. It should

* subclass has handled a payload.
*/
;
*/;
_proto.__invokeOnDispatch = function __invokeOnDispatch(payload) {
this.__changed = false;
this.__onDispatch(payload);
if (this.__changed) {

@@ -110,2 +96,3 @@ this.__emitter.emit(this.__changeEvent);

}
/**

@@ -115,12 +102,8 @@ * The callback that will be registered with the dispatcher during

* only way the store receives new data.
*/
;
*/;
_proto.__onDispatch = function __onDispatch(payload) {
!false ? process.env.NODE_ENV !== "production" ? invariant(false, '%s has not overridden FluxStore.__onDispatch(), which is required', this.__className) : invariant(false) : void 0;
};
return FluxStore;
}();
module.exports = FluxStore;
/**
* Copyright (c) 2014-present, Facebook, Inc.
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.

@@ -12,14 +12,12 @@ *

*/
'use strict';
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var invariant = require("fbjs/lib/invariant");
/**

@@ -32,37 +30,29 @@ * FluxStoreGroup allows you to execute a callback on every dispatch after

var _this = this;
_defineProperty(this, "_dispatcher", void 0);
_defineProperty(this, "_dispatchToken", void 0);
this._dispatcher = _getUniformDispatcher(stores);
this._dispatcher = _getUniformDispatcher(stores); // Precompute store tokens.
// Precompute store tokens.
var storeTokens = stores.map(function (store) {
return store.getDispatchToken();
}); // Register with the dispatcher.
});
// Register with the dispatcher.
this._dispatchToken = this._dispatcher.register(function (payload) {
_this._dispatcher.waitFor(storeTokens);
callback();
});
}
var _proto = FluxStoreGroup.prototype;
_proto.release = function release() {
this._dispatcher.unregister(this._dispatchToken);
};
return FluxStoreGroup;
}();
function _getUniformDispatcher(stores) {
!(stores && stores.length) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Must provide at least one store to FluxStoreGroup') : invariant(false) : void 0;
var dispatcher = stores[0].getDispatcher();
if (process.env.NODE_ENV !== "production") {
var _iterator = _createForOfIteratorHelper(stores),
_step;
_step;
try {

@@ -79,6 +69,4 @@ for (_iterator.s(); !(_step = _iterator.n()).done;) {

}
return dispatcher;
}
module.exports = FluxStoreGroup;
{
"name": "flux",
"version": "4.0.3",
"version": "4.0.4",
"description": "An application architecture based on a unidirectional data flow",

@@ -11,4 +11,4 @@ "keywords": [

],
"homepage": "https://facebook.github.io/flux/",
"bugs": "https://github.com/facebook/flux/issues",
"homepage": "https://facebookarchive.github.io/flux/",
"bugs": "https://github.com/facebookarchive/flux/issues",
"files": [

@@ -54,3 +54,4 @@ "LICENSE",

"immutable": "^3.7.4",
"jest": "^15.1.1",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"object-assign": "^4.0.1",

@@ -70,20 +71,3 @@ "react": "^17.0.1",

"react": "^15.0.2 || ^16.0.0 || ^17.0.0"
},
"jest": {
"modulePathIgnorePatterns": [
"/lib/",
"/node_modules/"
],
"preprocessorIgnorePatterns": [
"/node_modules/"
],
"rootDir": "./",
"scriptPreprocessor": "scripts/jest/preprocessor.js",
"setupFiles": [
"scripts/jest/environment.js"
],
"testPathDirs": [
"<rootDir>/src"
]
}
}

@@ -1,5 +0,5 @@

## ⚠️ The Flux project is in maintenance mode and there are many more sophisticated alternatives available (e.g. [Redux](http://redux.js.org/), [MobX](https://mobx.js.org/)) and we would recommend using them instead.
## ⚠️ The Flux project has been archived and no further changes will be made. We recommend using more sophisticated alternatives like [Redux](http://redux.js.org/), [MobX](https://mobx.js.org/), [Recoil](https://recoiljs.org/), [Zustand](https://github.com/pmndrs/zustand), or [Jotai](https://github.com/pmndrs/jotai).
<p align="center">
<img src="https://facebook.github.io/flux/img/flux-logo-color.svg" alt="logo" width="20%" />
<img src="https://github.com/facebookarchive/flux/blob/main/website/static/img/flux-logo-color.svg" alt="logo" width="20%" />
</p>

@@ -11,3 +11,3 @@ <h1 align="center">

An application architecture for React utilizing a unidirectional data flow.<br>
<a href="https://github.com/facebook/flux/blob/master/LICENSE">

@@ -27,14 +27,16 @@ <img src="https://img.shields.io/badge/License-BSD%20-blue.svg" alt="Licence Badge" />

Start by looking through the [guides and examples](./examples) on Github. For more resources and API docs check out [facebook.github.io/flux](https://facebook.github.io/flux).
Start by looking through the [guides and examples](./examples) on Github. For more resources and API docs check out [facebook.github.io/flux](https://facebookarchive.github.io/flux).
## How Flux works
For more information on how Flux works check out the [Flux Concepts](./examples/flux-concepts) guide, or the [In Depth Overview](https://facebook.github.io/flux/docs/in-depth-overview).
For more information on how Flux works check out the [Flux Concepts](./examples/flux-concepts) guide, or the [In Depth Overview](https://facebookarchive.github.io/flux/docs/in-depth-overview).
## Requirements
Flux is more of a pattern than a framework, and does not have any hard dependencies. However, we often use [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) as a basis for `Stores` and [React](https://github.com/facebook/react) for our `Views`. The one piece of Flux not readily available elsewhere is the `Dispatcher`. This module, along with some other utilities, is available here to complete your Flux toolbox.
Flux is more of a pattern than a framework, and does not have any hard dependencies. However, we often use [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) as a basis for `Stores` and [React](https://github.com/facebook/react) for our `Views`. The one piece of Flux not readily available elsewhere is the `Dispatcher`. This module, along with some other utilities, is available here to complete your Flux toolbox.
## Installing Flux
Flux is available as a [npm module](https://www.npmjs.org/package/flux), so you can add it to your package.json file or run `npm install flux`. The dispatcher will be available as `Flux.Dispatcher` and can be required like this:
Flux is available as a [npm module](https://www.npmjs.org/package/flux), so you can add it to your package.json file or run `npm install flux`. The dispatcher will be available as `Flux.Dispatcher` and can be required like this:
```javascript

@@ -44,3 +46,3 @@ const Dispatcher = require('flux').Dispatcher;

Take a look at the [dispatcher API and some examples](https://facebook.github.io/flux/docs/dispatcher).
Take a look at the [dispatcher API and some examples](https://facebookarchive.github.io/flux/docs/dispatcher).

@@ -74,7 +76,8 @@ ## Flux Utils

Check out the [examples](./examples) and [documentation](https://facebook.github.io/flux/docs/flux-utils) for more information.
Check out the [examples](./examples) and [documentation](https://facebookarchive.github.io/flux/docs/flux-utils) for more information.
## Building Flux from a Cloned Repo
Clone the repo and navigate into the resulting `flux` directory. Then run `npm install`.
Clone the repo and navigate into the resulting `flux` directory. Then run `npm install`.
This will run [Gulp](https://gulpjs.com/)-based build tasks automatically and produce the file Flux.js, which you can then require as a module.

@@ -88,8 +91,6 @@

The build process also produces de-sugared versions of the `Dispatcher` and `invariant` modules in a `lib` directory, and you can require those modules directly, copying them into whatever directory is most convenient for you. The flux-todomvc and flux-chat example applications both do this.
The build process also produces de-sugared versions of the `Dispatcher` and `invariant` modules in a `lib` directory, and you can require those modules directly, copying them into whatever directory is most convenient for you. The `flux-todomvc` and `flux-chat` example applications both do this.
## Join the Flux community
See the [CONTRIBUTING](/CONTRIBUTING.md) file for how to help out.
## License
## License
Flux is BSD-licensed. We also provide an additional patent grant.
/**
* Copyright (c) 2014-present, Facebook, Inc.
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.

@@ -4,0 +4,0 @@ *

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc