{"version":3,"sources":["jsdelivr-header.js","/npm/js-trim-multiline-string@1.0.8/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,UAAa,GACjB,EAAM,QAAO,CAAC,EAAK,KACjB,MAAO,EAAQ,EAAI,OAAO,SAC1B,OAAS,EAAQ,IAAc,GAAP,GAAa,EAAQ,GAAU,EAAQ,IAC9D,GAGL,SAAS,MAAQ,EAAK,EAAY,GAKhC,GAJK,MAAM,QAAQ,KAAS,EAAM,EAAI,IAClB,iBAAR,GAAoB,OAAS,EAAc,EAAK,EAAM,MAC3D,IAAQ,EAAM,MAEhB,EAAM,CAET,MAAM,EAAQ,EAAI,MAAO,MACnB,EAAe,UAAU,GAAS,EAExC,OAAO,EAAM,KAAK,CAAC,EAAG,KAAiC,GAAtB,EAAE,OAAO,SAAkB,GAAM,EAAQ,EAAK,EAAE,UAAU,GAAgB,IAAI,KAAK,KACtH,CACF,CAEA,OAAO,UAAU,MAAQ,MACzB,OAAO,QAAU,OACjB,OAAO,QAAU,CAAE,MAAO","file":"/npm/js-trim-multiline-string@1.0.8/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/js-trim-multiline-string@1.0.8/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","const numSpaces = (lines) =>\n  lines.reduce((acc, cur) => {\n    const  index = cur.search(/[^\\s]/)\n    return ( index > 0 && ( acc == 0  || index < acc ) ) ? index : acc\n  }, 0)\n\n\nfunction mTrim ( str, startingPad=0 ) { // parameter is for the exporting mtrim function.\n  if ( Array.isArray(str) ) { str = str[0] } // for tagged template implementation.\n  if ( typeof str === \"number\" && this ) { startingPad = str; str = this; }\n  if ( ! str ) { str = this; } // for prototype implementation.\n\n  if ( str ) {\n\n    const lines = str.split( '\\n' )\n    const delSpacesNum = numSpaces(lines) - startingPad\n\n    return lines.map( (x, index) => (x.search(/[^\\s]/) == -1) ? '' : (index > 0) ? x.substring(delSpacesNum) : x ).join('\\n')\n  }\n}\n\nString.prototype.mtrim = mTrim;\nmodule.exports = String;\nmodule.exports = { mtrim: mTrim };\n"]}