Comparing version 2.8.0 to 2.8.1
# crio changelog | ||
#### 2.8.1 | ||
* Fix a couple issues centered around `.entries()` for both `CrioArray` and `CrioObject` | ||
#### 2.8.0 | ||
@@ -4,0 +7,0 @@ * Switch to using `Symbol` instead of string key creation for internal `hashCode` and `type` properties to prevent potential naming conflicts |
@@ -1,1 +0,1 @@ | ||
var crio=function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,n,r){t.exports=r(1)},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0,n.CrioObject=n.CrioArray=n.mergeOnDeepMatch=n.isCrio=n.getRealValue=n.deleteOnDeepMatch=void 0;var i=function(){function t(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}return function(n,r,e){return r&&t(n.prototype,r),e&&t(n,e),n}}();r(2),r(56),r(59),r(63);var u=r(65),c=e(u),f=r(66),a=Object.assign,s=Object.entries,l=Object.freeze,h=Object.keys,p=Object.values,y=Array.prototype,v=Object.prototype,g=!0,d=function(t){return g?t:l(t)},b=function(t,n){return(0,f.isCrio)(t)||(0,f.isReactElement)(t)?t:(0,f.isArray)(t)?new S(t,n):(0,f.isObject)(t)?new j(t,n):t},O=function(t){return(0,f.isArray)(t)?(0,f.shallowCloneArray)(t):(0,f.shallowCloneObject)(t)},m=function(t,n,r){var e=(0,f.getHashIfChanged)(t,n);return e!==!1?new r(n,e):t},w=function(t,n,r,e){var o=n.length-1,i=O(t),u=i,c=void 0;return(0,f.forEach)(n,function(t,n){c=i[t],(0,f.isCrio)(c)?i[t]=O(c):i[t]={},n===o?i[t]=a.apply(void 0,[i[t]].concat(r)):i=i[t]}),m(t,u,e)},E=function(t,n,r){for(var e=n.length,o=e-1,i=O(t),u=i,c=void 0,a=-1,s=!1;++a<e;){var l=n[a];if(a===o&&(s=!0,delete i[l]),(0,f.isUndefined)(i[l]))break;c=i[l],(0,f.isCrio)(c)&&(i[l]=O(c)),i=i[l]}return s?m(t,u,r):t},S=function(){function t(n,r){var e=this;if(o(this,t),(0,f.isCrio)(n))return n;(0,f.forEach)(n,function(t,n){e[n]=b(t)});var i=(0,f.isUndefined)(r)?(0,c.default)(n):r;return(0,f.setNonEnumerable)(this,f.HASH_CODE_SYMBOL,i),(0,f.setNonEnumerable)(this,"length",n.length),d(this)}return t.prototype.clear=function(){return this.length?new t([]):this},t.prototype.compact=function(){return this.filter(function(t){return!!t})},t.prototype.concat=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];if(!r.length)return this;var o=(0,f.shallowCloneArray)(this),i=y.concat.apply(o,r);return new t(i)},t.prototype.copyWithin=function(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?this.length:arguments[2];if((0,f.isUndefined)(t))return this;var e=y.slice.call(this,n,r).filter(function(){return!0});return this.splice.apply(this,[t,e.length].concat(e))},t.prototype.delete=function(n){if(!this.has(n))return this;var r=+n,e=[];return(0,f.forEach)(this,function(t,n){n!==r&&e.push(t)}),new t(e)},t.prototype.deleteIn=function(n){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');return n.length?E(this,n,t):this},t.prototype.entries=function(){return s(this)},t.prototype.equals=function(t){return!!(0,f.isCrio)(t)&&this[f.HASH_CODE_SYMBOL]===t[f.HASH_CODE_SYMBOL]},t.prototype.every=function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return y.every.call(this,t,n)},t.prototype.fill=function(n){var r=arguments.length<=1||void 0===arguments[1]?0:arguments[1],e=arguments.length<=2||void 0===arguments[2]?this.length:arguments[2],o=y.map.call(this,function(t,o){return o>=r&&o<e?n:t});return m(this,o,t)},t.prototype.filter=function(n){var r=arguments.length<=1||void 0===arguments[1]?this:arguments[1],e=y.filter.call(this,n,r);return m(this,e,t)},t.prototype.find=function(t){for(var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1],r=-1,e=void 0;++r<this.length;)if(e=this[r],t.call(this,e,r,n))return e},t.prototype.findIndex=function(t){for(var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1],r=-1;++r<this.length;)if(t.call(this,this[r],r,n))return r;return-1},t.prototype.first=function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0];return t===this.length?this:this.slice(0,t)},t.prototype.forEach=function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];y.forEach.call(this,t,n)},t.prototype.get=function(t){return this[t]},t.prototype.getIn=function(t){if(!(0,f.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var n=t.length,r=n-1,e=this,o=-1,i=void 0;++o<n;){if(i=t[o],(0,f.isUndefined)(e[i])||o===r)return e[i];e=e[i]}},t.prototype.has=function(t){return v.hasOwnProperty.call(this,t)},t.prototype.includes=function(t){return!!~this.indexOf(t)},t.prototype.indexOf=function(t){return y.indexOf.call(this,t)},t.prototype.join=function(){var t=arguments.length<=0||void 0===arguments[0]?",":arguments[0];return y.join.call(this,t)},t.prototype.keys=function(){return h(this)},t.prototype.last=function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0];return t===this.length?this:this.slice(this.length-t,this.length)},t.prototype.lastIndexOf=function(t){return y.lastIndexOf.call(this,t)},t.prototype.map=function(n){var r=this,e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],o=new Array(this.length);return(0,f.forEach)(this,function(t,i){o[i]=n.call(e,r[i],i,r)}),m(this,o,t)},t.prototype.merge=function(){for(var n=(0,f.shallowCloneArray)(this),r=arguments.length,e=Array(r),o=0;o<r;o++)e[o]=arguments[o];return(0,f.forEach)(e,function(t){n=n.map(function(r,e){return t[e]||n[e]})}),m(this,n,t)},t.prototype.mergeIn=function(n){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return e.length?w(this,n,e,t):this},t.prototype.mutate=function(t){var n=t.call(this,this.thaw(),this),r=(0,f.getHashIfChanged)(this,n);return r!==!1?b(n,r):this},t.prototype.pluck=function(t){return this.map(function(n){if(n)return n[t]})},t.prototype.pop=function(){return this.slice(0,this.length-1)},t.prototype.push=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.concat(n)},t.prototype.reduce=function(t,n){var r=arguments.length<=2||void 0===arguments[2]?this:arguments[2],e=y.reduce.call(this,t,n,r),o=(0,f.getHashIfChanged)(this,e);return o!==!1?b(e,o):this},t.prototype.reduceRight=function(t,n){var r=arguments.length<=2||void 0===arguments[2]?this:arguments[2],e=y.reduceRight.call(this,t,n,r),o=(0,f.getHashIfChanged)(this,e);return o!==!1?b(e,o):this},t.prototype.reverse=function(){var n=[];return(0,f.forEachRight)(this,function(t){n.push(t)}),m(this,n,t)},t.prototype.set=function(n,r){var e=+n;if(e>this.length)throw new Error("Cannot set a key for sparsed array on crio objects.");var o=[];return(0,f.forEach)(this,function(t,n){o.push(e===n?r:t)}),m(this,o,t)},t.prototype.setIn=function(n,r){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');var e=n.length-1,o=(0,f.shallowCloneArray)(this),i=o,u=void 0;return(0,f.forEach)(n,function(t,n){n===e?o[t]=r:(u=o[t],o[t]=(0,f.isCrio)(u)?O(u):{},o=o[t])}),m(this,i,t)},t.prototype.shift=function(){return this.slice(1,this.length)},t.prototype.slice=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return r.length?new t(y.slice.apply(this,r)):this},t.prototype.some=function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return y.some.call(this,t,n)},t.prototype.sort=function(n){var r=(0,f.shallowCloneArray)(this),e=y.sort.call(r,n);return m(this,e,t)},t.prototype.splice=function(){var n=(0,f.shallowCloneArray)(this);return n.splice.apply(n,arguments),m(this,n,t)},t.prototype.thaw=function(){var t=[];return(0,f.forEach)(this,function(n,r){t[r]=(0,f.isCrio)(n)?n.thaw():n}),t},t.prototype.toLocaleString=function(){return(0,f.stringify)(this)},t.prototype.toObject=function(){return new j((0,f.shallowCloneObject)(this))},t.prototype.toString=function(){return(0,f.stringify)(this)},t.prototype.unique=function(){var t=[],n=!1;return this.filter(function(r){return n=!!~t.indexOf(r),n||t.push(r),!n})},t.prototype.unshift=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return r.length?((0,f.forEach)(this,function(t){r.push(t)}),new t(r)):this},t.prototype.values=function(){return p(this)},t.prototype[Symbol.iterator]=function(){var t=this,n=0;return{next:function(){var r=t[n],e=n>=t.length;return n++,{value:r,done:e}}}},i(t,[{key:f.TYPE_SYMBOL,get:function(){return f.CRIO_ARRAY_TYPE}}]),t}(),j=function(){function t(n,r){var e=this;if(o(this,t),(0,f.isCrio)(n)||(0,f.isReactElement)(n))return n;var i=h(n),u=0;(0,f.forEachRight)(i,function(t){e[t]=b(n[t]),u++});var a=(0,f.isUndefined)(r)?(0,c.default)(n):r;return(0,f.setNonEnumerable)(this,f.HASH_CODE_SYMBOL,a),(0,f.setNonEnumerable)(this,"length",u),d(this)}return t.prototype.clear=function(){return this.length?new t({}):this},t.prototype.delete=function(n){var r=this;if(!this.hasOwnProperty(n))return this;var e={};return(0,f.forEachRight)(this.keys(),function(t){t!==n&&(e[t]=r[t])}),new t(e)},t.prototype.deleteIn=function(n){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');return n.length?E(this,n,t):this},t.prototype.entries=function(){return s(this)},t.prototype.equals=function(t){return!!(0,f.isCrio)(t)&&this[f.HASH_CODE_SYMBOL]===t[f.HASH_CODE_SYMBOL]},t.prototype.get=function(t){return this[t]},t.prototype.getIn=function(t){if(!(0,f.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var n=t.length,r=n-1,e=this,o=-1,i=void 0;++o<n;){if(i=t[o],(0,f.isUndefined)(e[i])||o===r)return e[i];e=e[i]}},t.prototype.has=function(t){return this.hasOwnProperty(t)},t.prototype.hasOwnProperty=function(t){return v.hasOwnProperty.call(this,t)},t.prototype.isPrototypeOf=function(t){return v.isPrototypeOf.call(this,t)},t.prototype.filter=function(n){var r=this,e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],o={},i=void 0;return(0,f.forEach)(this.keys(),function(t){i=n.call(e,r[t],t,r),i&&(o[t]=r[t])}),m(this,o,t)},t.prototype.forEach=function(t){var n=this,r=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return(0,f.forEach)(this.keys(),function(e){t.call(r,n[e],e,n)}),this},t.prototype.keys=function(){return h(this)},t.prototype.map=function(n){var r=this,e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],o={};return(0,f.forEach)(this.keys(),function(t){o[t]=n.call(e,r[t],t,r)}),m(this,o,t)},t.prototype.merge=function(){for(var n=(0,f.shallowCloneObject)(this),r=arguments.length,e=Array(r),o=0;o<r;o++)e[o]=arguments[o];return(0,f.forEach)(e,function(t){a(n,t)}),m(this,n,t)},t.prototype.mergeIn=function(n){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return e.length?w(this,n,e,t):this},t.prototype.mutate=function(t){var n=t.call(this,this.thaw(),this),r=(0,f.getHashIfChanged)(this,n);return r!==!1?b(n,r):this},t.prototype.propertyIsEnumerable=function(t){return v.propertyIsEnumerable.call(this,t)},t.prototype.set=function(n,r){var e=this,o={};return(0,f.forEachRight)(this.keys(),function(t){t!==n&&(o[t]=e[t])}),o[n]=r,m(this,o,t)},t.prototype.setIn=function(n,r){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');var e=n.length-1,o=(0,f.shallowCloneObject)(this),i=o,u=void 0;return(0,f.forEach)(n,function(t,n){n===e?o[t]=r:(u=o[t],o[t]=(0,f.isCrio)(u)?O(u):{},o=o[t])}),m(this,i,t)},t.prototype.thaw=function(){var t=this,n=h(this),r={};return(0,f.forEachRight)(n,function(n){var e=t[n],o=(0,f.isCrio)(e)?e.thaw():e;(0,f.setStandard)(r,n,o,t.propertyIsEnumerable(n))}),r},t.prototype.toArray=function(){return new S(this.values())},t.prototype.toLocaleString=function(){return(0,f.stringify)(this)},t.prototype.toString=function(){return(0,f.stringify)(this)},t.prototype.valueOf=function(){return v.valueOf.call(this)},t.prototype.values=function(){return p(this)},t.prototype[Symbol.iterator]=function(){var t=this,n=h(this),r=0;return{next:function(){var e=n[r],o=t[e],i=r>=t.length;return r++,{value:o,done:i}}}},i(t,[{key:f.TYPE_SYMBOL,get:function(){return f.CRIO_OBJECT_TYPE}}]),t}(),x=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return(0,f.isArray)(t)?new S(t):(0,f.isObject)(t)?new j(t):t};n.deleteOnDeepMatch=E,n.getRealValue=b,n.isCrio=f.isCrio,n.mergeOnDeepMatch=w,n.CrioArray=S,n.CrioObject=j,n.default=x},function(t,n,r){r(3),r(52),r(54),r(55),t.exports=r(9).Symbol},function(t,n,r){"use strict";var e=r(4),o=r(5),i=r(6),u=r(8),c=r(18),f=r(22).KEY,a=r(7),s=r(23),l=r(24),h=r(19),p=r(25),y=r(26),v=r(27),g=r(29),d=r(42),b=r(45),O=r(12),m=r(32),w=r(16),E=r(17),S=r(46),j=r(49),x=r(51),C=r(11),_=r(30),A=x.f,P=C.f,M=j.f,I=e.Symbol,k=e.JSON,R=k&&k.stringify,T="prototype",Y=p("_hidden"),H=p("toPrimitive"),N={}.propertyIsEnumerable,F=s("symbol-registry"),B=s("symbols"),D=s("op-symbols"),L=Object[T],U="function"==typeof I,z=e.QObject,J=!z||!z[T]||!z[T].findChild,W=i&&a(function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=A(L,n);e&&delete L[n],P(t,n,r),e&&t!==L&&P(L,n,e)}:P,q=function(t){var n=B[t]=S(I[T]);return n._k=t,n},G=U&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},K=function(t,n,r){return t===L&&K(D,n,r),O(t),n=w(n,!0),O(r),o(B,n)?(r.enumerable?(o(t,Y)&&t[Y][n]&&(t[Y][n]=!1),r=S(r,{enumerable:E(0,!1)})):(o(t,Y)||P(t,Y,E(1,{})),t[Y][n]=!0),W(t,n,r)):P(t,n,r)},V=function(t,n){O(t);for(var r,e=d(n=m(n)),o=0,i=e.length;i>o;)K(t,r=e[o++],n[r]);return t},$=function(t,n){return void 0===n?S(t):V(S(t),n)},Q=function(t){var n=N.call(this,t=w(t,!0));return!(this===L&&o(B,t)&&!o(D,t))&&(!(n||!o(this,t)||!o(B,t)||o(this,Y)&&this[Y][t])||n)},X=function(t,n){if(t=m(t),n=w(n,!0),t!==L||!o(B,n)||o(D,n)){var r=A(t,n);return!r||!o(B,n)||o(t,Y)&&t[Y][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=M(m(t)),e=[],i=0;r.length>i;)o(B,n=r[i++])||n==Y||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===L,e=M(r?D:m(t)),i=[],u=0;e.length>u;)!o(B,n=e[u++])||r&&!o(L,n)||i.push(B[n]);return i};U||(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(r){this===L&&n.call(D,r),o(this,Y)&&o(this[Y],t)&&(this[Y][t]=!1),W(this,t,E(1,r))};return i&&J&&W(L,t,{configurable:!0,set:n}),q(t)},c(I[T],"toString",function(){return this._k}),x.f=X,C.f=K,r(50).f=j.f=Z,r(44).f=Q,r(43).f=tt,i&&!r(28)&&c(L,"propertyIsEnumerable",Q,!0),y.f=function(t){return q(p(t))}),u(u.G+u.W+u.F*!U,{Symbol:I});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)p(nt[rt++]);for(var nt=_(p.store),rt=0;nt.length>rt;)v(nt[rt++]);u(u.S+u.F*!U,"Symbol",{"for":function(t){return o(F,t+="")?F[t]:F[t]=I(t)},keyFor:function(t){if(G(t))return g(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){J=!0},useSimple:function(){J=!1}}),u(u.S+u.F*!U,"Object",{create:$,defineProperty:K,defineProperties:V,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),k&&u(u.S+u.F*(!U||a(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,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);return n=e[1],"function"==typeof n&&(r=n),!r&&b(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!G(n))return n}),e[1]=n,R.apply(k,e)}}}),I[T][H]||r(10)(I[T],H,I[T].valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){t.exports=!r(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,r){var e=r(4),o=r(9),i=r(10),u=r(18),c=r(20),f="prototype",a=function(t,n,r){var s,l,h,p,y=t&a.F,v=t&a.G,g=t&a.S,d=t&a.P,b=t&a.B,O=v?e:g?e[n]||(e[n]={}):(e[n]||{})[f],m=v?o:o[n]||(o[n]={}),w=m[f]||(m[f]={});v&&(r=n);for(s in r)l=!y&&O&&void 0!==O[s],h=(l?O:r)[s],p=b&&l?c(h,e):d&&"function"==typeof h?c(Function.call,h):h,O&&u(O,s,h,t&a.U),m[s]!=h&&i(m,s,p),d&&w[s]!=h&&(w[s]=h)};e.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(11),o=r(17);t.exports=r(6)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(12),o=r(14),i=r(16),u=Object.defineProperty;n.f=r(6)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(c){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(13);t.exports=function(t){if(!e(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,r){t.exports=!r(6)&&!r(7)(function(){return 7!=Object.defineProperty(r(15)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(13),o=r(4).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(13);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;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,r){var e=r(4),o=r(10),i=r(5),u=r(19)("src"),c="toString",f=Function[c],a=(""+f).split(c);r(9).inspectSource=function(t){return f.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,u)||o(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,c,function(){return"function"==typeof this&&this[u]||f.call(this)})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){var e=r(21);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}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,r){var e=r(19)("meta"),o=r(13),i=r(5),u=r(11).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(7)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},h=function(t,n){if(!i(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},p=function(t){return a&&y.NEED&&f(t)&&!i(t,e)&&s(t),t},y=t.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:p}},function(t,n,r){var e=r(4),o="__core-js_shared__",i=e[o]||(e[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n,r){var e=r(11).f,o=r(5),i=r(25)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(23)("wks"),o=r(19),i=r(4).Symbol,u="function"==typeof i,c=t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=e},function(t,n,r){n.f=r(25)},function(t,n,r){var e=r(4),o=r(9),i=r(28),u=r(26),c=r(11).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n){t.exports=!1},function(t,n,r){var e=r(30),o=r(32);t.exports=function(t,n){for(var r,i=o(t),u=e(i),c=u.length,f=0;c>f;)if(i[r=u[f++]]===n)return r}},function(t,n,r){var e=r(31),o=r(41);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n,r){var e=r(5),o=r(32),i=r(36)(!1),u=r(40)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(a,r)||a.push(r));return a}},function(t,n,r){var e=r(33),o=r(35);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){var r={}.toString;t.exports=function(t){return r.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,r){var e=r(32),o=r(37),i=r(39);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){var e=r(38),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(38),o=Math.max,i=Math.min;t.exports=function(t,n){return t=e(t),t<0?o(t+n,0):i(t,n)}},function(t,n,r){var e=r(23)("keys"),o=r(19);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(30),o=r(43),i=r(44);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,c=r(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(34);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(12),o=r(47),i=r(41),u=r(40)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,n=r(15)("iframe"),e=i.length,o="<",u=">";for(n.style.display="none",r(48).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;e--;)delete a[f][i[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c[f]=e(t),r=new c,c[f]=null,r[u]=t):r=a(),void 0===n?r:o(r,n)}},function(t,n,r){var e=r(11),o=r(12),i=r(30);t.exports=r(6)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){t.exports=r(4).document&&document.documentElement},function(t,n,r){var e=r(32),o=r(50).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(e(t))}},function(t,n,r){var e=r(31),o=r(41).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(44),o=r(17),i=r(32),u=r(16),c=r(5),f=r(14),a=Object.getOwnPropertyDescriptor;n.f=r(6)?a:function(t,n){if(t=i(t),n=u(n,!0),f)try{return a(t,n)}catch(r){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){"use strict";var e=r(53),o={};o[r(25)("toStringTag")]="z",o+""!="[object z]"&&r(18)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(34),o=r(25)("toStringTag"),i="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(r){}};t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),o))?r:i?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,r){r(27)("asyncIterator")},function(t,n,r){r(27)("observable")},function(t,n,r){r(57),t.exports=r(9).Object.entries},function(t,n,r){var e=r(8),o=r(58)(!0);e(e.S,"Object",{entries:function(t){return o(t)}})},function(t,n,r){var e=r(30),o=r(32),i=r(44).f;t.exports=function(t){return function(n){for(var r,u=o(n),c=e(u),f=c.length,a=0,s=[];f>a;)i.call(u,r=c[a++])&&s.push(t?[r,u[r]]:u[r]);return s}}},function(t,n,r){r(60),t.exports=r(9).Object.keys},function(t,n,r){var e=r(61),o=r(30);r(62)("keys",function(){return function(t){return o(e(t))}})},function(t,n,r){var e=r(35);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(8),o=r(9),i=r(7);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*i(function(){r(1)}),"Object",u)}},function(t,n,r){r(64),t.exports=r(9).Object.values},function(t,n,r){var e=r(8),o=r(58)(!1);e(e.S,"Object",{values:function(t){return o(t)}})},function(t,n){t.exports=void 0},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0,n.stringifySerializerForHash=n.stringify=n.shallowCloneObject=n.shallowCloneArray=n.setStandard=n.setNonEnumerable=n.isUndefined=n.isObject=n.isReactElement=n.isCrio=n.isArray=n.getHashIfChanged=n.forEachRight=n.forEach=n.TYPE_SYMBOL=n.HASH_CODE_SYMBOL=n.CRIO_OBJECT_TYPE=n.CRIO_ARRAY_TYPE=void 0;var o="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},i=r(67),u=e(i),c=r(65),f=e(c),a="CrioArray",s="CrioObject",l="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,h={maxDepth:10,indent:" "},p=(0,u.default)(h),y="[object Array]",v="[object Object]",g=Symbol("hashCode"),d=Symbol("type"),b=-1,O=function(t){return!!t&&(C(t)===y||t[d]===a)},m=function(t){return!!t&&(t[d]===a||t[d]===s)},w=function(t){return!!t&&(t[d]?t[d]===s:C(t)===v)},E=function(t){return"object"===("undefined"==typeof t?"undefined":o(t))&&null!==t&&t.$$typeof===l},S=function(t){return void 0===t},j=function(t,n,r){for(var e=t.length,o=-1;++o<e;)n.call(r,t[o],o,t)},x=function(t,n,r){for(var e=t.length;e--;)n.call(r,t[e],e,t)},C=function(t){return Object.prototype.toString.call(t)},_=function(t,n){return E(n)?++b:n},A=function(t,n){var r=(0,f.default)(n);return t[g]!==r&&r},P=function(t){var n=new Array(t.length);return j(t,function(t,r){n[r]=t}),n},M=function(t){var n=Object.keys(t),r={};return x(n,function(n){r[n]=t[n]}),r},I=function(t,n,r){Object.defineProperty(t,n,{configurable:!1,enumerable:!1,value:r,writable:!1})},k=function(t,n,r){var e=arguments.length<=3||void 0===arguments[3]||arguments[3];Object.defineProperty(t,n,{configurable:!0,enumerable:e,value:r,writable:!0})};n.CRIO_ARRAY_TYPE=a,n.CRIO_OBJECT_TYPE=s,n.HASH_CODE_SYMBOL=g,n.TYPE_SYMBOL=d,n.forEach=j,n.forEachRight=x,n.getHashIfChanged=A,n.isArray=O,n.isCrio=m,n.isReactElement=E,n.isObject=w,n.isUndefined=S,n.setNonEnumerable=I,n.setStandard=k,n.shallowCloneArray=P,n.shallowCloneObject=M,n.stringify=p,n.stringifySerializerForHash=_},function(t,n){t.exports=void 0}]); | ||
var crio=function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,n,r){t.exports=r(1)},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0,n.CrioObject=n.CrioArray=n.mergeOnDeepMatch=n.isCrio=n.getRealValue=n.deleteOnDeepMatch=void 0;var i=function(){function t(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}return function(n,r,e){return r&&t(n.prototype,r),e&&t(n,e),n}}();r(2),r(56),r(59),r(63);var u=r(65),c=e(u),f=r(66),a=Object.assign,s=Object.entries,l=Object.freeze,h=Object.keys,p=Object.values,y=Array.prototype,v=Object.prototype,d=!0,g=function(t){return d?t:l(t)},b=function(t,n){return(0,f.isCrio)(t)||(0,f.isReactElement)(t)?t:(0,f.isArray)(t)?new S(t,n):(0,f.isObject)(t)?new j(t,n):t},O=function(t){return(0,f.isArray)(t)?(0,f.shallowCloneArray)(t):(0,f.shallowCloneObject)(t)},m=function(t,n,r){var e=(0,f.getHashIfChanged)(t,n);return e!==!1?new r(n,e):t},w=function(t,n,r,e){var o=n.length-1,i=O(t),u=i,c=void 0;return(0,f.forEach)(n,function(t,n){c=i[t],(0,f.isCrio)(c)?i[t]=O(c):i[t]={},n===o?i[t]=a.apply(void 0,[i[t]].concat(r)):i=i[t]}),m(t,u,e)},E=function(t,n,r){for(var e=n.length,o=e-1,i=O(t),u=i,c=void 0,a=-1,s=!1;++a<e;){var l=n[a];if(a===o&&(s=!0,delete i[l]),(0,f.isUndefined)(i[l]))break;c=i[l],(0,f.isCrio)(c)&&(i[l]=O(c)),i=i[l]}return s?m(t,u,r):t},S=function(){function t(n,r){var e=this;if(o(this,t),(0,f.isCrio)(n))return n;(0,f.forEach)(n,function(t,n){e[n]=b(t)});var i=(0,f.isUndefined)(r)?(0,c.default)(n):r;return(0,f.setNonEnumerable)(this,f.HASH_CODE_SYMBOL,i),(0,f.setNonEnumerable)(this,"length",n.length),g(this)}return t.prototype.clear=function(){return this.length?new t([]):this},t.prototype.compact=function(){return this.filter(function(t){return!!t})},t.prototype.concat=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];if(!r.length)return this;var o=(0,f.shallowCloneArray)(this),i=y.concat.apply(o,r);return new t(i)},t.prototype.copyWithin=function(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?this.length:arguments[2];if((0,f.isUndefined)(t))return this;var e=y.slice.call(this,n,r).filter(function(){return!0});return this.splice.apply(this,[t,e.length].concat(e))},t.prototype.delete=function(n){if(!this.has(n))return this;var r=+n,e=[];return(0,f.forEach)(this,function(t,n){n!==r&&e.push(t)}),new t(e)},t.prototype.deleteIn=function(n){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');return n.length?E(this,n,t):this},t.prototype.entries=function n(){var t=this,n=s(this),r=0,e=void 0,o=void 0;return n.next=function(){return e=r,o=t[r],r<t.length?(r++,{done:!1,key:e,value:o}):{done:!0}},n},t.prototype.equals=function(t){return!!(0,f.isCrio)(t)&&this[f.HASH_CODE_SYMBOL]===t[f.HASH_CODE_SYMBOL]},t.prototype.every=function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return y.every.call(this,t,n)},t.prototype.fill=function(n){var r=arguments.length<=1||void 0===arguments[1]?0:arguments[1],e=arguments.length<=2||void 0===arguments[2]?this.length:arguments[2],o=y.map.call(this,function(t,o){return o>=r&&o<e?n:t});return m(this,o,t)},t.prototype.filter=function(n){var r=arguments.length<=1||void 0===arguments[1]?this:arguments[1],e=y.filter.call(this,n,r);return m(this,e,t)},t.prototype.find=function(t){for(var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1],r=-1,e=void 0;++r<this.length;)if(e=this[r],t.call(this,e,r,n))return e},t.prototype.findIndex=function(t){for(var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1],r=-1;++r<this.length;)if(t.call(this,this[r],r,n))return r;return-1},t.prototype.first=function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0];return t===this.length?this:this.slice(0,t)},t.prototype.forEach=function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];y.forEach.call(this,t,n)},t.prototype.get=function(t){return this[t]},t.prototype.getIn=function(t){if(!(0,f.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var n=t.length,r=n-1,e=this,o=-1,i=void 0;++o<n;){if(i=t[o],(0,f.isUndefined)(e[i])||o===r)return e[i];e=e[i]}},t.prototype.has=function(t){return v.hasOwnProperty.call(this,t)},t.prototype.includes=function(t){return!!~this.indexOf(t)},t.prototype.indexOf=function(t){return y.indexOf.call(this,t)},t.prototype.join=function(){var t=arguments.length<=0||void 0===arguments[0]?",":arguments[0];return y.join.call(this,t)},t.prototype.keys=function(){return h(this)},t.prototype.last=function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0];return t===this.length?this:this.slice(this.length-t,this.length)},t.prototype.lastIndexOf=function(t){return y.lastIndexOf.call(this,t)},t.prototype.map=function(n){var r=this,e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],o=new Array(this.length);return(0,f.forEach)(this,function(t,i){o[i]=n.call(e,r[i],i,r)}),m(this,o,t)},t.prototype.merge=function(){for(var n=(0,f.shallowCloneArray)(this),r=arguments.length,e=Array(r),o=0;o<r;o++)e[o]=arguments[o];return(0,f.forEach)(e,function(t){n=n.map(function(r,e){return t[e]||n[e]})}),m(this,n,t)},t.prototype.mergeIn=function(n){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return e.length?w(this,n,e,t):this},t.prototype.mutate=function(t){var n=t.call(this,this.thaw(),this),r=(0,f.getHashIfChanged)(this,n);return r!==!1?b(n,r):this},t.prototype.pluck=function(t){return this.map(function(n){if(n)return n[t]})},t.prototype.pop=function(){return this.slice(0,this.length-1)},t.prototype.push=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.concat(n)},t.prototype.reduce=function(t,n){var r=arguments.length<=2||void 0===arguments[2]?this:arguments[2],e=y.reduce.call(this,t,n,r),o=(0,f.getHashIfChanged)(this,e);return o!==!1?b(e,o):this},t.prototype.reduceRight=function(t,n){var r=arguments.length<=2||void 0===arguments[2]?this:arguments[2],e=y.reduceRight.call(this,t,n,r),o=(0,f.getHashIfChanged)(this,e);return o!==!1?b(e,o):this},t.prototype.reverse=function(){var n=[];return(0,f.forEachRight)(this,function(t){n.push(t)}),m(this,n,t)},t.prototype.set=function(n,r){var e=+n;if(e>this.length)throw new Error("Cannot set a key for sparsed array on crio objects.");var o=[];return(0,f.forEach)(this,function(t,n){o.push(e===n?r:t)}),m(this,o,t)},t.prototype.setIn=function(n,r){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');var e=n.length-1,o=(0,f.shallowCloneArray)(this),i=o,u=void 0;return(0,f.forEach)(n,function(t,n){n===e?o[t]=r:(u=o[t],o[t]=(0,f.isCrio)(u)?O(u):{},o=o[t])}),m(this,i,t)},t.prototype.shift=function(){return this.slice(1,this.length)},t.prototype.slice=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return r.length?new t(y.slice.apply(this,r)):this},t.prototype.some=function(t){var n=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return y.some.call(this,t,n)},t.prototype.sort=function(n){var r=(0,f.shallowCloneArray)(this),e=y.sort.call(r,n);return m(this,e,t)},t.prototype.splice=function(){var n=(0,f.shallowCloneArray)(this);return n.splice.apply(n,arguments),m(this,n,t)},t.prototype.thaw=function(){var t=[];return(0,f.forEach)(this,function(n,r){t[r]=(0,f.isCrio)(n)?n.thaw():n}),t},t.prototype.toLocaleString=function(){return(0,f.stringify)(this)},t.prototype.toObject=function(){return new j((0,f.shallowCloneObject)(this))},t.prototype.toString=function(){return(0,f.stringify)(this)},t.prototype.unique=function(){var t=[],n=!1;return this.filter(function(r){return n=!!~t.indexOf(r),n||t.push(r),!n})},t.prototype.unshift=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return r.length?((0,f.forEach)(this,function(t){r.push(t)}),new t(r)):this},t.prototype.values=function(){return p(this)},t.prototype[Symbol.iterator]=function(){var t=this,n=0;return{next:function(){var r=n,e=t[n];return n<t.length?(n++,{done:!1,key:r,value:e}):{done:!0}}}},i(t,[{key:f.TYPE_SYMBOL,get:function(){return f.CRIO_ARRAY_TYPE}}]),t}(),j=function(){function t(n,r){var e=this;if(o(this,t),(0,f.isCrio)(n)||(0,f.isReactElement)(n))return n;var i=h(n),u=0;(0,f.forEachRight)(i,function(t){e[t]=b(n[t]),u++});var a=(0,f.isUndefined)(r)?(0,c.default)(n):r;return(0,f.setNonEnumerable)(this,f.HASH_CODE_SYMBOL,a),(0,f.setNonEnumerable)(this,"length",u),g(this)}return t.prototype.clear=function(){return this.length?new t({}):this},t.prototype.delete=function(n){var r=this;if(!this.hasOwnProperty(n))return this;var e={};return(0,f.forEachRight)(this.keys(),function(t){t!==n&&(e[t]=r[t])}),new t(e)},t.prototype.deleteIn=function(n){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');return n.length?E(this,n,t):this},t.prototype.entries=function n(){var t=this,r=h(this),n=s(this),e=0,o=void 0,i=void 0;return n.next=function(){return o=r[e],i=t[o],e<t.length?(e++,{done:!1,key:o,value:i}):{done:!0}},n},t.prototype.equals=function(t){return!!(0,f.isCrio)(t)&&this[f.HASH_CODE_SYMBOL]===t[f.HASH_CODE_SYMBOL]},t.prototype.get=function(t){return this[t]},t.prototype.getIn=function(t){if(!(0,f.isArray)(t))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var n=t.length,r=n-1,e=this,o=-1,i=void 0;++o<n;){if(i=t[o],(0,f.isUndefined)(e[i])||o===r)return e[i];e=e[i]}},t.prototype.has=function(t){return this.hasOwnProperty(t)},t.prototype.hasOwnProperty=function(t){return v.hasOwnProperty.call(this,t)},t.prototype.isPrototypeOf=function(t){return v.isPrototypeOf.call(this,t)},t.prototype.filter=function(n){var r=this,e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],o={},i=void 0;return(0,f.forEach)(this.keys(),function(t){i=n.call(e,r[t],t,r),i&&(o[t]=r[t])}),m(this,o,t)},t.prototype.forEach=function(t){var n=this,r=arguments.length<=1||void 0===arguments[1]?this:arguments[1];return(0,f.forEach)(this.keys(),function(e){t.call(r,n[e],e,n)}),this},t.prototype.keys=function(){return h(this)},t.prototype.map=function(n){var r=this,e=arguments.length<=1||void 0===arguments[1]?this:arguments[1],o={};return(0,f.forEach)(this.keys(),function(t){o[t]=n.call(e,r[t],t,r)}),m(this,o,t)},t.prototype.merge=function(){for(var n=(0,f.shallowCloneObject)(this),r=arguments.length,e=Array(r),o=0;o<r;o++)e[o]=arguments[o];return(0,f.forEach)(e,function(t){a(n,t)}),m(this,n,t)},t.prototype.mergeIn=function(n){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return e.length?w(this,n,e,t):this},t.prototype.mutate=function(t){var n=t.call(this,this.thaw(),this),r=(0,f.getHashIfChanged)(this,n);return r!==!1?b(n,r):this},t.prototype.propertyIsEnumerable=function(t){return v.propertyIsEnumerable.call(this,t)},t.prototype.set=function(n,r){var e=this,o={};return(0,f.forEachRight)(this.keys(),function(t){t!==n&&(o[t]=e[t])}),o[n]=r,m(this,o,t)},t.prototype.setIn=function(n,r){if(!(0,f.isArray)(n))throw new Error('Must provide keys as an array, such as ["foo", "bar"].');var e=n.length-1,o=(0,f.shallowCloneObject)(this),i=o,u=void 0;return(0,f.forEach)(n,function(t,n){n===e?o[t]=r:(u=o[t],o[t]=(0,f.isCrio)(u)?O(u):{},o=o[t])}),m(this,i,t)},t.prototype.thaw=function(){var t=this,n=h(this),r={};return(0,f.forEachRight)(n,function(n){var e=t[n],o=(0,f.isCrio)(e)?e.thaw():e;(0,f.setStandard)(r,n,o,t.propertyIsEnumerable(n))}),r},t.prototype.toArray=function(){return new S(this.values())},t.prototype.toLocaleString=function(){return(0,f.stringify)(this)},t.prototype.toString=function(){return(0,f.stringify)(this)},t.prototype.valueOf=function(){return v.valueOf.call(this)},t.prototype.values=function(){return p(this)},t.prototype[Symbol.iterator]=function(){var t=this,n=h(this),r=0,e=void 0,o=void 0;return{next:function(){return e=n[r],o=t[e],r<t.length?(r++,{done:!1,key:e,value:o}):{done:!0}}}},i(t,[{key:f.TYPE_SYMBOL,get:function(){return f.CRIO_OBJECT_TYPE}}]),t}(),x=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return(0,f.isArray)(t)?new S(t):(0,f.isObject)(t)?new j(t):t};n.deleteOnDeepMatch=E,n.getRealValue=b,n.isCrio=f.isCrio,n.mergeOnDeepMatch=w,n.CrioArray=S,n.CrioObject=j,n.default=x},function(t,n,r){r(3),r(52),r(54),r(55),t.exports=r(9).Symbol},function(t,n,r){"use strict";var e=r(4),o=r(5),i=r(6),u=r(8),c=r(18),f=r(22).KEY,a=r(7),s=r(23),l=r(24),h=r(19),p=r(25),y=r(26),v=r(27),d=r(29),g=r(42),b=r(45),O=r(12),m=r(32),w=r(16),E=r(17),S=r(46),j=r(49),x=r(51),C=r(11),_=r(30),A=x.f,P=C.f,M=j.f,k=e.Symbol,I=e.JSON,R=I&&I.stringify,T="prototype",Y=p("_hidden"),H=p("toPrimitive"),N={}.propertyIsEnumerable,F=s("symbol-registry"),B=s("symbols"),D=s("op-symbols"),L=Object[T],U="function"==typeof k,z=e.QObject,J=!z||!z[T]||!z[T].findChild,W=i&&a(function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=A(L,n);e&&delete L[n],P(t,n,r),e&&t!==L&&P(L,n,e)}:P,q=function(t){var n=B[t]=S(k[T]);return n._k=t,n},G=U&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},K=function(t,n,r){return t===L&&K(D,n,r),O(t),n=w(n,!0),O(r),o(B,n)?(r.enumerable?(o(t,Y)&&t[Y][n]&&(t[Y][n]=!1),r=S(r,{enumerable:E(0,!1)})):(o(t,Y)||P(t,Y,E(1,{})),t[Y][n]=!0),W(t,n,r)):P(t,n,r)},V=function(t,n){O(t);for(var r,e=g(n=m(n)),o=0,i=e.length;i>o;)K(t,r=e[o++],n[r]);return t},$=function(t,n){return void 0===n?S(t):V(S(t),n)},Q=function(t){var n=N.call(this,t=w(t,!0));return!(this===L&&o(B,t)&&!o(D,t))&&(!(n||!o(this,t)||!o(B,t)||o(this,Y)&&this[Y][t])||n)},X=function(t,n){if(t=m(t),n=w(n,!0),t!==L||!o(B,n)||o(D,n)){var r=A(t,n);return!r||!o(B,n)||o(t,Y)&&t[Y][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=M(m(t)),e=[],i=0;r.length>i;)o(B,n=r[i++])||n==Y||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===L,e=M(r?D:m(t)),i=[],u=0;e.length>u;)!o(B,n=e[u++])||r&&!o(L,n)||i.push(B[n]);return i};U||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===L&&n.call(D,r),o(this,Y)&&o(this[Y],t)&&(this[Y][t]=!1),W(this,t,E(1,r))};return i&&J&&W(L,t,{configurable:!0,set:n}),q(t)},c(k[T],"toString",function(){return this._k}),x.f=X,C.f=K,r(50).f=j.f=Z,r(44).f=Q,r(43).f=tt,i&&!r(28)&&c(L,"propertyIsEnumerable",Q,!0),y.f=function(t){return q(p(t))}),u(u.G+u.W+u.F*!U,{Symbol:k});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)p(nt[rt++]);for(var nt=_(p.store),rt=0;nt.length>rt;)v(nt[rt++]);u(u.S+u.F*!U,"Symbol",{"for":function(t){return o(F,t+="")?F[t]:F[t]=k(t)},keyFor:function(t){if(G(t))return d(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){J=!0},useSimple:function(){J=!1}}),u(u.S+u.F*!U,"Object",{create:$,defineProperty:K,defineProperties:V,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),I&&u(u.S+u.F*(!U||a(function(){var t=k();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);return n=e[1],"function"==typeof n&&(r=n),!r&&b(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!G(n))return n}),e[1]=n,R.apply(I,e)}}}),k[T][H]||r(10)(k[T],H,k[T].valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){t.exports=!r(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,r){var e=r(4),o=r(9),i=r(10),u=r(18),c=r(20),f="prototype",a=function(t,n,r){var s,l,h,p,y=t&a.F,v=t&a.G,d=t&a.S,g=t&a.P,b=t&a.B,O=v?e:d?e[n]||(e[n]={}):(e[n]||{})[f],m=v?o:o[n]||(o[n]={}),w=m[f]||(m[f]={});v&&(r=n);for(s in r)l=!y&&O&&void 0!==O[s],h=(l?O:r)[s],p=b&&l?c(h,e):g&&"function"==typeof h?c(Function.call,h):h,O&&u(O,s,h,t&a.U),m[s]!=h&&i(m,s,p),g&&w[s]!=h&&(w[s]=h)};e.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(11),o=r(17);t.exports=r(6)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(12),o=r(14),i=r(16),u=Object.defineProperty;n.f=r(6)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(c){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(13);t.exports=function(t){if(!e(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,r){t.exports=!r(6)&&!r(7)(function(){return 7!=Object.defineProperty(r(15)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(13),o=r(4).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(13);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;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,r){var e=r(4),o=r(10),i=r(5),u=r(19)("src"),c="toString",f=Function[c],a=(""+f).split(c);r(9).inspectSource=function(t){return f.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,u)||o(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,c,function(){return"function"==typeof this&&this[u]||f.call(this)})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){var e=r(21);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}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,r){var e=r(19)("meta"),o=r(13),i=r(5),u=r(11).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(7)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},h=function(t,n){if(!i(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},p=function(t){return a&&y.NEED&&f(t)&&!i(t,e)&&s(t),t},y=t.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:p}},function(t,n,r){var e=r(4),o="__core-js_shared__",i=e[o]||(e[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n,r){var e=r(11).f,o=r(5),i=r(25)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(23)("wks"),o=r(19),i=r(4).Symbol,u="function"==typeof i,c=t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=e},function(t,n,r){n.f=r(25)},function(t,n,r){var e=r(4),o=r(9),i=r(28),u=r(26),c=r(11).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n){t.exports=!1},function(t,n,r){var e=r(30),o=r(32);t.exports=function(t,n){for(var r,i=o(t),u=e(i),c=u.length,f=0;c>f;)if(i[r=u[f++]]===n)return r}},function(t,n,r){var e=r(31),o=r(41);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n,r){var e=r(5),o=r(32),i=r(36)(!1),u=r(40)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(a,r)||a.push(r));return a}},function(t,n,r){var e=r(33),o=r(35);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){var r={}.toString;t.exports=function(t){return r.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,r){var e=r(32),o=r(37),i=r(39);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){var e=r(38),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(38),o=Math.max,i=Math.min;t.exports=function(t,n){return t=e(t),t<0?o(t+n,0):i(t,n)}},function(t,n,r){var e=r(23)("keys"),o=r(19);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(30),o=r(43),i=r(44);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,c=r(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(34);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(12),o=r(47),i=r(41),u=r(40)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,n=r(15)("iframe"),e=i.length,o="<",u=">";for(n.style.display="none",r(48).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;e--;)delete a[f][i[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c[f]=e(t),r=new c,c[f]=null,r[u]=t):r=a(),void 0===n?r:o(r,n)}},function(t,n,r){var e=r(11),o=r(12),i=r(30);t.exports=r(6)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){t.exports=r(4).document&&document.documentElement},function(t,n,r){var e=r(32),o=r(50).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(e(t))}},function(t,n,r){var e=r(31),o=r(41).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(44),o=r(17),i=r(32),u=r(16),c=r(5),f=r(14),a=Object.getOwnPropertyDescriptor;n.f=r(6)?a:function(t,n){if(t=i(t),n=u(n,!0),f)try{return a(t,n)}catch(r){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){"use strict";var e=r(53),o={};o[r(25)("toStringTag")]="z",o+""!="[object z]"&&r(18)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(34),o=r(25)("toStringTag"),i="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(r){}};t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),o))?r:i?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,r){r(27)("asyncIterator")},function(t,n,r){r(27)("observable")},function(t,n,r){r(57),t.exports=r(9).Object.entries},function(t,n,r){var e=r(8),o=r(58)(!0);e(e.S,"Object",{entries:function(t){return o(t)}})},function(t,n,r){var e=r(30),o=r(32),i=r(44).f;t.exports=function(t){return function(n){for(var r,u=o(n),c=e(u),f=c.length,a=0,s=[];f>a;)i.call(u,r=c[a++])&&s.push(t?[r,u[r]]:u[r]);return s}}},function(t,n,r){r(60),t.exports=r(9).Object.keys},function(t,n,r){var e=r(61),o=r(30);r(62)("keys",function(){return function(t){return o(e(t))}})},function(t,n,r){var e=r(35);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(8),o=r(9),i=r(7);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*i(function(){r(1)}),"Object",u)}},function(t,n,r){r(64),t.exports=r(9).Object.values},function(t,n,r){var e=r(8),o=r(58)(!1);e(e.S,"Object",{values:function(t){return o(t)}})},function(t,n){t.exports=void 0},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0,n.stringifySerializerForHash=n.stringify=n.shallowCloneObject=n.shallowCloneArray=n.setStandard=n.setNonEnumerable=n.isUndefined=n.isObject=n.isReactElement=n.isCrio=n.isArray=n.getHashIfChanged=n.forEachRight=n.forEach=n.TYPE_SYMBOL=n.HASH_CODE_SYMBOL=n.CRIO_OBJECT_TYPE=n.CRIO_ARRAY_TYPE=void 0;var o="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},i=r(67),u=e(i),c=r(65),f=e(c),a="CrioArray",s="CrioObject",l="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,h={maxDepth:10,indent:" "},p=(0,u.default)(h),y="[object Array]",v="[object Object]",d=Symbol("hashCode"),g=Symbol("type"),b=-1,O=function(t){return!!t&&(C(t)===y||t[g]===a)},m=function(t){return!!t&&(t[g]===a||t[g]===s)},w=function(t){return!!t&&(t[g]?t[g]===s:C(t)===v)},E=function(t){return"object"===("undefined"==typeof t?"undefined":o(t))&&null!==t&&t.$$typeof===l},S=function(t){return void 0===t},j=function(t,n,r){for(var e=t.length,o=-1;++o<e;)n.call(r,t[o],o,t)},x=function(t,n,r){for(var e=t.length;e--;)n.call(r,t[e],e,t)},C=function(t){return Object.prototype.toString.call(t)},_=function(t,n){return E(n)?++b:n},A=function(t,n){var r=(0,f.default)(n);return t[d]!==r&&r},P=function(t){var n=new Array(t.length);return j(t,function(t,r){n[r]=t}),n},M=function(t){var n=Object.keys(t),r={};return x(n,function(n){r[n]=t[n]}),r},k=function(t,n,r){Object.defineProperty(t,n,{configurable:!1,enumerable:!1,value:r,writable:!1})},I=function(t,n,r){var e=arguments.length<=3||void 0===arguments[3]||arguments[3];Object.defineProperty(t,n,{configurable:!0,enumerable:e,value:r,writable:!0})};n.CRIO_ARRAY_TYPE=a,n.CRIO_OBJECT_TYPE=s,n.HASH_CODE_SYMBOL=d,n.TYPE_SYMBOL=g,n.forEach=j,n.forEachRight=x,n.getHashIfChanged=A,n.isArray=O,n.isCrio=m,n.isReactElement=E,n.isObject=w,n.isUndefined=S,n.setNonEnumerable=k,n.setStandard=I,n.shallowCloneArray=P,n.shallowCloneObject=M,n.stringify=p,n.stringifySerializerForHash=_},function(t,n){t.exports=void 0}]); |
146
lib/index.js
@@ -345,3 +345,30 @@ 'use strict'; | ||
CrioArray.prototype.entries = function entries() { | ||
return objectEntries(this); | ||
var _this2 = this; | ||
var entries = objectEntries(this); | ||
var index = 0, | ||
key = void 0, | ||
value = void 0; | ||
entries.next = function () { | ||
key = index; | ||
value = _this2[index]; | ||
if (index < _this2.length) { | ||
index++; | ||
return { | ||
done: false, | ||
key: key, | ||
value: value | ||
}; | ||
} else { | ||
return { | ||
done: true | ||
}; | ||
} | ||
}; | ||
return entries; | ||
}; | ||
@@ -647,3 +674,3 @@ | ||
CrioArray.prototype.map = function map(fn) { | ||
var _this2 = this; | ||
var _this3 = this; | ||
@@ -655,3 +682,3 @@ var thisArg = arguments.length <= 1 || arguments[1] === undefined ? this : arguments[1]; | ||
(0, _utils.forEach)(this, function (item, index) { | ||
mappedArray[index] = fn.call(thisArg, _this2[index], index, _this2); | ||
mappedArray[index] = fn.call(thisArg, _this3[index], index, _this3); | ||
}); | ||
@@ -1091,3 +1118,3 @@ | ||
CrioArray.prototype[Symbol.iterator] = function () { | ||
var _this3 = this; | ||
var _this4 = this; | ||
@@ -1098,11 +1125,18 @@ var index = 0; | ||
next: function next() { | ||
var value = _this3[index]; | ||
var done = index >= _this3.length; | ||
var key = index; | ||
var value = _this4[index]; | ||
index++; | ||
if (index < _this4.length) { | ||
index++; | ||
return { | ||
value: value, | ||
done: done | ||
}; | ||
return { | ||
done: false, | ||
key: key, | ||
value: value | ||
}; | ||
} else { | ||
return { | ||
done: true | ||
}; | ||
} | ||
} | ||
@@ -1124,3 +1158,3 @@ }; | ||
function CrioObject(object, hashValue) { | ||
var _this4 = this; | ||
var _this5 = this; | ||
@@ -1138,3 +1172,3 @@ _classCallCheck(this, CrioObject); | ||
(0, _utils.forEachRight)(keys, function (key) { | ||
_this4[key] = getRealValue(object[key]); | ||
_this5[key] = getRealValue(object[key]); | ||
@@ -1181,3 +1215,3 @@ length++; | ||
CrioObject.prototype.delete = function _delete(key) { | ||
var _this5 = this; | ||
var _this6 = this; | ||
@@ -1192,3 +1226,3 @@ if (!this.hasOwnProperty(key)) { | ||
if (itemKey !== key) { | ||
clone[itemKey] = _this5[itemKey]; | ||
clone[itemKey] = _this6[itemKey]; | ||
} | ||
@@ -1228,3 +1262,31 @@ }); | ||
CrioObject.prototype.entries = function entries() { | ||
return objectEntries(this); | ||
var _this7 = this; | ||
var keys = objectKeys(this); | ||
var entries = objectEntries(this); | ||
var index = 0, | ||
key = void 0, | ||
value = void 0; | ||
entries.next = function () { | ||
key = keys[index]; | ||
value = _this7[key]; | ||
if (index < _this7.length) { | ||
index++; | ||
return { | ||
done: false, | ||
key: key, | ||
value: value | ||
}; | ||
} else { | ||
return { | ||
done: true | ||
}; | ||
} | ||
}; | ||
return entries; | ||
}; | ||
@@ -1336,3 +1398,3 @@ | ||
CrioObject.prototype.filter = function filter(fn) { | ||
var _this6 = this; | ||
var _this8 = this; | ||
@@ -1345,6 +1407,6 @@ var thisArg = arguments.length <= 1 || arguments[1] === undefined ? this : arguments[1]; | ||
(0, _utils.forEach)(this.keys(), function (key) { | ||
result = fn.call(thisArg, _this6[key], key, _this6); | ||
result = fn.call(thisArg, _this8[key], key, _this8); | ||
if (!!result) { | ||
newObject[key] = _this6[key]; | ||
newObject[key] = _this8[key]; | ||
} | ||
@@ -1366,3 +1428,3 @@ }); | ||
CrioObject.prototype.forEach = function forEach(fn) { | ||
var _this7 = this; | ||
var _this9 = this; | ||
@@ -1372,3 +1434,3 @@ var thisArg = arguments.length <= 1 || arguments[1] === undefined ? this : arguments[1]; | ||
(0, _utils.forEach)(this.keys(), function (key) { | ||
fn.call(thisArg, _this7[key], key, _this7); | ||
fn.call(thisArg, _this9[key], key, _this9); | ||
}); | ||
@@ -1400,3 +1462,3 @@ | ||
CrioObject.prototype.map = function map(fn) { | ||
var _this8 = this; | ||
var _this10 = this; | ||
@@ -1408,3 +1470,3 @@ var thisArg = arguments.length <= 1 || arguments[1] === undefined ? this : arguments[1]; | ||
(0, _utils.forEach)(this.keys(), function (key) { | ||
newObject[key] = fn.call(thisArg, _this8[key], key, _this8); | ||
newObject[key] = fn.call(thisArg, _this10[key], key, _this10); | ||
}); | ||
@@ -1506,3 +1568,3 @@ | ||
CrioObject.prototype.set = function set(key, value) { | ||
var _this9 = this; | ||
var _this11 = this; | ||
@@ -1513,3 +1575,3 @@ var clone = {}; | ||
if (currentKey !== key) { | ||
clone[currentKey] = _this9[currentKey]; | ||
clone[currentKey] = _this11[currentKey]; | ||
} | ||
@@ -1564,3 +1626,3 @@ }); | ||
CrioObject.prototype.thaw = function thaw() { | ||
var _this10 = this; | ||
var _this12 = this; | ||
@@ -1572,6 +1634,6 @@ var propertyNames = objectKeys(this); | ||
(0, _utils.forEachRight)(propertyNames, function (key) { | ||
var value = _this10[key]; | ||
var value = _this12[key]; | ||
var cleanValue = (0, _utils.isCrio)(value) ? value.thaw() : value; | ||
(0, _utils.setStandard)(object, key, cleanValue, _this10.propertyIsEnumerable(key)); | ||
(0, _utils.setStandard)(object, key, cleanValue, _this12.propertyIsEnumerable(key)); | ||
}); | ||
@@ -1645,20 +1707,28 @@ | ||
CrioObject.prototype[Symbol.iterator] = function () { | ||
var _this11 = this; | ||
var _this13 = this; | ||
var keys = objectKeys(this); | ||
var index = 0; | ||
var index = 0, | ||
key = void 0, | ||
value = void 0; | ||
return { | ||
next: function next() { | ||
var key = keys[index]; | ||
var value = _this11[key]; | ||
var done = index >= _this11.length; | ||
key = keys[index]; | ||
value = _this13[key]; | ||
index++; | ||
if (index < _this13.length) { | ||
index++; | ||
return { | ||
value: value, | ||
done: done | ||
}; | ||
return { | ||
done: false, | ||
key: key, | ||
value: value | ||
}; | ||
} else { | ||
return { | ||
done: true | ||
}; | ||
} | ||
} | ||
@@ -1665,0 +1735,0 @@ }; |
@@ -30,3 +30,3 @@ { | ||
"devDependencies": { | ||
"ava": "0.15.2", | ||
"ava": "0.16.0", | ||
"babel": "6.5.2", | ||
@@ -37,3 +37,3 @@ "babel-cli": "6.11.4", | ||
"babel-plugin-add-module-exports": "0.2.1", | ||
"babel-polyfill": "6.9.1", | ||
"babel-polyfill": "6.13.0", | ||
"babel-preset-es2015-loose": "^7.0.0", | ||
@@ -43,3 +43,3 @@ "babel-preset-react": "6.11.1", | ||
"babel-register": "6.11.6", | ||
"eslint": "3.2.0", | ||
"eslint": "3.2.2", | ||
"eslint-friendly-formatter": "2.0.6", | ||
@@ -81,3 +81,3 @@ "eslint-loader": "1.5.0", | ||
}, | ||
"version": "2.8.0" | ||
"version": "2.8.1" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
292887
4124
30