1// Which source addresses import-media.mjs may download from. Only a GLOBAL UNICAST address2// passes: this is an allowlist, not a list of known-private ranges, because a deny list misses3// whatever it forgot (multicast, broadcast, benchmarking, documentation, newer IPv6 scopes). The4// ranges are the IANA IPv4/IPv6 Special-Purpose Address Registries' entries that are not globally5// reachable, plus multicast and reserved space; IPv6 must also lie in 2000::/3.6//7// The same rules live in wix-replatform's lib/document-url-guard.js. The two skills are published8// separately and cannot import each other, so tests/target-wix/public-address-parity-test.js runs9// one vector set against both to keep them identical.10import net from 'node:net';1112// Generate File Upload URL is non-resumable and Wix sends files over 10 MB to the resumable