Skip to content

Commit

Permalink
fix: Unvalidated dynamic method call
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Nov 15, 2024
1 parent 5f55ce7 commit 77a90d0
Showing 1 changed file with 59 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5020,8 +5020,65 @@ ih = function(e, t, n) {
break e;
}
}
else {for (o = t.child, o !== null && (o.return = t); o !== null;) { var l = o.dependencies; if (l !== null) { a = o.child; for (var u = l.firstContext; u !== null;) { if (u.context === r) { if (o.tag === 1) { u = Kt(-1, n & -n), u.tag = 2; var s = o.updateQueue; if (s !== null) { s = s.shared; var c = s.pending; c === null ? u.next = u : (u.next = c.next, c.next = u), s.pending = u; } } o.lanes |= n, u = o.alternate, u !== null && (u.lanes |= n), au(o.return, n, t), l.lanes |= n; break; } u = u.next; } } else if (o.tag === 10) {a = o.type === t.type ? null : o.child;} else if (o.tag === 18) { if (a = o.return, a === null) throw Error(_(341)); a.lanes |= n, l = a.alternate, l !== null && (l.lanes |= n), au(a, n, t), a = o.sibling; } else {a = o.child;} if (a !== null) a.return = o; else for (a = o; a !== null;) { if (a === t) { a = null; break; } if (o = a.sibling, o !== null) { o.return = a.return, a = o; break; } a = a.return; } o = a; }}} Je(e, t, i.children, n), t = t.child; } return t; case 9: return i = t.type, r = t.pendingProps.children, cr(t, n), i = Pt(i), r = r(i), t.flags |= 1, Je(e, t, r, n), t.child; case 14: return r = t.type, i = At(r, t.pendingProps), i = At(r.type, i), Gc(e, t, r, i, n);
case 15: return jp(e, t, t.type, t.pendingProps, n); case 17: return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : At(r, i), e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2), t.tag = 1, ut(r) ? (e = !0, Io(t)) : e = !1, cr(t, n), pp(t, r, i), uu(t, r, i, n), hu(null, t, r, !0, e, n); case 19: return Qp(e, t, n); case 22: return Hp(e, t, n); }throw Error(_(156, t.tag)); }; function oh(e, t) { return Ld(e, t); } function K1(e, t, n, r) { this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; } function Ct(e, t, n, r) { return new K1(e, t, n, r); } function As(e) { return e = e.prototype, !(!e || !e.isReactComponent); } function X1(e) { if (typeof e == 'function') return As(e) ? 1 : 0; if (e != null) { if (e = e.$$typeof, e === Yu) return 11; if (e === Ku) return 14; } return 2; } function Cn(e, t) { var n = e.alternate; return n === null ? (n = Ct(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 14680064, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : { lanes: t.lanes, firstContext: t.firstContext }, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n; } function mo(e, t, n, r, i, o) { var a = 2; if (r = e, typeof e == 'function') As(e) && (a = 1); else if (typeof e == 'string') a = 5; else e: switch (e) { case qn: return Rn(n.children, i, o, t); case qu: a = 8, i |= 8; break; case Rl: return e = Ct(12, n, t, i | 2), e.elementType = Rl, e.lanes = o, e; case Ll: return e = Ct(13, n, t, i), e.elementType = Ll, e.lanes = o, e; case Dl: return e = Ct(19, n, t, i), e.elementType = Dl, e.lanes = o, e; case xd: return Go(n, i, o, t); default: if (typeof e == 'object' && e !== null) switch (e.$$typeof) { case gd: a = 10; break e; case yd: a = 9; break e; case Yu: a = 11; break e; case Ku: a = 14; break e; case ln: a = 16, r = null; break e; }throw Error(_(130, e == null ? e : typeof e, '')); }return t = Ct(a, n, t, i), t.elementType = e, t.type = r, t.lanes = o, t; } function Rn(e, t, n, r) { return e = Ct(7, e, r, t), e.lanes = n, e; } function Go(e, t, n, r) { return e = Ct(22, e, r, t), e.elementType = xd, e.lanes = n, e.stateNode = {}, e; } function ml(e, t, n) { return e = Ct(6, e, null, t), e.lanes = n, e; } function vl(e, t, n) { return t = Ct(4, e.children !== null ? e.children : [], e.key, t), t.lanes = n, t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }, t; } function Z1(e, t, n, r, i) { this.tag = t, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = Xa(0), this.expirationTimes = Xa(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Xa(0), this.identifierPrefix = r, this.onRecoverableError = i, this.mutableSourceEagerHydrationData = null; } function Fs(e, t, n, r, i, o, a, l, u) { return e = new Z1(e, t, n, l, u), t === 1 ? (t = 1, o === !0 && (t |= 8)) : t = 0, o = Ct(3, null, null, t), e.current = o, o.stateNode = e, o.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null }, cs(o), e; } function J1(e, t, n) { var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: Qn, key: r == null ? null : '' + r, children: e, containerInfo: t, implementation: n }; } function ah(e) { if (!e) return kn; e = e._reactInternals; e: { if (jn(e) !== e || e.tag !== 1) throw Error(_(170)); var t = e; do { switch (t.tag) { case 3: t = t.stateNode.context; break e; case 1: if (ut(t.type)) { t = t.stateNode.__reactInternalMemoizedMergedChildContext; break e; } }t = t.return; } while (t !== null); throw Error(_(171)); } if (e.tag === 1) { var n = e.type; if (ut(n)) return sp(e, n, t); } return t; } function lh(e, t, n, r, i, o, a, l, u) { return e = Fs(n, r, !0, e, i, o, a, l, u), e.context = ah(null), n = e.current, r = et(), i = yn(n), o = Kt(r, i), o.callback = t != null ? t : null, vn(n, o), e.current.lanes = i, bi(e, i, r), st(e, r), e; } function ya(e, t, n, r) { var i = t.current, o = et(), a = yn(i); return n = ah(n), t.context === null ? t.context = n : t.pendingContext = n, t = Kt(o, a), t.payload = { element: e }, r = r === void 0 ? null : r, r !== null && (t.callback = r), vn(i, t), e = Ot(i, a, o), e !== null && so(e, i, a), a; } function Qo(e) { if (e = e.current, !e.child) return null; switch (e.child.tag) { case 5: return e.child.stateNode; default: return e.child.stateNode; } }
else {
for (o = t.child, o !== null && (o.return = t); o !== null;) {
let l = o.dependencies;
if (l !== null) {
a = o.child;
for (let u = l.firstContext; u !== null;) {
if (u.context === r) {
if (o.tag === 1) {
u = Kt(-1, n & -n), u.tag = 2;
let s = o.updateQueue;
if (s !== null) {
s = s.shared;
const c = s.pending; c === null ? u.next = u : (u.next = c.next, c.next = u), s.pending = u;
}
} o.lanes |= n, u = o.alternate, u !== null && (u.lanes |= n), au(o.return, n, t), l.lanes |= n;
break;
} u = u.next;
}
}
else if (o.tag === 10) {
a = o.type === t.type ? null : o.child;
}
else if (o.tag === 18) {
if (a = o.return, a === null) throw Error(_(341));
a.lanes |= n, l = a.alternate, l !== null && (l.lanes |= n), au(a, n, t), a = o.sibling;
}
else {a = o.child;} if (a !== null) {
a.return = o;
}
else {
for (a = o; a !== null;) {
if (a === t) {
a = null;
break;
}
if (o = a.sibling, o !== null) {
o.return = a.return, a = o;
break;
} a = a.return;
}
} o = a;
}
}
} Je(e, t, i.children, n), t = t.child;
} return t;
case 9: return i = t.type, r = t.pendingProps.children, cr(t, n), i = Pt(i), r = r(i), t.flags |= 1, Je(e, t, r, n), t.child;
case 14: return r = t.type, i = At(r, t.pendingProps), i = At(r.type, i), Gc(e, t, r, i, n);
case 15: return jp(e, t, t.type, t.pendingProps, n);
case 17: return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : At(r, i), e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2), t.tag = 1, ut(r) ? (e = !0, Io(t)) : e = !1, cr(t, n), pp(t, r, i), uu(t, r, i, n), hu(null, t, r, !0, e, n);
case 19: return Qp(e, t, n);
case 22: return Hp(e, t, n);
} throw Error(_(156, t.tag));
};

