/******/ // The require function /******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ };
/******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded /******/ module.loaded = true;
/******/ // Return the exports of the module /******/ return module.exports; /******/ }
/* *Thisisadummyfunctiontocheckifthefunctionnamehasbeenalteredbyminification. *IfthefunctionhasbeenminifiedandNODE_ENV!=='production',warntheuser.
*/ function isCrushed() {}
if (("development") !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
(0, _warning2['default'])('You are currently using minified code outside of NODE_ENV === \'production\'. ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) ' + 'to ensure you have the correct code for your production build.');
}
if (typeof reducer !== 'function') { thrownew Error('Expected the reducer to be a function.');
}
var currentReducer = reducer; var currentState = preloadedState; var currentListeners = []; var nextListeners = currentListeners; var isDispatching = false;
function ensureCanMutateNextListeners() { if (nextListeners === currentListeners) {
nextListeners = currentListeners.slice();
}
}
var listeners = currentListeners = nextListeners; for (var i = 0; i < listeners.length; i++) {
listeners[i]();
}
return action;
}
/** *Replacesthereducercurrentlyusedbythestoretocalculatethestate. * *Youmightneedthisifyourappimplementscodesplittingandyouwantto *loadsomeofthereducersdynamically.Youmightalsoneedthisifyou *implementahotreloadingmechanismforRedux. * *@param{Function}nextReducerThereducerforthestoretouseinstead. *@returns{void}
*/ function replaceReducer(nextReducer) { if (typeof nextReducer !== 'function') { thrownew Error('Expected the nextReducer to be a function.');
}
/** *Interoperabilitypointforobservable/reactivelibraries. *@returns{observable}Aminimalobservableofstatechanges. *Formoreinformation,seetheobservableproposal: *https://github.com/zenparsing/es-observable
*/ function observable() { var _ref;
var outerSubscribe = subscribe; return _ref = { /** *Theminimalobservablesubscriptionmethod. *@param{Object}observerAnyobjectthatcanbeusedasanobserver. *Theobserverobjectshouldhavea`next`method. *@returns{subscription}Anobjectwithan`unsubscribe`methodthatcan *beusedtounsubscribetheobservablefromthestore,andpreventfurther *emissionofvaluesfromtheobservable.
*/
subscribe: function subscribe(observer) { if (typeof observer !== 'object') { thrownew TypeError('Expected the observer to be an object.');
}
function observeState() { if (observer.next) {
observer.next(getState());
}
}
// When a store is created, an "INIT" action is dispatched so that every // reducer returns their initial state. This effectively populates // the initial state tree.
dispatch({ type: ActionTypes.INIT });
exports.__esModule = true;
exports['default'] = warning; /** *Printsawarningintheconsoleifitexists. * *@param{String}messageThewarningmessage. *@returns{void}
*/ function warning(message) { /* eslint-disable no-console */ if (typeof console !== 'undefined' && typeof console.error === 'function') {
console.error(message);
} /* eslint-enable no-console */ try { // This error was thrown as a convenience so that if you enable // "break on all exceptions" in your console, // it would pause the execution at this line. thrownew Error(message); /* eslint-disable no-empty */
} catch (e) {} /* eslint-enable no-empty */
}
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function getUndefinedStateErrorMessage(key, action) { var actionType = action && action.type; var actionName = actionType && '"' + actionType.toString() + '"' || 'an action';
return'Given action ' + actionName + ', reducer "' + key + '" returned undefined. ' + 'To ignore an action, you must explicitly return the previous state.';
}
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { var reducerKeys = Object.keys(reducers); var argumentName = action && action.type === _createStore.ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
if (reducerKeys.length === 0) { return'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
}
if (!(0, _isPlainObject2['default'])(inputState)) { return'The ' + argumentName + ' has unexpected type of "' + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + '". Expected argument to be an object with the following ' + ('keys: "' + reducerKeys.join('", "') + '"');
}
if (unexpectedKeys.length > 0) { return'Unexpected ' + (unexpectedKeys.length > 1 ? 'keys' : 'key') + ' ' + ('"' + unexpectedKeys.join('", "') + '" found in ' + argumentName + '. ') + 'Expected to find one of the known reducer keys instead: ' + ('"' + reducerKeys.join('", "') + '". Unexpected keys will be ignored.');
}
}
function assertReducerSanity(reducers) {
Object.keys(reducers).forEach(function (key) { var reducer = reducers[key]; var initialState = reducer(undefined, { type: _createStore.ActionTypes.INIT });
if (typeof initialState === 'undefined') { thrownew Error('Reducer "' + key + '" returned undefined during initialization. ' + 'If the state passed to the reducer is undefined, you must ' + 'explicitly return the initial state. The initial state may ' + 'not be undefined.');
}
var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.'); if (typeof reducer(undefined, { type: type }) === 'undefined') { thrownew Error('Reducer "' + key + '" returned undefined when probed with a random type. ' + ('Don\'t try to handle ' + _createStore.ActionTypes.INIT + ' or other actions in "redux/*" ') + 'namespace. They are considered private. Instead, you must return the ' + 'current state for any unknown actions, unless it is undefined, ' + 'in which case you must return the initial state, regardless of the ' + 'action type. The initial state may not be undefined.');
}
});
}
/** *Turnsanobjectwhosevaluesaredifferentreducerfunctions,intoasingle *reducerfunction.Itwillcalleverychildreducer,andgathertheirresults *intoasinglestateobject,whosekeyscorrespondtothekeysofthepassed *reducerfunctions. * *@param{Object}reducersAnobjectwhosevaluescorrespondtodifferent *reducerfunctionsthatneedtobecombinedintoone.Onehandywaytoobtain *itistouseES6`import*asreducers`syntax.Thereducersmayneverreturn *undefinedforanyaction.Instead,theyshouldreturntheirinitialstate *ifthestatepassedtothemwasundefined,andthecurrentstateforany *unrecognizedaction. * *@returns{Function}Areducerfunctionthatinvokeseveryreducerinsidethe *passedobject,andbuildsastateobjectwiththesameshape.
*/ function combineReducers(reducers) { var reducerKeys = Object.keys(reducers); var finalReducers = {}; for (var i = 0; i < reducerKeys.length; i++) { var key = reducerKeys[i];
if (true) { if (typeof reducers[key] === 'undefined') {
(0, _warning2['default'])('No reducer provided for key "' + key + '"');
}
}
if (typeof reducers[key] === 'function') {
finalReducers[key] = reducers[key];
}
} var finalReducerKeys = Object.keys(finalReducers);
/** *Checksif`value`isahostobjectinIE<9. * *@private *@param{*}valueThevaluetocheck. *@returns{boolean}Returns`true`if`value`isahostobject,else`false`.
*/ function isHostObject(value) { // Many host objects are `Object` objects that can coerce to strings // despite having improperly defined `toString` methods. var result = false; if (value != null && typeof value.toString != 'function') { try {
result = !!(value + '');
} catch (e) {}
} return result;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.