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

react-cookie

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cookie - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

2

cjs/CookiesProvider.js

@@ -36,3 +36,3 @@ "use strict";

} else {
_this.cookies = new _universalCookie["default"]();
_this.cookies = new _universalCookie["default"](undefined, props.defaultSetOptions);
}

@@ -39,0 +39,0 @@ return _this;

/// <reference types="react" />
import Cookies, { Cookie } from 'universal-cookie';
import Cookies, { Cookie, CookieSetOptions } from 'universal-cookie';
export type ReactCookieProps = {
cookies?: Cookies;
defaultSetOptions?: CookieSetOptions;
allCookies?: {

@@ -6,0 +7,0 @@ [name: string]: Cookie;

@@ -7,3 +7,4 @@ import { Cookie, CookieSetOptions } from 'universal-cookie';

(name: T, value: Cookie, options?: CookieSetOptions) => void,
(name: T, options?: CookieSetOptions) => void
(name: T, options?: CookieSetOptions) => void,
() => void
];

@@ -23,16 +23,17 @@ "use strict";

}
var initialCookies = cookies.getAll();
var _useState = (0, _react.useState)(initialCookies),
var _useState = (0, _react.useState)(function () {
return cookies.getAll();
}),
_useState2 = _slicedToArray(_useState, 2),
allCookies = _useState2[0],
setCookies = _useState2[1];
var previousCookiesRef = (0, _react.useRef)(allCookies);
if ((0, _utils.isInBrowser)()) {
(0, _react.useLayoutEffect)(function () {
function onChange() {
var newCookies = cookies.getAll();
if (shouldUpdate(dependencies || null, newCookies, previousCookiesRef.current)) {
var newCookies = cookies.getAll({
doNotUpdate: true
});
if (shouldUpdate(dependencies || null, newCookies, allCookies)) {
setCookies(newCookies);
}
previousCookiesRef.current = newCookies;
}

@@ -43,3 +44,3 @@ cookies.addChangeListener(onChange);

};
}, [cookies]);
}, [cookies, allCookies]);
}

@@ -52,3 +53,6 @@ var setCookie = (0, _react.useMemo)(function () {

}, [cookies]);
return [allCookies, setCookie, removeCookie];
var updateCookies = (0, _react.useMemo)(function () {
return cookies.update.bind(cookies);
}, [cookies]);
return [allCookies, setCookie, removeCookie, updateCookies];
}

@@ -55,0 +59,0 @@ function shouldUpdate(dependencies, newCookies, oldCookies) {

@@ -11,3 +11,3 @@ import * as React from 'react';

else {
this.cookies = new Cookies();
this.cookies = new Cookies(undefined, props.defaultSetOptions);
}

@@ -14,0 +14,0 @@ }

/// <reference types="react" />
import Cookies, { Cookie } from 'universal-cookie';
import Cookies, { Cookie, CookieSetOptions } from 'universal-cookie';
export type ReactCookieProps = {
cookies?: Cookies;
defaultSetOptions?: CookieSetOptions;
allCookies?: {

@@ -6,0 +7,0 @@ [name: string]: Cookie;

@@ -7,3 +7,4 @@ import { Cookie, CookieSetOptions } from 'universal-cookie';

(name: T, value: Cookie, options?: CookieSetOptions) => void,
(name: T, options?: CookieSetOptions) => void
(name: T, options?: CookieSetOptions) => void,
() => void
];

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

import { useContext, useLayoutEffect, useState, useRef, useMemo } from 'react';
import { useContext, useLayoutEffect, useState, useMemo } from 'react';
import CookiesContext from './CookiesContext';

@@ -9,13 +9,12 @@ import { isInBrowser } from './utils';

}
const initialCookies = cookies.getAll();
const [allCookies, setCookies] = useState(initialCookies);
const previousCookiesRef = useRef(allCookies);
const [allCookies, setCookies] = useState(() => cookies.getAll());
if (isInBrowser()) {
useLayoutEffect(() => {
function onChange() {
const newCookies = cookies.getAll();
if (shouldUpdate(dependencies || null, newCookies, previousCookiesRef.current)) {
const newCookies = cookies.getAll({
doNotUpdate: true,
});
if (shouldUpdate(dependencies || null, newCookies, allCookies)) {
setCookies(newCookies);
}
previousCookiesRef.current = newCookies;
}

@@ -26,7 +25,8 @@ cookies.addChangeListener(onChange);

};
}, [cookies]);
}, [cookies, allCookies]);
}
const setCookie = useMemo(() => cookies.set.bind(cookies), [cookies]);
const removeCookie = useMemo(() => cookies.remove.bind(cookies), [cookies]);
return [allCookies, setCookie, removeCookie];
const updateCookies = useMemo(() => cookies.update.bind(cookies), [cookies]);
return [allCookies, setCookie, removeCookie, updateCookies];
}

