UNPKG

25.2 kBJavaScriptView Raw
1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.ReduxTiles=t.ReduxTiles||{})}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t){var e=Le.call(t,Be),n=t[Be];try{t[Be]=undefined;var r=!0}catch(i){}var o=$e.call(t);return r&&(e?t[Be]=n:delete t[Be]),o}function r(t){return We.call(t)}function o(t){return null==t?t===undefined?qe:Ke:He&&He in Object(t)?De(t):Ge(t)}function i(t){return null!=t&&"object"==typeof t}function u(t){return"string"==typeof t||!Xe(t)&&Ye(t)&&Je(t)==Ze}function a(t){return tn(t)?[t]:t}function c(t,e,n){if(tn(e))return c(t,[e],n);if(1===e.length)return t[e[0]]=n,t;var r=e[0];return t[r]||(t[r]={}),c(t[r],e.slice(1),n)}function f(t){return Xe(t)?t:Object.keys(t).reduce(function(e,n){return e.concat(t[n])},[])}function s(t,e){return 0===e?t:t[0].toUpperCase()+t.slice(1)}function l(t){var e=t.type,n=t.path;return a(e).concat(null==n?[]:n.map(String)).map(s).join("")}function p(t){return f(t).reduce(function(t,e){return c(t,e.tileName,e.action),t},{})}function d(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function y(t){if(!en(t))return!1;var e=Je(t);return e==rn||e==on||e==nn||e==un}function h(t,e){var n=e&&e.type;return"Given action "+(n&&'"'+n+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function b(t){Object.keys(t).forEach(function(e){var n=t[e];if(void 0===n(undefined,{type:pn.INIT}))throw 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 r="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if(void 0===n(undefined,{type:r}))throw Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+pn.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 v(t){for(var e=Object.keys(t),n={},r=0;e.length>r;r++){var o=e[r];"function"==typeof t[o]&&(n[o]=t[o])}var i,u=Object.keys(n);try{b(n)}catch(a){i=a}return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=arguments[1];if(i)throw i;for(var r=!1,o={},a=0;u.length>a;a++){var c=u[a],f=n[c],s=t[c],l=f(s,e);if(void 0===l){var p=h(c,e);throw Error(p)}o[c]=l,r=r||l!==s}return r?o:t}}function g(t){return"symbol"==typeof t||Ye(t)&&Je(t)==dn}function _(t,e){if(Xe(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!yn(t))||(bn.test(t)||!hn.test(t)||null!=e&&t in Object(e))}function j(t){return!!jn&&jn in t}function S(t){if(null!=t){try{return On.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function m(t){return!(!en(t)||Sn(t))&&(an(t)?kn:Tn).test(wn(t))}function O(t,e){return null==t?undefined:t[e]}function w(t,e){var n=Fn(t,e);return zn(n)?n:undefined}function E(){this.__data__=Un?Un(null):{},this.size=0}function T(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function A(t){var e=this.__data__;if(Un){var n=e[t];return n===Ln?undefined:n}return Bn.call(e,t)?e[t]:undefined}function P(t){var e=this.__data__;return Un?e[t]!==undefined:Wn.call(e,t)}function R(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Un&&e===undefined?Kn:e,this}function x(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function k(){this.__data__=[],this.size=0}function z(t,e){return t===e||t!==t&&e!==e}function F(t,e){for(var n=t.length;n--;)if(Qn(t[n][0],e))return n;return-1}function N(t){var e=this.__data__,n=Xn(e,t);return n>=0&&(n==e.length-1?e.pop():Zn.call(e,n,1),--this.size,!0)}function I(t){var e=this.__data__,n=Xn(e,t);return 0>n?undefined:e[n][1]}function U(t){return Xn(this.__data__,t)>-1}function C(t,e){var n=this.__data__,r=Xn(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this}function M(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function L(){this.size=0,this.__data__={hash:new Hn,map:new(ur||or),string:new Hn}}function $(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function B(t,e){var n=t.__data__;return cr(e)?n["string"==typeof e?"string":"hash"]:n.map}function D(t){var e=fr(this,t)["delete"](t);return this.size-=e?1:0,e}function V(t){return fr(this,t).get(t)}function W(t){return fr(this,t).has(t)}function G(t,e){var n=fr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function K(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function q(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(hr);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(q.Cache||yr),n}function H(t){var e=br(t,function(t){return n.size===vr&&n.clear(),t}),n=e.cache;return e}function J(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Q(t){if("string"==typeof t)return t;if(Xe(t))return wr(t,Q)+"";if(yn(t))return Ar?Ar.call(t):"";var e=t+"";return"0"==e&&1/t==-Er?"-0":e}function X(t){return null==t?"":Pr(t)}function Y(t,e){return Xe(t)?t:vn(t,e)?[t]:Or(Rr(t))}function Z(t){if("string"==typeof t||yn(t))return t;var e=t+"";return"0"==e&&1/t==-kr?"-0":e}function tt(t,e){e=xr(e,t);for(var n=0,r=e.length;null!=t&&r>n;)t=t[zr(e[n++])];return n&&n==r?t:undefined}function et(t,e,n){var r=null==t?undefined:Fr(t,e);return r===undefined?n:r}function nt(t){Ir=t}function rt(t,e){return t===undefined||null===t?e:t}function ot(t){var e=t.state,n=t.params,r=t.nesting,o=t.tileName,i=t.selectorFallback,u=[],c=Ir;r&&(u=r(n));var f=a(o);return rt(Nr(e,(c?[c]:[]).concat(f,u)),i)}function it(t){var e=t.state,n=t.params,r=t.tileName,o=t.fn;if(!e)throw Error('\n Error in Redux-Tiles Selector – you have to provide\n state as a first argument!. Error in "'+l({type:r})+'" tile.');return o(e,n)}function ut(t){var e=t.tileName,n=t.nesting,r=t.selectorFallback,o=function(t){return rt(Nr(t,(Ir?[Ir]:[]).concat(a(e))))},i=function(t,o){return ot({state:t,params:o,nesting:n,tileName:e,selectorFallback:r})};return{getAll:function(t){return it({state:t,tileName:e,fn:o})},get:function(t,n){return it({state:t,params:n,tileName:e,fn:i})}}}function at(t){return v(Object.keys(t).reduce(function(e,n){var r=t[n];return e[n]=an(r)?r:at(r),e},{}))}function ct(t,e){return void 0===e&&(e=Ir),e!==Ir&&nt(e),at(f(t).reduce(function(t,e){return c(t,e.tileName,e.reducer),t},{}))}function ft(t){return f(t).reduce(function(t,e){var n=e.selectors.get;return n.getAll=e.selectors.getAll,c(t,e.tileName,n),t},{})}function st(t,e){return{actions:p(t),reducer:ct(t,e),selectors:ft(t)}}function lt(t){var e=Object.keys(t).map(function(e){return t[e]}).filter(Boolean);return Promise.all(e)}function pt(t){void 0===t&&(t={});var e={};return{middleware:function(n){var r=n.dispatch,o=n.getState;return function(n){return function(i){return"function"==typeof i?i(Ur({dispatch:r,getState:o,promisesStorage:e},t)):n(i)}}},waitTiles:lt.bind(null,e)}}function dt(t){if(3===t.length)return Mr({dispatch:t[0],getState:t[1]},t[2]);if(2===t.length)return{dispatch:t[0],getState:t[1]};if(1===t.length&&"object"===Cr(t[0]))return t[0];throw Error("Redux-Tiles expects own middleware, or redux-thunk")}function yt(t){var e=t.getState,n=t.selectors,r=t.params,o=n.get(e(),r),i=o.isPending,u=o.data;return null==o.error&&null==u&&!0!==i}function ht(t){return function(e,n){return function(){for(var r=[],o=0;arguments.length>o;o++)r[o]=arguments[o];return t(dt(r),e,n)}}}function bt(t){var e=t.START,n=t.SUCCESS,r=t.FAILURE,o=t.fn,i=t.type,u=t.caching,a=t.nesting,c=t.selectors;return ht(function(t,f,s){var p=(void 0===s?{}:s).forceAsync,d=t.dispatch,y=t.getState,h=t.promisesStorage,b=void 0===h?{}:h,v=Lr(t,["dispatch","getState","promisesStorage"]),g=a?a(f):null,_=l({type:i,path:g});if(u){var j=b[_];if(j)return j}if(u&&!p){if(!yt({getState:y,selectors:c,params:f}))return Promise.resolve()}d({type:e,payload:{path:g}});var S=o(Mr({params:f,dispatch:d,getState:y},v)).then(function(t){d({type:n,payload:{path:g,data:t}}),b[_]=undefined})["catch"](function(t){d({error:t,type:r,payload:{path:g}}),b[_]=undefined});return b[_]=S,S})}function vt(t){var e=t.type;return ht(function(t){return(0,t.dispatch)({type:e})})}function gt(t){var e=t.SET,n=t.fn,r=t.nesting;return ht(function(t,o){var i=t.dispatch,u=t.getState,a=Lr(t,["dispatch","getState"]),c=r?r(o):null;return i({type:e,payload:{path:c,data:n(Mr({params:o,dispatch:i,getState:u},a))}})})}function _t(t,e,n){"__proto__"==e&&Br?Br(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function jt(t){return function(e,n,r){for(var o=-1,i=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}function St(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function mt(t){return Ye(t)&&Je(t)==qr}function Ot(){return!1}function wt(t,e){return!!(e=null==e?no:e)&&("number"==typeof t||ro.test(t))&&t>-1&&t%1==0&&e>t}function Et(t){return"number"==typeof t&&t>-1&&t%1==0&&io>=t}function Tt(t){return Ye(t)&&uo(t.length)&&!!ao[Je(t)]}function At(t){return function(e){return t(e)}}function Pt(t,e){var n=Xe(t),r=!n&&Zr(t),o=!n&&!r&&eo(t),i=!n&&!r&&!o&&yo(t),u=n||r||o||i,a=u?Kr(t.length,String):[],c=a.length;for(var f in t)!e&&!bo.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||oo(f,c))||a.push(f);return a}function Rt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||go)}function xt(t,e){return function(n){return t(e(n))}}function kt(t){if(!_o(t))return mo(t);var e=[];for(var n in Object(t))wo.call(t,n)&&"constructor"!=n&&e.push(n);return e}function zt(t){return null!=t&&uo(t.length)&&!an(t)}function Ft(t){return To(t)?vo(t):Eo(t)}function Nt(t,e){return t&&Gr(t,e,Ao)}function It(){this.__data__=new or,this.size=0}function Ut(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function Ct(t){return this.__data__.get(t)}function Mt(t){return this.__data__.has(t)}function Lt(t,e){var n=this.__data__;if(n instanceof or){var r=n.__data__;if(!ur||Fo-1>r.length)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new yr(r)}return n.set(t,e),this.size=n.size,this}function $t(t){this.size=(this.__data__=new or(t)).size}function Bt(t){return this.__data__.set(t,Uo),this}function Dt(t){return this.__data__.has(t)}function Vt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new yr;++e<n;)this.add(t[e])}function Wt(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Gt(t,e){return t.has(e)}function Kt(t,e,n,r,o,i){var u=n&Do,a=t.length,c=e.length;if(!(a==c||u&&c>a))return!1;var f=i.get(t);if(f&&i.get(e))return f==e;var s=-1,l=!0,p=n&Vo?new Lo:undefined;for(i.set(t,e),i.set(e,t);++s<a;){var d=t[s],y=e[s];if(r)var h=u?r(y,d,s,e,t,i):r(d,y,s,t,e,i);if(h!==undefined){if(h)continue;l=!1;break}if(p){if(!$o(e,function(t,e){if(!Bo(p,e)&&(d===t||o(d,t,n,r,i)))return p.push(e)})){l=!1;break}}else if(d!==y&&!o(d,y,n,r,i)){l=!1;break}}return i["delete"](t),i["delete"](e),l}function qt(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function Ht(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Jt(t,e,n,r,o,i,u){switch(n){case ai:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ui:return!(t.byteLength!=e.byteLength||!i(new Ko(t),new Ko(e)));case Xo:case Yo:case ei:return Qn(+t,+e);case Zo:return t.name==e.name&&t.message==e.message;case ni:case oi:return t==e+"";case ti:var a=qo;case ri:var c=r&Jo;if(a||(a=Ho),t.size!=e.size&&!c)return!1;var f=u.get(t);if(f)return f==e;r|=Qo,u.set(t,e);var s=Wo(a(t),a(e),r,o,i,u);return u["delete"](t),s;case ii:if(fi)return fi.call(t)==fi.call(e)}return!1}function Qt(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function Xt(t,e,n){var r=e(t);return Xe(t)?r:li(r,n(t))}function Yt(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}function Zt(){return[]}function te(t){return pi(t,Ao,_i)}function ee(t,e,n,r,o,i){var u=n&Si,a=ji(t),c=a.length;if(c!=ji(e).length&&!u)return!1;for(var f=c;f--;){var s=a[f];if(!(u?s in e:Oi.call(e,s)))return!1}var l=i.get(t);if(l&&i.get(e))return l==e;var p=!0;i.set(t,e),i.set(e,t);for(var d=u;++f<c;){s=a[f];var y=t[s],h=e[s];if(r)var b=u?r(h,y,s,e,t,i):r(y,h,s,t,e,i);if(!(b===undefined?y===h||o(y,h,n,r,i):b)){p=!1;break}d||(d="constructor"==s)}if(p&&!d){var v=t.constructor,g=e.constructor;v!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g)&&(p=!1)}return i["delete"](t),i["delete"](e),p}function ne(t,e,n,r,o,i){var u=Xe(t),a=Xe(e),c=u?Di:Li(t),f=a?Di:Li(e);c=c==Bi?Vi:c,f=f==Bi?Vi:f;var s=c==Vi,l=f==Vi,p=c==f;if(p&&eo(t)){if(!eo(e))return!1;u=!0,s=!1}if(p&&!s)return i||(i=new Io),u||yo(t)?Wo(t,e,n,r,o,i):si(t,e,c,n,r,o,i);if(!(n&$i)){var d=s&&Gi.call(t,"__wrapped__"),y=l&&Gi.call(e,"__wrapped__");if(d||y){var h=d?t.value():t,b=y?e.value():e;return i||(i=new Io),o(h,b,n,r,i)}}return!!p&&(i||(i=new Io),wi(t,e,n,r,o,i))}function re(t,e,n,r,o){return t===e||(null==t||null==e||!Ye(t)&&!Ye(e)?t!==t&&e!==e:Ki(t,e,n,r,re,o))}function oe(t,e,n,r){var o=n.length,i=o,u=!r;if(null==t)return!i;for(t=Object(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){a=n[o];var c=a[0],f=t[c],s=a[1];if(u&&a[2]){if(f===undefined&&!(c in t))return!1}else{var l=new Io;if(r)var p=r(f,s,c,t,e,l);if(!(p===undefined?qi(s,f,Hi|Ji,r,l):p))return!1}}return!0}function ie(t){return t===t&&!en(t)}function ue(t){for(var e=Ao(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Xi(o)]}return e}function ae(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==undefined||t in Object(n)))}}function ce(t){var e=Yi(t);return 1==e.length&&e[0][2]?Zi(e[0][0],e[0][1]):function(n){return n===t||Qi(n,t,e)}}function fe(t,e){return null!=t&&e in Object(t)}function se(t,e,n){e=xr(e,t);for(var r=-1,o=e.length,i=!1;++r<o;){var u=zr(e[r]);if(!(i=null!=t&&n(t,u)))break;t=t[u]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&uo(o)&&oo(u,o)&&(Xe(t)||Zr(t))}function le(t,e){return null!=t&&nu(t,e,eu)}function pe(t,e){return vn(t)&&Xi(e)?Zi(zr(t),e):function(n){var r=Nr(n,t);return r===undefined&&r===e?ru(n,t):qi(e,r,ou|iu)}}function de(t){return t}function ye(t){return function(e){return null==e?undefined:e[t]}}function he(t){return function(e){return Fr(e,t)}}function be(t){return vn(t)?cu(zr(t)):fu(t)}function ve(t){return"function"==typeof t?t:null==t?au:"object"==typeof t?Xe(t)?uu(t[0],t[1]):tu(t):su(t)}function ge(t,e){var n={};return e=lu(e,3),Po(t,function(t,r,o){Dr(n,r,e(t,r,o))}),n}function _e(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function je(t,e){return t&&hu(t,e,Ao)}function Se(t,e){return function(n,r){if(null==n)return n;if(!To(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=Object(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}}function me(t){return"function"==typeof t?t:au}function Oe(t,e){return(Xe(t)?du:_u)(t,ju(e))}function we(t,e){return function(n,r){void 0===n&&(n=t);var o=e[r.type];return"function"==typeof o?o(n,r):n}}function Ee(t,e){return we(t,pu(e,function(t){return function(e,n){return Te({state:e,action:n,newValue:an(t)?t(e,n):t})}}))}function Te(t){var e=t.action,n=t.state,r=t.newValue,o=e.payload.path;if(!o)return r;var i,u={};return Su(o,function(t,e){var a=e===o.length-1,c=(s={},s[t]=a?r:u,s);i=o.slice(0,e);var f=Nr(n,i)||{};u=mu({},f,c);var s}),mu({},n,u)}function Ae(t){var e=t.type,n=t.fn,r=t.caching,o=t.nesting,i=t.selectorFallback,u=void 0===i?null:i,a=o?{}:null,c=l({type:e}),f={START:""+wu+c+"_START",SUCCESS:""+wu+c+"_SUCCESS",FAILURE:""+wu+c+"_FAILURE",RESET:""+wu+c+"_RESET"},s={selectorFallback:{isPending:!1,error:null,data:u},tileName:e,nesting:o},p=ut(s),d={START:f.START,SUCCESS:f.SUCCESS,FAILURE:f.FAILURE,fn:n,type:e,caching:r,nesting:o,selectors:p},y=bt(d);return y.reset=vt({type:f.RESET}),{action:y,reducer:Ee(a,(h={},h[f.START]={data:null,isPending:!0,error:null},h[f.FAILURE]=function(t,e){return{data:null,isPending:!1,error:e.error}},h[f.SUCCESS]=function(t,e){return{error:null,isPending:!1,data:e.payload&&e.payload.data}},h[f.RESET]=a,h)),selectors:p,tileName:e,constants:f,reflect:t};var h}function Pe(t){var e=t.type,n=t.nesting,r=t.fn,o=void 0===r?function(t){return t.params}:r,i=t.fns,u=t.initialState,a=void 0===u?n?{}:null:u,c=t.selectorFallback,f=l({type:e}),s={SET:""+wu+f+"_SET",RESET:""+wu+f+"_RESET"},p={selectorFallback:c,tileName:e,nesting:n},d=ut(p),y={SET:s.SET,nesting:n,fn:o},h=gt(y);h.reset=vt({type:s.RESET}),i&&Object.keys(i).forEach(function(t){var e=i[t],n=Ou({},y,{fn:e});h[t]=gt(n)});var b=(g={},g[s.SET]=function(t,e){return e.payload&&e.payload.data},g[s.RESET]=a,g),v=Ee(a,b);return{action:h,selectors:d,reducer:v,tileName:e,constants:s,reflect:t};var g}var Re,xe="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ke="object"==typeof xe&&xe&&xe.Object===Object&&xe,ze=ke,Fe="object"==typeof self&&self&&self.Object===Object&&self,Ne=ze||Fe||Function("return this")(),Ie=Ne,Ue=Ie.Symbol,Ce=Ue,Me=Object.prototype,Le=Me.hasOwnProperty,$e=Me.toString,Be=Ce?Ce.toStringTag:undefined,De=n,Ve=Object.prototype,We=Ve.toString,Ge=r,Ke="[object Null]",qe="[object Undefined]",He=Ce?Ce.toStringTag:undefined,Je=o,Qe=Array.isArray,Xe=Qe,Ye=i,Ze="[object String]",tn=u,en=d,nn="[object AsyncFunction]",rn="[object Function]",on="[object GeneratorFunction]",un="[object Proxy]",an=y,cn="object"==typeof global&&global&&global.Object===Object&&global,fn="object"==typeof self&&self&&self.Object===Object&&self,sn=(cn||fn||Function("return this")(),Function.prototype),ln=sn.toString;ln.call(Object);Re="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var pn=(function(t){var e,n=t.Symbol;"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable"}(Re),{INIT:"@@redux/INIT"}),dn="[object Symbol]",yn=g,hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bn=/^\w*$/,vn=_,gn=Ie["__core-js_shared__"],_n=gn,jn=function(){var t=/[^.]+$/.exec(_n&&_n.keys&&_n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Sn=j,mn=Function.prototype,On=mn.toString,wn=S,En=/[\\^$.*+?()[\]{}|]/g,Tn=/^\[object .+?Constructor\]$/,An=Function.prototype,Pn=Object.prototype,Rn=An.toString,xn=Pn.hasOwnProperty,kn=RegExp("^"+Rn.call(xn).replace(En,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zn=m,Fn=O,Nn=w,In=Nn(Object,"create"),Un=In,Cn=E,Mn=T,Ln="__lodash_hash_undefined__",$n=Object.prototype,Bn=$n.hasOwnProperty,Dn=A,Vn=Object.prototype,Wn=Vn.hasOwnProperty,Gn=P,Kn="__lodash_hash_undefined__",qn=R;x.prototype.clear=Cn,x.prototype["delete"]=Mn,x.prototype.get=Dn,x.prototype.has=Gn,x.prototype.set=qn;var Hn=x,Jn=k,Qn=z,Xn=F,Yn=Array.prototype,Zn=Yn.splice,tr=N,er=I,nr=U,rr=C;M.prototype.clear=Jn,M.prototype["delete"]=tr,M.prototype.get=er,M.prototype.has=nr,M.prototype.set=rr;var or=M,ir=Nn(Ie,"Map"),ur=ir,ar=L,cr=$,fr=B,sr=D,lr=V,pr=W,dr=G;K.prototype.clear=ar,K.prototype["delete"]=sr,K.prototype.get=lr,K.prototype.has=pr,K.prototype.set=dr;var yr=K,hr="Expected a function";q.Cache=yr;var br=q,vr=500,gr=H,_r=/^\./,jr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sr=/\\(\\)?/g,mr=gr(function(t){var e=[];return _r.test(t)&&e.push(""),t.replace(jr,function(t,n,r,o){e.push(r?o.replace(Sr,"$1"):n||t)}),e}),Or=mr,wr=J,Er=1/0,Tr=Ce?Ce.prototype:undefined,Ar=Tr?Tr.toString:undefined,Pr=Q,Rr=X,xr=Y,kr=1/0,zr=Z,Fr=tt,Nr=et,Ir="",Ur=undefined&&undefined.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr=undefined&&undefined.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Lr=undefined&&undefined.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);r.length>o;o++)0>e.indexOf(r[o])&&(n[r[o]]=t[r[o]]);return n},$r=function(){try{var t=Nn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Br=$r,Dr=_t,Vr=jt,Wr=Vr(),Gr=Wr,Kr=St,qr="[object Arguments]",Hr=mt,Jr=Object.prototype,Qr=Jr.hasOwnProperty,Xr=Jr.propertyIsEnumerable,Yr=Hr(function(){return arguments}())?Hr:function(t){return Ye(t)&&Qr.call(t,"callee")&&!Xr.call(t,"callee")},Zr=Yr,to=Ot,eo=e(function(t,e){var n=e&&!e.nodeType&&e,r=n&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===n,i=o?Ie.Buffer:undefined;t.exports=(i?i.isBuffer:undefined)||to}),no=9007199254740991,ro=/^(?:0|[1-9]\d*)$/,oo=wt,io=9007199254740991,uo=Et,ao={};ao["[object Float32Array]"]=ao["[object Float64Array]"]=ao["[object Int8Array]"]=ao["[object Int16Array]"]=ao["[object Int32Array]"]=ao["[object Uint8Array]"]=ao["[object Uint8ClampedArray]"]=ao["[object Uint16Array]"]=ao["[object Uint32Array]"]=!0,ao["[object Arguments]"]=ao["[object Array]"]=ao["[object ArrayBuffer]"]=ao["[object Boolean]"]=ao["[object DataView]"]=ao["[object Date]"]=ao["[object Error]"]=ao["[object Function]"]=ao["[object Map]"]=ao["[object Number]"]=ao["[object Object]"]=ao["[object RegExp]"]=ao["[object Set]"]=ao["[object String]"]=ao["[object WeakMap]"]=!1;var co=Tt,fo=At,so=e(function(t,e){var n=e&&!e.nodeType&&e,r=n&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===n,i=o&&ze.process;t.exports=function(){try{return i&&i.binding&&i.binding("util")}catch(t){}}()}),lo=so&&so.isTypedArray,po=lo?fo(lo):co,yo=po,ho=Object.prototype,bo=ho.hasOwnProperty,vo=Pt,go=Object.prototype,_o=Rt,jo=xt,So=jo(Object.keys,Object),mo=So,Oo=Object.prototype,wo=Oo.hasOwnProperty,Eo=kt,To=zt,Ao=Ft,Po=Nt,Ro=It,xo=Ut,ko=Ct,zo=Mt,Fo=200,No=Lt;$t.prototype.clear=Ro,$t.prototype["delete"]=xo,$t.prototype.get=ko,$t.prototype.has=zo,$t.prototype.set=No;var Io=$t,Uo="__lodash_hash_undefined__",Co=Bt,Mo=Dt;Vt.prototype.add=Vt.prototype.push=Co,Vt.prototype.has=Mo;var Lo=Vt,$o=Wt,Bo=Gt,Do=1,Vo=2,Wo=Kt,Go=Ie.Uint8Array,Ko=Go,qo=qt,Ho=Ht,Jo=1,Qo=2,Xo="[object Boolean]",Yo="[object Date]",Zo="[object Error]",ti="[object Map]",ei="[object Number]",ni="[object RegExp]",ri="[object Set]",oi="[object String]",ii="[object Symbol]",ui="[object ArrayBuffer]",ai="[object DataView]",ci=Ce?Ce.prototype:undefined,fi=ci?ci.valueOf:undefined,si=Jt,li=Qt,pi=Xt,di=Yt,yi=Zt,hi=Object.prototype,bi=hi.propertyIsEnumerable,vi=Object.getOwnPropertySymbols,gi=vi?function(t){return null==t?[]:(t=Object(t),di(vi(t),function(e){return bi.call(t,e)}))}:yi,_i=gi,ji=te,Si=1,mi=Object.prototype,Oi=mi.hasOwnProperty,wi=ee,Ei=Nn(Ie,"DataView"),Ti=Ei,Ai=Nn(Ie,"Promise"),Pi=Ai,Ri=Nn(Ie,"Set"),xi=Ri,ki=Nn(Ie,"WeakMap"),zi=ki,Fi=wn(Ti),Ni=wn(ur),Ii=wn(Pi),Ui=wn(xi),Ci=wn(zi),Mi=Je;(Ti&&"[object DataView]"!=Mi(new Ti(new ArrayBuffer(1)))||ur&&"[object Map]"!=Mi(new ur)||Pi&&"[object Promise]"!=Mi(Pi.resolve())||xi&&"[object Set]"!=Mi(new xi)||zi&&"[object WeakMap]"!=Mi(new zi))&&(Mi=function(t){var e=Je(t),n="[object Object]"==e?t.constructor:undefined,r=n?wn(n):"";if(r)switch(r){case Fi:return"[object DataView]";case Ni:return"[object Map]";case Ii:return"[object Promise]";case Ui:return"[object Set]";case Ci:return"[object WeakMap]"}return e});var Li=Mi,$i=1,Bi="[object Arguments]",Di="[object Array]",Vi="[object Object]",Wi=Object.prototype,Gi=Wi.hasOwnProperty,Ki=ne,qi=re,Hi=1,Ji=2,Qi=oe,Xi=ie,Yi=ue,Zi=ae,tu=ce,eu=fe,nu=se,ru=le,ou=1,iu=2,uu=pe,au=de,cu=ye,fu=he,su=be,lu=ve,pu=ge,du=_e,yu=Vr(!0),hu=yu,bu=je,vu=Se,gu=vu(bu,!0),_u=gu,ju=me,Su=Oe,mu=undefined&&undefined.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Ou=undefined&&undefined.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},wu="Redux_Tiles_";t.createTile=Ae,t.createSyncTile=Pe,t.createReducers=ct,t.createActions=p,t.createSelectors=ft,t.createMiddleware=pt,t.createEntities=st,Object.defineProperty(t,"__esModule",{value:!0})});