| 30968 | return isObject(s) ? immutableToJS(s) : {} |
| 30969 | } |
| 30970 | function fromJSOrdered(s) { |
| 30971 | if (isImmutable(s)) return s |
| 30972 | if (s instanceof lt.File) return s |
| 30973 | if (!isObject(s)) return s |
| 30974 | if (Array.isArray(s)) return We().Seq(s).map(fromJSOrdered).toList() |
| 30975 | if (_t()(s.entries)) { |
| 30976 | const o = (function createObjWithHashedKeys(s) { |
| 30977 | if (!_t()(s.entries)) return s |
| 30978 | const o = {}, |
| 30979 | i = '_**[]', |
| 30980 | a = {} |
| 30981 | for (let u of s.entries()) |
| 30982 | if (o[u[0]] || (a[u[0]] && a[u[0]].containsMultiple)) { |
| 30983 | if (!a[u[0]]) { |
| 30984 | ;((a[u[0]] = { containsMultiple: !0, length: 1 }), |
| 30985 | (o[`${u[0]}${i}${a[u[0]].length}`] = o[u[0]]), |
| 30986 | delete o[u[0]]) |
| 30987 | } |
| 30988 | ;((a[u[0]].length += 1), (o[`${u[0]}${i}${a[u[0]].length}`] = u[1])) |
| 30989 | } else o[u[0]] = u[1] |
| 30990 | return o |
| 30991 | })(s) |
| 30992 | return We().OrderedMap(o).map(fromJSOrdered) |
| 30993 | } |
| 30994 | return We().OrderedMap(s).map(fromJSOrdered) |
| 30995 | } |
| 30996 | function normalizeArray(s) { |
| 30997 | return Array.isArray(s) ? s : [s] |
| 30998 | } |