@@ -42355,7 +42355,7 @@ const constants$1 = Object.freeze(Object.assign(Object.create(null), {
4235542355}, realZlibConstants));
4235642356//#endregion
4235742357//#region ../node_modules/minizlib/dist/esm/index.js
42358- var esm_exports$1 = /* @__PURE__ */ __exportAll({
42358+ var esm_exports$2 = /* @__PURE__ */ __exportAll({
4235942359 BrotliCompress: () => BrotliCompress,
4236042360 BrotliDecompress: () => BrotliDecompress,
4236142361 Deflate: () => Deflate,
@@ -120424,7 +120424,7 @@ function isValidFeed(value) {
120424120424}
120425120425//#endregion
120426120426//#region ../node_modules/domutils/lib/esm/index.js
120427- var esm_exports = /* @__PURE__ */ __exportAll({
120427+ var esm_exports$1 = /* @__PURE__ */ __exportAll({
120428120428 DocumentPosition: () => DocumentPosition,
120429120429 append: () => append$1,
120430120430 appendChild: () => appendChild,
@@ -124223,13 +124223,13 @@ function reduceRules(a, b) {
124223124223//#region ../node_modules/css-select/lib/esm/index.js
124224124224const defaultEquals = (a, b) => a === b;
124225124225const defaultOptions = {
124226- adapter: esm_exports,
124226+ adapter: esm_exports$1 ,
124227124227 equals: defaultEquals
124228124228};
124229124229function convertOptionFormats(options) {
124230124230 var _a, _b, _c, _d;
124231124231 const opts = options !== null && options !== void 0 ? options : defaultOptions;
124232- (_a = opts.adapter) !== null && _a !== void 0 || (opts.adapter = esm_exports);
124232+ (_a = opts.adapter) !== null && _a !== void 0 || (opts.adapter = esm_exports$1 );
124233124233 (_b = opts.equals) !== null && _b !== void 0 || (opts.equals = (_d = (_c = opts.adapter) === null || _c === void 0 ? void 0 : _c.equals) !== null && _d !== void 0 ? _d : defaultEquals);
124234124234 return opts;
124235124235}
@@ -124459,7 +124459,7 @@ function findFilterElements(root, selector, options, queryForSelector, totalLimi
124459124459 if (remainingHasTraversal) {
124460124460 if ((0, import_commonjs.isTraversal)(remainingSelector[0])) {
124461124461 const { type } = remainingSelector[0];
124462- if (type === import_commonjs.SelectorType.Sibling || type === import_commonjs.SelectorType.Adjacent) result = prepareContext(result, esm_exports, true);
124462+ if (type === import_commonjs.SelectorType.Sibling || type === import_commonjs.SelectorType.Adjacent) result = prepareContext(result, esm_exports$1 , true);
124463124463 remainingSelector.unshift(UNIVERSAL_SELECTOR);
124464124464 }
124465124465 options = {
@@ -124477,7 +124477,7 @@ function findElements(root, sel, options, limit) {
124477124477 return find$2(root, _compileToken(sel, options, root), limit);
124478124478}
124479124479function find$2(root, query, limit = Infinity) {
124480- return find$3((node) => isTag(node) && query(node), prepareContext(root, esm_exports, query.shouldTestNextSiblings), true, limit);
124480+ return find$3((node) => isTag(node) && query(node), prepareContext(root, esm_exports$1 , query.shouldTestNextSiblings), true, limit);
124481124481}
124482124482function filterElements(elements, sel, options) {
124483124483 const els = (Array.isArray(elements) ? elements : [elements]).filter(isTag);
@@ -164200,6 +164200,15 @@ var require_mime_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
164200164200}));
164201164201//#endregion
164202164202//#region ../node_modules/cheerio/dist/esm/index.js
164203+ var esm_exports = /* @__PURE__ */ __exportAll({
164204+ contains: () => contains$1,
164205+ decodeStream: () => decodeStream,
164206+ fromURL: () => fromURL,
164207+ load: () => load,
164208+ loadBuffer: () => loadBuffer,
164209+ merge: () => merge,
164210+ stringStream: () => stringStream
164211+ });
164203164212var import_undici = /* @__PURE__ */ __toESM(require_undici(), 1);
164204164213var import_mime_type = /* @__PURE__ */ __toESM(require_mime_type(), 1);
164205164214/**
@@ -374901,6 +374910,13 @@ const ROOT_DIR = path.resolve(__dirname$4, "../");
374901374910const LIB_ROOT = path.join(ROOT_DIR, "spider/js");
374902374911const customRequire = createRequire$1(import.meta.url);
374903374912const rootRequire = (modulePath) => {
374913+ if (modulePath === "iconv-lite") return globalThis.iconv;
374914+ if (modulePath === "axios") return globalThis.axios;
374915+ if (modulePath === "cheerio") return globalThis.cheerio;
374916+ if (modulePath === "qs") return globalThis.qs;
374917+ if (modulePath === "crypto-js") return globalThis.CryptoJS;
374918+ if (modulePath === "fs" && globalThis.fs) return globalThis.fs;
374919+ if (modulePath === "path" && globalThis.path) return globalThis.path;
374904374920 if (modulePath.startsWith("./") || modulePath.startsWith("../")) return customRequire(path.resolve(LIB_ROOT, modulePath));
374905374921 return customRequire(modulePath);
374906374922};
@@ -382298,6 +382314,7 @@ const batchFetch4 = async (items, maxWorkers = 5, timeoutConfig = 5e3) => {
382298382314//#endregion
382299382315//#region ../libs_drpy/drpyInject.js
382300382316globalThis.iconv = import_lib$1.default;
382317+ globalThis.cheerio = esm_exports;
382301382318globalThis.batchFetch = batchFetch3;
382302382319globalThis.axios = axios$1;
382303382320globalThis.axiosX = pt;
@@ -392864,13 +392881,15 @@ async function getSandbox(env = {}) {
392864392881 createFTPClient,
392865392882 DataBase,
392866392883 database,
392867- require: __require ,
392884+ require: rootRequire ,
392868392885 WebSocket: wrapper_default,
392869392886 WebSocketServer: import_websocket_server.default,
392870392887 zlib,
392871392888 JSONbig: import_json_bigint.default,
392872392889 JsonBig,
392873- minizlib: esm_exports$1
392890+ minizlib: esm_exports$2,
392891+ iconv: globalThis.iconv,
392892+ cheerio: globalThis.cheerio
392874392893 };
392875392894 const sandbox = {
392876392895 console,
0 commit comments