@@ -33,0 +33,0 @@ function shouldUpdate(dependencies, newCookies, oldCookies) {

@@ -36,3 +36,3 @@ "use strict";

} else {
_this.cookies = new _universalCookie["default"]();
_this.cookies = new _universalCookie["default"](undefined, props.defaultSetOptions);
}

@@ -39,0 +39,0 @@ return _this;

/// <reference types="react" />
import Cookies, { Cookie } from 'universal-cookie';
import Cookies, { Cookie, CookieSetOptions } from 'universal-cookie';
export type ReactCookieProps = {
cookies?: Cookies;
defaultSetOptions?: CookieSetOptions;
allCookies?: {

@@ -6,0 +7,0 @@ [name: string]: Cookie;

@@ -7,3 +7,4 @@ import { Cookie, CookieSetOptions } from 'universal-cookie';

(name: T, value: Cookie, options?: CookieSetOptions) => void,
(name: T, options?: CookieSetOptions) => void
(name: T, options?: CookieSetOptions) => void,
() => void
];

@@ -23,16 +23,17 @@ "use strict";

}
var initialCookies = cookies.getAll();
var _useState = (0, _react.useState)(initialCookies),
var _useState = (0, _react.useState)(function () {
return cookies.getAll();
}),
_useState2 = _slicedToArray(_useState, 2),
allCookies = _useState2[0],
setCookies = _useState2[1];
var previousCookiesRef = (0, _react.useRef)(allCookies);
if ((0, _utils.isInBrowser)()) {
(0, _react.useLayoutEffect)(function () {
function onChange() {
var newCookies = cookies.getAll();
if (shouldUpdate(dependencies || null, newCookies, previousCookiesRef.current)) {
var newCookies = cookies.getAll({
doNotUpdate: true
});
if (shouldUpdate(dependencies || null, newCookies, allCookies)) {
setCookies(newCookies);
}
previousCookiesRef.current = newCookies;
}

@@ -43,3 +44,3 @@ cookies.addChangeListener(onChange);

};
}, [cookies]);
}, [cookies, allCookies]);
}

@@ -52,3 +53,6 @@ var setCookie = (0, _react.useMemo)(function () {

}, [cookies]);
return [allCookies, setCookie, removeCookie];
var updateCookies = (0, _react.useMemo)(function () {
return cookies.update.bind(cookies);
}, [cookies]);
return [allCookies, setCookie, removeCookie, updateCookies];
}