function oh(e, t) {
return Ld(e, t);
}

function K1(e, t, n, r) { this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; } function Ct(e, t, n, r) { return new K1(e, t, n, r); } function As(e) { return e = e.prototype, !(!e || !e.isReactComponent); } function X1(e) { if (typeof e == 'function') return As(e) ? 1 : 0; if (e != null) { if (e = e.$$typeof, e === Yu) return 11; if (e === Ku) return 14; } return 2; } function Cn(e, t) { var n = e.alternate; return n === null ? (n = Ct(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 14680064, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : { lanes: t.lanes, firstContext: t.firstContext }, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n; } function mo(e, t, n, r, i, o) { var a = 2; if (r = e, typeof e == 'function') As(e) && (a = 1); else if (typeof e == 'string') a = 5; else e: switch (e) { case qn: return Rn(n.children, i, o, t); case qu: a = 8, i |= 8; break; case Rl: return e = Ct(12, n, t, i | 2), e.elementType = Rl, e.lanes = o, e; case Ll: return e = Ct(13, n, t, i), e.elementType = Ll, e.lanes = o, e; case Dl: return e = Ct(19, n, t, i), e.elementType = Dl, e.lanes = o, e; case xd: return Go(n, i, o, t); default: if (typeof e == 'object' && e !== null) switch (e.$$typeof) { case gd: a = 10; break e; case yd: a = 9; break e; case Yu: a = 11; break e; case Ku: a = 14; break e; case ln: a = 16, r = null; break e; }throw Error(_(130, e == null ? e : typeof e, '')); }return t = Ct(a, n, t, i), t.elementType = e, t.type = r, t.lanes = o, t; } function Rn(e, t, n, r) { return e = Ct(7, e, r, t), e.lanes = n, e; } function Go(e, t, n, r) { return e = Ct(22, e, r, t), e.elementType = xd, e.lanes = n, e.stateNode = {}, e; } function ml(e, t, n) { return e = Ct(6, e, null, t), e.lanes = n, e; } function vl(e, t, n) { return t = Ct(4, e.children !== null ? e.children : [], e.key, t), t.lanes = n, t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }, t; } function Z1(e, t, n, r, i) { this.tag = t, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = Xa(0), this.expirationTimes = Xa(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Xa(0), this.identifierPrefix = r, this.onRecoverableError = i, this.mutableSourceEagerHydrationData = null; } function Fs(e, t, n, r, i, o, a, l, u) { return e = new Z1(e, t, n, l, u), t === 1 ? (t = 1, o === !0 && (t |= 8)) : t = 0, o = Ct(3, null, null, t), e.current = o, o.stateNode = e, o.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null }, cs(o), e; } function J1(e, t, n) { var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: Qn, key: r == null ? null : '' + r, children: e, containerInfo: t, implementation: n }; } function ah(e) { if (!e) return kn; e = e._reactInternals; e: { if (jn(e) !== e || e.tag !== 1) throw Error(_(170)); var t = e; do { switch (t.tag) { case 3: t = t.stateNode.context; break e; case 1: if (ut(t.type)) { t = t.stateNode.__reactInternalMemoizedMergedChildContext; break e; } }t = t.return; } while (t !== null); throw Error(_(171)); } if (e.tag === 1) { var n = e.type; if (ut(n)) return sp(e, n, t); } return t; } function lh(e, t, n, r, i, o, a, l, u) { return e = Fs(n, r, !0, e, i, o, a, l, u), e.context = ah(null), n = e.current, r = et(), i = yn(n), o = Kt(r, i), o.callback = t != null ? t : null, vn(n, o), e.current.lanes = i, bi(e, i, r), st(e, r), e; } function ya(e, t, n, r) { var i = t.current, o = et(), a = yn(i); return n = ah(n), t.context === null ? t.context = n : t.pendingContext = n, t = Kt(o, a), t.payload = { element: e }, r = r === void 0 ? null : r, r !== null && (t.callback = r), vn(i, t), e = Ot(i, a, o), e !== null && so(e, i, a), a; } function Qo(e) { if (e = e.current, !e.child) return null; switch (e.child.tag) { case 5: return e.child.stateNode; default: return e.child.stateNode; } }
function sf(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
const n = e.retryLane;
Expand Down

0 comments on commit 77a90d0

Please sign in to comment.