Comparing version 2.5.3 to 2.5.4
# crio changelog | ||
#### 2.5.4 | ||
* Remove try / catch from hash function (performance improvement of ~11% across the board) | ||
* Change native key checker to use map instead of array to avoid usage of indexOf | ||
#### 2.5.3 | ||
* Micro-optimizations for cloning / merging arrays and objects | ||
#### 2.5.2 | ||
* Improve performance of mapping ReactElements by not attempting to stringify it (recursive object, just assume its always new) | ||
#### 2.5.1 | ||
* Fix ReactElements not being treated as immutable and attempting to be crioed | ||
#### 2.5.0 | ||
* Add `forEach` to `CrioObject` API | ||
#### 2.4.0 | ||
@@ -62,2 +78,2 @@ * Add `clear` to both `CrioArray` and `CrioObject` APIs | ||
#### 1.0.0 | ||
* Initial release! | ||
* Initial release! |
@@ -1,1 +0,1 @@ | ||
var crio=function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){t.exports=e(1)},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function i(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.CrioObject=n.CrioArray=n.isCrio=n.getRealValue=n.mergeOnDeepMatch=void 0;var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();e(2),e(56),e(59),e(63);var u=e(65),a=Array.prototype,c=Object.assign,f=Object.entries,s=Object.freeze,l=Object.keys,h=Object.prototype,y=Object.values,v=["$$hashCode","$$type","length"],p=!0,g=function(t){return p?t:s(t)},d=function(t,n){return(0,u.isCrio)(t)?t:(0,u.isArray)(t)?new w(t,n):(0,u.isObject)(t)?new E(t,n):t},b=function(t){return(0,u.isArray)(t)?(0,u.shallowCloneArray)(t):(0,u.shallowCloneObject)(t)},O=function(t,n,e){var r=(0,u.getHashIfChanged)(t,n);return r!==!1?new e(n,r):t},m=function(t,n,e,r){var o=n.length-1,a=b(t),f=a,s=void 0;return(0,u.forEach)(n,function(t,n){s=a[t],(0,u.isCrio)(s)?a[t]=b(s):a[t]={},n===o?a[t]=c.apply(void 0,[a[t]].concat(i(e))):a=a[t]}),O(t,f,r)},k=function(t,n){for(var e=n.length,r=e-1,i=b(t),o=i,a=void 0,c=-1,f=!1;++c<e;){var s=n[c];if(c===r&&(f=!0,delete i[s]),(0,u.isUndefined)(i[s]))break;a=i[s],(0,u.isCrio)(a)&&(i[s]=b(a)),i=i[s]}return f?O(t,o,(0,u.isArray)(t)?w:E):t},w=function(){function t(n,e){var i=this;if(r(this,t),(0,u.isCrio)(n))return n;var o=n.length;(0,u.forEach)(n,function(t,n){i[n]=d(t)});var a=(0,u.isUndefined)(e)?(0,u.hash)(n):e;return(0,u.setNonEnumerable)(this,"$$hashCode",a),(0,u.setNonEnumerable)(this,"length",o),g(this)}return o(t,[{key:"clear",value:function(){return this.length?new t([]):this}},{key:"compact",value:function(){return this.filter(function(t){return!!t})}},{key:"concat",value:function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];if(!e.length)return this;var i=(0,u.shallowCloneArray)(this),o=a.concat.apply(i,e);return new t(o)}},{key:"copyWithin",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],e=arguments.length<=2||void 0===arguments[2]?this.length:arguments[2];if((0,u.isUndefined)(t))return this;var r=a.slice.call(this,n,e).filter(function(){return!0});return this.splice.apply(this,[t,r.length].concat(i(r)))}},{key:"delete",value:function(n){if(!this.has(n))return this;var e=+n,r=[];return(0,u.forEach)(this,function(t,n){n!==e&&r.push(t)}),new t(r)}},{key:"deleteIn",value:function(t){if(!(0,u.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');return t.length?k(this,t):this}},{key:"entries",value:function(){return f(this)}},{key:"equals",value:function(t){return!!(0,u.isCrio)(t)&&this.$$hashCode===t.$$hashCode}},{key:"every",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return a.every.call(this,t,n)}},{key:"fill",value:function(n){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?this.length:arguments[2],i=a.map.call(this,function(t,i){return i>=e&&i<r?n:t});return O(this,i,t)}},{key:"filter",value:function(n){var e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],r=a.filter.call(this,n,e);return O(this,r,t)}},{key:"find",value:function(t){for(var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1],e=-1,r=void 0;++e<this.length;)if(r=this[e],t.call(this,r,e,n))return r}},{key:"findIndex",value:function(t){for(var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1],e=-1;++e<this.length;)if(t.call(this,this[e],e,n))return e;return-1}},{key:"forEach",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];a.forEach.call(this,t,n)}},{key:"get",value:function(t){return this[t]}},{key:"getIn",value:function(t){if(!(0,u.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var n=t.length,e=n-1,r=this,i=-1,o=void 0;++i<n;){if(o=t[i],(0,u.isUndefined)(r[o])||i===e)return r[o];r=r[o]}}},{key:"has",value:function(t){return h.hasOwnProperty.call(this,t)}},{key:"includes",value:function(t){return!!~this.indexOf(t)}},{key:"indexOf",value:function(t){return a.indexOf.call(this,t)}},{key:"join",value:function(){var t=arguments.length<=0||void 0===arguments[0]?",":arguments[0];return a.join.call(this,t)}},{key:"keys",value:function(){return l(this)}},{key:"lastIndexOf",value:function(t){return a.lastIndexOf.call(this,t)}},{key:"map",value:function(n){var e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],r=a.map.call(this,n,e);return O(this,r,t)}},{key:"merge",value:function(){for(var n=(0,u.shallowCloneArray)(this),e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return(0,u.forEach)(r,function(t){n=n.map(function(e,r){return t[r]||n[r]})}),O(this,n,t)}},{key:"mergeIn",value:function(n){if(!(0,u.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return r.length?m(this,n,r,t):this}},{key:"mutate",value:function(t){var n=t.call(this,this.thaw(),this),e=(0,u.getHashIfChanged)(this,n);return e!==!1?d(n,e):this}},{key:"pluck",value:function(t){return this.map(function(n){if(n)return n[t]})}},{key:"pop",value:function(){return this.slice(0,this.length-1)}},{key:"push",value:function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return this.concat(n)}},{key:"reduce",value:function(t,n){var e=arguments.length<=2||void 0===arguments[2]?this:arguments[2],r=a.reduce.call(this,t,n,e),i=(0,u.getHashIfChanged)(this,r);return i!==!1?d(r,i):this}},{key:"reduceRight",value:function(t,n){var e=arguments.length<=2||void 0===arguments[2]?this:arguments[2],r=a.reduceRight.call(this,t,n,e),i=(0,u.getHashIfChanged)(this,r);return i!==!1?d(r,i):this}},{key:"reverse",value:function(){var n=[];return(0,u.forEachRight)(this,function(t){n.push(t)}),O(this,n,t)}},{key:"set",value:function(n,e){var r=+n;if(r>this.length)throw new Error("Cannot set a key for sparsed array on crio objects.");var i=[];return(0,u.forEach)(this,function(t,n){i.push(r===n?e:t)}),O(this,i,t)}},{key:"setIn",value:function(n,e){if(!(0,u.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');var r=n.length-1,i=(0,u.shallowCloneArray)(this),o=i,a=void 0;return(0,u.forEach)(n,function(t,n){n===r?i[t]=e:(a=i[t],i[t]=(0,u.isCrio)(a)?b(a):{},i=i[t])}),O(this,o,t)}},{key:"shift",value:function(){return this.slice(1,this.length)}},{key:"slice",value:function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return e.length?new t(a.slice.apply(this,e)):this}},{key:"some",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return a.some.call(this,t,n)}},{key:"sort",value:function(n){var e=(0,u.shallowCloneArray)(this),r=a.sort.call(e,n);return O(this,r,t)}},{key:"splice",value:function(){var n=(0,u.shallowCloneArray)(this);return n.splice.apply(n,arguments),O(this,n,t)}},{key:"thaw",value:function(){var t=[];return(0,u.forEach)(this,function(n,e){t[e]=(0,u.isCrio)(n)?n.thaw():n}),t}},{key:"toLocaleString",value:function(){return(0,u.stringify)(this)}},{key:"toObject",value:function(){return new E((0,u.shallowCloneObject)(this))}},{key:"toString",value:function(){return(0,u.stringify)(this)}},{key:"unique",value:function(){var t=[],n=!1;return this.filter(function(e){return n=!!~t.indexOf(e),n||t.push(e),!n})}},{key:"unshift",value:function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return e.length?((0,u.forEach)(this,function(t){e.push(t)}),new t(e)):this}},{key:"values",value:function(){return y(this)}},{key:Symbol.iterator,value:function(){var t=this,n=0;return{next:function(){var e=t[n],r=n>=t.length;return n++,{value:e,done:r}}}}},{key:"$$type",get:function(){return u.CRIO_ARRAY_TYPE}}]),t}(),E=function(){function t(n,e){var i=this;if(r(this,t),(0,u.isCrio)(n)||(0,u.isReactElement)(n))return n;var o=l(n),a=0;(0,u.forEachRight)(o,function(t){~v.indexOf(t)||(i[t]=d(n[t]),a++)});var c=(0,u.isUndefined)(e)?(0,u.hash)(n):e;return(0,u.setNonEnumerable)(this,"$$hashCode",c),(0,u.setNonEnumerable)(this,"length",a),g(this)}return o(t,[{key:"clear",value:function(){return this.length?new t({}):this}},{key:"delete",value:function(n){var e=this;if(!this.hasOwnProperty(n))return this;var r={};return(0,u.forEachRight)(this.keys(),function(t){t!==n&&(r[t]=e[t])}),new t(r)}},{key:"deleteIn",value:function(t){if(!(0,u.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');return t.length?k(this,t):this}},{key:"entries",value:function(){return f(this)}},{key:"equals",value:function(t){return!!(0,u.isCrio)(t)&&this.$$hashCode===t.$$hashCode}},{key:"get",value:function(t){return this[t]}},{key:"getIn",value:function(t){if(!(0,u.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var n=t.length,e=n-1,r=this,i=-1,o=void 0;++i<n;){if(o=t[i],(0,u.isUndefined)(r[o])||i===e)return r[o];r=r[o]}}},{key:"has",value:function(t){return this.hasOwnProperty(t)}},{key:"hasOwnProperty",value:function(t){return h.hasOwnProperty.call(this,t)}},{key:"isPrototypeOf",value:function(t){return h.isPrototypeOf.call(this,t)}},{key:"filter",value:function(n){var e=this,r=arguments.length<=1||void 0===arguments[1]?this:arguments[1],i={},o=void 0;return(0,u.forEach)(this.keys(),function(t){o=n.call(r,e[t],t,e),o&&(i[t]=e[t])}),O(this,i,t)}},{key:"forEach",value:function(t){var n=this,e=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return(0,u.forEach)(this.keys(),function(r){t.call(e,n[r],r,n)}),this}},{key:"keys",value:function(){return l(this)}},{key:"map",value:function(n){var e=this,r=arguments.length<=1||void 0===arguments[1]?this:arguments[1],i={};return(0,u.forEach)(this.keys(),function(t){i[t]=n.call(r,e[t],t,e)}),O(this,i,t)}},{key:"merge",value:function(){for(var n=(0,u.shallowCloneObject)(this),e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return(0,u.forEach)(r,function(t){c(n,t)}),O(this,n,t)}},{key:"mergeIn",value:function(n){if(!(0,u.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return r.length?m(this,n,r,t):this}},{key:"mutate",value:function(t){var n=t.call(this,this.thaw(),this),e=(0,u.getHashIfChanged)(this,n);return e!==!1?d(n,e):this}},{key:"propertyIsEnumerable",value:function(t){return h.propertyIsEnumerable.call(this,t)}},{key:"set",value:function(n,e){var r=this,i={};return(0,u.forEachRight)(this.keys(),function(t){t!==n&&(i[t]=r[t])}),i[n]=e,O(this,i,t)}},{key:"setIn",value:function(n,e){if(!(0,u.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');var r=n.length-1,i=(0,u.shallowCloneObject)(this),o=i,a=void 0;return(0,u.forEach)(n,function(t,n){n===r?i[t]=e:(a=i[t],i[t]=(0,u.isCrio)(a)?b(a):{},i=i[t])}),O(this,o,t)}},{key:"thaw",value:function(){var t=this,n=l(this),e={};return(0,u.forEachRight)(n,function(n){if(!~v.indexOf(n)){var r=t[n],i=(0,u.isCrio)(r)?r.thaw():r;(0,u.setStandard)(e,n,i,t.propertyIsEnumerable(n))}}),e}},{key:"toArray",value:function(){return new w(this.values())}},{key:"toLocaleString",value:function(){return(0,u.stringify)(this)}},{key:"toString",value:function(){return(0,u.stringify)(this)}},{key:"valueOf",value:function(){return h.valueOf.call(this)}},{key:"values",value:function(){return y(this)}},{key:Symbol.iterator,value:function(){var t=this,n=l(this),e=0;return{next:function(){var r=n[e],i=t[r],o=e>=t.length;return e++,{value:i,done:o}}}}},{key:"$$type",get:function(){return u.CRIO_OBJECT_TYPE}}]),t}(),j=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return(0,u.isArray)(t)?new w(t):(0,u.isObject)(t)?new E(t):t};n.mergeOnDeepMatch=m,n.getRealValue=d,n.isCrio=u.isCrio,n.CrioArray=w,n.CrioObject=E,n.default=j},function(t,n,e){e(3),e(52),e(54),e(55),t.exports=e(9).Symbol},function(t,n,e){"use strict";var r=e(4),i=e(5),o=e(6),u=e(8),a=e(18),c=e(22).KEY,f=e(7),s=e(23),l=e(24),h=e(19),y=e(25),v=e(26),p=e(27),g=e(29),d=e(42),b=e(45),O=e(12),m=e(32),k=e(16),w=e(17),E=e(46),j=e(49),x=e(51),C=e(11),S=e(30),A=x.f,P=C.f,_=j.f,I=r.Symbol,$=r.JSON,R=$&&$.stringify,M="prototype",T=y("_hidden"),N=y("toPrimitive"),F={}.propertyIsEnumerable,U=s("symbol-registry"),Y=s("symbols"),H=s("op-symbols"),D=Object[M],J="function"==typeof I,z=r.QObject,W=!z||!z[M]||!z[M].findChild,B=o&&f(function(){return 7!=E(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=A(D,n);r&&delete D[n],P(t,n,e),r&&t!==D&&P(D,n,r)}:P,q=function(t){var n=Y[t]=E(I[M]);return n._k=t,n},G=J&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},K=function(t,n,e){return t===D&&K(H,n,e),O(t),n=k(n,!0),O(e),i(Y,n)?(e.enumerable?(i(t,T)&&t[T][n]&&(t[T][n]=!1),e=E(e,{enumerable:w(0,!1)})):(i(t,T)||P(t,T,w(1,{})),t[T][n]=!0),B(t,n,e)):P(t,n,e)},L=function(t,n){O(t);for(var e,r=d(n=m(n)),i=0,o=r.length;o>i;)K(t,e=r[i++],n[e]);return t},V=function(t,n){return void 0===n?E(t):L(E(t),n)},Q=function(t){var n=F.call(this,t=k(t,!0));return!(this===D&&i(Y,t)&&!i(H,t))&&(!(n||!i(this,t)||!i(Y,t)||i(this,T)&&this[T][t])||n)},X=function(t,n){if(t=m(t),n=k(n,!0),t!==D||!i(Y,n)||i(H,n)){var e=A(t,n);return!e||!i(Y,n)||i(t,T)&&t[T][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=_(m(t)),r=[],o=0;e.length>o;)i(Y,n=e[o++])||n==T||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===D,r=_(e?H:m(t)),o=[],u=0;r.length>u;)!i(Y,n=r[u++])||e&&!i(D,n)||o.push(Y[n]);return o};J||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(H,e),i(this,T)&&i(this[T],t)&&(this[T][t]=!1),B(this,t,w(1,e))};return o&&W&&B(D,t,{configurable:!0,set:n}),q(t)},a(I[M],"toString",function(){return this._k}),x.f=X,C.f=K,e(50).f=j.f=Z,e(44).f=Q,e(43).f=tt,o&&!e(28)&&a(D,"propertyIsEnumerable",Q,!0),v.f=function(t){return q(y(t))}),u(u.G+u.W+u.F*!J,{Symbol:I});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)y(nt[et++]);for(var nt=S(y.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{"for":function(t){return i(U,t+="")?U[t]:U[t]=I(t)},keyFor:function(t){if(G(t))return g(U,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!J,"Object",{create:V,defineProperty:K,defineProperties:L,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),$&&u(u.S+u.F*(!J||f(function(){var t=I();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&b(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!G(n))return n}),r[1]=n,R.apply($,r)}}}),I[M][N]||e(10)(I[M],N,I[M].valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){t.exports=!e(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,e){var r=e(4),i=e(9),o=e(10),u=e(18),a=e(20),c="prototype",f=function(t,n,e){var s,l,h,y,v=t&f.F,p=t&f.G,g=t&f.S,d=t&f.P,b=t&f.B,O=p?r:g?r[n]||(r[n]={}):(r[n]||{})[c],m=p?i:i[n]||(i[n]={}),k=m[c]||(m[c]={});p&&(e=n);for(s in e)l=!v&&O&&void 0!==O[s],h=(l?O:e)[s],y=b&&l?a(h,r):d&&"function"==typeof h?a(Function.call,h):h,O&&u(O,s,h,t&f.U),m[s]!=h&&o(m,s,y),d&&k[s]!=h&&(k[s]=h)};r.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(11),i=e(17);t.exports=e(6)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(12),i=e(14),o=e(16),u=Object.defineProperty;n.f=e(6)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(a){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(6)&&!e(7)(function(){return 7!=Object.defineProperty(e(15)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(13),i=e(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(13);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(4),i=e(10),o=e(5),u=e(19)("src"),a="toString",c=Function[a],f=(""+c).split(a);e(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,a){var c="function"==typeof e;c&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(c&&(o(e,u)||i(e,u,t[n]?""+t[n]:f.join(String(n)))),t===r?t[n]=e:a?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,a,function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(21);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(19)("meta"),i=e(13),o=e(5),u=e(11).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(7)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},y=function(t){return f&&v.NEED&&c(t)&&!o(t,r)&&s(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:y}},function(t,n,e){var r=e(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){var r=e(11).f,i=e(5),o=e(25)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(23)("wks"),i=e(19),o=e(4).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))};a.store=r},function(t,n,e){n.f=e(25)},function(t,n,e){var r=e(4),i=e(9),o=e(28),u=e(26),a=e(11).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n){t.exports=!1},function(t,n,e){var r=e(30),i=e(32);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,c=0;a>c;)if(o[e=u[c++]]===n)return e}},function(t,n,e){var r=e(31),i=e(41);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(5),i=e(32),o=e(36)(!1),u=e(40)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~o(f,e)||f.push(e));return f}},function(t,n,e){var r=e(33),i=e(35);t.exports=function(t){return r(i(t))}},function(t,n,e){var r=e(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(32),i=e(37),o=e(39);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=i(c.length),s=o(u,f);if(t&&e!=e){for(;f>s;)if(a=c[s++],a!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(38),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(38),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(23)("keys"),i=e(19);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(30),i=e(43),o=e(44);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),c=o.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(12),i=e(47),o=e(41),u=e(40)("IE_PROTO"),a=function(){},c="prototype",f=function(){var t,n=e(15)("iframe"),r=o.length,i=">";for(n.style.display="none",e(48).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+i),t.close(),f=t.F;r--;)delete f[c][o[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[c]=r(t),e=new a,a[c]=null,e[u]=t):e=f(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(11),i=e(12),o=e(30);t.exports=e(6)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){t.exports=e(4).document&&document.documentElement},function(t,n,e){var r=e(32),i=e(50).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(31),i=e(41).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(44),i=e(17),o=e(32),u=e(16),a=e(5),c=e(14),f=Object.getOwnPropertyDescriptor;n.f=e(6)?f:function(t,n){if(t=o(t),n=u(n,!0),c)try{return f(t,n)}catch(e){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){"use strict";var r=e(53),i={};i[e(25)("toStringTag")]="z",i+""!="[object z]"&&e(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,n,e){var r=e(34),i=e(25)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){e(27)("asyncIterator")},function(t,n,e){e(27)("observable")},function(t,n,e){e(57),t.exports=e(9).Object.entries},function(t,n,e){var r=e(8),i=e(58)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){var r=e(30),i=e(32),o=e(44).f;t.exports=function(t){return function(n){for(var e,u=i(n),a=r(u),c=a.length,f=0,s=[];c>f;)o.call(u,e=a[f++])&&s.push(t?[e,u[e]]:u[e]);return s}}},function(t,n,e){e(60),t.exports=e(9).Object.keys},function(t,n,e){var r=e(61),i=e(30);e(62)("keys",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(35);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(8),i=e(9),o=e(7);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){e(64),t.exports=e(9).Object.values},function(t,n,e){var r=e(8),i=e(58)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0}),n.stringifySerializerForHash=n.stringify=n.shallowCloneObject=n.shallowCloneArray=n.setStandard=n.setNonEnumerable=n.isUndefined=n.isObject=n.isReactElement=n.isCrio=n.isArray=n.hash=n.getHashIfChanged=n.forEachRight=n.forEach=n.CRIO_OBJECT_TYPE=n.CRIO_ARRAY_TYPE=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(66),u=r(o),a="CrioArray",c="CrioObject",f="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,s={maxDepth:3},l={maxDepth:10,indent:" "},h=(0,u.default)(l),y=(0,u.default)(s),v="[object Array]",p="[object Object]",g=-1,d=function(t){return!!t&&(j(t)===v||t.$$type===a)},b=function(t){return!!t&&(t.$$type===a||t.$$type===c)},O=function(t){return!!t&&(t.$$type?t.$$type===c:j(t)===p)},m=function(t){return"object"===("undefined"==typeof t?"undefined":i(t))&&null!==t&&t.$$typeof===f},k=function(t){return void 0===t},w=function(t,n,e){for(var r=t.length,i=-1;++i<r;)n.call(e,t[i],i,t)},E=function(t,n,e){for(var r=t.length;r--;)n.call(e,t[r],r,t)},j=function(t){return Object.prototype.toString.call(t)},x=function(t,n){return"function"==typeof n?n.toString():m(n)?"ReactElement"+ ++g:n},C=function(t){var n=void 0;try{n=JSON.stringify(t,x)}catch(e){n=y(t)}for(var r=5381,i=n.length;i;)r=33*r^n.charCodeAt(--i);return r>>>0},S=function(t,n){var e=C(n);return t.$$hashCode!==e&&e},A=function(t){var n=new Array(t.length);return w(t,function(t,e){n[e]=t}),n},P=function(t){var n=Object.keys(t),e={};return E(n,function(n){e[n]=t[n]}),e},_=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!1,value:e,writable:!1})},I=function(t,n,e){var r=arguments.length<=3||void 0===arguments[3]||arguments[3];Object.defineProperty(t,n,{configurable:!0,enumerable:r,value:e,writable:!0})};n.CRIO_ARRAY_TYPE=a,n.CRIO_OBJECT_TYPE=c,n.forEach=w,n.forEachRight=E,n.getHashIfChanged=S,n.hash=C,n.isArray=d,n.isCrio=b,n.isReactElement=m,n.isObject=O,n.isUndefined=k,n.setNonEnumerable=_,n.setStandard=I,n.shallowCloneArray=A,n.shallowCloneObject=P,n.stringify=h,n.stringifySerializerForHash=x},function(t,n){t.exports=void 0}]); | ||
var crio=function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){t.exports=e(1)},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function i(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.CrioObject=n.CrioArray=n.isCrio=n.getRealValue=n.mergeOnDeepMatch=void 0;var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();e(2),e(56),e(59),e(63);var u=e(65),a=Object.assign,c=Object.entries,f=Object.freeze,s=Object.keys,l=Object.values,h=Array.prototype,y=Object.prototype,v={$$hashCode:!0,$$type:!0,length:!0},p=!0,g=function(t){return p?t:f(t)},d=function(t,n){return(0,u.isCrio)(t)?t:(0,u.isArray)(t)?new w(t,n):(0,u.isObject)(t)?new E(t,n):t},b=function(t){return(0,u.isArray)(t)?(0,u.shallowCloneArray)(t):(0,u.shallowCloneObject)(t)},O=function(t,n,e){var r=(0,u.getHashIfChanged)(t,n);return r!==!1?new e(n,r):t},m=function(t,n,e,r){var o=n.length-1,c=b(t),f=c,s=void 0;return(0,u.forEach)(n,function(t,n){s=c[t],(0,u.isCrio)(s)?c[t]=b(s):c[t]={},n===o?c[t]=a.apply(void 0,[c[t]].concat(i(e))):c=c[t]}),O(t,f,r)},k=function(t,n){for(var e=n.length,r=e-1,i=b(t),o=i,a=void 0,c=-1,f=!1;++c<e;){var s=n[c];if(c===r&&(f=!0,delete i[s]),(0,u.isUndefined)(i[s]))break;a=i[s],(0,u.isCrio)(a)&&(i[s]=b(a)),i=i[s]}return f?O(t,o,(0,u.isArray)(t)?w:E):t},w=function(){function t(n,e){var i=this;if(r(this,t),(0,u.isCrio)(n))return n;(0,u.forEach)(n,function(t,n){i[n]=d(t)});var o=(0,u.isUndefined)(e)?(0,u.hash)(n):e;return(0,u.setNonEnumerable)(this,"$$hashCode",o),(0,u.setNonEnumerable)(this,"length",n.length),g(this)}return o(t,[{key:"clear",value:function(){return this.length?new t([]):this}},{key:"compact",value:function(){return this.filter(function(t){return!!t})}},{key:"concat",value:function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];if(!e.length)return this;var i=(0,u.shallowCloneArray)(this),o=h.concat.apply(i,e);return new t(o)}},{key:"copyWithin",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],e=arguments.length<=2||void 0===arguments[2]?this.length:arguments[2];if((0,u.isUndefined)(t))return this;var r=h.slice.call(this,n,e).filter(function(){return!0});return this.splice.apply(this,[t,r.length].concat(i(r)))}},{key:"delete",value:function(n){if(!this.has(n))return this;var e=+n,r=[];return(0,u.forEach)(this,function(t,n){n!==e&&r.push(t)}),new t(r)}},{key:"deleteIn",value:function(t){if(!(0,u.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');return t.length?k(this,t):this}},{key:"entries",value:function(){return c(this)}},{key:"equals",value:function(t){return!!(0,u.isCrio)(t)&&this.$$hashCode===t.$$hashCode}},{key:"every",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return h.every.call(this,t,n)}},{key:"fill",value:function(n){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?this.length:arguments[2],i=h.map.call(this,function(t,i){return i>=e&&i<r?n:t});return O(this,i,t)}},{key:"filter",value:function(n){var e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],r=h.filter.call(this,n,e);return O(this,r,t)}},{key:"find",value:function(t){for(var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1],e=-1,r=void 0;++e<this.length;)if(r=this[e],t.call(this,r,e,n))return r}},{key:"findIndex",value:function(t){for(var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1],e=-1;++e<this.length;)if(t.call(this,this[e],e,n))return e;return-1}},{key:"forEach",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];h.forEach.call(this,t,n)}},{key:"get",value:function(t){return this[t]}},{key:"getIn",value:function(t){if(!(0,u.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var n=t.length,e=n-1,r=this,i=-1,o=void 0;++i<n;){if(o=t[i],(0,u.isUndefined)(r[o])||i===e)return r[o];r=r[o]}}},{key:"has",value:function(t){return y.hasOwnProperty.call(this,t)}},{key:"includes",value:function(t){return!!~this.indexOf(t)}},{key:"indexOf",value:function(t){return h.indexOf.call(this,t)}},{key:"join",value:function(){var t=arguments.length<=0||void 0===arguments[0]?",":arguments[0];return h.join.call(this,t)}},{key:"keys",value:function(){return s(this)}},{key:"lastIndexOf",value:function(t){return h.lastIndexOf.call(this,t)}},{key:"map",value:function(n){var e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],r=h.map.call(this,n,e);return O(this,r,t)}},{key:"merge",value:function(){for(var n=(0,u.shallowCloneArray)(this),e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return(0,u.forEach)(r,function(t){n=n.map(function(e,r){return t[r]||n[r]})}),O(this,n,t)}},{key:"mergeIn",value:function(n){if(!(0,u.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return r.length?m(this,n,r,t):this}},{key:"mutate",value:function(t){var n=t.call(this,this.thaw(),this),e=(0,u.getHashIfChanged)(this,n);return e!==!1?d(n,e):this}},{key:"pluck",value:function(t){return this.map(function(n){if(n)return n[t]})}},{key:"pop",value:function(){return this.slice(0,this.length-1)}},{key:"push",value:function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return this.concat(n)}},{key:"reduce",value:function(t,n){var e=arguments.length<=2||void 0===arguments[2]?this:arguments[2],r=h.reduce.call(this,t,n,e),i=(0,u.getHashIfChanged)(this,r);return i!==!1?d(r,i):this}},{key:"reduceRight",value:function(t,n){var e=arguments.length<=2||void 0===arguments[2]?this:arguments[2],r=h.reduceRight.call(this,t,n,e),i=(0,u.getHashIfChanged)(this,r);return i!==!1?d(r,i):this}},{key:"reverse",value:function(){var n=[];return(0,u.forEachRight)(this,function(t){n.push(t)}),O(this,n,t)}},{key:"set",value:function(n,e){var r=+n;if(r>this.length)throw new Error("Cannot set a key for sparsed array on crio objects.");var i=[];return(0,u.forEach)(this,function(t,n){i.push(r===n?e:t)}),O(this,i,t)}},{key:"setIn",value:function(n,e){if(!(0,u.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');var r=n.length-1,i=(0,u.shallowCloneArray)(this),o=i,a=void 0;return(0,u.forEach)(n,function(t,n){n===r?i[t]=e:(a=i[t],i[t]=(0,u.isCrio)(a)?b(a):{},i=i[t])}),O(this,o,t)}},{key:"shift",value:function(){return this.slice(1,this.length)}},{key:"slice",value:function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return e.length?new t(h.slice.apply(this,e)):this}},{key:"some",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return h.some.call(this,t,n)}},{key:"sort",value:function(n){var e=(0,u.shallowCloneArray)(this),r=h.sort.call(e,n);return O(this,r,t)}},{key:"splice",value:function(){var n=(0,u.shallowCloneArray)(this);return n.splice.apply(n,arguments),O(this,n,t)}},{key:"thaw",value:function(){var t=[];return(0,u.forEach)(this,function(n,e){t[e]=(0,u.isCrio)(n)?n.thaw():n}),t}},{key:"toLocaleString",value:function(){return(0,u.stringify)(this)}},{key:"toObject",value:function(){return new E((0,u.shallowCloneObject)(this))}},{key:"toString",value:function(){return(0,u.stringify)(this)}},{key:"unique",value:function(){var t=[],n=!1;return this.filter(function(e){return n=!!~t.indexOf(e),n||t.push(e),!n})}},{key:"unshift",value:function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return e.length?((0,u.forEach)(this,function(t){e.push(t)}),new t(e)):this}},{key:"values",value:function(){return l(this)}},{key:Symbol.iterator,value:function(){var t=this,n=0;return{next:function(){var e=t[n],r=n>=t.length;return n++,{value:e,done:r}}}}},{key:"$$type",get:function(){return u.CRIO_ARRAY_TYPE}}]),t}(),E=function(){function t(n,e){var i=this;if(r(this,t),(0,u.isCrio)(n)||(0,u.isReactElement)(n))return n;var o=s(n),a=0;(0,u.forEachRight)(o,function(t){v[t]||(i[t]=d(n[t]),a++)});var c=(0,u.isUndefined)(e)?(0,u.hash)(n):e;return(0,u.setNonEnumerable)(this,"$$hashCode",c),(0,u.setNonEnumerable)(this,"length",a),g(this)}return o(t,[{key:"clear",value:function(){return this.length?new t({}):this}},{key:"delete",value:function(n){var e=this;if(!this.hasOwnProperty(n))return this;var r={};return(0,u.forEachRight)(this.keys(),function(t){t!==n&&(r[t]=e[t])}),new t(r)}},{key:"deleteIn",value:function(t){if(!(0,u.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');return t.length?k(this,t):this}},{key:"entries",value:function(){return c(this)}},{key:"equals",value:function(t){return!!(0,u.isCrio)(t)&&this.$$hashCode===t.$$hashCode}},{key:"get",value:function(t){return this[t]}},{key:"getIn",value:function(t){if(!(0,u.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var n=t.length,e=n-1,r=this,i=-1,o=void 0;++i<n;){if(o=t[i],(0,u.isUndefined)(r[o])||i===e)return r[o];r=r[o]}}},{key:"has",value:function(t){return this.hasOwnProperty(t)}},{key:"hasOwnProperty",value:function(t){return y.hasOwnProperty.call(this,t)}},{key:"isPrototypeOf",value:function(t){return y.isPrototypeOf.call(this,t)}},{key:"filter",value:function(n){var e=this,r=arguments.length<=1||void 0===arguments[1]?this:arguments[1],i={},o=void 0;return(0,u.forEach)(this.keys(),function(t){o=n.call(r,e[t],t,e),o&&(i[t]=e[t])}),O(this,i,t)}},{key:"forEach",value:function(t){var n=this,e=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return(0,u.forEach)(this.keys(),function(r){t.call(e,n[r],r,n)}),this}},{key:"keys",value:function(){return s(this)}},{key:"map",value:function(n){var e=this,r=arguments.length<=1||void 0===arguments[1]?this:arguments[1],i={};return(0,u.forEach)(this.keys(),function(t){i[t]=n.call(r,e[t],t,e)}),O(this,i,t)}},{key:"merge",value:function(){for(var n=(0,u.shallowCloneObject)(this),e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return(0,u.forEach)(r,function(t){a(n,t)}),O(this,n,t)}},{key:"mergeIn",value:function(n){if(!(0,u.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return r.length?m(this,n,r,t):this}},{key:"mutate",value:function(t){var n=t.call(this,this.thaw(),this),e=(0,u.getHashIfChanged)(this,n);return e!==!1?d(n,e):this}},{key:"propertyIsEnumerable",value:function(t){return y.propertyIsEnumerable.call(this,t)}},{key:"set",value:function(n,e){var r=this,i={};return(0,u.forEachRight)(this.keys(),function(t){t!==n&&(i[t]=r[t])}),i[n]=e,O(this,i,t)}},{key:"setIn",value:function(n,e){if(!(0,u.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');var r=n.length-1,i=(0,u.shallowCloneObject)(this),o=i,a=void 0;return(0,u.forEach)(n,function(t,n){n===r?i[t]=e:(a=i[t],i[t]=(0,u.isCrio)(a)?b(a):{},i=i[t])}),O(this,o,t)}},{key:"thaw",value:function(){var t=this,n=s(this),e={};return(0,u.forEachRight)(n,function(n){if(!v[n]){var r=t[n],i=(0,u.isCrio)(r)?r.thaw():r;(0,u.setStandard)(e,n,i,t.propertyIsEnumerable(n))}}),e}},{key:"toArray",value:function(){return new w(this.values())}},{key:"toLocaleString",value:function(){return(0,u.stringify)(this)}},{key:"toString",value:function(){return(0,u.stringify)(this)}},{key:"valueOf",value:function(){return y.valueOf.call(this)}},{key:"values",value:function(){return l(this)}},{key:Symbol.iterator,value:function(){var t=this,n=s(this),e=0;return{next:function(){var r=n[e],i=t[r],o=e>=t.length;return e++,{value:i,done:o}}}}},{key:"$$type",get:function(){return u.CRIO_OBJECT_TYPE}}]),t}(),j=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return(0,u.isArray)(t)?new w(t):(0,u.isObject)(t)?new E(t):t};n.mergeOnDeepMatch=m,n.getRealValue=d,n.isCrio=u.isCrio,n.CrioArray=w,n.CrioObject=E,n.default=j},function(t,n,e){e(3),e(52),e(54),e(55),t.exports=e(9).Symbol},function(t,n,e){"use strict";var r=e(4),i=e(5),o=e(6),u=e(8),a=e(18),c=e(22).KEY,f=e(7),s=e(23),l=e(24),h=e(19),y=e(25),v=e(26),p=e(27),g=e(29),d=e(42),b=e(45),O=e(12),m=e(32),k=e(16),w=e(17),E=e(46),j=e(49),x=e(51),C=e(11),S=e(30),A=x.f,P=C.f,_=j.f,I=r.Symbol,$=r.JSON,R=$&&$.stringify,M="prototype",T=y("_hidden"),N=y("toPrimitive"),F={}.propertyIsEnumerable,U=s("symbol-registry"),Y=s("symbols"),H=s("op-symbols"),J=Object[M],z="function"==typeof I,D=r.QObject,W=!D||!D[M]||!D[M].findChild,B=o&&f(function(){return 7!=E(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=A(J,n);r&&delete J[n],P(t,n,e),r&&t!==J&&P(J,n,r)}:P,q=function(t){var n=Y[t]=E(I[M]);return n._k=t,n},G=z&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},K=function(t,n,e){return t===J&&K(H,n,e),O(t),n=k(n,!0),O(e),i(Y,n)?(e.enumerable?(i(t,T)&&t[T][n]&&(t[T][n]=!1),e=E(e,{enumerable:w(0,!1)})):(i(t,T)||P(t,T,w(1,{})),t[T][n]=!0),B(t,n,e)):P(t,n,e)},L=function(t,n){O(t);for(var e,r=d(n=m(n)),i=0,o=r.length;o>i;)K(t,e=r[i++],n[e]);return t},V=function(t,n){return void 0===n?E(t):L(E(t),n)},Q=function(t){var n=F.call(this,t=k(t,!0));return!(this===J&&i(Y,t)&&!i(H,t))&&(!(n||!i(this,t)||!i(Y,t)||i(this,T)&&this[T][t])||n)},X=function(t,n){if(t=m(t),n=k(n,!0),t!==J||!i(Y,n)||i(H,n)){var e=A(t,n);return!e||!i(Y,n)||i(t,T)&&t[T][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=_(m(t)),r=[],o=0;e.length>o;)i(Y,n=e[o++])||n==T||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===J,r=_(e?H:m(t)),o=[],u=0;r.length>u;)!i(Y,n=r[u++])||e&&!i(J,n)||o.push(Y[n]);return o};z||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===J&&n.call(H,e),i(this,T)&&i(this[T],t)&&(this[T][t]=!1),B(this,t,w(1,e))};return o&&W&&B(J,t,{configurable:!0,set:n}),q(t)},a(I[M],"toString",function(){return this._k}),x.f=X,C.f=K,e(50).f=j.f=Z,e(44).f=Q,e(43).f=tt,o&&!e(28)&&a(J,"propertyIsEnumerable",Q,!0),v.f=function(t){return q(y(t))}),u(u.G+u.W+u.F*!z,{Symbol:I});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)y(nt[et++]);for(var nt=S(y.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!z,"Symbol",{"for":function(t){return i(U,t+="")?U[t]:U[t]=I(t)},keyFor:function(t){if(G(t))return g(U,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!z,"Object",{create:V,defineProperty:K,defineProperties:L,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),$&&u(u.S+u.F*(!z||f(function(){var t=I();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&b(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!G(n))return n}),r[1]=n,R.apply($,r)}}}),I[M][N]||e(10)(I[M],N,I[M].valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){t.exports=!e(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,e){var r=e(4),i=e(9),o=e(10),u=e(18),a=e(20),c="prototype",f=function(t,n,e){var s,l,h,y,v=t&f.F,p=t&f.G,g=t&f.S,d=t&f.P,b=t&f.B,O=p?r:g?r[n]||(r[n]={}):(r[n]||{})[c],m=p?i:i[n]||(i[n]={}),k=m[c]||(m[c]={});p&&(e=n);for(s in e)l=!v&&O&&void 0!==O[s],h=(l?O:e)[s],y=b&&l?a(h,r):d&&"function"==typeof h?a(Function.call,h):h,O&&u(O,s,h,t&f.U),m[s]!=h&&o(m,s,y),d&&k[s]!=h&&(k[s]=h)};r.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(11),i=e(17);t.exports=e(6)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(12),i=e(14),o=e(16),u=Object.defineProperty;n.f=e(6)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(a){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(6)&&!e(7)(function(){return 7!=Object.defineProperty(e(15)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(13),i=e(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(13);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(4),i=e(10),o=e(5),u=e(19)("src"),a="toString",c=Function[a],f=(""+c).split(a);e(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,a){var c="function"==typeof e;c&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(c&&(o(e,u)||i(e,u,t[n]?""+t[n]:f.join(String(n)))),t===r?t[n]=e:a?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,a,function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(21);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(19)("meta"),i=e(13),o=e(5),u=e(11).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(7)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},y=function(t){return f&&v.NEED&&c(t)&&!o(t,r)&&s(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:y}},function(t,n,e){var r=e(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){var r=e(11).f,i=e(5),o=e(25)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(23)("wks"),i=e(19),o=e(4).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))};a.store=r},function(t,n,e){n.f=e(25)},function(t,n,e){var r=e(4),i=e(9),o=e(28),u=e(26),a=e(11).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n){t.exports=!1},function(t,n,e){var r=e(30),i=e(32);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,c=0;a>c;)if(o[e=u[c++]]===n)return e}},function(t,n,e){var r=e(31),i=e(41);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(5),i=e(32),o=e(36)(!1),u=e(40)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~o(f,e)||f.push(e));return f}},function(t,n,e){var r=e(33),i=e(35);t.exports=function(t){return r(i(t))}},function(t,n,e){var r=e(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(32),i=e(37),o=e(39);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=i(c.length),s=o(u,f);if(t&&e!=e){for(;f>s;)if(a=c[s++],a!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(38),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(38),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(23)("keys"),i=e(19);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(30),i=e(43),o=e(44);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),c=o.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(12),i=e(47),o=e(41),u=e(40)("IE_PROTO"),a=function(){},c="prototype",f=function(){var t,n=e(15)("iframe"),r=o.length,i=">";for(n.style.display="none",e(48).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+i),t.close(),f=t.F;r--;)delete f[c][o[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[c]=r(t),e=new a,a[c]=null,e[u]=t):e=f(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(11),i=e(12),o=e(30);t.exports=e(6)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){t.exports=e(4).document&&document.documentElement},function(t,n,e){var r=e(32),i=e(50).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(31),i=e(41).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(44),i=e(17),o=e(32),u=e(16),a=e(5),c=e(14),f=Object.getOwnPropertyDescriptor;n.f=e(6)?f:function(t,n){if(t=o(t),n=u(n,!0),c)try{return f(t,n)}catch(e){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){"use strict";var r=e(53),i={};i[e(25)("toStringTag")]="z",i+""!="[object z]"&&e(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,n,e){var r=e(34),i=e(25)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){e(27)("asyncIterator")},function(t,n,e){e(27)("observable")},function(t,n,e){e(57),t.exports=e(9).Object.entries},function(t,n,e){var r=e(8),i=e(58)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){var r=e(30),i=e(32),o=e(44).f;t.exports=function(t){return function(n){for(var e,u=i(n),a=r(u),c=a.length,f=0,s=[];c>f;)o.call(u,e=a[f++])&&s.push(t?[e,u[e]]:u[e]);return s}}},function(t,n,e){e(60),t.exports=e(9).Object.keys},function(t,n,e){var r=e(61),i=e(30);e(62)("keys",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(35);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(8),i=e(9),o=e(7);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){e(64),t.exports=e(9).Object.values},function(t,n,e){var r=e(8),i=e(58)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0}),n.stringifySerializerForHash=n.stringify=n.shallowCloneObject=n.shallowCloneArray=n.setStandard=n.setNonEnumerable=n.isUndefined=n.isObject=n.isReactElement=n.isCrio=n.isArray=n.hash=n.getHashIfChanged=n.forEachRight=n.forEach=n.CRIO_OBJECT_TYPE=n.CRIO_ARRAY_TYPE=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(66),u=r(o),a="CrioArray",c="CrioObject",f="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,s={maxDepth:10,indent:" "},l=(0,u.default)(s),h="[object Array]",y="[object Object]",v=-1,p=function(t){return!!t&&(w(t)===h||t.$$type===a)},g=function(t){return!!t&&(t.$$type===a||t.$$type===c)},d=function(t){return!!t&&(t.$$type?t.$$type===c:w(t)===y)},b=function(t){return"object"===("undefined"==typeof t?"undefined":i(t))&&null!==t&&t.$$typeof===f},O=function(t){return void 0===t},m=function(t,n,e){for(var r=t.length,i=-1;++i<r;)n.call(e,t[i],i,t)},k=function(t,n,e){for(var r=t.length;r--;)n.call(e,t[r],r,t)},w=function(t){return Object.prototype.toString.call(t)},E=function(t,n){return b(n)?"ReactElement"+ ++v:"function"==typeof n?n.toString():n},j=function(t){return JSON.stringify(t,E)},x=function(t){for(var n=j(t),e=5381,r=n.length;r;)e=33*e^n.charCodeAt(--r);return e>>>0},C=function(t,n){var e=x(n);return t.$$hashCode!==e&&e},S=function(t){var n=new Array(t.length);return m(t,function(t,e){n[e]=t}),n},A=function(t){var n=Object.keys(t),e={};return k(n,function(n){e[n]=t[n]}),e},P=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!1,value:e,writable:!1})},_=function(t,n,e){var r=arguments.length<=3||void 0===arguments[3]||arguments[3];Object.defineProperty(t,n,{configurable:!0,enumerable:r,value:e,writable:!0})};n.CRIO_ARRAY_TYPE=a,n.CRIO_OBJECT_TYPE=c,n.forEach=m,n.forEachRight=k,n.getHashIfChanged=C,n.hash=x,n.isArray=p,n.isCrio=g,n.isReactElement=b,n.isObject=d,n.isUndefined=O,n.setNonEnumerable=P,n.setStandard=_,n.shallowCloneArray=S,n.shallowCloneObject=A,n.stringify=l,n.stringifySerializerForHash=E},function(t,n){t.exports=void 0}]); |
@@ -24,12 +24,16 @@ 'use strict'; | ||
var objectAssign = Object.assign; | ||
var objectEntries = Object.entries; | ||
var objectFreeze = Object.freeze; | ||
var objectKeys = Object.keys; | ||
var objectValues = Object.values; | ||
var ARRAY_PROTOTYPE = Array.prototype; | ||
var OBJECT_ASSIGN = Object.assign; | ||
var OBJECT_ENTRIES = Object.entries; | ||
var OBJECT_FREEZE = Object.freeze; | ||
var OBJECT_KEYS = Object.keys; | ||
var OBJECT_PROTOTYPE = Object.prototype; | ||
var OBJECT_VALUES = Object.values; | ||
var NATIVE_KEYS = ['$$hashCode', '$$type', 'length']; | ||
var NATIVE_KEYS = { | ||
$$hashCode: true, | ||
$$type: true, | ||
length: true | ||
}; | ||
@@ -46,3 +50,3 @@ var IS_PRODUCTION = process.env.NODE_ENV === 'production'; | ||
var freezeIfNotProduction = function freezeIfNotProduction(crio) { | ||
return IS_PRODUCTION ? crio : OBJECT_FREEZE(crio); | ||
return IS_PRODUCTION ? crio : objectFreeze(crio); | ||
}; | ||
@@ -133,3 +137,3 @@ | ||
if (keyIndex === lastIndex) { | ||
currentObject[key] = OBJECT_ASSIGN.apply(undefined, [currentObject[key]].concat(_toConsumableArray(values))); | ||
currentObject[key] = objectAssign.apply(undefined, [currentObject[key]].concat(_toConsumableArray(values))); | ||
} else { | ||
@@ -200,4 +204,2 @@ currentObject = currentObject[key]; | ||
var length = array.length; | ||
(0, _utils.forEach)(array, function (item, index) { | ||
@@ -210,3 +212,3 @@ _this[index] = getRealValue(item); | ||
(0, _utils.setNonEnumerable)(this, '$$hashCode', hashCode); | ||
(0, _utils.setNonEnumerable)(this, 'length', length); | ||
(0, _utils.setNonEnumerable)(this, 'length', array.length); | ||
@@ -361,3 +363,3 @@ return freezeIfNotProduction(this); | ||
value: function entries() { | ||
return OBJECT_ENTRIES(this); | ||
return objectEntries(this); | ||
} | ||
@@ -617,3 +619,3 @@ | ||
value: function keys() { | ||
return OBJECT_KEYS(this); | ||
return objectKeys(this); | ||
} | ||
@@ -1096,3 +1098,3 @@ | ||
value: function values() { | ||
return OBJECT_VALUES(this); | ||
return objectValues(this); | ||
} | ||
@@ -1147,3 +1149,3 @@ | ||
var keys = OBJECT_KEYS(object); | ||
var keys = objectKeys(object); | ||
@@ -1153,3 +1155,3 @@ var length = 0; | ||
(0, _utils.forEachRight)(keys, function (key) { | ||
if (!~NATIVE_KEYS.indexOf(key)) { | ||
if (!NATIVE_KEYS[key]) { | ||
_this3[key] = getRealValue(object[key]); | ||
@@ -1250,3 +1252,3 @@ | ||
value: function entries() { | ||
return OBJECT_ENTRIES(this); | ||
return objectEntries(this); | ||
} | ||
@@ -1416,3 +1418,3 @@ | ||
value: function keys() { | ||
return OBJECT_KEYS(this); | ||
return objectKeys(this); | ||
} | ||
@@ -1461,3 +1463,3 @@ | ||
(0, _utils.forEach)(objects, function (object) { | ||
OBJECT_ASSIGN(clone, object); | ||
objectAssign(clone, object); | ||
}); | ||
@@ -1601,3 +1603,3 @@ | ||
var propertyNames = OBJECT_KEYS(this); | ||
var propertyNames = objectKeys(this); | ||
@@ -1607,3 +1609,3 @@ var object = {}; | ||
(0, _utils.forEachRight)(propertyNames, function (key) { | ||
if (!~NATIVE_KEYS.indexOf(key)) { | ||
if (!NATIVE_KEYS[key]) { | ||
var value = _this9[key]; | ||
@@ -1676,3 +1678,3 @@ var cleanValue = (0, _utils.isCrio)(value) ? value.thaw() : value; | ||
value: function values() { | ||
return OBJECT_VALUES(this); | ||
return objectValues(this); | ||
} | ||
@@ -1691,3 +1693,3 @@ | ||
var keys = OBJECT_KEYS(this); | ||
var keys = objectKeys(this); | ||
@@ -1694,0 +1696,0 @@ var index = 0; |
@@ -20,5 +20,2 @@ 'use strict'; | ||
var STRINGIFIER_HASH_OPTIONS = { | ||
maxDepth: 3 | ||
}; | ||
var STRINGIFIER_OPTIONS = { | ||
@@ -30,3 +27,2 @@ maxDepth: 10, | ||
var stringify = (0, _stringifier2.default)(STRINGIFIER_OPTIONS); | ||
var stringifyForHash = (0, _stringifier2.default)(STRINGIFIER_HASH_OPTIONS); | ||
@@ -155,2 +151,6 @@ var ARRAY_TYPE = '[object Array]'; | ||
var stringifySerializerForHash = function stringifySerializerForHash(key, value) { | ||
if (isReactElement(value)) { | ||
return 'ReactElement' + ++reactElementCounter; | ||
} | ||
if (typeof value === 'function') { | ||
@@ -160,6 +160,2 @@ return value.toString(); | ||
if (isReactElement(value)) { | ||
return 'ReactElement' + ++reactElementCounter; | ||
} | ||
return value; | ||
@@ -169,2 +165,12 @@ }; | ||
/** | ||
* function to abstract the stringification process | ||
* | ||
* @param {array<any>|object} object | ||
* @returns {string} | ||
*/ | ||
var stringifyObject = function stringifyObject(object) { | ||
return JSON.stringify(object, stringifySerializerForHash); | ||
}; | ||
/** | ||
* convert object into unique hash value | ||
@@ -176,10 +182,4 @@ * | ||
var hash = function hash(object) { | ||
var string = void 0; | ||
var string = stringifyObject(object); | ||
try { | ||
string = JSON.stringify(object, stringifySerializerForHash); | ||
} catch (exception) { | ||
string = stringifyForHash(object); | ||
} | ||
var hashValue = 5381, | ||
@@ -186,0 +186,0 @@ index = string.length; |
@@ -73,3 +73,3 @@ { | ||
}, | ||
"version": "2.5.3" | ||
"version": "2.5.4" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
315462
2660