| 29317 | (t.set = (t) => (o.checked = !!t || null))); |
| 29318 | } |
| 29319 | function gz(t, e, n, r) { |
| 29320 | const i = sz("select", { name: n.signal }), |
| 29321 | o = n.labels || []; |
| 29322 | (n.options.forEach((t, e) => { |
| 29323 | const n = { value: t }; |
| 29324 | (vz(t, r) && (n.selected = !0), |
| 29325 | i.appendChild(sz("option", n, (o[e] || t) + ""))); |
| 29326 | }), |
| 29327 | e.appendChild(i), |
| 29328 | i.addEventListener("change", () => { |
| 29329 | t.update(n.options[i.selectedIndex]); |
| 29330 | }), |
| 29331 | (t.elements = [i]), |
| 29332 | (t.set = (t) => { |
| 29333 | for (let e = 0, r = n.options.length; e < r; ++e) |
| 29334 | if (vz(n.options[e], t)) return void (i.selectedIndex = e); |
| 29335 | })); |
| 29336 | } |
| 29337 | function mz(t, e, n, r) { |
| 29338 | const i = sz("span", { class: cz }), |
| 29339 | o = n.labels || []; |