{"version":3,"sources":["jsdelivr-header.js","/npm/open-graph-scraper-lite@2.1.0/dist/cjs/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,IAAI,gBAAmB,MAAQ,KAAK,iBAAoB,SAAU,GAC9D,OAAQ,GAAO,EAAI,WAAc,EAAM,CAAE,QAAW,EACxD,EACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,QAAU,IAElB,MAAM,mBAAqB,gBAAgB,QAAQ,2BAWnD,eAAe,IAAI,GACf,IAAI,EACJ,IACI,QAAgB,EAAI,mBAAmB,SAAS,EACpD,CACA,MAAO,GACH,MAAM,EAAY,EAWlB,KAVoB,CAChB,OAAO,EACP,OAAQ,CACJ,SAAS,EACT,MAAO,EAAU,QACjB,aAAc,GAElB,UAAM,EAId,CAMA,MALsB,CAClB,OAAO,EACP,OAAQ,EAAQ,SAChB,KAAM,EAAQ,KAGtB,CACA,OAAO,QAAU","file":"/npm/open-graph-scraper-lite@2.1.0/dist/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/open-graph-scraper-lite@2.1.0/dist/cjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = run;\n/* eslint-disable max-len, import/no-import-module-exports */\nconst openGraphScraper_1 = __importDefault(require(\"./lib/openGraphScraper\"));\n/**\n * `open-graph-scraper` uses [fetch](https://developer.mozilla.org/en-US/docs/Web/API/fetch) for http requests\n * for scraping Open Graph and Twitter Card info off a website.\n *\n * @param {object} options - The options used by Open Graph Scraper\n * @param {boolean} [options.onlyGetOpenGraphInfo] - Only fetch open graph info and don't fall back on anything else.\n * @param {object} [options.customMetaTags] - Here you can define custom meta tags you want to scrape.\n * @param {string} options.html - You can pass in an HTML string to run ogs on it. (use without options.url)\n * @returns {Promise} Promise Object with the Open Graph results\n */\nasync function run(options) {\n    let results;\n    try {\n        results = await (0, openGraphScraper_1.default)(options);\n    }\n    catch (error) {\n        const exception = error;\n        const returnError = {\n            error: true,\n            result: {\n                success: false,\n                error: exception.message,\n                errorDetails: exception,\n            },\n            html: undefined,\n        };\n        // eslint-disable-next-line @typescript-eslint/no-throw-literal\n        throw returnError;\n    }\n    const returnSuccess = {\n        error: false,\n        result: results.ogObject,\n        html: results.html,\n    };\n    return returnSuccess;\n}\nmodule.exports = run;\n"]}