Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crio

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crio - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

rollup.config.js

4

CHANGELOG.md
# crio changelog
## 5.0.1
* Replacement of webpack with rollup for `dist` builds
## 5.0.0

@@ -4,0 +8,0 @@

2

dist/crio.min.js

@@ -1,1 +0,1 @@

!(function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("hash-it")):"function"==typeof define&&define.amd?define("crio",["hash-it"],n):"object"==typeof exports?exports.crio=n(require("hash-it")):t.crio=n(t.hashIt)})("undefined"!=typeof self?self:this,(function(t){return (function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=3)})([(function(t,n,e){"use strict";var r={clear:function(){r.results={},r.size=0},results:{},size:0},o=/"[^"]+"|`[^`]+`|'[^']+'|[^.[\]]+/g,i=/^\d+$/i,u=/^"[^"]+"|`[^`]+`|'[^']+'$/,c=function(t){return!!t.length&&i.test(t)},f=function(t){return u.test(t)},s=function(t){var n=f(t)?t.substring(1,t.length-1):t;return c(n)?+n:n},p=function(t){return r.results[t]?r.results[t]:(r.size>500&&r.clear(),r.results[t]=t?t.match(o).map(s):[t],r.size++,r.results[t])};e.d(n,"a",(function(){return a}));var a=function(t){return"string"==typeof t?p(t):Array.isArray(t)?t.map(s):["number"==typeof t?t:""+t]}}),(function(t,n){function e(t,n,e,o){return JSON.stringify(t,r(n,o),e)}function r(t,n){var e=[],r=[];return null==n&&(n=function(t,n){return e[0]===n?"[Circular ~]":"[Circular ~."+r.slice(0,e.indexOf(n)).join(".")+"]"}),function(o,i){if(e.length>0){var u=e.indexOf(this);~u?e.splice(u+1):e.push(this),~u?r.splice(u,1/0,o):r.push(o),~e.indexOf(i)&&(i=n.call(this,o,i))}else e.push(i);return null==t?i:t.call(this,o,i)}}n=t.exports=e,n.getSerialize=r}),(function(n,e){n.exports=t}),(function(t,n,e){t.exports=e(4)}),(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 o(){"function"==typeof Symbol&&(Symbol.species&&Object.defineProperty(G,Symbol.species,{configurable:!1,enumerable:!1,get:function(){return G}}),Symbol.iterator&&Object.defineProperty(G.prototype,Symbol.iterator,{configurable:!1,enumerable:!1,value:L(),writable:!1}),Symbol.unscopables&&Object.defineProperty(G.prototype,Symbol.unscopables,{configurable:!1,enumerable:!1,value:W,writable:!1}))}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function c(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}function f(){Object.keys(N).forEach((function(t){"function"!=typeof Array.prototype[t]&&(V.prototype[t]=function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return N[t].apply(N,[this].concat(e))})})),"function"==typeof Symbol&&(Symbol.species&&Object.defineProperty(V,Symbol.species,{configurable:!1,enumerable:!1,get:function(){return V}}),Symbol.iterator&&Object.defineProperty(V.prototype,Symbol.iterator,{configurable:!1,enumerable:!1,value:L(),writable:!1}),Symbol.unscopables&&Object.defineProperty(V.prototype,Symbol.unscopables,{configurable:!1,enumerable:!1,value:F,writable:!1}))}Object.defineProperty(n,"__esModule",{value:!0});var s=e(1),p=e.n(s),a=e(2),y=e.n(a),l=e(0),h="function"==typeof Symbol?Symbol("placeholder"):60881,b=function(t,n){var e=t.map((function(t){return t===h&&n.length?n.shift():t}));return n.length?e.concat(n):e},d=function(t,n){for(var e=0;e<n;e++)if(t[e]===h)return!0;return!1},v=function(t){var n=t.length;return function e(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=n&&!d(o,n)?t.apply(void 0,o):function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(void 0,b(o,n))}}},g=e(5),O=v((function(t,n){return Object(g.h)(t)?n:Object(g.c)(t,n)})),j=v((function(t,n){return Object(g.h)(t)?!!n:Object(g.e)(t,n)})),m=v((function(t,n,e){return Object(g.g)(e)?Object(g.h)(t)?Object(g.b)(e,n):Object(g.a)(t,e,(function(t,e){t[e]=Object(g.b)(t[e],n)})):n})),w=v((function(t,n){return Object(g.h)(t)?Object(g.d)(n):Object(g.e)(t,n)?Object(g.a)(t,n,(function(t,n){Object(g.f)(t)?Object(g.i)(t,n):delete t[n]})):n})),S=v((function(t,n,e){return Object(g.h)(t)?n:Object(g.a)(t,e,(function(t,e){t[e]=n}))})),k=(v((function(t,n,e){var r=O(t,e),o=Object(g.f)(r)?(Object(g.h)(t)?"":t)+"["+r.length+"]":t;return S(o,n,e)})),Array.isArray),x=function(t){return t instanceof X||t instanceof H},A=function(t,n){return x(n)&&t.hashCode===n.hashCode},P=function(t){return!!t&&t.$$typeof===D},E=function(t){return!!t&&t.constructor===Object&&!P(t)},_=function(t){return void 0===t},C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L=function(){return function(){var t=this,n=this.keys(),e=n.length,r=0,o=void 0;return{next:function(){return r<e?(o=t[n[r++]],{done:!1,value:o}):{done:!0}}}}},K=function(t,n){for(var e=t.keys(),r=void 0,o=0;o<e.length;o++)if(r=e[o],!n(t[r],r,t))return!1;return!0},z=function(t,n,e,r){for(var o=r?t.keys().reverse():t.keys(),i=void 0,u=0;u<o.length;u++)if(i=o[u],n(t[i],i,t))return e?i:t[i];if(e)return t.isArray()?-1:void 0},R=function(t){return t&&"object"===(void 0===t?"undefined":C(t))?k(t)?t instanceof X?t:new X(t):E(t)?new H(t):t:t},T=function(t){return t.keys().map((function(n){return[n,t[n]]}))},$=function(t,n){return t<0?Math.max(n+t,0):Math.min(t,n)},q=function(t){return t.keys().map((function(n){return t[n]}))},I=function(t,n){for(var e=t.keys(),r=void 0,o=0;o<e.length;o++)if(r=e[o],n(t[r],r,t))return!0;return!1},M=function t(n){return x(n)?n.isArray()?[].concat(n).map((function(n){return t(n)})):Object.keys(n).reduce((function(e,r){return e[r]=t(n[r]),e}),{}):n},F={copyWithin:!0,entries:!0,fill:!0,find:!0,findIndex:!0,findLastIndex:!0,includes:!0,keys:!0,values:!0},N={every:function(t){return K(this,t)},find:function(t){return z(this,t)},findIndex:function(t){return z(this,t,!0)},includes:function(t){return!!~this.indexOf(t)},some:function(t){return I(this,t)}},W={entries:!0,fill:!0,find:!0,findKey:!0,findLastKey:!0,includes:!0,keys:!0,values:!0},D="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,J=(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}})(),B=void 0,G=(function(){function t(n){r(this,t);var e=E(n)?Object.keys(n):[];return B||(o(),B=!0),x(n)?n.toObject():e.reduce((function(t,e){return t[e]=R(n[e]),t}),this)}return t.prototype.clear=function(){return new t},t.prototype.compact=function(){return this.filter((function(t){return!!t}))},t.prototype.delete=function(t){return w(t,this)},t.prototype.entries=function(){return T(this)},t.prototype.equals=function(t){return A(this,t)},t.prototype.every=function(t){return K(this,t)},t.prototype.filter=function(n){var e=this;return new t(Object.keys(this).reduce((function(t,r){return n(e[r],r,t)&&(t[r]=e[r]),t}),{}))},t.prototype.find=function(t){return z(this,t)},t.prototype.findKey=function(t){return z(this,t,!0)},t.prototype.findLast=function(t){return z(this,t,!1,!0)},t.prototype.findLastKey=function(t){return z(this,t,!0,!0)},t.prototype.forEach=function(t){var n=this;return Object.keys(this).forEach((function(e){t(n[e],e,n)})),this},t.prototype.get=function(t){return O(t,this)},t.prototype.has=function(t){return j(t,this)},t.prototype.includes=function(t){return this.some((function(n){return n===t}))},t.prototype.isArray=function(){return!1},t.prototype.isObject=function(){return!0},t.prototype.keyOf=function(t){return this.findKey((function(n){return n===t}))},t.prototype.keys=function(){return new X(Object.keys(this))},t.prototype.lastKeyOf=function(t){return this.findLastKey((function(n){return n===t}))},t.prototype.map=function(n){var e=this;return Object.keys(this).reduce((function(t,r){return t[r]=R(n(e[r],r,e)),t}),new t({}))},t.prototype.merge=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.reduce((function(n,e){return m(t,R(e),n)}),this)},t.prototype.mutate=function(t){return R(t(this.thaw(),this))},t.prototype.pluck=function(t){var n=Object(l.a)(t),e=O(n.slice(0,n.length-1),this),r=n.slice(-1);return e.map((function(t){return O(r,t)})).values()},t.prototype.reduce=function(t,n){var e=this;return R(Object.keys(this).reduce((function(n,r){return t(n,e[r],r,e)}),n))},t.prototype.reduceRight=function(t,n){var e=this;return R(Object.keys(this).reverse().reduce((function(n,r){return t(n,e[r],r,e)}),n))},t.prototype.set=function(t,n){return S(t,R(n),this)},t.prototype.some=function(t){return I(this,t)},t.prototype.sort=function(n){var e=this;return new t(Object.keys(this).sort(n).reduce((function(t,n){return t[n]=e[n],t}),{}))},t.prototype.thaw=function(){return M(this)},t.prototype.toArray=function(){return this.values()},t.prototype.toLocaleString=function(t,n){return this.toString(t,n)},t.prototype.toObject=function(){return this},t.prototype.toString=function(t,n){return p()(this,t,n)},t.prototype.valueOf=function(){return this},t.prototype.values=function(){return q(this)},J(t,[{key:"hashCode",get:function(){return y()(this,!0)}},{key:"size",get:function(){return Object.keys(this).length}}]),t})(),H=G,Q=(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}})(),U=!1,V=(function(t){function n(e){var r;i(this,n);var o=u(this,t.call(this,k(e)?e.length:e||0));if(U||(f(),U=!0),x(e)){var c;return c=e.toArray(),u(o,c)}return r=k(e)?e.reduce((function(t,n,e){return t[e]=R(n),t}),o):o,u(o,r)}return c(n,t),n.prototype.clear=function(){return new n},n.prototype.compact=function(){return this.filter((function(t){return!!t}))},n.prototype.copyWithin=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,r=[].concat(this),o=this.length>>>0,i=$(t>>0,o),u=$(n>>0,o),c=$(e>>0,o),f=Math.min(c-u,o-i),s=1;for(u<i&&i<u+f&&(s=-1,u+=f-1,i+=f-1);f>0;)u in r?r[i]=r[u]:delete r[i],u+=s,i+=s,f--;return new this.constructor(r)},n.prototype.delete=function(t){return w(t,this)},n.prototype.difference=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];if(!n.length)return this;var r=void 0;return n.reduce((function(t,n){return k(n)&&n.forEach((function(n){~(r=t.indexOf(n))&&(t=t.splice(r,1))})),t}),this)},n.prototype.entries=function(){return T(this)},n.prototype.equals=function(t){return A(this,t)},n.prototype.fill=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,r=n<0?this.length+n:n,o=e<0?this.length+e:e,i=R(t);return this.map((function(t,n){return n>=r&&n<o?i:t}))},n.prototype.findLast=function(t){return z(this,t,!1,!0)},n.prototype.findLastIndex=function(t){return z(this,t,!0,!0)},n.prototype.first=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.slice(0,t)},n.prototype.forEach=function(t){return Array.prototype.forEach.call(this,t),this},n.prototype.get=function(t){return O(t,this)},n.prototype.has=function(t){return j(t,this)},n.prototype.intersection=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return this;var o=[],i=void 0,u=[this].concat(e).reduce((function(t,n){return k(n)&&n.forEach((function(n){if(~(i=t.indexOf(n)))return o[i]++;o[t.length]=1,t.push(n)})),t}),[]),c=e.length+1;return new n(u.filter((function(t,n){return o[n]===c})))},n.prototype.isArray=function(){return!0},n.prototype.isObject=function(){return!1},n.prototype.join=function(t){return this.thaw().join(t)},n.prototype.keys=function(){return new n(Object.keys(this).map(Number))},n.prototype.last=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.slice(this.length-t)},n.prototype.map=function(t){var n=this;return Array.prototype.map.call(this,(function(e,r){return R(t(e,r,n))}))},n.prototype.merge=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.reduce((function(n,e){return m(t,R(e),n)}),this)},n.prototype.mutate=function(t){return R(t(this.thaw(),this))},n.prototype.pluck=function(t){var n=Object(l.a)(t),e=O(n.slice(0,n.length-1),this),r=n.slice(-1);return e.map((function(t){return O(r,t)}))},n.prototype.pop=function(){return this.slice(0,this.length-1)},n.prototype.push=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.length?this.concat(n):this},n.prototype.reduce=function(t,n){var e=this;return R(Array.prototype.reduce.call(this,(function(n,r,o){return t(n,r,o,e)}),n))},n.prototype.reduceRight=function(t,n){var e=this;return R(Array.prototype.reduceRight.call(this,(function(n,r,o){return t(n,r,o,e)}),n))},n.prototype.reverse=function(){return new n([].concat(this).reverse())},n.prototype.set=function(t,n){return S(t,R(n),this)},n.prototype.shift=function(){return this.slice(1)},n.prototype.sort=function(t){var e=[].concat(this);return e.sort(t),new n(e)},n.prototype.splice=function(){var t=[].concat(this);return t.splice.apply(t,arguments),new n(t)},n.prototype.thaw=function(){return M(this)},n.prototype.toArray=function(){return this},n.prototype.toLocaleString=function(t,n){return this.toString(t,n)},n.prototype.toObject=function(){return this.reduce((function(t,n,e){return t[e]=n,t}),new H({}))},n.prototype.toString=function(t,n){return p()(this,t,n)},n.prototype.unique=function(){var t=[],n=[],e=!1,r=void 0,o=void 0;return this.filter((function(i){return r=i?i.hashCode:void 0,e=!_(r),o=!(~n.indexOf(i)||e&&~t.indexOf(r)),o&&(n.push(i),e&&t.push(r)),o}))},n.prototype.unshift=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length?new n([].concat(e,this)):this},n.prototype.valueOf=function(){return this},n.prototype.values=function(){return q(this)},n.prototype.xor=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return this;var o=[],i=void 0;return[this].concat(e).reduce((function(t,n){return k(n)&&n.forEach((function(n){i=t.indexOf(n),~i?o.push(i):t=t.push(n)})),t}),new n([])).filter((function(t,n){return!~o.indexOf(n)}))},Q(n,[{key:"hashCode",get:function(){return y()(this,!0)}}]),n})(function(t){function n(){var n=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(n,Object.getPrototypeOf(this)),n}return n.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t,n}(Array)),X=V,Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(x(t))return t;if(k(t))return new X(t);if(E(t))return new H(t);throw new TypeError("Object passed must be either an array or a plain object.")};Y.array=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!k(t))throw new TypeError("Object passed must be an array.");return Y(t)},Y.isArray=function(t){return x(t)&&t.isArray()},Y.isCrio=x,Y.isObject=function(t){return x(t)&&t.isObject()},Y.object=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!E(t))throw new TypeError("Object passed must be a plain object.");return Y(t)};n.default=Y}),(function(t,n,e){"use strict";(function(t){e.d(n,"f",(function(){return c})),e.d(n,"g",(function(){return f})),e.d(n,"d",(function(){return y})),e.d(n,"b",(function(){return d})),e.d(n,"c",(function(){return g})),e.d(n,"a",(function(){return O})),e.d(n,"e",(function(){return j})),e.d(n,"h",(function(){return m})),e.d(n,"i",(function(){return w}));var r=e(0),o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,u=/^\s*function\s*([^\(]*)/i,c=Array.isArray,f=function(t){return!!t&&"object"==typeof t&&!(t instanceof Date||t instanceof RegExp)&&t.$$typeof!==i},s=function(n){return"function"==typeof n&&("undefined"!=typeof window?window:t)[n.name||Function.prototype.toString.call(n).split(u)[1]]===n},p=function(t){return c(t)?t.map((function(t){return t})):t.constructor===Object?o({},t):s(t.constructor)?{}:Object.keys(t).reduce((function(n,e){return n[e]=t[e],n}),Object.create(Object.getPrototypeOf(t)))},a=function(t){return"number"==typeof t?[]:{}},y=function(t){return c(t)?[]:{}},l=function(t){return f(t)?p(t):t},h=function(t,n){return f(t)?p(t):a(n)},b=function t(n,e,r,o,i){var u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,c=n[u],f=u+1;if(f===n.length){var s=e||o?r(e,c):i;return o?e:s}return o?(e[c]=t(n,h(e[c],n[f]),r,o,i,f),e):e&&e[c]?t(n,e[c],r,o,i,f):i},d=function t(n,e){var r=c(n);if(r!==c(e)||!f(n))return l(e);if(r)return n.concat(e.map(l));var o=Object.keys(n).reduce((function(t,e){return t[e]=l(n[e]),t}),n.constructor===Object?{}:Object.create(Object.getPrototypeOf(n)));return Object.keys(e).reduce((function(r,o){return r[o]=f(e[o])?t(n[o],e[o]):e[o],r}),o)},v=function(t){return c(t)?t:Object(r.a)(t)},g=function(t,n){var e=v(t);return 1===e.length?n?n[e[0]]:void 0:b(e,n,(function(t,n){return t[n]}))},O=function(t,n,e){var r=v(t),o=f(n)?p(n):a(r[0]);return 1===r.length?(e(o,r[0]),o):b(r,o,e,!0)},j=function(t,n){var e=v(t);return 1===e.length?!!n&&void 0!==n[e[0]]:b(e,n,(function(t,n){return!!t&&void 0!==t[n]}),!1,!1)},m=function(t){return void 0===t||null===t||c(t)&&!t.length},w=function(t,n){if(t.length){for(var e=t.length,r=n;r<e;)t[r]=t[r+1],r++;t.length--}}}).call(n,e(6))}),(function(t,n){var e;e=(function(){return this})();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e})])}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.crio={})}(this,function(t){"use strict";function n(t,n){return t(n={exports:{}},n.exports),n.exports}var r,e=n(function(t,n){function r(t,n){var r=[],e=[];return null==n&&(n=function(t,n){return r[0]===n?"[Circular ~]":"[Circular ~."+e.slice(0,r.indexOf(n)).join(".")+"]"}),function(o,i){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?e.splice(u,1/0,o):e.push(o),~r.indexOf(i)&&(i=n.call(this,o,i))}else r.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,n,e,o){return JSON.stringify(t,r(n,o),e)}).getSerialize=r}),o=(e.getSerialize,n(function(t){!function(){var n,r,e=function(t,n){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n(r)},o=function(t,n){for(var r in t)n(r)},i=function(t,n,r){null!=t&&(r=r||{},Object.getOwnPropertyNames(t).forEach(function(t){r[t]||(n(t),r[t]=!0)}),i(Object.getPrototypeOf(t),n,r))};Object.defineProperty(Date.prototype,"toPrunedJSON",{value:Date.prototype.toJSON});var u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function f(t){return u.lastIndex=0,u.test(t)?'"'+t.replace(u,function(t){var n=c[t];return"string"==typeof n?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}var a=function(t,u,c){var a,s='"-pruned-"';if("object"==typeof u){var p=u;u=p.depthDecr,c=p.arrayMaxLength,r=p.iterator||e,p.allProperties?r=i:p.inheritedProperties&&(r=o),"prunedString"in p&&(s=p.prunedString),p.replacer&&(a=p.replacer)}else r=e;return n=[],u=u||6,c=c||50,function t(e,o,i){var u,p,l,y,h=o[e];switch(h&&"object"==typeof h&&"function"==typeof h.toPrunedJSON&&(h=h.toPrunedJSON(e)),h&&"function"==typeof h.toJSON&&(h=h.toJSON()),typeof h){case"string":return f(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i<=0||-1!==n.indexOf(h)){if(a){var d=a(h,s,!0);return void 0===d?void 0:""+d}return s}if(n.push(h),y=[],"[object Array]"===Object.prototype.toString.apply(h)){for(l=Math.min(h.length,c),u=0;u<l;u+=1)y[u]=t(u,h,i-1)||"null";return p="["+y.join(",")+"]",a&&h.length>c?a(h,p,!1):p}return r(h,function(n){try{(p=t(n,h,i-1))&&y.push(f(n)+":"+p)}catch(t){}}),"{"+y.join(",")+"}";case"function":case"undefined":return a?a(h,void 0,!1):void 0}}("",{"":t},u)};a.log=function(){console.log.apply(console,Array.prototype.map.call(arguments,function(t){return JSON.parse(JSON.prune(t))}))},a.forEachProperty=i,t.exports=a}()})),i=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},u=["Arguments","Array","ArrayBuffer","Boolean","DataView","Date","Error","Float32Array","Float64Array","Function","Generator","GeneratorFunction","HTMLElement","Int8Array","Int16Array","Int32Array","Map","Math","Null","Number","Object","Promise","RegExp","Set","String","Symbol","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","Undefined","WeakMap","WeakSet"].reduce(function(t,n){return t["[object "+n+"]"]=n,t},{}),c=Object.keys(u).reduce(function(t,n){return t[u[n].toUpperCase()]=n,t},{}),f=[c.ARRAY,c.OBJECT],a=[c.DATE,c.MAP,c.SET,c.REGEXP,c.ERROR,c.GENERATORFUNCTION,c.MATH,c.ARRAYBUFFER,c.DATAVIEW,c.FLOAT32ARRAY,c.FLOAT64ARRAY,c.INT8ARRAY,c.INT16ARRAY,c.INT32ARRAY,c.UINT8ARRAY,c.UINT8CLAMPEDARRAY,c.UINT16ARRAY,c.UINT32ARRAY,c.PROMISE,c.GENERATOR,c.WEAKMAP,c.WEAKSET],s=[c.ARRAY,c.OBJECT,c.ARGUMENTS],p=[c.ERROR,c.REGEXP],l=[c.MAP,c.SET],y=[c.PROMISE,c.GENERATOR,c.WEAKMAP,c.WEAKSET],h=[c.FLOAT32ARRAY,c.FLOAT64ARRAY,c.INT8ARRAY,c.INT16ARRAY,c.INT32ARRAY,c.UINT8ARRAY,c.UINT8CLAMPEDARRAY,c.UINT16ARRAY,c.UINT32ARRAY],d=["string","number"],b=["boolean","undefined","function","symbol"],v=["symbol","function"],g=[].concat(d,b),O=/\[object (HTML(.*)Element)\]/,A=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"].reduce(function(t,n){var r;return i({},t,((r={})[n]=Math[n],r))},{}),m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j=Object.prototype.toString,S=function(t){return"undefined"==typeof Uint16Array?"":String.fromCharCode.apply(null,new Uint16Array(t))},R=function(t,n){return u[n]+" "+t},E=function(t,n){var r,e,o=n||j.call(t);return~s.indexOf(o)?t:~p.indexOf(o)||null===t?R(t,o):o===c.DATE?R(t.valueOf(),o):~l.indexOf(o)?(r=t,e=[u[o]],r.forEach(function(t,n){e.push([n,t])}),e):~y.indexOf(o)?R("NOT_ENUMERABLE",o):o===c.ARRAYBUFFER?R(S(t),o):o===c.DATAVIEW?R(S(t.buffer),o):~h.indexOf(o)?R(t.join(","),o):o===c.MATH?A:O.test(o)?R(function(t){for(var n=t.attributes,r="",e=0;e<n.length;e++)r+=n[e].name+'="'+n[e].value+'",';return t.tagName+" "+r+" "+t.innerHTML}(t),c.HTMLELEMENT):t},w=function(t){var n=void 0===t?"undefined":m(t);return~d.indexOf(n)?t:~b.indexOf(n)?R(~v.indexOf(n)?t.constructor.prototype.toString.call(t):t,j.call(t)):E(t)},T=function(t){var n=1,r=void 0;return function(e,o){return e?null===o?E(o,c.NULL):~g.indexOf(void 0===o?"undefined":m(o))?w(o):(r=j.call(o),~f.indexOf(r)?function(t,n,r,e){if(!t)return R(t,n);if(e>512)return r.length=0,t;var o=r.indexOf(t);return~o?"*Circular-"+o:(r.push(t),t)}(o,r,t,++n):~a.indexOf(r)?E(o,r):o):(t=[o],o)}},x=function(t,n){var r=w(t);return"string"==typeof r?r:n?function(t){try{return JSON.stringify(t,T([]))}catch(n){return o(t)}}(w(t)):JSON.stringify(r,T([]))},N=function(t,n){return function(t){if(!t)return 0;for(var n=5381,r=0;r<t.length;r++)n=(n<<5)+n+t.charCodeAt(r);return n>>>0}(x(t,n))},P=N(void 0),k=N(null),I=N([]),L=N(new Map),M=N(0),U=N({}),C=N(new Set),Y=N(""),F=((r={})[I]=!0,r[L]=!0,r[M]=!0,r[U]=!0,r[C]=!0,r[Y]=!0,r[k]=!0,r[P]=!0,r);N.isEqual=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var e=n.length;if(1===e)throw new Error("isEqual requires at least two objects to be passed for comparison.");for(var o=1;o<e;o++)if(N(n[o-1])!==N(n[o]))return!1;return!0},N.isEmpty=function(t){return!!F[N(t)]},N.isNull=function(t){return N(t)===k},N.isUndefined=function(t){return N(t)===P};var _={clear:function(){_.results={},_.size=0},results:{},size:0},J=/"[^"]+"|`[^`]+`|'[^']+'|[^.[\]]+/g,D=/^\d+$/i,K=/^"[^"]+"|`[^`]+`|'[^']+'$/,G=function(t){var n=function(t){return K.test(t)}(t)?t.substring(1,t.length-1):t;return function(t){return!!t.length&&D.test(t)}(n)?+n:n},W=function(t){return"string"==typeof t?function(t){return _.results[t]?_.results[t]:(_.size>500&&_.clear(),_.results[t]=t?t.match(J).map(G):[t],_.size++,_.results[t])}(t):Array.isArray(t)?t.map(G):["number"==typeof t?t:""+t]},z="function"==typeof Symbol?Symbol("curriable placeholder"):60881,B=function(t,n){for(var r=new Array(t.length),e=0,o=0;o<t.length;o++)r[o]=t[o]===z&&e<n.length?n[e++]:t[o];if(e<n.length)for(;e<n.length;e++)r.push(n[e]);return r},q=function(t,n){for(var r=0;r<n;r++)if(t[r]===z)return!0;return!1};function H(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return function r(){var e=arguments;return e.length>=n&&!q(e,n)?t.apply(this,e):function(){return r.apply(this,B(e,arguments))}}}H.__=z;var $="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,V=/^\s*function\s*([^\(]*)/i,Q=Array.isArray,X=function(t){return!!t&&"object"==typeof t&&!(t instanceof Date||t instanceof RegExp)&&t.$$typeof!==$},Z=function(t){return Q(t)?t.slice():t.constructor===Object?Object.assign({},t):"function"==typeof(n=t.constructor)&&("undefined"!=typeof window?window:global)[n.name||Function.prototype.toString.call(n).split(V)[1]]===n?{}:Object.keys(t).reduce(function(n,r){return n[r]=t[r],n},Object.create(Object.getPrototypeOf(t)));var n},tt=function(t){return"number"==typeof t?[]:{}},nt=function(t){return X(t)?Z(t):t},rt=function(t,n){return void 0===t?n:t},et=function t(n,r,e,o,i){var u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,c=n[u],f=u+1;if(f===n.length){var a=r||o?e(r,c):i;return o?r:a}return o?(r[c]=t(n,function(t,n){return X(t)?Z(t):tt(n)}(r[c],n[f]),e,o,i,f),r):r&&r[c]?t(n,r[c],e,o,i,f):i},ot=function t(n,r){var e=Q(n);if(e!==Q(r)||!X(n))return nt(r);if(e)return n.concat(r.map(nt));var o=Object.keys(n).reduce(function(t,r){return t[r]=nt(n[r]),t},n.constructor===Object?{}:Object.create(Object.getPrototypeOf(n)));return Object.keys(r).reduce(function(e,o){return e[o]=X(r[o])?t(n[o],r[o]):r[o],e},o)},it=function(t){return Q(t)?t:W(t)},ut=function(t,n,r){var e=it(t);return 1===e.length?n?rt(n[e[0]],r):r:et(e,n,function(t,n){return rt(t[n],r)},!1,r)},ct=function(t,n,r){var e=it(t),o=X(n)?Z(n):tt(e[0]);return 1===e.length?(r(o,e[0]),o):et(e,o,r,!0)},ft=function(t,n){return void 0!==ut(t,n)},at=function(t){return void 0===t||null===t||Q(t)&&!t.length},st=H(function(t,n){return at(t)?n:ut(t,n)}),pt=(H(function(t,n,r){return at(n)?r:ut(n,r,t)}),H(function(t,n){return at(t)?null!=n:ft(t,n)})),lt=H(function(t,n,r){return X(r)?at(t)?ot(r,n):ct(t,r,function(t,r){t[r]=ot(t[r],n)}):n}),yt=H(function(t,n){return at(t)?function(t){return Q(t)?[]:{}}(n):ft(t,n)?ct(t,n,function(t,n){Q(t)?function(t,n){if(t.length){for(var r=t.length,e=n;e<r;)t[e]=t[e+1],e++;t.length--}}(t,n):delete t[n]}):n}),ht=H(function(t,n,r){return at(t)?n:ct(t,r,function(t,r){t[r]=n})}),dt=(H(function(t,n,r){var e=st(t,r),o=Q(e)?Q(t)?t.concat([e.length]):(at(t)?"":t)+"["+e.length+"]":t;return ht(o,n,r)}),Array.isArray),bt=function(t){return t instanceof Jt||t instanceof Ut},vt=function(t,n){return bt(n)&&t.hashCode===n.hashCode},gt=function(t){return!!t&&t.constructor===Object&&!function(t){return!!t&&t.$$typeof===It}(t)},Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At=function(){return function(){var t=this,n=this.keys(),r=n.length,e=0;return{next:function(){return e<r?{done:!1,value:t[n[e++]]}:{done:!0}}}}},mt=function(t,n){for(var r=t.keys(),e=void 0,o=0;o<r.length;o++)if(!n(t[e=r[o]],e,t))return!1;return!0},jt=function(t,n,r,e){for(var o=e?t.keys().reverse():t.keys(),i=void 0,u=0;u<o.length;u++)if(n(t[i=o[u]],i,t))return r?i:t[i];return r&&t.isArray()?-1:void 0},St=function(t){return t&&"object"===(void 0===t?"undefined":Ot(t))?dt(t)?t instanceof Jt?t:new Jt(t):gt(t)?new Ut(t):t:t},Rt=function(t){return t.keys().map(function(n){return[n,t[n]]})},Et=function(t,n){return t<0?Math.max(n+t,0):Math.min(t,n)},wt=function(t){return t.keys().map(function(n){return t[n]})},Tt=function(t,n){for(var r=t.keys(),e=void 0,o=0;o<r.length;o++)if(n(t[e=r[o]],e,t))return!0;return!1},xt=function t(n){return bt(n)?n.isArray()?[].concat(n).map(function(n){return t(n)}):Object.keys(n).reduce(function(r,e){return r[e]=t(n[e]),r},{}):n},Nt={copyWithin:!0,entries:!0,fill:!0,find:!0,findIndex:!0,findLastIndex:!0,includes:!0,keys:!0,values:!0},Pt={every:function(t){return mt(this,t)},find:function(t){return jt(this,t)},findIndex:function(t){return jt(this,t,!0)},includes:function(t){return!!~this.indexOf(t)},some:function(t){return Tt(this,t)}},kt={entries:!0,fill:!0,find:!0,findKey:!0,findLastKey:!0,includes:!0,keys:!0,values:!0},It="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,Lt=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}}();var Mt=void 0,Ut=function(){function t(n){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),Mt||(Ct(),Mt=!0),bt(n)?n.toObject():(gt(n)?Object.keys(n):[]).reduce(function(t,r){return t[r]=St(n[r]),t},this)}return t.prototype.clear=function(){return new t},t.prototype.compact=function(){return this.filter(function(t){return!!t})},t.prototype.delete=function(t){return yt(t,this)},t.prototype.entries=function(){return Rt(this)},t.prototype.equals=function(t){return vt(this,t)},t.prototype.every=function(t){return mt(this,t)},t.prototype.filter=function(n){var r=this;return new t(Object.keys(this).reduce(function(t,e){return n(r[e],e,t)&&(t[e]=r[e]),t},{}))},t.prototype.find=function(t){return jt(this,t)},t.prototype.findKey=function(t){return jt(this,t,!0)},t.prototype.findLast=function(t){return jt(this,t,!1,!0)},t.prototype.findLastKey=function(t){return jt(this,t,!0,!0)},t.prototype.forEach=function(t){var n=this;return Object.keys(this).forEach(function(r){return t(n[r],r,n)}),this},t.prototype.get=function(t){return st(t,this)},t.prototype.has=function(t){return pt(t,this)},t.prototype.includes=function(t){return this.some(function(n){return n===t})},t.prototype.isArray=function(){return!1},t.prototype.isObject=function(){return!0},t.prototype.keyOf=function(t){return this.findKey(function(n){return n===t})},t.prototype.keys=function(){return new Jt(Object.keys(this))},t.prototype.lastKeyOf=function(t){return this.findLastKey(function(n){return n===t})},t.prototype.map=function(n){var r=this;return Object.keys(this).reduce(function(t,e){return t[e]=St(n(r[e],e,r)),t},new t({}))},t.prototype.merge=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];return r.reduce(function(n,r){return lt(t,St(r),n)},this)},t.prototype.mutate=function(t){return St(t(this.thaw(),this))},t.prototype.pluck=function(t){var n=W(t),r=st(n.slice(0,n.length-1),this),e=n.slice(-1);return r.map(function(t){return st(e,t)}).values()},t.prototype.reduce=function(t,n){var r=this;return St(Object.keys(this).reduce(function(n,e){return t(n,r[e],e,r)},n))},t.prototype.reduceRight=function(t,n){var r=this;return St(Object.keys(this).reduceRight(function(n,e){return t(n,r[e],e,r)},n))},t.prototype.set=function(t,n){return ht(t,St(n),this)},t.prototype.some=function(t){return Tt(this,t)},t.prototype.sort=function(n){var r=this;return new t(Object.keys(this).sort(n).reduce(function(t,n){return t[n]=r[n],t},{}))},t.prototype.thaw=function(){return xt(this)},t.prototype.toArray=function(){return this.values()},t.prototype.toLocaleString=function(t,n){return this.toString(t,n)},t.prototype.toObject=function(){return this},t.prototype.toString=function(t,n){return e(this,t,n)},t.prototype.valueOf=function(){return this},t.prototype.values=function(){return wt(this)},Lt(t,[{key:"hashCode",get:function(){return N(this,!0)}},{key:"size",get:function(){return Object.keys(this).length}}]),t}();function Ct(){"function"==typeof Symbol&&(Symbol.species&&Object.defineProperty(Ut,Symbol.species,{configurable:!1,enumerable:!1,get:function(){return Ut}}),Symbol.iterator&&Object.defineProperty(Ut.prototype,Symbol.iterator,{configurable:!1,enumerable:!1,value:At(),writable:!1}),Symbol.unscopables&&Object.defineProperty(Ut.prototype,Symbol.unscopables,{configurable:!1,enumerable:!1,value:kt,writable:!1}))}var Yt=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}}();function Ft(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}var _t=!1,Jt=function(t){function n(r){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);var e=Ft(this,t.call(this,dt(r)?r.length:r||0));return _t||(Dt(),_t=!0),Ft(e,bt(r)?r.toArray():dt(r)?r.reduce(function(t,n,r){return t[r]=St(n),t},e):e)}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}(n,t),n.prototype.clear=function(){return new n},n.prototype.compact=function(){return this.filter(function(t){return!!t})},n.prototype.copyWithin=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,e=[].concat(this),o=this.length>>>0,i=Et(r>>0,o),u=Et(t>>0,o),c=Et(n>>0,o),f=Math.min(i-c,o-u),a=1;for(c<u&&u<c+f&&(a=-1,c+=f-1,u+=f-1);f>0;)c in e?e[u]=e[c]:delete e[u],c+=a,u+=a,f--;return new this.constructor(e)},n.prototype.delete=function(t){return yt(t,this)},n.prototype.difference=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return this;var e=void 0;return n.reduce(function(t,n){return dt(n)&&n.forEach(function(n){~(e=t.indexOf(n))&&(t=t.splice(e,1))}),t},this)},n.prototype.entries=function(){return Rt(this)},n.prototype.equals=function(t){return vt(this,t)},n.prototype.fill=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,e=n<0?this.length+n:n,o=r<0?this.length+r:r,i=St(t);return this.map(function(t,n){return n>=e&&n<o?i:t})},n.prototype.findLast=function(t){return jt(this,t,!1,!0)},n.prototype.findLastIndex=function(t){return jt(this,t,!0,!0)},n.prototype.first=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.slice(0,t)},n.prototype.forEach=function(t){return Array.prototype.forEach.call(this,t),this},n.prototype.get=function(t){return st(t,this)},n.prototype.has=function(t){return pt(t,this)},n.prototype.intersection=function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!r.length)return this;var o=[],i=void 0,u=[this].concat(r).reduce(function(t,n){return dt(n)&&n.forEach(function(n){if(~(i=t.indexOf(n)))return o[i]++;o[t.length]=1,t.push(n)}),t},[]),c=r.length+1;return new n(u.filter(function(t,n){return o[n]===c}))},n.prototype.isArray=function(){return!0},n.prototype.isObject=function(){return!1},n.prototype.join=function(t){return this.thaw().join(t)},n.prototype.keys=function(){return new n(Object.keys(this).map(Number))},n.prototype.last=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.slice(this.length-t)},n.prototype.map=function(t){var n=this;return Array.prototype.map.call(this,function(r,e){return St(t(r,e,n))})},n.prototype.merge=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];return r.reduce(function(n,r){return lt(t,St(r),n)},this)},n.prototype.mutate=function(t){return St(t(this.thaw(),this))},n.prototype.pluck=function(t){var n=W(t),r=st(n.slice(0,n.length-1),this),e=n.slice(-1);return r.map(function(t){return st(e,t)})},n.prototype.pop=function(){return this.slice(0,this.length-1)},n.prototype.push=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.length?this.concat(n):this},n.prototype.reduce=function(t,n){var r=this;return St(Array.prototype.reduce.call(this,function(n,e,o){return t(n,e,o,r)},n))},n.prototype.reduceRight=function(t,n){var r=this;return St(Array.prototype.reduceRight.call(this,function(n,e,o){return t(n,e,o,r)},n))},n.prototype.reverse=function(){return new n([].concat(this).reverse())},n.prototype.set=function(t,n){return ht(t,St(n),this)},n.prototype.shift=function(){return this.slice(1)},n.prototype.sort=function(t){var r=[].concat(this);return r.sort(t),new n(r)},n.prototype.splice=function(){var t=[].concat(this);return t.splice.apply(t,arguments),new n(t)},n.prototype.thaw=function(){return xt(this)},n.prototype.toArray=function(){return this},n.prototype.toLocaleString=function(t,n){return this.toString(t,n)},n.prototype.toObject=function(){return this.reduce(function(t,n,r){return t[r]=n,t},new Ut({}))},n.prototype.toString=function(t,n){return e(this,t,n)},n.prototype.unique=function(){var t=[],n=[],r=!1,e=void 0,o=void 0;return this.filter(function(i){return e=i?i.hashCode:void 0,r=!(void 0===e),(o=!(~n.indexOf(i)||r&&~t.indexOf(e)))&&(n.push(i),r&&t.push(e)),o})},n.prototype.unshift=function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.length?new n([].concat(r,this)):this},n.prototype.valueOf=function(){return this},n.prototype.values=function(){return wt(this)},n.prototype.xor=function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!r.length)return this;var o=[],i=void 0;return[this].concat(r).reduce(function(t,n){return dt(n)&&n.forEach(function(n){~(i=t.indexOf(n))?o.push(i):t=t.push(n)}),t},new n([])).filter(function(t,n){return!~o.indexOf(n)})},Yt(n,[{key:"hashCode",get:function(){return N(this,!0)}}]),n}(function(t){function n(){var n=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(n,Object.getPrototypeOf(this)),n}return n.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t,n}(Array));function Dt(){Object.keys(Pt).forEach(function(t){"function"!=typeof Array.prototype[t]&&(Jt.prototype[t]=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return Pt[t].apply(Pt,[this].concat(r))})}),"function"==typeof Symbol&&(Symbol.species&&Object.defineProperty(Jt,Symbol.species,{configurable:!1,enumerable:!1,get:function(){return Jt}}),Symbol.iterator&&Object.defineProperty(Jt.prototype,Symbol.iterator,{configurable:!1,enumerable:!1,value:At(),writable:!1}),Symbol.unscopables&&Object.defineProperty(Jt.prototype,Symbol.unscopables,{configurable:!1,enumerable:!1,value:Nt,writable:!1}))}var Kt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(bt(t))return t;if(dt(t))return new Jt(t);if(gt(t))return new Ut(t);throw new TypeError("Object passed must be either an array or a plain object.")};Kt.array=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!dt(t))throw new TypeError("Object passed must be an array.");return Kt(t)},Kt.isArray=function(t){return bt(t)&&t.isArray()},Kt.isCrio=bt,Kt.isObject=function(t){return bt(t)&&t.isObject()},Kt.object=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gt(t))throw new TypeError("Object passed must be a plain object.");return Kt(t)},t.default=Kt,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -58,3 +58,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function CrioArray(array) {
var _ret2;
var _ret;

@@ -66,3 +66,3 @@ _classCallCheck(this, CrioArray);

if (!hasAppliedPrototype) {
applyPrototype();
applyPrototype(); // eslint-disable-line no-use-before-define

@@ -72,13 +72,7 @@ hasAppliedPrototype = true;

if (isCrio(array)) {
var _ret;
return _ret = array.toArray(), _possibleConstructorReturn(_this, _ret);
}
return _ret2 = isArray(array) ? array.reduce(function (crioArray, item, index) {
return _ret = isCrio(array) ? array.toArray() : isArray(array) ? array.reduce(function (crioArray, item, index) {
crioArray[index] = getCrioedObject(item);
return crioArray;
}, _this) : _this, _possibleConstructorReturn(_this, _ret2);
}, _this) : _this, _possibleConstructorReturn(_this, _ret);
}

@@ -135,9 +129,7 @@

var length = this.length >>> 0;
var final = getRelativeValue(endIndex >> 0, length);
var to = getRelativeValue(targetIndex >> 0, length),
from = getRelativeValue(startIndex >> 0, length);
var final = getRelativeValue(endIndex >> 0, length);
var count = Math.min(final - from, length - to),
from = getRelativeValue(startIndex >> 0, length),
count = Math.min(final - from, length - to),
direction = 1;

@@ -577,3 +569,2 @@

var parsedKey = parse(key);
var arrayToPluck = _get(parsedKey.slice(0, parsedKey.length - 1), this);

@@ -580,0 +571,0 @@ var finalKey = parsedKey.slice(-1);

@@ -29,6 +29,4 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var objectKeys = isObject(object) ? Object.keys(object) : [];
if (!hasAppliedPrototype) {
applyPrototype();
applyPrototype(); // eslint-disable-line no-use-before-define

@@ -42,2 +40,4 @@ hasAppliedPrototype = true;

var objectKeys = isObject(object) ? Object.keys(object) : [];
return objectKeys.reduce(function (crioObject, key) {

@@ -247,3 +247,3 @@ crioObject[key] = getCrioedObject(object[key]);

Object.keys(this).forEach(function (key) {
fn(_this2[key], key, _this2);
return fn(_this2[key], key, _this2);
});

@@ -460,3 +460,2 @@

var parsedKey = parse(key);
var objectToPluck = _get(parsedKey.slice(0, parsedKey.length - 1), this);

@@ -508,3 +507,3 @@ var finalKey = parsedKey.slice(-1);

return getCrioedObject(Object.keys(this).reverse().reduce(function (value, key) {
return getCrioedObject(Object.keys(this).reduceRight(function (value, key) {
return fn(value, _this5[key], key, _this5);

@@ -511,0 +510,0 @@ }, initialValue));

@@ -98,7 +98,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

if (isKey) {
return object.isArray() ? -1 : undefined;
}
return undefined;
return isKey && object.isArray() ? -1 : undefined;
};

@@ -116,11 +112,3 @@

export var getCrioedObject = function getCrioedObject(object) {
if (!object || (typeof object === 'undefined' ? 'undefined' : _typeof(object)) !== 'object') {
return object;
}
if (isArray(object)) {
return object instanceof CrioArray ? object : new CrioArray(object);
}
return isObject(object) ? new CrioObject(object) : object;
return object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' ? isArray(object) ? object instanceof CrioArray ? object : new CrioArray(object) : isObject(object) ? new CrioObject(object) : object : object;
};

@@ -208,7 +196,3 @@

export var thaw = function thaw(object) {
if (!isCrio(object)) {
return object;
}
return object.isArray() ? [].concat(object).map(function (item) {
return isCrio(object) ? object.isArray() ? [].concat(object).map(function (item) {
return thaw(item);

@@ -219,3 +203,3 @@ }) : Object.keys(object).reduce(function (reducedObject, key) {

return reducedObject;
}, {});
}, {}) : object;
};

@@ -83,3 +83,3 @@ 'use strict';

function CrioArray(array) {
var _ret2;
var _ret;

@@ -91,3 +91,3 @@ _classCallCheck(this, CrioArray);

if (!hasAppliedPrototype) {
applyPrototype();
applyPrototype(); // eslint-disable-line no-use-before-define

@@ -97,13 +97,7 @@ hasAppliedPrototype = true;

if ((0, _is.isCrio)(array)) {
var _ret;
return _ret = array.toArray(), _possibleConstructorReturn(_this, _ret);
}
return _ret2 = (0, _is.isArray)(array) ? array.reduce(function (crioArray, item, index) {
return _ret = (0, _is.isCrio)(array) ? array.toArray() : (0, _is.isArray)(array) ? array.reduce(function (crioArray, item, index) {
crioArray[index] = (0, _utils.getCrioedObject)(item);
return crioArray;
}, _this) : _this, _possibleConstructorReturn(_this, _ret2);
}, _this) : _this, _possibleConstructorReturn(_this, _ret);
}

@@ -160,9 +154,7 @@

var length = this.length >>> 0;
var final = (0, _utils.getRelativeValue)(endIndex >> 0, length);
var to = (0, _utils.getRelativeValue)(targetIndex >> 0, length),
from = (0, _utils.getRelativeValue)(startIndex >> 0, length);
var final = (0, _utils.getRelativeValue)(endIndex >> 0, length);
var count = Math.min(final - from, length - to),
from = (0, _utils.getRelativeValue)(startIndex >> 0, length),
count = Math.min(final - from, length - to),
direction = 1;

@@ -602,3 +594,2 @@

var parsedKey = (0, _pathington.parse)(key);
var arrayToPluck = (0, _unchanged.get)(parsedKey.slice(0, parsedKey.length - 1), this);

@@ -605,0 +596,0 @@ var finalKey = parsedKey.slice(-1);

@@ -54,6 +54,4 @@ 'use strict';

var objectKeys = (0, _is.isObject)(object) ? Object.keys(object) : [];
if (!hasAppliedPrototype) {
applyPrototype();
applyPrototype(); // eslint-disable-line no-use-before-define

@@ -67,2 +65,4 @@ hasAppliedPrototype = true;

var objectKeys = (0, _is.isObject)(object) ? Object.keys(object) : [];
return objectKeys.reduce(function (crioObject, key) {

@@ -272,3 +272,3 @@ crioObject[key] = (0, _utils.getCrioedObject)(object[key]);

Object.keys(this).forEach(function (key) {
fn(_this2[key], key, _this2);
return fn(_this2[key], key, _this2);
});

@@ -485,3 +485,2 @@

var parsedKey = (0, _pathington.parse)(key);
var objectToPluck = (0, _unchanged.get)(parsedKey.slice(0, parsedKey.length - 1), this);

@@ -533,3 +532,3 @@ var finalKey = parsedKey.slice(-1);

return (0, _utils.getCrioedObject)(Object.keys(this).reverse().reduce(function (value, key) {
return (0, _utils.getCrioedObject)(Object.keys(this).reduceRight(function (value, key) {
return fn(value, _this5[key], key, _this5);

@@ -536,0 +535,0 @@ }, initialValue));

@@ -112,7 +112,3 @@ 'use strict';

if (isKey) {
return object.isArray() ? -1 : undefined;
}
return undefined;
return isKey && object.isArray() ? -1 : undefined;
};

@@ -130,11 +126,3 @@

var getCrioedObject = exports.getCrioedObject = function getCrioedObject(object) {
if (!object || (typeof object === 'undefined' ? 'undefined' : _typeof(object)) !== 'object') {
return object;
}
if ((0, _is.isArray)(object)) {
return object instanceof _CrioArray2.default ? object : new _CrioArray2.default(object);
}
return (0, _is.isObject)(object) ? new _CrioObject2.default(object) : object;
return object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' ? (0, _is.isArray)(object) ? object instanceof _CrioArray2.default ? object : new _CrioArray2.default(object) : (0, _is.isObject)(object) ? new _CrioObject2.default(object) : object : object;
};

@@ -222,7 +210,3 @@

var thaw = exports.thaw = function thaw(object) {
if (!(0, _is.isCrio)(object)) {
return object;
}
return object.isArray() ? [].concat(object).map(function (item) {
return (0, _is.isCrio)(object) ? object.isArray() ? [].concat(object).map(function (item) {
return thaw(item);

@@ -233,3 +217,3 @@ }) : Object.keys(object).reduce(function (reducedObject, key) {

return reducedObject;
}, {});
}, {}) : object;
};

@@ -25,40 +25,46 @@ {

"dependencies": {
"hash-it": "~3.0.0",
"json-stringify-safe": "~5.0.1",
"pathington": "~1.1.5",
"unchanged": "~1.0.4"
"hash-it": "^3.1.2",
"json-stringify-safe": "^5.0.1",
"pathington": "^1.1.5",
"unchanged": "^1.2.1"
},
"description": "Immutable objects and arrays in a natural way",
"devDependencies": {
"ava": "~0.24.0",
"babel-cli": "6.26.0",
"babel-core": "~6.26.0",
"babel-eslint": "8.1.2",
"babel-loader": "7.1.2",
"babel-plugin-transform-builtin-extend": "~1.1.2",
"babel-polyfill": "6.26.0",
"babel-preset-env": "~1.6.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-2": "6.24.1",
"babel-register": "6.26.0",
"eslint": "~4.14.0",
"eslint-friendly-formatter": "3.0.0",
"eslint-loader": "1.9.0",
"html-webpack-plugin": "~2.30.1",
"immutable": "3.8.2",
"in-publish": "2.0.0",
"ink-docstrap": "1.3.2",
"jsdoc": "3.5.5",
"jsdoc-babel": "0.3.0",
"lodash-webpack-plugin": "0.11.4",
"mori": "0.3.2",
"nyc": "11.4.1",
"optimize-js-plugin": "0.0.4",
"react": "16.2.0",
"react-dom": "16.2.0",
"rimraf": "2.6.2",
"seamless-immutable": "7.1.2",
"sinon": "4.1.3",
"webpack": "3.10.0",
"webpack-dev-server": "2.9.7"
"ava": "^0.25.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-loader": "^7.1.4",
"babel-plugin-transform-builtin-extend": "^1.1.2",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"babel-register": "^6.26.0",
"eslint": "^4.19.1",
"eslint-config-rapid7": "~2.11.1",
"eslint-friendly-formatter": "^4.0.0",
"eslint-loader": "^2.0.0",
"html-webpack-plugin": "^3.2.0",
"immutable": "^3.8.2",
"in-publish": "^2.0.0",
"ink-docstrap": "^1.3.2",
"jsdoc": "^3.5.5",
"jsdoc-babel": "^0.4.0",
"mori": "^0.3.2",
"nyc": "^11.6.0",
"optimize-js-plugin": "^0.0.4",
"react": "^16.3.1",
"react-dom": "^16.3.1",
"rimraf": "^2.6.2",
"rollup": "~0.57.1",
"rollup-plugin-babel": "~3.0.3",
"rollup-plugin-commonjs": "~9.1.0",
"rollup-plugin-node-resolve": "~3.3.0",
"rollup-plugin-uglify": "~3.0.0",
"seamless-immutable": "^7.1.3",
"sinon": "^4.5.0",
"webpack": "^4.5.0",
"webpack-cli": "~2.0.14",
"webpack-dev-server": "^3.1.1"
},

@@ -80,21 +86,21 @@ "homepage": "https://github.com/planttheidea/crio#readme",

"benchmark": "npm run transpile:lib && NODE_ENV=production node ./benchmarks/index.js",
"build": "NODE_ENV=development webpack --progress --colors",
"build:minified": "NODE_ENV=production webpack --progress --colors --config=webpack.config.minified.js",
"build": "NODE_ENV=production rollup -c",
"clean": "npm run clean:lib && npm run clean:es && npm run clean:dist",
"clean:dist": "rimraf dist",
"clean:lib": "rimraf lib",
"clean:es": "rimraf es",
"clean:lib": "rimraf lib",
"dev": "NODE_ENV=development webpack-dev-server --profile --progress --colors --config=webpack.config.dev.js",
"docs": "rimraf docs && jsdoc -c ./jsdoc.config.json && git add --all",
"dist": "npm run clean:dist && npm run build && npm run build:minified",
"dev": "NODE_ENV=development webpack-dev-server --colors --progress --config=webpack/webpack.config.dev.js",
"dist": "npm run clean:dist && npm run build",
"lint": "NODE_ENV=test eslint src",
"lint:fix": "NODE_ENV=test eslint src --fix",
"prepublish": "if in-publish; then npm run prepublish:compile; fi",
"prepublish:compile": "npm run lint && npm run test:coverage && npm run transpile:lib && npm run transpile:es && npm run dist && npm run docs",
"prepublish:compile": "npm run lint && npm run test:coverage && npm run transpile:lib && npm run transpile:es && npm run dist",
"start": "npm run dev",
"test": "NODE_PATH=. NODE_ENV=test ava",
"test": "NODE_PATH=. NODE_ENV=production BABEL_ENV=test ava",
"test:coverage": "nyc npm test",
"test:watch": "npm run test -- --watch",
"transpile:es": "npm run clean:es && BABEL_ENV=es babel src --out-dir es",
"transpile:lib": "npm run clean:lib && BABEL_ENV=lib babel src --out-dir lib"
"test:watch": "npm test -- --watch",
"transpile:lib": "npm run clean:lib && BABEL_ENV=lib babel src --out-dir lib",
"transpile:es": "npm run clean:es && BABEL_ENV=es babel src --out-dir es"
},
"version": "5.0.0"
"version": "5.0.1"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc