{"version":3,"sources":["jsdelivr-header.js","/npm/correct-puppeteer-version-2@1.20.0-post/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACUA,IAAI,YAAa,EACjB,IACE,IAAI,SAAS,iCACf,CAAE,MAAO,GACP,YAAa,CACf,CAEA,GAAI,WAAY,CACd,MAAM,OAAC,GAAU,QAAQ,gBACnB,EAAM,QAAQ,aACpB,IAAK,MAAM,KAAa,EAEQ,mBAAnB,EAAI,IACb,EAAO,uBAAuB,EAAI,GAExC,CAGA,MAAM,UAAY,WAAa,QAAQ,mBAAqB,QAAQ,yBAC9D,YAAc,QAAQ,kBACtB,kBAAoB,YAAY,UAAU,kBAC1C,gBAAuC,mBAArB,YAAY,KAEpC,OAAO,QAAU,IAAI,UAAU,UAAW,kBAAmB","file":"/npm/correct-puppeteer-version-2@1.20.0-post/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/correct-puppeteer-version-2@1.20.0-post/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","/**\n * Copyright 2017 Google Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nlet asyncawait = true;\ntry {\n  new Function('async function test(){await 1}');\n} catch (error) {\n  asyncawait = false;\n}\n\nif (asyncawait) {\n  const {helper} = require('./lib/helper');\n  const api = require('./lib/api');\n  for (const className in api) {\n    // Puppeteer-web excludes certain classes from bundle, e.g. BrowserFetcher.\n    if (typeof api[className] === 'function')\n      helper.installAsyncStackHooks(api[className]);\n  }\n}\n\n// If node does not support async await, use the compiled version.\nconst Puppeteer = asyncawait ? require('./lib/Puppeteer') : require('./node6/lib/Puppeteer');\nconst packageJson = require('./package.json');\nconst preferredRevision = packageJson.puppeteer.chromium_revision;\nconst isPuppeteerCore = packageJson.name === 'puppeteer-core';\n\nmodule.exports = new Puppeteer(__dirname, preferredRevision, isPuppeteerCore);\n"]}