(e)
| 9126 | } |
| 9127 | } |
| 9128 | function yd(e) { |
| 9129 | e.component.projection = qm(e) |
| 9130 | ? (function (e) { |
| 9131 | if (e.hasProjection) { |
| 9132 | const t = bn(e.specifiedProjection), |
| 9133 | n = !(t && (null != t.scale || null != t.translate)), |
| 9134 | i = n |
| 9135 | ? [e.getSizeSignalRef("width"), e.getSizeSignalRef("height")] |
| 9136 | : void 0, |
| 9137 | r = n |
| 9138 | ? (function (e) { |
| 9139 | const t = [], |
| 9140 | { encoding: n } = e; |
| 9141 | for (const i of [ |
| 9142 | [de, fe], |
| 9143 | [pe, me], |
| 9144 | ]) |
| 9145 | (ka(n[i[0]]) || ka(n[i[1]])) && |
| 9146 | t.push({ signal: e.getName(`geojson_${t.length}`) }); |
| 9147 | e.channelHasField(be) && |
| 9148 | e.typedFieldDef(be).type === fr && |
| 9149 | t.push({ signal: e.getName(`geojson_${t.length}`) }); |
| 9150 | 0 === t.length && t.push(e.requestDataName(bc.Main)); |
| 9151 | return t; |
| 9152 | })(e) |
| 9153 | : void 0, |
| 9154 | o = new hd( |
| 9155 | e.projectionName(!0), |
| 9156 | { ...bn(e.config.projection), ...t }, |
| 9157 | i, |
| 9158 | r, |
| 9159 | ); |
| 9160 | return (o.get("type") || o.set("type", "equalEarth", !1), o); |
| 9161 | } |
| 9162 | return; |
| 9163 | })(e) |
| 9164 | : (function (e) { |
| 9165 | if (0 === e.children.length) return; |
| 9166 | let n; |
| 9167 | for (const t of e.children) yd(t); |
| 9168 | const i = h(e.children, (e) => { |
| 9169 | const i = e.component.projection; |
| 9170 | if (i) { |
| 9171 | if (n) { |
| 9172 | const e = (function (e, n) { |
| 9173 | const i = h( |
| 9174 | gd, |
| 9175 | (i) => |
| 9176 | (!t.hasOwnProperty(e.explicit, i) && |
| 9177 | !t.hasOwnProperty(n.explicit, i)) || |
| 9178 | !!( |
| 9179 | t.hasOwnProperty(e.explicit, i) && |
| 9180 | t.hasOwnProperty(n.explicit, i) && |
| 9181 | X(e.get(i), n.get(i)) |
| 9182 | ), |
| 9183 | ); |
| 9184 | if (X(e.size, n.size)) { |
| 9185 | if (i) return e; |
no test coverage detected