(s, { translator: o = new Mp(), stats: i = !1, trace: a = !1 } = {})
| 44145 | } |
| 44146 | }, |
| 44147 | Lp = new grammar(), |
| 44148 | es_parse = (s, { translator: o = new Mp(), stats: i = !1, trace: a = !1 } = {}) => { |
| 44149 | if ('string' != typeof s) throw new TypeError('JSON Pointer must be a string') |
| 44150 | try { |
| 44151 | const u = new kp() |
| 44152 | ;(o && (u.ast = o), i && (u.stats = new Cp()), a && (u.trace = new Dp())) |
| 44153 | const _ = u.parse(Lp, 'json-pointer', s) |
| 44154 | return { |
| 44155 | result: _, |
| 44156 | tree: _.success && o ? u.ast.getTree() : void 0, |
| 44157 | stats: u.stats, |
| 44158 | trace: u.trace, |
| 44159 | } |
| 44160 | } catch (o) { |
| 44161 | throw new Tp('Unexpected error during JSON Pointer parsing', { |
| 44162 | cause: o, |
| 44163 | jsonPointer: s, |
| 44164 | }) |
| 44165 | } |
| 44166 | } |
| 44167 | ;(new grammar(), new kp(), new grammar(), new kp()) |
| 44168 | const Fp = new grammar(), |
no test coverage detected