diff --git a/dist/ng-redux.js b/dist/ng-redux.js index e4dfa20..2ba3dcc 100644 --- a/dist/ng-redux.js +++ b/dist/ng-redux.js @@ -1 +1 @@ -!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o);e["default"]=angular.module("ngRedux",[]).provider("$ngRedux",u["default"]).name,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(){var t=void 0,e=void 0,n=void 0;this.createStoreWith=function(r,o,u){f["default"](h["default"](r),"The reducer parameter passed to createStoreWith must be a Function. Instead received %s.",typeof r),f["default"](!u||v["default"](u),"The storeEnhancers parameter passed to createStoreWith must be an Array. Instead received %s.",typeof u),t=r,n=u,e=o||[]},this.$get=function(r){for(var o=void 0,i=[],a=e,f=Array.isArray(a),l=0,a=f?a:a[Symbol.iterator]();;){var p;if(f){if(l>=a.length)break;p=a[l++]}else{if(l=a.next(),l.done)break;p=l.value}var v=p;"string"==typeof v?i.push(r.get(v)):i.push(v)}var y=n?s.compose.apply(void 0,n)(s.createStore):s.createStore;return i.push(d["default"](r.get("$rootScope"))),o=s.applyMiddleware.apply(void 0,i)(y)(t),u({},o,{connect:c["default"](o)})},this.$get.$inject=["$injector"]}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e0?"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function c(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:f.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+e+'" 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 o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+f.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.")})}function a(t){var e,n=y["default"](t,function(t){return"function"==typeof t});try{c(n)}catch(o){e=o}var a=p["default"](n,function(){return void 0});return function(t,o){if(void 0===t&&(t=a),e)throw e;var c=!1,f=p["default"](n,function(e,n){var r=t[n],i=e(r,o);if("undefined"==typeof i){var a=u(n,o);throw new Error(a)}return c=c||i!==r,i});if("production"!==r.env.NODE_ENV){var s=i(t,f,o);s&&console.error(s)}return c?f:t}}e.__esModule=!0,e["default"]=a;var f=n(6),s=n(7),l=o(s),d=n(10),p=o(d),v=n(11),y=o(v);t.exports=e["default"]}).call(e,n(9))},function(t,e){function n(){f=!1,i.length?a=i.concat(a):s=-1,a.length&&r()}function r(){if(!f){var t=setTimeout(n);f=!0;for(var e=a.length;e;){for(i=a,a=[];++s1)for(var n=1;nn;n++)e[n]=arguments[n];return function(t){return function(n,r){var o=t(n,r),i=o.dispatch,a=[],f={getState:o.getState,dispatch:function(t){return i(t)}};return a=e.map(function(t){return t(f)}),i=c["default"].apply(void 0,a)(o.dispatch),u({},o,{dispatch:i})}}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;en;n++)e[n]=arguments[n];return function(t){return e.reduceRight(function(t,e){return e(t)},t)}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){(function(e){"use strict";var n=function(t,n,r,o,u,i,c,a){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var f;if(void 0===n)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,o,u,i,c,a],l=0;f=new Error("Invariant Violation: "+n.replace(/%s/g,function(){return s[l++]}))}throw f.framesToPop=1,f}};t.exports=n}).call(e,n(9))},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function o(t,e){return i(t,e,a)}function u(t){var e;if(!r(t)||d.call(t)!=f||c(t)||!l.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return o(t,function(t,e){n=e}),void 0===n||l.call(t,n)}var i=n(17),c=n(18),a=n(19),f="[object Object]",s=Object.prototype,l=s.hasOwnProperty,d=s.toString;t.exports=u},function(t,e){function n(t){return function(e,n,o){for(var u=r(e),i=o(e),c=i.length,a=t?c:-1;t?a--:++a-1&&t%1==0&&s>=t}function i(t){return n(t)&&o(t)&&a.call(t,"callee")&&!f.call(t,"callee")}var c=Object.prototype,a=c.hasOwnProperty,f=c.propertyIsEnumerable,s=9007199254740991,l=r("length");t.exports=i},function(t,e,n){function r(t,e){return t="number"==typeof t||f.test(t)?+t:-1,e=null==e?d:e,t>-1&&t%1==0&&e>t}function o(t){return"number"==typeof t&&t>-1&&t%1==0&&d>=t}function u(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function i(t){if(null==t)return[];u(t)||(t=Object(t));var e=t.length;e=e&&o(e)&&(a(t)||c(t))&&e||0;for(var n=t.constructor,i=-1,f="function"==typeof n&&n.prototype===t,s=Array(e),d=e>0;++i-1&&t%1==0&&g>=t}function u(t){return i(t)&&v.call(t)==f}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function c(t){return null==t?!1:u(t)?y.test(d.call(t)):n(t)&&s.test(t)}var a="[object Array]",f="[object Function]",s=/^\[object .+?Constructor\]$/,l=Object.prototype,d=Function.prototype.toString,p=l.hasOwnProperty,v=l.toString,y=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),h=r(Array,"isArray"),g=9007199254740991,b=h||function(t){return n(t)&&o(t.length)&&v.call(t)==a};t.exports=b},function(t,e){function n(t){return r(t)&&i.call(t)==o}function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var o="[object Function]",u=Object.prototype,i=u.toString;t.exports=n},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t,e,n){for(var r=-1,o=i(e),u=o.length;++r-1&&t%1==0&&e>t}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&g>=t}function c(t){for(var e=f(t),n=e.length,r=n&&t.length,o=!!r&&i(r)&&(d(t)||l(t)),c=-1,a=[];++c0;++r-1&&t%1==0&&s>=t}function i(t){return n(t)&&o(t)&&a.call(t,"callee")&&!f.call(t,"callee")}var c=Object.prototype,a=c.hasOwnProperty,f=c.propertyIsEnumerable,s=9007199254740991,l=r("length");t.exports=i},function(t,e,n){function r(t){return i(function(e,n){var r=-1,i=null==e?0:n.length,c=i>2?n[i-2]:void 0,a=i>2?n[2]:void 0,f=i>1?n[i-1]:void 0;for("function"==typeof c?(c=o(c,f,5),i-=2):(c="function"==typeof f?f:void 0,i-=c?1:0),a&&u(n[0],n[1],a)&&(c=3>i?void 0:c,i=1);++r-1&&t%1==0&&e>t}function u(t,e,n){if(!c(n))return!1;var u=typeof e;if("number"==u?r(n)&&o(e,n.length):"string"==u&&e in n){var i=n[e];return t===t?t===i:i!==i}return!1}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&f>=t}function c(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var a=/^\d+$/,f=9007199254740991,s=n("length");t.exports=u},function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(r);return e=o(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,u=o(n.length-e,0),i=Array(u);++r0?"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function c(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:f.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+e+'" 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 o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+f.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.")})}function a(t){var e,n=y["default"](t,function(t){return"function"==typeof t});try{c(n)}catch(o){e=o}var a=p["default"](n,function(){});return function(t,o){if(void 0===t&&(t=a),e)throw e;var c=!1,f=p["default"](n,function(e,n){var r=t[n],i=e(r,o);if("undefined"==typeof i){var a=u(n,o);throw new Error(a)}return c=c||i!==r,i});if("production"!==r.env.NODE_ENV){var l=i(t,f,o);l&&console.error(l)}return c?f:t}}e.__esModule=!0,e["default"]=a;var f=n(6),l=n(7),s=o(l),d=n(10),p=o(d),v=n(11),y=o(v);t.exports=e["default"]}).call(e,n(9))},function(t,e){function n(){f=!1,i.length?a=i.concat(a):l=-1,a.length&&r()}function r(){if(!f){var t=setTimeout(n);f=!0;for(var e=a.length;e;){for(i=a,a=[];++l1)for(var n=1;nn;n++)e[n]=arguments[n];return function(t){return function(n,r){var o=t(n,r),i=o.dispatch,a=[],f={getState:o.getState,dispatch:function(t){return i(t)}};return a=e.map(function(t){return t(f)}),i=c["default"].apply(void 0,a)(o.dispatch),u({},o,{dispatch:i})}}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;en;n++)e[n]=arguments[n];return function(t){return e.reduceRight(function(t,e){return e(t)},t)}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){(function(e){"use strict";var n=function(t,n,r,o,u,i,c,a){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var f;if(void 0===n)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,u,i,c,a],s=0;f=new Error(n.replace(/%s/g,function(){return l[s++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}};t.exports=n}).call(e,n(9))},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function o(t,e){return i(t,e,a)}function u(t){var e;if(!r(t)||d.call(t)!=f||c(t)||!s.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return o(t,function(t,e){n=e}),void 0===n||s.call(t,n)}var i=n(17),c=n(18),a=n(19),f="[object Object]",l=Object.prototype,s=l.hasOwnProperty,d=l.toString;t.exports=u},function(t,e){function n(t){return function(e,n,o){for(var u=r(e),i=o(e),c=i.length,a=t?c:-1;t?a--:++a-1&&t%1==0&&l>=t}function i(t){return n(t)&&o(t)&&a.call(t,"callee")&&!f.call(t,"callee")}var c=Object.prototype,a=c.hasOwnProperty,f=c.propertyIsEnumerable,l=9007199254740991,s=r("length");t.exports=i},function(t,e,n){function r(t,e){return t="number"==typeof t||f.test(t)?+t:-1,e=null==e?d:e,t>-1&&t%1==0&&e>t}function o(t){return"number"==typeof t&&t>-1&&t%1==0&&d>=t}function u(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function i(t){if(null==t)return[];u(t)||(t=Object(t));var e=t.length;e=e&&o(e)&&(a(t)||c(t))&&e||0;for(var n=t.constructor,i=-1,f="function"==typeof n&&n.prototype===t,l=Array(e),d=e>0;++i-1&&t%1==0&&g>=t}function u(t){return i(t)&&v.call(t)==f}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function c(t){return null==t?!1:u(t)?y.test(d.call(t)):n(t)&&l.test(t)}var a="[object Array]",f="[object Function]",l=/^\[object .+?Constructor\]$/,s=Object.prototype,d=Function.prototype.toString,p=s.hasOwnProperty,v=s.toString,y=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),h=r(Array,"isArray"),g=9007199254740991,b=h||function(t){return n(t)&&o(t.length)&&v.call(t)==a};t.exports=b},function(t,e){function n(t){return r(t)&&i.call(t)==o}function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var o="[object Function]",u=Object.prototype,i=u.toString;t.exports=n},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t,e,n){for(var r=-1,o=i(e),u=o.length;++r-1&&t%1==0&&e>t}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&g>=t}function c(t){for(var e=f(t),n=e.length,r=n&&t.length,o=!!r&&i(r)&&(d(t)||s(t)),c=-1,a=[];++c0;++r-1&&t%1==0&&l>=t}function i(t){return n(t)&&o(t)&&a.call(t,"callee")&&!f.call(t,"callee")}var c=Object.prototype,a=c.hasOwnProperty,f=c.propertyIsEnumerable,l=9007199254740991,s=r("length");t.exports=i},function(t,e,n){function r(t){return i(function(e,n){var r=-1,i=null==e?0:n.length,c=i>2?n[i-2]:void 0,a=i>2?n[2]:void 0,f=i>1?n[i-1]:void 0;for("function"==typeof c?(c=o(c,f,5),i-=2):(c="function"==typeof f?f:void 0,i-=c?1:0),a&&u(n[0],n[1],a)&&(c=3>i?void 0:c,i=1);++r-1&&t%1==0&&e>t}function u(t,e,n){if(!c(n))return!1;var u=typeof e;if("number"==u?r(n)&&o(e,n.length):"string"==u&&e in n){var i=n[e];return t===t?t===i:i!==i}return!1}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&f>=t}function c(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var a=/^\d+$/,f=9007199254740991,l=n("length");t.exports=u},function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(r);return e=o(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,u=o(n.length-e,0),i=Array(u);++r