@@ -55,0 +59,0 @@ function shouldUpdate(dependencies, newCookies, oldCookies) {

{
"name": "react-cookie",
"version": "5.0.0",
"version": "6.0.0",
"description": "Universal cookies for React",

@@ -18,6 +18,6 @@ "main": "cjs/index.js",

"type": "git",
"url": "https://github.com/reactivestack/cookies.git"
"url": "https://github.com/bendotcodes/cookies.git"
},
"bugs": "https://github.com/reactivestack/cookies/issues",
"homepage": "https://github.com/reactivestack/cookies/tree/master/packages/react-cookie/#readme",
"bugs": "https://github.com/bendotcodes/cookies/issues",
"homepage": "https://github.com/bendotcodes/cookies/tree/main/packages/react-cookie/#readme",
"keywords": [

@@ -29,3 +29,3 @@ "universal",

],
"author": "Benoit Tremblay <benoit@reactivestack.com>",
"author": "Benoit Tremblay <me@ben.codes>",
"license": "MIT",

@@ -43,3 +43,3 @@ "scripts": {

"hoist-non-react-statics": "^3.3.2",
"universal-cookie": "^4.0.0"
"universal-cookie": "^6.0.0"
},

@@ -46,0 +46,0 @@ "devDependencies": {

@@ -8,3 +8,3 @@ <h3 align="center">

<a href="https://badge.fury.io/js/react-cookie"><img src="https://badge.fury.io/js/react-cookie.svg" /></a>
![Test Status](https://github.com/github/docs/actions/workflows/test.yml/badge.svg)
<img src="https://github.com/github/docs/actions/workflows/test.yml/badge.svg" alt="Test Status" />
</p>

@@ -40,11 +40,11 @@

crossorigin
src="https://unpkg.com/universal-cookie@3/umd/universalCookie.min.js"
src="https://unpkg.com/universal-cookie@6/umd/universalCookie.min.js"
></script>
<script
crossorigin
src="https://unpkg.com/react-cookie@3/umd/reactCookie.min.js"
src="https://unpkg.com/react-cookie@6/umd/reactCookie.min.js"
></script>
```
## `<CookiesProvider />`
## `<CookiesProvider defaultSetOptions />`

@@ -55,2 +55,4 @@ Set the user cookies

- defaultSetOptions: You can set default values for when setting cookies.
## `useCookies([dependencies])`

@@ -103,2 +105,6 @@

### `updateCookies()`
Read back the cookies and trigger changes accordingly. Useful is you change cookies server side or with other parties.
## `withCookies(Component)`

@@ -177,3 +183,3 @@

return (
<CookiesProvider>
<CookiesProvider defaultSetCookies={{ path: '/' }}>
<App />

@@ -196,3 +202,3 @@ </CookiesProvider>

function onChange(newName) {
setCookie('name', newName, { path: '/' });
setCookie('name', newName);
}

@@ -199,0 +205,0 @@

@@ -90,3 +90,3 @@ (function (global, factory) {

} else {
_this.cookies = new _universalCookie["default"]();
_this.cookies = new _universalCookie["default"](undefined, props.defaultSetOptions);
}

@@ -560,16 +560,17 @@ return _this;

}
var initialCookies = cookies.getAll();
var _useState = (0, _react.useState)(initialCookies),
var _useState = (0, _react.useState)(function () {
return cookies.getAll();
}),
_useState2 = _slicedToArray(_useState, 2),
allCookies = _useState2[0],
setCookies = _useState2[1];
var previousCookiesRef = (0, _react.useRef)(allCookies);
if ((0, _utils.isInBrowser)()) {
(0, _react.useLayoutEffect)(function () {
function onChange() {
var newCookies = cookies.getAll();
if (shouldUpdate(dependencies || null, newCookies, previousCookiesRef.current)) {
var newCookies = cookies.getAll({
doNotUpdate: true
});
if (shouldUpdate(dependencies || null, newCookies, allCookies)) {
setCookies(newCookies);
}
previousCookiesRef.current = newCookies;
}

@@ -580,3 +581,3 @@ cookies.addChangeListener(onChange);

};
}, [cookies]);
}, [cookies, allCookies]);
}

@@ -589,3 +590,6 @@ var setCookie = (0, _react.useMemo)(function () {

}, [cookies]);
return [allCookies, setCookie, removeCookie];
var updateCookies = (0, _react.useMemo)(function () {
return cookies.update.bind(cookies);
}, [cookies]);
return [allCookies, setCookie, removeCookie, updateCookies];
}

@@ -592,0 +596,0 @@ function shouldUpdate(dependencies, newCookies, oldCookies) {

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("universal-cookie"),require("react")):"function"==typeof define&&define.amd?define(["universal-cookie","react"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).ReactCookie=t(e.UniversalCookie,e.React)}(this,(function(e,t){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o={},n={exports:{}};!function(t,r){var o;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=((o=e)&&o.__esModule?o:{default:o}).default;r.default=n,t.exports=r.default}(n,n.exports);var i=n.exports,u={exports:{}},f={};!function(e){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Provider=e.Consumer=void 0;var o,n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=f(t);if(o&&o.has(e))return o.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=i?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}n.default=e,o&&o.set(e,n);return n}(t),u=(o=i)&&o.__esModule?o:{default:o};function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var a=n.createContext(new u.default),c=a.Provider,l=a.Consumer;e.Consumer=l,e.Provider=c;var s=a;e.default=s}(f),function(r,o){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var i,u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var f=i?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(o,u,f):o[u]=e[u]}o.default=e,r&&r.set(e,o);return o}(t),a=(i=e)&&i.__esModule?i:{default:i},c=f;function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function s(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,u=void 0,u=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(i,e);var t,r,o,n=y(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=n.call(this,e),e.cookies?t.cookies=e.cookies:t.cookies=new a.default,t}return t=i,(r=[{key:"render",value:function(){return u.createElement(c.Provider,{value:this.cookies},this.props.children)}}])&&s(t.prototype,r),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(u.Component);o.default=b,r.exports=o.default}(u,u.exports);var a,c=u.exports,l={exports:{}},s={exports:{}},p={};s.exports=function(){if(a)return p;a=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var a=e.$$typeof;switch(a){case t:switch(e=e.type){case c:case l:case o:case i:case n:case y:return e;default:switch(e=e&&e.$$typeof){case f:case s:case m:case b:case u:return e;default:return a}}case r:return a}}}function P(e){return j(e)===l}return p.AsyncMode=c,p.ConcurrentMode=l,p.ContextConsumer=f,p.ContextProvider=u,p.Element=t,p.ForwardRef=s,p.Fragment=o,p.Lazy=m,p.Memo=b,p.Portal=r,p.Profiler=i,p.StrictMode=n,p.Suspense=y,p.isAsyncMode=function(e){return P(e)||j(e)===c},p.isConcurrentMode=P,p.isContextConsumer=function(e){return j(e)===f},p.isContextProvider=function(e){return j(e)===u},p.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},p.isForwardRef=function(e){return j(e)===s},p.isFragment=function(e){return j(e)===o},p.isLazy=function(e){return j(e)===m},p.isMemo=function(e){return j(e)===b},p.isPortal=function(e){return j(e)===r},p.isProfiler=function(e){return j(e)===i},p.isStrictMode=function(e){return j(e)===n},p.isSuspense=function(e){return j(e)===y},p.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===i||e===n||e===y||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===u||e.$$typeof===f||e.$$typeof===s||e.$$typeof===O||e.$$typeof===h||e.$$typeof===w||e.$$typeof===v)},p.typeOf=j,p}();var y=s.exports,d={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},b={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},m={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v={};function O(e){return y.isMemo(e)?m:v[e.$$typeof]||d}v[y.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},v[y.Memo]=m;var h=Object.defineProperty,w=Object.getOwnPropertyNames,j=Object.getOwnPropertySymbols,P=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,S=Object.prototype;var _=function e(t,r,o){if("string"!=typeof r){if(S){var n=g(r);n&&n!==S&&e(t,n,o)}var i=w(r);j&&(i=i.concat(j(r)));for(var u=O(t),f=O(r),a=0;a<i.length;++a){var c=i[a];if(!(b[c]||o&&o[c]||f&&f[c]||u&&u[c])){var l=P(r,c);try{h(t,c,l)}catch(e){}}}}return t};!function(e,r){function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=e.displayName||e.name,r=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,t);var r,n,u=(r=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(n){var i=p(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=u.apply(this,arguments)).onChange=function(){e.forceUpdate()},e}return function(e,t,r){t&&l(e.prototype,t);r&&l(e,r);Object.defineProperty(e,"prototype",{writable:!1})}(f,[{key:"listen",value:function(){this.props.cookies.addChangeListener(this.onChange)}},{key:"unlisten",value:function(e){(e||this.props.cookies).removeChangeListener(this.onChange)}},{key:"componentDidMount",value:function(){this.listen()}},{key:"componentDidUpdate",value:function(e){e.cookies!==this.props.cookies&&(this.unlisten(e.cookies),this.listen())}},{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var t=this.props,r=t.forwardedRef,o=t.cookies,n=y(t,["forwardedRef","cookies"]),u=o.getAll();return i.createElement(e,Object.assign({},n,{ref:r,cookies:o,allCookies:u}))}}]),f}(i.Component);r.displayName="withCookies(".concat(t,")"),r.WrappedComponent=e;var n=i.forwardRef((function(e,t){return i.createElement(a.Consumer,null,(function(o){return i.createElement(r,Object.assign({cookies:o},e,{forwardedRef:t}))}))}));return n.displayName=r.displayName,n.WrappedComponent=r.WrappedComponent,(0,u.default)(n,e)};var n,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var f=i?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(n,u,f):n[u]=e[u]}n.default=e,r&&r.set(e,n);return n}(t),u=(n=_)&&n.__esModule?n:{default:n},a=f;function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,u=void 0,u=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(u)?u:String(u)),n)}var i,u}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};e.exports=r.default}(l,l.exports);var k=l.exports,C={exports:{}},M={};Object.defineProperty(M,"__esModule",{value:!0}),M.isInBrowser=function(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement},function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=(0,n.useContext)(i.default);if(!t)throw new Error("Missing <CookiesProvider>");var r=t.getAll(),o=(s=(0,n.useState)(r),p=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i,u,f=[],a=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(o=i.call(r)).done)&&(f.push(o.value),f.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{if(!a&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw n}}return f}}(s,p)||a(s,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=o[0],c=o[1],l=(0,n.useRef)(f);var s,p;(0,u.isInBrowser)()&&(0,n.useLayoutEffect)((function(){function r(){var r=t.getAll();(function(e,t,r){if(!e)return!0;var o,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){f=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(f)throw i}}}}(e);try{for(n.s();!(o=n.n()).done;){var i=o.value;if(t[i]!==r[i])return!0}}catch(e){n.e(e)}finally{n.f()}return!1})(e||null,r,l.current)&&c(r),l.current=r}return t.addChangeListener(r),function(){t.removeChangeListener(r)}}),[t]);var y=(0,n.useMemo)((function(){return t.set.bind(t)}),[t]),d=(0,n.useMemo)((function(){return t.remove.bind(t)}),[t]);return[f,y,d]};var o,n=t,i=(o=f)&&o.__esModule?o:{default:o},u=M;function a(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}e.exports=r.default}(C,C.exports);var x=C.exports,$={};return Object.defineProperty($,"__esModule",{value:!0}),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={Cookies:!0,CookiesProvider:!0,withCookies:!0,useCookies:!0};Object.defineProperty(e,"Cookies",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CookiesProvider",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"useCookies",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"withCookies",{enumerable:!0,get:function(){return n.default}});var r=a(i),o=a(c),n=a(k),u=a(x),f=$;function a(e){return e&&e.__esModule?e:{default:e}}Object.keys(f).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===f[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return f[r]}}))}))}(o),r(o)}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("universal-cookie"),require("react")):"function"==typeof define&&define.amd?define(["universal-cookie","react"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).ReactCookie=t(e.UniversalCookie,e.React)}(this,(function(e,t){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o={},n={exports:{}};!function(t,r){var o;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=((o=e)&&o.__esModule?o:{default:o}).default;r.default=n,t.exports=r.default}(n,n.exports);var i=n.exports,u={exports:{}},f={};!function(e){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Provider=e.Consumer=void 0;var o,n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var o=f(t);if(o&&o.has(e))return o.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=i?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}n.default=e,o&&o.set(e,n);return n}(t),u=(o=i)&&o.__esModule?o:{default:o};function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var a=n.createContext(new u.default),c=a.Provider,l=a.Consumer;e.Consumer=l,e.Provider=c;var s=a;e.default=s}(f),function(r,o){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var i,u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var f=i?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(o,u,f):o[u]=e[u]}o.default=e,r&&r.set(e,o);return o}(t),a=(i=e)&&i.__esModule?i:{default:i},c=f;function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function s(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,u=void 0,u=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===n(u)?u:String(u)),o)}var i,u}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(i,e);var t,r,o,n=y(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=n.call(this,e),e.cookies?t.cookies=e.cookies:t.cookies=new a.default(void 0,e.defaultSetOptions),t}return t=i,(r=[{key:"render",value:function(){return u.createElement(c.Provider,{value:this.cookies},this.props.children)}}])&&s(t.prototype,r),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(u.Component);o.default=b,r.exports=o.default}(u,u.exports);var a,c=u.exports,l={exports:{}},s={exports:{}},p={};s.exports=function(){if(a)return p;a=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var a=e.$$typeof;switch(a){case t:switch(e=e.type){case c:case l:case o:case i:case n:case y:return e;default:switch(e=e&&e.$$typeof){case f:case s:case m:case b:case u:return e;default:return a}}case r:return a}}}function P(e){return j(e)===l}return p.AsyncMode=c,p.ConcurrentMode=l,p.ContextConsumer=f,p.ContextProvider=u,p.Element=t,p.ForwardRef=s,p.Fragment=o,p.Lazy=m,p.Memo=b,p.Portal=r,p.Profiler=i,p.StrictMode=n,p.Suspense=y,p.isAsyncMode=function(e){return P(e)||j(e)===c},p.isConcurrentMode=P,p.isContextConsumer=function(e){return j(e)===f},p.isContextProvider=function(e){return j(e)===u},p.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},p.isForwardRef=function(e){return j(e)===s},p.isFragment=function(e){return j(e)===o},p.isLazy=function(e){return j(e)===m},p.isMemo=function(e){return j(e)===b},p.isPortal=function(e){return j(e)===r},p.isProfiler=function(e){return j(e)===i},p.isStrictMode=function(e){return j(e)===n},p.isSuspense=function(e){return j(e)===y},p.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===i||e===n||e===y||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===u||e.$$typeof===f||e.$$typeof===s||e.$$typeof===O||e.$$typeof===h||e.$$typeof===w||e.$$typeof===v)},p.typeOf=j,p}();var y=s.exports,d={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},b={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},m={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v={};function O(e){return y.isMemo(e)?m:v[e.$$typeof]||d}v[y.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},v[y.Memo]=m;var h=Object.defineProperty,w=Object.getOwnPropertyNames,j=Object.getOwnPropertySymbols,P=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,S=Object.prototype;var _=function e(t,r,o){if("string"!=typeof r){if(S){var n=g(r);n&&n!==S&&e(t,n,o)}var i=w(r);j&&(i=i.concat(j(r)));for(var u=O(t),f=O(r),a=0;a<i.length;++a){var c=i[a];if(!(b[c]||o&&o[c]||f&&f[c]||u&&u[c])){var l=P(r,c);try{h(t,c,l)}catch(e){}}}}return t};!function(e,r){function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=e.displayName||e.name,r=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,t);var r,n,u=(r=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(n){var i=p(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=u.apply(this,arguments)).onChange=function(){e.forceUpdate()},e}return function(e,t,r){t&&l(e.prototype,t);r&&l(e,r);Object.defineProperty(e,"prototype",{writable:!1})}(f,[{key:"listen",value:function(){this.props.cookies.addChangeListener(this.onChange)}},{key:"unlisten",value:function(e){(e||this.props.cookies).removeChangeListener(this.onChange)}},{key:"componentDidMount",value:function(){this.listen()}},{key:"componentDidUpdate",value:function(e){e.cookies!==this.props.cookies&&(this.unlisten(e.cookies),this.listen())}},{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var t=this.props,r=t.forwardedRef,o=t.cookies,n=y(t,["forwardedRef","cookies"]),u=o.getAll();return i.createElement(e,Object.assign({},n,{ref:r,cookies:o,allCookies:u}))}}]),f}(i.Component);r.displayName="withCookies(".concat(t,")"),r.WrappedComponent=e;var n=i.forwardRef((function(e,t){return i.createElement(a.Consumer,null,(function(o){return i.createElement(r,Object.assign({cookies:o},e,{forwardedRef:t}))}))}));return n.displayName=r.displayName,n.WrappedComponent=r.WrappedComponent,(0,u.default)(n,e)};var n,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var f=i?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(n,u,f):n[u]=e[u]}n.default=e,r&&r.set(e,n);return n}(t),u=(n=_)&&n.__esModule?n:{default:n},a=f;function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,u=void 0,u=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(u)?u:String(u)),n)}var i,u}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};e.exports=r.default}(l,l.exports);var k=l.exports,M={exports:{}},C={};Object.defineProperty(C,"__esModule",{value:!0}),C.isInBrowser=function(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement},function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=(0,n.useContext)(i.default);if(!t)throw new Error("Missing <CookiesProvider>");var r=(c=(0,n.useState)((function(){return t.getAll()})),l=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i,u,f=[],a=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(o=i.call(r)).done)&&(f.push(o.value),f.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{if(!a&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw n}}return f}}(c,l)||a(c,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],f=r[1];var c,l;(0,u.isInBrowser)()&&(0,n.useLayoutEffect)((function(){function r(){var r=t.getAll({doNotUpdate:!0});(function(e,t,r){if(!e)return!0;var o,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){f=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(f)throw i}}}}(e);try{for(n.s();!(o=n.n()).done;){var i=o.value;if(t[i]!==r[i])return!0}}catch(e){n.e(e)}finally{n.f()}return!1})(e||null,r,o)&&f(r)}return t.addChangeListener(r),function(){t.removeChangeListener(r)}}),[t,o]);var s=(0,n.useMemo)((function(){return t.set.bind(t)}),[t]),p=(0,n.useMemo)((function(){return t.remove.bind(t)}),[t]),y=(0,n.useMemo)((function(){return t.update.bind(t)}),[t]);return[o,s,p,y]};var o,n=t,i=(o=f)&&o.__esModule?o:{default:o},u=C;function a(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}e.exports=r.default}(M,M.exports);var x=M.exports,$={};return Object.defineProperty($,"__esModule",{value:!0}),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={Cookies:!0,CookiesProvider:!0,withCookies:!0,useCookies:!0};Object.defineProperty(e,"Cookies",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CookiesProvider",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"useCookies",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"withCookies",{enumerable:!0,get:function(){return n.default}});var r=a(i),o=a(c),n=a(k),u=a(x),f=$;function a(e){return e&&e.__esModule?e:{default:e}}Object.keys(f).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===f[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return f[r]}}))}))}(o),r(o)}));
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