@contentful/live-preview
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -1,2 +0,2 @@ | ||
import { C as r } from "./index-08e73509.js"; | ||
import { C as r } from "./index-bcfdf289.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ r as ContentfulLivePreview |
@@ -1,5 +0,11 @@ | ||
import { type PropsWithChildren, type ReactElement } from 'react'; | ||
import { type PropsWithChildren, type ReactElement, useEffect } from 'react'; | ||
import { DocumentNode } from 'graphql'; | ||
import { ContentfulLivePreviewInitConfig } from './index'; | ||
import { Argument, InspectorModeTags, LivePreviewProps } from './types'; | ||
type UseEffectParams = Parameters<typeof useEffect>; | ||
type EffectCallback = UseEffectParams[0]; | ||
type DependencyList = UseEffectParams[1]; | ||
type UseEffectReturn = ReturnType<typeof useEffect>; | ||
export declare function useDeepCompareMemoize<T>(value: T): T; | ||
export declare function useDeepCompareEffectNoCheck(callback: EffectCallback, dependencies: DependencyList): UseEffectReturn; | ||
/** | ||
@@ -6,0 +12,0 @@ * ContentfulLivePreviewProvider to initialize the the SDK and provide the config for the live updates |
1352
dist/react.js
@@ -1,5 +0,4 @@ | ||
import * as V from "react"; | ||
import ke, { createContext as yr, useMemo as De, useState as hr, useRef as Pe, useContext as Ae, useCallback as gr } from "react"; | ||
import { C as Q, d as mr } from "./index-08e73509.js"; | ||
var Z = { exports: {} }, F = {}; | ||
import Zr, { createContext as At, useRef as mr, useMemo as $r, useEffect as jt, useState as Dt, useContext as Qr, useCallback as It } from "react"; | ||
import { c as Er, g as Ft, C as Ur, d as Lt } from "./index-bcfdf289.js"; | ||
var Mr = { exports: {} }, Me = {}; | ||
/** | ||
@@ -14,21 +13,21 @@ * @license React | ||
*/ | ||
var Se; | ||
function Er() { | ||
if (Se) | ||
return F; | ||
Se = 1; | ||
var n = ke, a = Symbol.for("react.element"), s = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function P(R, d, C) { | ||
var h, _ = {}, S = null, W = null; | ||
C !== void 0 && (S = "" + C), d.key !== void 0 && (S = "" + d.key), d.ref !== void 0 && (W = d.ref); | ||
for (h in d) | ||
o.call(d, h) && !b.hasOwnProperty(h) && (_[h] = d[h]); | ||
if (R && R.defaultProps) | ||
for (h in d = R.defaultProps, d) | ||
_[h] === void 0 && (_[h] = d[h]); | ||
return { $$typeof: a, type: R, key: S, ref: W, props: _, _owner: v.current }; | ||
var Jr; | ||
function Mt() { | ||
if (Jr) | ||
return Me; | ||
Jr = 1; | ||
var d = Zr, v = Symbol.for("react.element"), P = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, A = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, $ = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function q(j, _, W) { | ||
var w, I = {}, H = null, ie = null; | ||
W !== void 0 && (H = "" + W), _.key !== void 0 && (H = "" + _.key), _.ref !== void 0 && (ie = _.ref); | ||
for (w in _) | ||
x.call(_, w) && !$.hasOwnProperty(w) && (I[w] = _[w]); | ||
if (j && j.defaultProps) | ||
for (w in _ = j.defaultProps, _) | ||
I[w] === void 0 && (I[w] = _[w]); | ||
return { $$typeof: v, type: j, key: H, ref: ie, props: I, _owner: A.current }; | ||
} | ||
return F.Fragment = s, F.jsx = P, F.jsxs = P, F; | ||
return Me.Fragment = P, Me.jsx = q, Me.jsxs = q, Me; | ||
} | ||
var I = {}; | ||
var $e = {}; | ||
/** | ||
@@ -43,87 +42,87 @@ * @license React | ||
*/ | ||
var Oe; | ||
function Rr() { | ||
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() { | ||
var n = ke, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), R = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), re = Symbol.iterator, Fe = "@@iterator"; | ||
function Ie(e) { | ||
if (e === null || typeof e != "object") | ||
var Xr; | ||
function $t() { | ||
return Xr || (Xr = 1, process.env.NODE_ENV !== "production" && function() { | ||
var d = Zr, v = Symbol.for("react.element"), P = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), q = Symbol.for("react.provider"), j = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), ie = Symbol.for("react.offscreen"), Ue = Symbol.iterator, de = "@@iterator"; | ||
function Ne(r) { | ||
if (r === null || typeof r != "object") | ||
return null; | ||
var r = re && e[re] || e[Fe]; | ||
return typeof r == "function" ? r : null; | ||
var a = Ue && r[Ue] || r[de]; | ||
return typeof a == "function" ? a : null; | ||
} | ||
var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function g(e) { | ||
var X = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function E(r) { | ||
{ | ||
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) | ||
t[i - 1] = arguments[i]; | ||
Le("error", e, t); | ||
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++) | ||
i[s - 1] = arguments[s]; | ||
We("error", r, i); | ||
} | ||
} | ||
function Le(e, r, t) { | ||
function We(r, a, i) { | ||
{ | ||
var i = j.ReactDebugCurrentFrame, l = i.getStackAddendum(); | ||
l !== "" && (r += "%s", t = t.concat([l])); | ||
var c = t.map(function(f) { | ||
return String(f); | ||
var s = X.ReactDebugCurrentFrame, p = s.getStackAddendum(); | ||
p !== "" && (a += "%s", i = i.concat([p])); | ||
var l = i.map(function(c) { | ||
return String(c); | ||
}); | ||
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c); | ||
l.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, l); | ||
} | ||
} | ||
var We = !1, Ye = !1, $e = !1, Me = !1, Ne = !1, te; | ||
te = Symbol.for("react.module.reference"); | ||
function Ue(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === o || e === b || Ne || e === v || e === C || e === h || Me || e === W || We || Ye || $e || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === _ || e.$$typeof === P || e.$$typeof === R || e.$$typeof === d || // This needs to include all possible module reference object | ||
var Rr = !1, Ye = !1, pe = !1, ze = !1, wr = !1, Be; | ||
Be = Symbol.for("react.module.reference"); | ||
function we(r) { | ||
return !!(typeof r == "string" || typeof r == "function" || r === x || r === $ || wr || r === A || r === W || r === w || ze || r === ie || Rr || Ye || pe || typeof r == "object" && r !== null && (r.$$typeof === H || r.$$typeof === I || r.$$typeof === q || r.$$typeof === j || r.$$typeof === _ || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
// we don't know which Flight build this will end up being used | ||
// with. | ||
e.$$typeof === te || e.getModuleId !== void 0)); | ||
r.$$typeof === Be || r.getModuleId !== void 0)); | ||
} | ||
function Ve(e, r, t) { | ||
var i = e.displayName; | ||
if (i) | ||
return i; | ||
var l = r.displayName || r.name || ""; | ||
return l !== "" ? t + "(" + l + ")" : t; | ||
function Ge(r, a, i) { | ||
var s = r.displayName; | ||
if (s) | ||
return s; | ||
var p = a.displayName || a.name || ""; | ||
return p !== "" ? i + "(" + p + ")" : i; | ||
} | ||
function ne(e) { | ||
return e.displayName || "Context"; | ||
function oe(r) { | ||
return r.displayName || "Context"; | ||
} | ||
function w(e) { | ||
if (e == null) | ||
function Y(r) { | ||
if (r == null) | ||
return null; | ||
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") | ||
return e.displayName || e.name || null; | ||
if (typeof e == "string") | ||
return e; | ||
switch (e) { | ||
case o: | ||
if (typeof r.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function") | ||
return r.displayName || r.name || null; | ||
if (typeof r == "string") | ||
return r; | ||
switch (r) { | ||
case x: | ||
return "Fragment"; | ||
case s: | ||
case P: | ||
return "Portal"; | ||
case b: | ||
case $: | ||
return "Profiler"; | ||
case v: | ||
case A: | ||
return "StrictMode"; | ||
case C: | ||
case W: | ||
return "Suspense"; | ||
case h: | ||
case w: | ||
return "SuspenseList"; | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case R: | ||
var r = e; | ||
return ne(r) + ".Consumer"; | ||
case P: | ||
var t = e; | ||
return ne(t._context) + ".Provider"; | ||
case d: | ||
return Ve(e, e.render, "ForwardRef"); | ||
if (typeof r == "object") | ||
switch (r.$$typeof) { | ||
case j: | ||
var a = r; | ||
return oe(a) + ".Consumer"; | ||
case q: | ||
var i = r; | ||
return oe(i._context) + ".Provider"; | ||
case _: | ||
var i = e.displayName || null; | ||
return i !== null ? i : w(e.type) || "Memo"; | ||
case S: { | ||
var l = e, c = l._payload, f = l._init; | ||
return Ge(r, r.render, "ForwardRef"); | ||
case I: | ||
var s = r.displayName || null; | ||
return s !== null ? s : Y(r.type) || "Memo"; | ||
case H: { | ||
var p = r, l = p._payload, c = p._init; | ||
try { | ||
return w(f(c)); | ||
return Y(c(l)); | ||
} catch { | ||
@@ -136,33 +135,33 @@ return null; | ||
} | ||
var O = Object.assign, D = 0, ae, ie, oe, ue, se, fe, le; | ||
function ce() { | ||
var k = Object.assign, se = 0, qe, He, Ke, ke, Ve, Je, Xe; | ||
function Ze() { | ||
} | ||
ce.__reactDisabledLog = !0; | ||
function qe() { | ||
Ze.__reactDisabledLog = !0; | ||
function Cr() { | ||
{ | ||
if (D === 0) { | ||
ae = console.log, ie = console.info, oe = console.warn, ue = console.error, se = console.group, fe = console.groupCollapsed, le = console.groupEnd; | ||
var e = { | ||
if (se === 0) { | ||
qe = console.log, He = console.info, Ke = console.warn, ke = console.error, Ve = console.group, Je = console.groupCollapsed, Xe = console.groupEnd; | ||
var r = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: ce, | ||
value: Ze, | ||
writable: !0 | ||
}; | ||
Object.defineProperties(console, { | ||
info: e, | ||
log: e, | ||
warn: e, | ||
error: e, | ||
group: e, | ||
groupCollapsed: e, | ||
groupEnd: e | ||
info: r, | ||
log: r, | ||
warn: r, | ||
error: r, | ||
group: r, | ||
groupCollapsed: r, | ||
groupEnd: r | ||
}); | ||
} | ||
D++; | ||
se++; | ||
} | ||
} | ||
function Be() { | ||
function g() { | ||
{ | ||
if (D--, D === 0) { | ||
var e = { | ||
if (se--, se === 0) { | ||
var r = { | ||
configurable: !0, | ||
@@ -173,67 +172,67 @@ enumerable: !0, | ||
Object.defineProperties(console, { | ||
log: O({}, e, { | ||
value: ae | ||
log: k({}, r, { | ||
value: qe | ||
}), | ||
info: O({}, e, { | ||
value: ie | ||
info: k({}, r, { | ||
value: He | ||
}), | ||
warn: O({}, e, { | ||
value: oe | ||
warn: k({}, r, { | ||
value: Ke | ||
}), | ||
error: O({}, e, { | ||
value: ue | ||
error: k({}, r, { | ||
value: ke | ||
}), | ||
group: O({}, e, { | ||
value: se | ||
group: k({}, r, { | ||
value: Ve | ||
}), | ||
groupCollapsed: O({}, e, { | ||
value: fe | ||
groupCollapsed: k({}, r, { | ||
value: Je | ||
}), | ||
groupEnd: O({}, e, { | ||
value: le | ||
groupEnd: k({}, r, { | ||
value: Xe | ||
}) | ||
}); | ||
} | ||
D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
se < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var q = j.ReactCurrentDispatcher, B; | ||
function Y(e, r, t) { | ||
var ve = X.ReactCurrentDispatcher, Ce; | ||
function F(r, a, i) { | ||
{ | ||
if (B === void 0) | ||
if (Ce === void 0) | ||
try { | ||
throw Error(); | ||
} catch (l) { | ||
var i = l.stack.trim().match(/\n( *(at )?)/); | ||
B = i && i[1] || ""; | ||
} catch (p) { | ||
var s = p.stack.trim().match(/\n( *(at )?)/); | ||
Ce = s && s[1] || ""; | ||
} | ||
return ` | ||
` + B + e; | ||
` + Ce + r; | ||
} | ||
} | ||
var z = !1, $; | ||
var ge = !1, ue; | ||
{ | ||
var ze = typeof WeakMap == "function" ? WeakMap : Map; | ||
$ = new ze(); | ||
var Qe = typeof WeakMap == "function" ? WeakMap : Map; | ||
ue = new Qe(); | ||
} | ||
function ve(e, r) { | ||
if (!e || z) | ||
function _e(r, a) { | ||
if (!r || ge) | ||
return ""; | ||
{ | ||
var t = $.get(e); | ||
if (t !== void 0) | ||
return t; | ||
var i = ue.get(r); | ||
if (i !== void 0) | ||
return i; | ||
} | ||
var i; | ||
z = !0; | ||
var l = Error.prepareStackTrace; | ||
var s; | ||
ge = !0; | ||
var p = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var c; | ||
c = q.current, q.current = null, qe(); | ||
var l; | ||
l = ve.current, ve.current = null, Cr(); | ||
try { | ||
if (r) { | ||
var f = function() { | ||
if (a) { | ||
var c = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(f.prototype, "props", { | ||
if (Object.defineProperty(c.prototype, "props", { | ||
set: function() { | ||
@@ -244,14 +243,14 @@ throw Error(); | ||
try { | ||
Reflect.construct(f, []); | ||
} catch (T) { | ||
i = T; | ||
Reflect.construct(c, []); | ||
} catch (B) { | ||
s = B; | ||
} | ||
Reflect.construct(e, [], f); | ||
Reflect.construct(r, [], c); | ||
} else { | ||
try { | ||
f.call(); | ||
} catch (T) { | ||
i = T; | ||
c.call(); | ||
} catch (B) { | ||
s = B; | ||
} | ||
e.call(f.prototype); | ||
r.call(c.prototype); | ||
} | ||
@@ -261,23 +260,23 @@ } else { | ||
throw Error(); | ||
} catch (T) { | ||
i = T; | ||
} catch (B) { | ||
s = B; | ||
} | ||
e(); | ||
r(); | ||
} | ||
} catch (T) { | ||
if (T && i && typeof T.stack == "string") { | ||
for (var u = T.stack.split(` | ||
`), m = i.stack.split(` | ||
`), p = u.length - 1, y = m.length - 1; p >= 1 && y >= 0 && u[p] !== m[y]; ) | ||
y--; | ||
for (; p >= 1 && y >= 0; p--, y--) | ||
if (u[p] !== m[y]) { | ||
if (p !== 1 || y !== 1) | ||
} catch (B) { | ||
if (B && s && typeof B.stack == "string") { | ||
for (var f = B.stack.split(` | ||
`), S = s.stack.split(` | ||
`), y = f.length - 1, m = S.length - 1; y >= 1 && m >= 0 && f[y] !== S[m]; ) | ||
m--; | ||
for (; y >= 1 && m >= 0; y--, m--) | ||
if (f[y] !== S[m]) { | ||
if (y !== 1 || m !== 1) | ||
do | ||
if (p--, y--, y < 0 || u[p] !== m[y]) { | ||
var E = ` | ||
` + u[p].replace(" at new ", " at "); | ||
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && $.set(e, E), E; | ||
if (y--, m--, m < 0 || f[y] !== S[m]) { | ||
var R = ` | ||
` + f[y].replace(" at new ", " at "); | ||
return r.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", r.displayName)), typeof r == "function" && ue.set(r, R), R; | ||
} | ||
while (p >= 1 && y >= 0); | ||
while (y >= 1 && m >= 0); | ||
break; | ||
@@ -287,37 +286,37 @@ } | ||
} finally { | ||
z = !1, q.current = c, Be(), Error.prepareStackTrace = l; | ||
ge = !1, ve.current = l, g(), Error.prepareStackTrace = p; | ||
} | ||
var k = e ? e.displayName || e.name : "", Te = k ? Y(k) : ""; | ||
return typeof e == "function" && $.set(e, Te), Te; | ||
var re = r ? r.displayName || r.name : "", pr = re ? F(re) : ""; | ||
return typeof r == "function" && ue.set(r, pr), pr; | ||
} | ||
function Je(e, r, t) { | ||
return ve(e, !1); | ||
function er(r, a, i) { | ||
return _e(r, !1); | ||
} | ||
function Ge(e) { | ||
var r = e.prototype; | ||
return !!(r && r.isReactComponent); | ||
function rr(r) { | ||
var a = r.prototype; | ||
return !!(a && a.isReactComponent); | ||
} | ||
function M(e, r, t) { | ||
if (e == null) | ||
function he(r, a, i) { | ||
if (r == null) | ||
return ""; | ||
if (typeof e == "function") | ||
return ve(e, Ge(e)); | ||
if (typeof e == "string") | ||
return Y(e); | ||
switch (e) { | ||
case C: | ||
return Y("Suspense"); | ||
case h: | ||
return Y("SuspenseList"); | ||
if (typeof r == "function") | ||
return _e(r, rr(r)); | ||
if (typeof r == "string") | ||
return F(r); | ||
switch (r) { | ||
case W: | ||
return F("Suspense"); | ||
case w: | ||
return F("SuspenseList"); | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case d: | ||
return Je(e.render); | ||
if (typeof r == "object") | ||
switch (r.$$typeof) { | ||
case _: | ||
return M(e.type, r, t); | ||
case S: { | ||
var i = e, l = i._payload, c = i._init; | ||
return er(r.render); | ||
case I: | ||
return he(r.type, a, i); | ||
case H: { | ||
var s = r, p = s._payload, l = s._init; | ||
try { | ||
return M(c(l), r, t); | ||
return he(l(p), a, i); | ||
} catch { | ||
@@ -329,42 +328,42 @@ } | ||
} | ||
var N = Object.prototype.hasOwnProperty, de = {}, pe = j.ReactDebugCurrentFrame; | ||
function U(e) { | ||
if (e) { | ||
var r = e._owner, t = M(e.type, e._source, r ? r.type : null); | ||
pe.setExtraStackFrame(t); | ||
var ye = Object.prototype.hasOwnProperty, tr = {}, nr = X.ReactDebugCurrentFrame; | ||
function be(r) { | ||
if (r) { | ||
var a = r._owner, i = he(r.type, r._source, a ? a.type : null); | ||
nr.setExtraStackFrame(i); | ||
} else | ||
pe.setExtraStackFrame(null); | ||
nr.setExtraStackFrame(null); | ||
} | ||
function Ke(e, r, t, i, l) { | ||
function Sr(r, a, i, s, p) { | ||
{ | ||
var c = Function.call.bind(N); | ||
for (var f in e) | ||
if (c(e, f)) { | ||
var u = void 0; | ||
var l = Function.call.bind(ye); | ||
for (var c in r) | ||
if (l(r, c)) { | ||
var f = void 0; | ||
try { | ||
if (typeof e[f] != "function") { | ||
var m = Error((i || "React class") + ": " + t + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw m.name = "Invariant Violation", m; | ||
if (typeof r[c] != "function") { | ||
var S = Error((s || "React class") + ": " + i + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw S.name = "Invariant Violation", S; | ||
} | ||
u = e[f](r, f, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (p) { | ||
u = p; | ||
f = r[c](a, c, s, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (y) { | ||
f = y; | ||
} | ||
u && !(u instanceof Error) && (U(l), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", t, f, typeof u), U(null)), u instanceof Error && !(u.message in de) && (de[u.message] = !0, U(l), g("Failed %s type: %s", t, u.message), U(null)); | ||
f && !(f instanceof Error) && (be(p), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", i, c, typeof f), be(null)), f instanceof Error && !(f.message in tr) && (tr[f.message] = !0, be(p), E("Failed %s type: %s", i, f.message), be(null)); | ||
} | ||
} | ||
} | ||
var He = Array.isArray; | ||
function J(e) { | ||
return He(e); | ||
var Or = Array.isArray; | ||
function Se(r) { | ||
return Or(r); | ||
} | ||
function Xe(e) { | ||
function Pr(r) { | ||
{ | ||
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
return t; | ||
var a = typeof Symbol == "function" && Symbol.toStringTag, i = a && r[Symbol.toStringTag] || r.constructor.name || "Object"; | ||
return i; | ||
} | ||
} | ||
function Ze(e) { | ||
function xr(r) { | ||
try { | ||
return ye(e), !1; | ||
return ar(r), !1; | ||
} catch { | ||
@@ -374,10 +373,10 @@ return !0; | ||
} | ||
function ye(e) { | ||
return "" + e; | ||
function ar(r) { | ||
return "" + r; | ||
} | ||
function he(e) { | ||
if (Ze(e)) | ||
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ye(e); | ||
function ir(r) { | ||
if (xr(r)) | ||
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pr(r)), ar(r); | ||
} | ||
var A = j.ReactCurrentOwner, Qe = { | ||
var K = X.ReactCurrentOwner, Oe = { | ||
key: !0, | ||
@@ -387,33 +386,33 @@ ref: !0, | ||
__source: !0 | ||
}, ge, me, G; | ||
G = {}; | ||
function er(e) { | ||
if (N.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
if (r && r.isReactWarning) | ||
}, Pe, L, Ee; | ||
Ee = {}; | ||
function or(r) { | ||
if (ye.call(r, "ref")) { | ||
var a = Object.getOwnPropertyDescriptor(r, "ref").get; | ||
if (a && a.isReactWarning) | ||
return !1; | ||
} | ||
return e.ref !== void 0; | ||
return r.ref !== void 0; | ||
} | ||
function rr(e) { | ||
if (N.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
if (r && r.isReactWarning) | ||
function Ar(r) { | ||
if (ye.call(r, "key")) { | ||
var a = Object.getOwnPropertyDescriptor(r, "key").get; | ||
if (a && a.isReactWarning) | ||
return !1; | ||
} | ||
return e.key !== void 0; | ||
return r.key !== void 0; | ||
} | ||
function tr(e, r) { | ||
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) { | ||
var t = w(A.current.type); | ||
G[t] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(A.current.type), e.ref), G[t] = !0); | ||
function sr(r, a) { | ||
if (typeof r.ref == "string" && K.current && a && K.current.stateNode !== a) { | ||
var i = Y(K.current.type); | ||
Ee[i] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(K.current.type), r.ref), Ee[i] = !0); | ||
} | ||
} | ||
function nr(e, r) { | ||
function me(r, a) { | ||
{ | ||
var t = function() { | ||
ge || (ge = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
var i = function() { | ||
Pe || (Pe = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a)); | ||
}; | ||
t.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: t, | ||
i.isReactWarning = !0, Object.defineProperty(r, "key", { | ||
get: i, | ||
configurable: !0 | ||
@@ -423,9 +422,9 @@ }); | ||
} | ||
function ar(e, r) { | ||
function ur(r, a) { | ||
{ | ||
var t = function() { | ||
me || (me = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
var i = function() { | ||
L || (L = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a)); | ||
}; | ||
t.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
get: t, | ||
i.isReactWarning = !0, Object.defineProperty(r, "ref", { | ||
get: i, | ||
configurable: !0 | ||
@@ -435,15 +434,15 @@ }); | ||
} | ||
var ir = function(e, r, t, i, l, c, f) { | ||
var u = { | ||
var fr = function(r, a, i, s, p, l, c) { | ||
var f = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: a, | ||
$$typeof: v, | ||
// Built-in properties that belong on the element | ||
type: e, | ||
key: r, | ||
ref: t, | ||
props: f, | ||
type: r, | ||
key: a, | ||
ref: i, | ||
props: c, | ||
// Record the component responsible for creating this element. | ||
_owner: c | ||
_owner: l | ||
}; | ||
return u._store = {}, Object.defineProperty(u._store, "validated", { | ||
return f._store = {}, Object.defineProperty(f._store, "validated", { | ||
configurable: !1, | ||
@@ -453,53 +452,53 @@ enumerable: !1, | ||
value: !1 | ||
}), Object.defineProperty(u, "_self", { | ||
}), Object.defineProperty(f, "_self", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: i | ||
}), Object.defineProperty(u, "_source", { | ||
value: s | ||
}), Object.defineProperty(f, "_source", { | ||
configurable: !1, | ||
enumerable: !1, | ||
writable: !1, | ||
value: l | ||
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u; | ||
value: p | ||
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f; | ||
}; | ||
function or(e, r, t, i, l) { | ||
function jr(r, a, i, s, p) { | ||
{ | ||
var c, f = {}, u = null, m = null; | ||
t !== void 0 && (he(t), u = "" + t), rr(r) && (he(r.key), u = "" + r.key), er(r) && (m = r.ref, tr(r, l)); | ||
for (c in r) | ||
N.call(r, c) && !Qe.hasOwnProperty(c) && (f[c] = r[c]); | ||
if (e && e.defaultProps) { | ||
var p = e.defaultProps; | ||
for (c in p) | ||
f[c] === void 0 && (f[c] = p[c]); | ||
var l, c = {}, f = null, S = null; | ||
i !== void 0 && (ir(i), f = "" + i), Ar(a) && (ir(a.key), f = "" + a.key), or(a) && (S = a.ref, sr(a, p)); | ||
for (l in a) | ||
ye.call(a, l) && !Oe.hasOwnProperty(l) && (c[l] = a[l]); | ||
if (r && r.defaultProps) { | ||
var y = r.defaultProps; | ||
for (l in y) | ||
c[l] === void 0 && (c[l] = y[l]); | ||
} | ||
if (u || m) { | ||
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
u && nr(f, y), m && ar(f, y); | ||
if (f || S) { | ||
var m = typeof r == "function" ? r.displayName || r.name || "Unknown" : r; | ||
f && me(c, m), S && ur(c, m); | ||
} | ||
return ir(e, u, m, l, i, A.current, f); | ||
return fr(r, f, S, p, s, K.current, c); | ||
} | ||
} | ||
var K = j.ReactCurrentOwner, Ee = j.ReactDebugCurrentFrame; | ||
function x(e) { | ||
if (e) { | ||
var r = e._owner, t = M(e.type, e._source, r ? r.type : null); | ||
Ee.setExtraStackFrame(t); | ||
var z = X.ReactCurrentOwner, xe = X.ReactDebugCurrentFrame; | ||
function Z(r) { | ||
if (r) { | ||
var a = r._owner, i = he(r.type, r._source, a ? a.type : null); | ||
xe.setExtraStackFrame(i); | ||
} else | ||
Ee.setExtraStackFrame(null); | ||
xe.setExtraStackFrame(null); | ||
} | ||
var H; | ||
H = !1; | ||
function X(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === a; | ||
var Ae; | ||
Ae = !1; | ||
function fe(r) { | ||
return typeof r == "object" && r !== null && r.$$typeof === v; | ||
} | ||
function Re() { | ||
function Q() { | ||
{ | ||
if (K.current) { | ||
var e = w(K.current.type); | ||
if (e) | ||
if (z.current) { | ||
var r = Y(z.current.type); | ||
if (r) | ||
return ` | ||
Check the render method of \`` + e + "`."; | ||
Check the render method of \`` + r + "`."; | ||
} | ||
@@ -509,9 +508,9 @@ return ""; | ||
} | ||
function ur(e) { | ||
function je(r) { | ||
{ | ||
if (e !== void 0) { | ||
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber; | ||
if (r !== void 0) { | ||
var a = r.fileName.replace(/^.*[\\\/]/, ""), i = r.lineNumber; | ||
return ` | ||
Check your code at ` + r + ":" + t + "."; | ||
Check your code at ` + a + ":" + i + "."; | ||
} | ||
@@ -521,240 +520,659 @@ return ""; | ||
} | ||
var _e = {}; | ||
function sr(e) { | ||
var Te = {}; | ||
function De(r) { | ||
{ | ||
var r = Re(); | ||
if (!r) { | ||
var t = typeof e == "string" ? e : e.displayName || e.name; | ||
t && (r = ` | ||
var a = Q(); | ||
if (!a) { | ||
var i = typeof r == "string" ? r : r.displayName || r.name; | ||
i && (a = ` | ||
Check the top-level render call using <` + t + ">."); | ||
Check the top-level render call using <` + i + ">."); | ||
} | ||
return r; | ||
return a; | ||
} | ||
} | ||
function be(e, r) { | ||
function ee(r, a) { | ||
{ | ||
if (!e._store || e._store.validated || e.key != null) | ||
if (!r._store || r._store.validated || r.key != null) | ||
return; | ||
e._store.validated = !0; | ||
var t = sr(r); | ||
if (_e[t]) | ||
r._store.validated = !0; | ||
var i = De(a); | ||
if (Te[i]) | ||
return; | ||
_e[t] = !0; | ||
var i = ""; | ||
e && e._owner && e._owner !== K.current && (i = " It was passed a child from " + w(e._owner.type) + "."), x(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), x(null); | ||
Te[i] = !0; | ||
var s = ""; | ||
r && r._owner && r._owner !== z.current && (s = " It was passed a child from " + Y(r._owner.type) + "."), Z(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, s), Z(null); | ||
} | ||
} | ||
function Ce(e, r) { | ||
function lr(r, a) { | ||
{ | ||
if (typeof e != "object") | ||
if (typeof r != "object") | ||
return; | ||
if (J(e)) | ||
for (var t = 0; t < e.length; t++) { | ||
var i = e[t]; | ||
X(i) && be(i, r); | ||
if (Se(r)) | ||
for (var i = 0; i < r.length; i++) { | ||
var s = r[i]; | ||
fe(s) && ee(s, a); | ||
} | ||
else if (X(e)) | ||
e._store && (e._store.validated = !0); | ||
else if (e) { | ||
var l = Ie(e); | ||
if (typeof l == "function" && l !== e.entries) | ||
for (var c = l.call(e), f; !(f = c.next()).done; ) | ||
X(f.value) && be(f.value, r); | ||
else if (fe(r)) | ||
r._store && (r._store.validated = !0); | ||
else if (r) { | ||
var p = Ne(r); | ||
if (typeof p == "function" && p !== r.entries) | ||
for (var l = p.call(r), c; !(c = l.next()).done; ) | ||
fe(c.value) && ee(c.value, a); | ||
} | ||
} | ||
} | ||
function fr(e) { | ||
function Dr(r) { | ||
{ | ||
var r = e.type; | ||
if (r == null || typeof r == "string") | ||
var a = r.type; | ||
if (a == null || typeof a == "string") | ||
return; | ||
var t; | ||
if (typeof r == "function") | ||
t = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here. | ||
var i; | ||
if (typeof a == "function") | ||
i = a.propTypes; | ||
else if (typeof a == "object" && (a.$$typeof === _ || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === _)) | ||
t = r.propTypes; | ||
a.$$typeof === I)) | ||
i = a.propTypes; | ||
else | ||
return; | ||
if (t) { | ||
var i = w(r); | ||
Ke(t, e.props, "prop", i, e); | ||
} else if (r.PropTypes !== void 0 && !H) { | ||
H = !0; | ||
var l = w(r); | ||
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown"); | ||
if (i) { | ||
var s = Y(a); | ||
Sr(i, r.props, "prop", s, r); | ||
} else if (a.PropTypes !== void 0 && !Ae) { | ||
Ae = !0; | ||
var p = Y(a); | ||
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown"); | ||
} | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
} | ||
function lr(e) { | ||
function Ir(r) { | ||
{ | ||
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { | ||
var i = r[t]; | ||
if (i !== "children" && i !== "key") { | ||
x(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), x(null); | ||
for (var a = Object.keys(r.props), i = 0; i < a.length; i++) { | ||
var s = a[i]; | ||
if (s !== "children" && s !== "key") { | ||
Z(r), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), Z(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && (x(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), x(null)); | ||
r.ref !== null && (Z(r), E("Invalid attribute `ref` supplied to `React.Fragment`."), Z(null)); | ||
} | ||
} | ||
function we(e, r, t, i, l, c) { | ||
function cr(r, a, i, s, p, l) { | ||
{ | ||
var f = Ue(e); | ||
if (!f) { | ||
var u = ""; | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); | ||
var m = ur(l); | ||
m ? u += m : u += Re(); | ||
var p; | ||
e === null ? p = "null" : J(e) ? p = "array" : e !== void 0 && e.$$typeof === a ? (p = "<" + (w(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, u); | ||
var c = we(r); | ||
if (!c) { | ||
var f = ""; | ||
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); | ||
var S = je(p); | ||
S ? f += S : f += Q(); | ||
var y; | ||
r === null ? y = "null" : Se(r) ? y = "array" : r !== void 0 && r.$$typeof === v ? (y = "<" + (Y(r.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : y = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, f); | ||
} | ||
var y = or(e, r, t, l, c); | ||
if (y == null) | ||
return y; | ||
if (f) { | ||
var E = r.children; | ||
if (E !== void 0) | ||
if (i) | ||
if (J(E)) { | ||
for (var k = 0; k < E.length; k++) | ||
Ce(E[k], e); | ||
Object.freeze && Object.freeze(E); | ||
var m = jr(r, a, i, p, l); | ||
if (m == null) | ||
return m; | ||
if (c) { | ||
var R = a.children; | ||
if (R !== void 0) | ||
if (s) | ||
if (Se(R)) { | ||
for (var re = 0; re < R.length; re++) | ||
lr(R[re], r); | ||
Object.freeze && Object.freeze(R); | ||
} else | ||
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
else | ||
Ce(E, e); | ||
lr(R, r); | ||
} | ||
return e === o ? lr(y) : fr(y), y; | ||
return r === x ? Ir(m) : Dr(m), m; | ||
} | ||
} | ||
function cr(e, r, t) { | ||
return we(e, r, t, !0); | ||
function Fr(r, a, i) { | ||
return cr(r, a, i, !0); | ||
} | ||
function vr(e, r, t) { | ||
return we(e, r, t, !1); | ||
function dr(r, a, i) { | ||
return cr(r, a, i, !1); | ||
} | ||
var dr = vr, pr = cr; | ||
I.Fragment = o, I.jsx = dr, I.jsxs = pr; | ||
}()), I; | ||
var Ie = dr, V = Fr; | ||
$e.Fragment = x, $e.jsx = Ie, $e.jsxs = V; | ||
}()), $e; | ||
} | ||
process.env.NODE_ENV === "production" ? Z.exports = Er() : Z.exports = Rr(); | ||
var _r = Z.exports, je = Object.prototype.hasOwnProperty; | ||
function xe(n, a, s) { | ||
for (s of n.keys()) | ||
if (L(s, a)) | ||
return s; | ||
} | ||
function L(n, a) { | ||
var s, o, v; | ||
if (n === a) | ||
return !0; | ||
if (n && a && (s = n.constructor) === a.constructor) { | ||
if (s === Date) | ||
return n.getTime() === a.getTime(); | ||
if (s === RegExp) | ||
return n.toString() === a.toString(); | ||
if (s === Array) { | ||
if ((o = n.length) === a.length) | ||
for (; o-- && L(n[o], a[o]); ) | ||
; | ||
return o === -1; | ||
process.env.NODE_ENV === "production" ? Mr.exports = Mt() : Mr.exports = $t(); | ||
var Ut = Mr.exports, Tr = { exports: {} }; | ||
Tr.exports; | ||
(function(d, v) { | ||
var P = 200, x = "__lodash_hash_undefined__", A = 1, $ = 2, q = 9007199254740991, j = "[object Arguments]", _ = "[object Array]", W = "[object AsyncFunction]", w = "[object Boolean]", I = "[object Date]", H = "[object Error]", ie = "[object Function]", Ue = "[object GeneratorFunction]", de = "[object Map]", Ne = "[object Number]", X = "[object Null]", E = "[object Object]", We = "[object Promise]", Rr = "[object Proxy]", Ye = "[object RegExp]", pe = "[object Set]", ze = "[object String]", wr = "[object Symbol]", Be = "[object Undefined]", we = "[object WeakMap]", Ge = "[object ArrayBuffer]", oe = "[object DataView]", Y = "[object Float32Array]", k = "[object Float64Array]", se = "[object Int8Array]", qe = "[object Int16Array]", He = "[object Int32Array]", Ke = "[object Uint8Array]", ke = "[object Uint8ClampedArray]", Ve = "[object Uint16Array]", Je = "[object Uint32Array]", Xe = /[\\^$.*+?()[\]{}|]/g, Ze = /^\[object .+?Constructor\]$/, Cr = /^(?:0|[1-9]\d*)$/, g = {}; | ||
g[Y] = g[k] = g[se] = g[qe] = g[He] = g[Ke] = g[ke] = g[Ve] = g[Je] = !0, g[j] = g[_] = g[Ge] = g[w] = g[oe] = g[I] = g[H] = g[ie] = g[de] = g[Ne] = g[E] = g[Ye] = g[pe] = g[ze] = g[we] = !1; | ||
var ve = typeof Er == "object" && Er && Er.Object === Object && Er, Ce = typeof self == "object" && self && self.Object === Object && self, F = ve || Ce || Function("return this")(), ge = v && !v.nodeType && v, ue = ge && !0 && d && !d.nodeType && d, Qe = ue && ue.exports === ge, _e = Qe && ve.process, er = function() { | ||
try { | ||
return _e && _e.binding && _e.binding("util"); | ||
} catch { | ||
} | ||
if (s === Set) { | ||
if (n.size !== a.size) | ||
}(), rr = er && er.isTypedArray; | ||
function he(e, t) { | ||
for (var n = -1, o = e == null ? 0 : e.length, h = 0, u = []; ++n < o; ) { | ||
var T = e[n]; | ||
t(T, n, e) && (u[h++] = T); | ||
} | ||
return u; | ||
} | ||
function ye(e, t) { | ||
for (var n = -1, o = t.length, h = e.length; ++n < o; ) | ||
e[h + n] = t[n]; | ||
return e; | ||
} | ||
function tr(e, t) { | ||
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; ) | ||
if (t(e[n], n, e)) | ||
return !0; | ||
return !1; | ||
} | ||
function nr(e, t) { | ||
for (var n = -1, o = Array(e); ++n < e; ) | ||
o[n] = t(n); | ||
return o; | ||
} | ||
function be(e) { | ||
return function(t) { | ||
return e(t); | ||
}; | ||
} | ||
function Sr(e, t) { | ||
return e.has(t); | ||
} | ||
function Or(e, t) { | ||
return e == null ? void 0 : e[t]; | ||
} | ||
function Se(e) { | ||
var t = -1, n = Array(e.size); | ||
return e.forEach(function(o, h) { | ||
n[++t] = [h, o]; | ||
}), n; | ||
} | ||
function Pr(e, t) { | ||
return function(n) { | ||
return e(t(n)); | ||
}; | ||
} | ||
function xr(e) { | ||
var t = -1, n = Array(e.size); | ||
return e.forEach(function(o) { | ||
n[++t] = o; | ||
}), n; | ||
} | ||
var ar = Array.prototype, ir = Function.prototype, K = Object.prototype, Oe = F["__core-js_shared__"], Pe = ir.toString, L = K.hasOwnProperty, Ee = function() { | ||
var e = /[^.]+$/.exec(Oe && Oe.keys && Oe.keys.IE_PROTO || ""); | ||
return e ? "Symbol(src)_1." + e : ""; | ||
}(), or = K.toString, Ar = RegExp( | ||
"^" + Pe.call(L).replace(Xe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" | ||
), sr = Qe ? F.Buffer : void 0, me = F.Symbol, ur = F.Uint8Array, fr = K.propertyIsEnumerable, jr = ar.splice, z = me ? me.toStringTag : void 0, xe = Object.getOwnPropertySymbols, Z = sr ? sr.isBuffer : void 0, Ae = Pr(Object.keys, Object), fe = Re(F, "DataView"), Q = Re(F, "Map"), je = Re(F, "Promise"), Te = Re(F, "Set"), De = Re(F, "WeakMap"), ee = Re(Object, "create"), lr = le(fe), Dr = le(Q), Ir = le(je), cr = le(Te), Fr = le(De), dr = me ? me.prototype : void 0, Ie = dr ? dr.valueOf : void 0; | ||
function V(e) { | ||
var t = -1, n = e == null ? 0 : e.length; | ||
for (this.clear(); ++t < n; ) { | ||
var o = e[t]; | ||
this.set(o[0], o[1]); | ||
} | ||
} | ||
function r() { | ||
this.__data__ = ee ? ee(null) : {}, this.size = 0; | ||
} | ||
function a(e) { | ||
var t = this.has(e) && delete this.__data__[e]; | ||
return this.size -= t ? 1 : 0, t; | ||
} | ||
function i(e) { | ||
var t = this.__data__; | ||
if (ee) { | ||
var n = t[e]; | ||
return n === x ? void 0 : n; | ||
} | ||
return L.call(t, e) ? t[e] : void 0; | ||
} | ||
function s(e) { | ||
var t = this.__data__; | ||
return ee ? t[e] !== void 0 : L.call(t, e); | ||
} | ||
function p(e, t) { | ||
var n = this.__data__; | ||
return this.size += this.has(e) ? 0 : 1, n[e] = ee && t === void 0 ? x : t, this; | ||
} | ||
V.prototype.clear = r, V.prototype.delete = a, V.prototype.get = i, V.prototype.has = s, V.prototype.set = p; | ||
function l(e) { | ||
var t = -1, n = e == null ? 0 : e.length; | ||
for (this.clear(); ++t < n; ) { | ||
var o = e[t]; | ||
this.set(o[0], o[1]); | ||
} | ||
} | ||
function c() { | ||
this.__data__ = [], this.size = 0; | ||
} | ||
function f(e) { | ||
var t = this.__data__, n = gr(t, e); | ||
if (n < 0) | ||
return !1; | ||
var o = t.length - 1; | ||
return n == o ? t.pop() : jr.call(t, n, 1), --this.size, !0; | ||
} | ||
function S(e) { | ||
var t = this.__data__, n = gr(t, e); | ||
return n < 0 ? void 0 : t[n][1]; | ||
} | ||
function y(e) { | ||
return gr(this.__data__, e) > -1; | ||
} | ||
function m(e, t) { | ||
var n = this.__data__, o = gr(n, e); | ||
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this; | ||
} | ||
l.prototype.clear = c, l.prototype.delete = f, l.prototype.get = S, l.prototype.has = y, l.prototype.set = m; | ||
function R(e) { | ||
var t = -1, n = e == null ? 0 : e.length; | ||
for (this.clear(); ++t < n; ) { | ||
var o = e[t]; | ||
this.set(o[0], o[1]); | ||
} | ||
} | ||
function re() { | ||
this.size = 0, this.__data__ = { | ||
hash: new V(), | ||
map: new (Q || l)(), | ||
string: new V() | ||
}; | ||
} | ||
function pr(e) { | ||
var t = _r(this, e).delete(e); | ||
return this.size -= t ? 1 : 0, t; | ||
} | ||
function B(e) { | ||
return _r(this, e).get(e); | ||
} | ||
function et(e) { | ||
return _r(this, e).has(e); | ||
} | ||
function rt(e, t) { | ||
var n = _r(this, e), o = n.size; | ||
return n.set(e, t), this.size += n.size == o ? 0 : 1, this; | ||
} | ||
R.prototype.clear = re, R.prototype.delete = pr, R.prototype.get = B, R.prototype.has = et, R.prototype.set = rt; | ||
function vr(e) { | ||
var t = -1, n = e == null ? 0 : e.length; | ||
for (this.__data__ = new R(); ++t < n; ) | ||
this.add(e[t]); | ||
} | ||
function tt(e) { | ||
return this.__data__.set(e, x), this; | ||
} | ||
function nt(e) { | ||
return this.__data__.has(e); | ||
} | ||
vr.prototype.add = vr.prototype.push = tt, vr.prototype.has = nt; | ||
function te(e) { | ||
var t = this.__data__ = new l(e); | ||
this.size = t.size; | ||
} | ||
function at() { | ||
this.__data__ = new l(), this.size = 0; | ||
} | ||
function it(e) { | ||
var t = this.__data__, n = t.delete(e); | ||
return this.size = t.size, n; | ||
} | ||
function ot(e) { | ||
return this.__data__.get(e); | ||
} | ||
function st(e) { | ||
return this.__data__.has(e); | ||
} | ||
function ut(e, t) { | ||
var n = this.__data__; | ||
if (n instanceof l) { | ||
var o = n.__data__; | ||
if (!Q || o.length < P - 1) | ||
return o.push([e, t]), this.size = ++n.size, this; | ||
n = this.__data__ = new R(o); | ||
} | ||
return n.set(e, t), this.size = n.size, this; | ||
} | ||
te.prototype.clear = at, te.prototype.delete = it, te.prototype.get = ot, te.prototype.has = st, te.prototype.set = ut; | ||
function ft(e, t) { | ||
var n = hr(e), o = !n && wt(e), h = !n && !o && Lr(e), u = !n && !o && !h && kr(e), T = n || o || h || u, C = T ? nr(e.length, String) : [], O = C.length; | ||
for (var b in e) | ||
(t || L.call(e, b)) && !(T && // Safari 9 has enumerable `arguments.length` in strict mode. | ||
(b == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. | ||
h && (b == "offset" || b == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. | ||
u && (b == "buffer" || b == "byteLength" || b == "byteOffset") || // Skip index properties. | ||
bt(b, O))) && C.push(b); | ||
return C; | ||
} | ||
function gr(e, t) { | ||
for (var n = e.length; n--; ) | ||
if (Gr(e[n][0], t)) | ||
return n; | ||
return -1; | ||
} | ||
function lt(e, t, n) { | ||
var o = t(e); | ||
return hr(e) ? o : ye(o, n(e)); | ||
} | ||
function Fe(e) { | ||
return e == null ? e === void 0 ? Be : X : z && z in Object(e) ? ht(e) : Rt(e); | ||
} | ||
function Wr(e) { | ||
return Le(e) && Fe(e) == j; | ||
} | ||
function Yr(e, t, n, o, h) { | ||
return e === t ? !0 : e == null || t == null || !Le(e) && !Le(t) ? e !== e && t !== t : ct(e, t, n, o, Yr, h); | ||
} | ||
function ct(e, t, n, o, h, u) { | ||
var T = hr(e), C = hr(t), O = T ? _ : ne(e), b = C ? _ : ne(t); | ||
O = O == j ? E : O, b = b == j ? E : b; | ||
var M = O == E, G = b == E, D = O == b; | ||
if (D && Lr(e)) { | ||
if (!Lr(t)) | ||
return !1; | ||
for (o of n) | ||
if (v = o, v && typeof v == "object" && (v = xe(a, v), !v) || !a.has(v)) | ||
T = !0, M = !1; | ||
} | ||
if (D && !M) | ||
return u || (u = new te()), T || kr(e) ? zr(e, t, n, o, h, u) : gt(e, t, O, n, o, h, u); | ||
if (!(n & A)) { | ||
var U = M && L.call(e, "__wrapped__"), N = G && L.call(t, "__wrapped__"); | ||
if (U || N) { | ||
var ae = U ? e.value() : e, J = N ? t.value() : t; | ||
return u || (u = new te()), h(ae, J, n, o, u); | ||
} | ||
} | ||
return D ? (u || (u = new te()), _t(e, t, n, o, h, u)) : !1; | ||
} | ||
function dt(e) { | ||
if (!Kr(e) || mt(e)) | ||
return !1; | ||
var t = qr(e) ? Ar : Ze; | ||
return t.test(le(e)); | ||
} | ||
function pt(e) { | ||
return Le(e) && Hr(e.length) && !!g[Fe(e)]; | ||
} | ||
function vt(e) { | ||
if (!Tt(e)) | ||
return Ae(e); | ||
var t = []; | ||
for (var n in Object(e)) | ||
L.call(e, n) && n != "constructor" && t.push(n); | ||
return t; | ||
} | ||
function zr(e, t, n, o, h, u) { | ||
var T = n & A, C = e.length, O = t.length; | ||
if (C != O && !(T && O > C)) | ||
return !1; | ||
var b = u.get(e); | ||
if (b && u.get(t)) | ||
return b == t; | ||
var M = -1, G = !0, D = n & $ ? new vr() : void 0; | ||
for (u.set(e, t), u.set(t, e); ++M < C; ) { | ||
var U = e[M], N = t[M]; | ||
if (o) | ||
var ae = T ? o(N, U, M, t, e, u) : o(U, N, M, e, t, u); | ||
if (ae !== void 0) { | ||
if (ae) | ||
continue; | ||
G = !1; | ||
break; | ||
} | ||
if (D) { | ||
if (!tr(t, function(J, ce) { | ||
if (!Sr(D, ce) && (U === J || h(U, J, n, o, u))) | ||
return D.push(ce); | ||
})) { | ||
G = !1; | ||
break; | ||
} | ||
} else if (!(U === N || h(U, N, n, o, u))) { | ||
G = !1; | ||
break; | ||
} | ||
} | ||
return u.delete(e), u.delete(t), G; | ||
} | ||
function gt(e, t, n, o, h, u, T) { | ||
switch (n) { | ||
case oe: | ||
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) | ||
return !1; | ||
return !0; | ||
e = e.buffer, t = t.buffer; | ||
case Ge: | ||
return !(e.byteLength != t.byteLength || !u(new ur(e), new ur(t))); | ||
case w: | ||
case I: | ||
case Ne: | ||
return Gr(+e, +t); | ||
case H: | ||
return e.name == t.name && e.message == t.message; | ||
case Ye: | ||
case ze: | ||
return e == t + ""; | ||
case de: | ||
var C = Se; | ||
case pe: | ||
var O = o & A; | ||
if (C || (C = xr), e.size != t.size && !O) | ||
return !1; | ||
var b = T.get(e); | ||
if (b) | ||
return b == t; | ||
o |= $, T.set(e, t); | ||
var M = zr(C(e), C(t), o, h, u, T); | ||
return T.delete(e), M; | ||
case wr: | ||
if (Ie) | ||
return Ie.call(e) == Ie.call(t); | ||
} | ||
if (s === Map) { | ||
if (n.size !== a.size) | ||
return !1; | ||
} | ||
function _t(e, t, n, o, h, u) { | ||
var T = n & A, C = Br(e), O = C.length, b = Br(t), M = b.length; | ||
if (O != M && !T) | ||
return !1; | ||
for (var G = O; G--; ) { | ||
var D = C[G]; | ||
if (!(T ? D in t : L.call(t, D))) | ||
return !1; | ||
for (o of n) | ||
if (v = o[0], v && typeof v == "object" && (v = xe(a, v), !v) || !L(o[1], a.get(v))) | ||
return !1; | ||
return !0; | ||
} | ||
if (s === ArrayBuffer) | ||
n = new Uint8Array(n), a = new Uint8Array(a); | ||
else if (s === DataView) { | ||
if ((o = n.byteLength) === a.byteLength) | ||
for (; o-- && n.getInt8(o) === a.getInt8(o); ) | ||
; | ||
return o === -1; | ||
var U = u.get(e); | ||
if (U && u.get(t)) | ||
return U == t; | ||
var N = !0; | ||
u.set(e, t), u.set(t, e); | ||
for (var ae = T; ++G < O; ) { | ||
D = C[G]; | ||
var J = e[D], ce = t[D]; | ||
if (o) | ||
var Vr = T ? o(ce, J, D, t, e, u) : o(J, ce, D, e, t, u); | ||
if (!(Vr === void 0 ? J === ce || h(J, ce, n, o, u) : Vr)) { | ||
N = !1; | ||
break; | ||
} | ||
ae || (ae = D == "constructor"); | ||
} | ||
if (ArrayBuffer.isView(n)) { | ||
if ((o = n.byteLength) === a.byteLength) | ||
for (; o-- && n[o] === a[o]; ) | ||
; | ||
return o === -1; | ||
if (N && !ae) { | ||
var yr = e.constructor, br = t.constructor; | ||
yr != br && "constructor" in e && "constructor" in t && !(typeof yr == "function" && yr instanceof yr && typeof br == "function" && br instanceof br) && (N = !1); | ||
} | ||
if (!s || typeof n == "object") { | ||
o = 0; | ||
for (s in n) | ||
if (je.call(n, s) && ++o && !je.call(a, s) || !(s in a) || !L(n[s], a[s])) | ||
return !1; | ||
return Object.keys(a).length === o; | ||
return u.delete(e), u.delete(t), N; | ||
} | ||
function Br(e) { | ||
return lt(e, Ot, yt); | ||
} | ||
function _r(e, t) { | ||
var n = e.__data__; | ||
return Et(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map; | ||
} | ||
function Re(e, t) { | ||
var n = Or(e, t); | ||
return dt(n) ? n : void 0; | ||
} | ||
function ht(e) { | ||
var t = L.call(e, z), n = e[z]; | ||
try { | ||
e[z] = void 0; | ||
var o = !0; | ||
} catch { | ||
} | ||
var h = or.call(e); | ||
return o && (t ? e[z] = n : delete e[z]), h; | ||
} | ||
return n !== n && a !== a; | ||
var yt = xe ? function(e) { | ||
return e == null ? [] : (e = Object(e), he(xe(e), function(t) { | ||
return fr.call(e, t); | ||
})); | ||
} : Pt, ne = Fe; | ||
(fe && ne(new fe(new ArrayBuffer(1))) != oe || Q && ne(new Q()) != de || je && ne(je.resolve()) != We || Te && ne(new Te()) != pe || De && ne(new De()) != we) && (ne = function(e) { | ||
var t = Fe(e), n = t == E ? e.constructor : void 0, o = n ? le(n) : ""; | ||
if (o) | ||
switch (o) { | ||
case lr: | ||
return oe; | ||
case Dr: | ||
return de; | ||
case Ir: | ||
return We; | ||
case cr: | ||
return pe; | ||
case Fr: | ||
return we; | ||
} | ||
return t; | ||
}); | ||
function bt(e, t) { | ||
return t = t ?? q, !!t && (typeof e == "number" || Cr.test(e)) && e > -1 && e % 1 == 0 && e < t; | ||
} | ||
function Et(e) { | ||
var t = typeof e; | ||
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; | ||
} | ||
function mt(e) { | ||
return !!Ee && Ee in e; | ||
} | ||
function Tt(e) { | ||
var t = e && e.constructor, n = typeof t == "function" && t.prototype || K; | ||
return e === n; | ||
} | ||
function Rt(e) { | ||
return or.call(e); | ||
} | ||
function le(e) { | ||
if (e != null) { | ||
try { | ||
return Pe.call(e); | ||
} catch { | ||
} | ||
try { | ||
return e + ""; | ||
} catch { | ||
} | ||
} | ||
return ""; | ||
} | ||
function Gr(e, t) { | ||
return e === t || e !== e && t !== t; | ||
} | ||
var wt = Wr(function() { | ||
return arguments; | ||
}()) ? Wr : function(e) { | ||
return Le(e) && L.call(e, "callee") && !fr.call(e, "callee"); | ||
}, hr = Array.isArray; | ||
function Ct(e) { | ||
return e != null && Hr(e.length) && !qr(e); | ||
} | ||
var Lr = Z || xt; | ||
function St(e, t) { | ||
return Yr(e, t); | ||
} | ||
function qr(e) { | ||
if (!Kr(e)) | ||
return !1; | ||
var t = Fe(e); | ||
return t == ie || t == Ue || t == W || t == Rr; | ||
} | ||
function Hr(e) { | ||
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= q; | ||
} | ||
function Kr(e) { | ||
var t = typeof e; | ||
return e != null && (t == "object" || t == "function"); | ||
} | ||
function Le(e) { | ||
return e != null && typeof e == "object"; | ||
} | ||
var kr = rr ? be(rr) : pt; | ||
function Ot(e) { | ||
return Ct(e) ? ft(e) : vt(e); | ||
} | ||
function Pt() { | ||
return []; | ||
} | ||
function xt() { | ||
return !1; | ||
} | ||
d.exports = St; | ||
})(Tr, Tr.exports); | ||
var Nt = Tr.exports; | ||
const Wt = /* @__PURE__ */ Ft(Nt); | ||
function Yt(d) { | ||
const v = mr(d), P = mr(0); | ||
return Wt(d, v.current) || (v.current = d, P.current += 1), $r(() => v.current, [P.current]); | ||
} | ||
function br(n) { | ||
var a = V.useRef(n), s = V.useRef(0); | ||
return L(n, a.current) || (a.current = n, s.current += 1), V.useMemo(function() { | ||
return a.current; | ||
}, [s.current]); | ||
function zt(d, v) { | ||
return jt(d, Yt(v)); | ||
} | ||
function Cr(n, a) { | ||
return V.useEffect(n, br(a)); | ||
} | ||
const ee = yr(null); | ||
function Pr({ | ||
children: n, | ||
locale: a, | ||
debugMode: s = !1, | ||
enableInspectorMode: o = !0, | ||
enableLiveUpdates: v = !0 | ||
const Nr = At(null); | ||
function qt({ | ||
children: d, | ||
locale: v, | ||
debugMode: P = !1, | ||
enableInspectorMode: x = !0, | ||
enableLiveUpdates: A = !0 | ||
}) { | ||
if (!a) | ||
if (!v) | ||
throw new Error( | ||
'ContentfulLivePreviewProvider have to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`' | ||
); | ||
Q.init({ locale: a, debugMode: s, enableInspectorMode: o, enableLiveUpdates: v }); | ||
const b = De( | ||
() => ({ locale: a, debugMode: s, enableInspectorMode: o, enableLiveUpdates: v }), | ||
[a, s, o, v] | ||
Ur.init({ locale: v, debugMode: P, enableInspectorMode: x, enableLiveUpdates: A }); | ||
const $ = $r( | ||
() => ({ locale: v, debugMode: P, enableInspectorMode: x, enableLiveUpdates: A }), | ||
[v, P, x, A] | ||
); | ||
return /* @__PURE__ */ _r.jsx(ee.Provider, { value: b, children: n }); | ||
return /* @__PURE__ */ Ut.jsx(Nr.Provider, { value: $, children: d }); | ||
} | ||
function Sr(n, a, s = !1) { | ||
const [o, v] = hr({ data: n, version: 1 }), b = Pe(n), P = Pe(mr(v)), R = Ae(ee), d = typeof a == "object" ? a : { locale: a, skip: s }, C = De(() => R && !R.enableLiveUpdates || d.skip ? !1 : !!(Array.isArray(n) && n.length || n && typeof n == "object" && Object.keys(n).length), [R, d.skip, n]); | ||
return Cr(() => { | ||
if (b.current !== n && (v({ data: n, version: 1 }), b.current = n), !!C) | ||
return Q.subscribe({ | ||
data: n, | ||
locale: d.locale, | ||
query: d.query, | ||
callback: (h) => { | ||
P.current((_) => ({ data: h, version: _.version + 1 })); | ||
function Ht(d, v, P = !1) { | ||
const [x, A] = Dt({ data: d, version: 1 }), $ = mr(d), q = mr(Lt(A)), j = Qr(Nr), _ = typeof v == "object" ? v : { locale: v, skip: P }, W = $r(() => j && !j.enableLiveUpdates || _.skip ? !1 : !!(Array.isArray(d) && d.length || d && typeof d == "object" && Object.keys(d).length), [j, _.skip, d]); | ||
return zt(() => { | ||
if ($.current !== d && (A({ data: d, version: 1 }), $.current = d), !!W) | ||
return Ur.subscribe({ | ||
data: d, | ||
locale: _.locale, | ||
query: _.query, | ||
callback: (w) => { | ||
q.current((I) => ({ data: w, version: I.version + 1 })); | ||
} | ||
}); | ||
}, [n, C, d.locale, d.query]), o.data; | ||
}, [d, W, _.locale, _.query]), x.data; | ||
} | ||
function Or(n) { | ||
const a = Ae(ee); | ||
return gr( | ||
(s) => a != null && a.enableInspectorMode ? Q.getProps({ ...n, ...s }) : null, | ||
[a == null ? void 0 : a.enableInspectorMode, n] | ||
function Kt(d) { | ||
const v = Qr(Nr); | ||
return It( | ||
(P) => v != null && v.enableInspectorMode ? Ur.getProps({ ...d, ...P }) : null, | ||
[v == null ? void 0 : v.enableInspectorMode, d] | ||
); | ||
} | ||
export { | ||
Pr as ContentfulLivePreviewProvider, | ||
Or as useContentfulInspectorMode, | ||
Sr as useContentfulLiveUpdates | ||
qt as ContentfulLivePreviewProvider, | ||
Kt as useContentfulInspectorMode, | ||
Ht as useContentfulLiveUpdates, | ||
zt as useDeepCompareEffectNoCheck, | ||
Yt as useDeepCompareMemoize | ||
}; | ||
//# sourceMappingURL=react.js.map |
@@ -12,2 +12,2 @@ import type { AssetProps, EntryProps } from 'contentful-management'; | ||
*/ | ||
export declare function updateEntity(contentType: ContentType, dataFromPreviewApp: EntryProps, updateFromEntryEditor: EntryProps | AssetProps, locale: string, entityReferenceMap: EntityReferenceMap, depth?: number): Promise<EntryProps>; | ||
export declare function updateEntity(contentType: ContentType, dataFromPreviewApp: EntryProps, updateFromEntryEditor: EntryProps | AssetProps, locale: string, entityReferenceMap: EntityReferenceMap, depth: number, visitedReferences: Set<string>): Promise<EntryProps>; |
{ | ||
"name": "@contentful/live-preview", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"author": "Contentful GmbH", | ||
@@ -54,6 +54,7 @@ "license": "MIT", | ||
"@contentful/visual-sdk": "^1.0.0-alpha.1", | ||
"use-deep-compare-effect": "^1.8.1" | ||
"lodash.isequal": "^4.5.0" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/react": "14.0.0", | ||
"@types/lodash.isequal": "^4.5.6", | ||
"@types/node": "^20.1.0", | ||
@@ -79,3 +80,3 @@ "@types/react": "^18.0.27", | ||
}, | ||
"gitHead": "d03518468b009fa07635ff16064e15b7d6234cb7" | ||
"gitHead": "5c967749b19ba3351d485a6e3a98a299b783ae59" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
700146
3278
17
3
+ Addedlodash.isequal@^4.5.0
+ Addedlodash.isequal@4.5.0(transitive)
- Removeduse-deep-compare-effect@^1.8.1
- Removed@babel/runtime@7.26.0(transitive)
- Removeddequal@2.0.3(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removeduse-deep-compare-effect@1.8.1(transitive)