53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
// Metro module 766 (f767).
|
|
import * as _castPath from "./castPath";
|
|
import * as _toKey from "./toKey";
|
|
import * as _isLength from "./isLength";
|
|
import * as _isIndex from "./isIndex";
|
|
import * as _Module599 from "./Module599";
|
|
import * as _Module618 from "./Module618";
|
|
module.exports = function hasPath(a0, a1, a2) {
|
|
const r15 = _castPath(a1, a0);
|
|
const length = r15.length;
|
|
const r6 = 0 < length;
|
|
let r0 = 0;
|
|
let r25 = a0;
|
|
let r13 = void 0;
|
|
let r9 = false;
|
|
let r2 = 0;
|
|
let r26 = a0;
|
|
if (r6) {
|
|
do {
|
|
const r22 = _toKey(r15[r0]);
|
|
let r28 = r25 != null;
|
|
const r1 = r0;
|
|
const r29 = r25;
|
|
if (r28) {
|
|
r28 = a2(r29, r22);
|
|
}
|
|
r13 = r22;
|
|
r2 = r1;
|
|
r26 = r29;
|
|
r9 = r28;
|
|
if (!r9) {
|
|
break;
|
|
}
|
|
r25 = r29[r22];
|
|
r0 = r1 + 1;
|
|
r13 = r22;
|
|
r9 = r28;
|
|
r26 = r25;
|
|
r2 = r0;
|
|
} while (r2 < length);
|
|
}
|
|
let r34 = r9;
|
|
if (!r9) {
|
|
const r35 = r2 + 1;
|
|
r34 = r9;
|
|
if (r35 == length) {
|
|
const r37 = r26 == null ? 0 : r26.length;
|
|
r34 = !!r37 && _isLength(r37) && _isIndex(r13, r37) && (_Module599(r26) || _Module618(r26));
|
|
}
|
|
}
|
|
return r34;
|
|
};
|