{"version":3,"sources":["jsdelivr-header.js","/npm/postcss-progress@1.1.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,MAAM,KAAO,QAAQ,QACf,QAAU,QAAQ,WAClB,GAAK,QAAQ,aACb,OAAS,IAAM,KAAK,MAEpB,YAAe,GAAM,KAAK,SAAS,QAAQ,MAAO,GAMlD,MAAQ,QAAQ,OAAO,0BAA0B,SAAS,GAC9D,OAAO,SAAS,EAAM,GACpB,MAAM,EAAe,YAAY,EAAQ,KAAK,MACxC,EAAa,YAAY,EAAQ,KAAK,IAE5C,QAAQ,MACR,QAAQ,IAAI,GAAG,KAAK,GAAG,GAAG,KAAK,QAAmB,GAAG,KAAK,UAC1D,EAAQ,UAAY,QACtB,CACF,IAMM,KAAO,QAAQ,OAAO,yBAAyB,SAAS,GAG5D,OAFA,EAAO,GAAQ,CAAC,EAET,SAAS,EAAM,GACpB,MAAM,EAAa,YAAY,EAAQ,KAAK,IACtC,EAAY,SAAW,EAAQ,UAErC,QAAQ,IAAI,GAAG,MAAM,WAAW,GAAG,KAAK,SAAkB,GAAG,KAAK,GAAG,WACrE,QAAQ,KACV,CACF,IAEA,OAAO,QAAU,CACf,YACA","file":"/npm/postcss-progress@1.1.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/postcss-progress@1.1.1/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","/* eslint-disable no-console */\nconst path = require('path');\nconst postcss = require('postcss');\nconst tc = require('colorette');\nconst getNow = () => Date.now();\n\nconst getRelative = (p) => path.relative(process.cwd(), p);\n\n/**\n * A function to set the startTime of postcss so that\n * we can print the time taken in the output.\n */\nconst start = postcss.plugin('postcss-progress-start', function(opts) {\n  return function(root, results) {\n    const relativeFrom = getRelative(results.opts.from);\n    const relativeTo = getRelative(results.opts.to);\n\n    console.log();\n    console.log(tc.cyan(`${tc.bold(relativeFrom)} → ${tc.bold(relativeTo)}...`));\n    results.startTime = getNow();\n  };\n});\n\n/**\n * by default there is no way to print that file was written\n * this does that.\n */\nconst stop = postcss.plugin('postcss-progress-stop', function(opts) {\n  opts = opts || {};\n\n  return function(root, results) {\n    const relativeTo = getRelative(results.opts.to);\n    const timeTaken = getNow() - results.startTime;\n\n    console.log(tc.green(`created ${tc.bold(relativeTo)} in ${tc.bold(`${timeTaken}ms`)}`));\n    console.log();\n  };\n});\n\nmodule.exports = {\n  start,\n  stop\n};\n"]}