{"version":3,"sources":["jsdelivr-header.js","/npm/yargs-parser@22.0.0/build/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACCA,IAAI,GAAI,GAAI,UAEH,WAAc,cACd,UAAW,YAAe,cAC1B,UAAW,WAAY,oBAAuB,2BAC9C,gBAAmB,2BACnB,iBAAoB,YACpB,kBAAqB,cAG9B,MAAM,eAAkB,SAAW,QAAQ,KAAO,QAAQ,IAAI,uBACxD,OAAO,QAAQ,IAAI,wBACnB,GACA,YAAgJ,QAAjI,GAAmF,QAA7E,GAAiB,OAAZ,cAAgC,IAAZ,aAAqB,EAAS,QAAQ,gBAA6B,IAAP,QAAgB,EAAS,GAAG,YAAyB,IAAP,GAAgB,GAAkF,QAA5E,GAAiB,OAAZ,cAAgC,IAAZ,aAAqB,EAAS,QAAQ,eAA4B,IAAP,QAAgB,EAAS,GAAG,MAAM,GAC1S,GAAI,YAAa,CAEb,GADc,OAAO,YAAY,MAAM,YAAY,IACvC,eACR,MAAM,MAAM,sDAAsD,mHAE1E,CAEA,MAAM,IAAM,QAAU,QAAQ,IAAM,CAAC,EAC/B,QAAU,cAAgB,0BAA0B,UAAO,EAC3D,OAAS,IAAI,YAAY,CAC3B,IAAK,QAAQ,IACb,IAAK,IACM,IAEX,cACA,oBACA,gBACA,QAAU,IACN,QAAuB,IAAZ,QACP,OAAO,QAAQ,GAEd,GAAI,EAAK,MAAM,WAEhB,OAAO,KAAK,MAAM,aAAa,EAAM,SAGrC,MAAM,MAAM,+CAChB,IAGF,YAAc,SAAgB,EAAM,GAEtC,OADe,OAAO,MAAM,EAAK,QAAS,GAC5B,IAClB,EACA,YAAY,SAAW,SAAU,EAAM,GACnC,OAAO,OAAO,MAAM,EAAK,QAAS,EACtC,EACA,YAAY,UAAY,UACxB,YAAY,WAAa,WACzB,YAAY,gBAAkB,+BACf,mBAEN","file":"/npm/yargs-parser@22.0.0/build/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/yargs-parser@22.0.0/build/lib/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 * @fileoverview Main entrypoint for libraries using yargs-parser in Node.js\n *\n * @license\n * Copyright (c) 2016, Contributors\n * SPDX-License-Identifier: ISC\n */\nvar _a, _b, _c;\n/* eslint-disable n/no-unpublished-import */\nimport { format } from 'util';\nimport { normalize, resolve } from 'path';\nimport { camelCase, decamelize, looksLikeNumber } from './string-utils.js';\nimport { YargsParser } from './yargs-parser.js';\nimport { readFileSync } from 'fs';\nimport { createRequire } from 'node:module';\n// See https://github.com/yargs/yargs-parser#supported-nodejs-versions for our\n// version support policy. The YARGS_MIN_NODE_VERSION is used for testing only.\nconst minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)\n    ? Number(process.env.YARGS_MIN_NODE_VERSION)\n    : 20;\nconst nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c = process === null || process === void 0 ? void 0 : process.version) === null || _c === void 0 ? void 0 : _c.slice(1);\nif (nodeVersion) {\n    const major = Number(nodeVersion.match(/^([^.]+)/)[1]);\n    if (major < minNodeVersion) {\n        throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);\n    }\n}\n// Creates a yargs-parser instance using Node.js standard libraries:\nconst env = process ? process.env : {};\nconst require = createRequire ? createRequire(import.meta.url) : undefined;\nconst parser = new YargsParser({\n    cwd: process.cwd,\n    env: () => {\n        return env;\n    },\n    format,\n    normalize,\n    resolve,\n    require: (path) => {\n        if (typeof require !== 'undefined') {\n            return require(path);\n        }\n        else if (path.match(/\\.json$/)) {\n            // Addresses: https://github.com/yargs/yargs/issues/2040\n            return JSON.parse(readFileSync(path, 'utf8'));\n        }\n        else {\n            throw Error('only .json config files are supported in ESM');\n        }\n    }\n});\nconst yargsParser = function Parser(args, opts) {\n    const result = parser.parse(args.slice(), opts);\n    return result.argv;\n};\nyargsParser.detailed = function (args, opts) {\n    return parser.parse(args.slice(), opts);\n};\nyargsParser.camelCase = camelCase;\nyargsParser.decamelize = decamelize;\nyargsParser.looksLikeNumber = looksLikeNumber;\nexport default yargsParser;\n// special syntax to allow unqualified default export from CommonJS\nexport { yargsParser as 'module.exports' };\n"]}