// MakerWorld file downloader. MakerWorld is behind Cloudflare and its downloads // are auth-gated, so we go through FlareSolverr (solves Cloudflare) carrying the // user's `token` cookie (authenticates). The download API returns a short-lived // signed CDN URL, which we then fetch directly. const flaresolverr = require('../flaresolverr'); // A model page embeds its printable "instances" in __NEXT_DATA__. Each instance // id is what the download API takes. function parseInstances(html) { const m = html.match(/