{"version":3,"sources":["jsdelivr-header.js","/npm/pascalcase@2.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,cAAe,YAEtB,MAAM,YAAc,mBAEd,SAAW,GACF,MAAT,EAAsB,GAEtB,MAAM,QAAQ,GACT,EAAM,KAAI,GAAK,EAAE,WAAW,SAAQ,QAAO,GAAK,EAAE,OAAS,IAAG,KAAK,KAGvD,mBAAV,EACF,EAAM,KAAO,EAAM,KAAO,GAGL,mBAAnB,EAAM,SACR,GAGF,EAAM,WAAW,cAGnB,MAAM,WAAa,CAAC,EAAO,EAAU,CAAC,KAC3C,MAAM,EAAQ,SAAS,GACjB,EAAQ,EAAQ,kBAAoB,YACpC,EAAS,EAAQ,UAAU,EAAQ,EAAM,QAAQ,EAAO,KAAO,EAAO,GAAW,GACvF,OAAO,EAAS,EAAO,GAAG,kBAAkB,EAAQ,QAAU,EAAO,MAAM,GAAK,EAAE,iBAGrE","file":"/npm/pascalcase@2.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/pascalcase@2.0.0/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","import camelcase from 'camelcase';\n\nconst PUNCTUATION = /[^\\p{L}\\p{N}]+/ug;\n\nconst toString = input => {\n  if (input == null) return '';\n\n  if (Array.isArray(input)) {\n    return input.map(s => s.toString().trim()).filter(s => s.length > 0).join(' ');\n  }\n\n  if (typeof input === 'function') {\n    return input.name ? input.name : '';\n  }\n\n  if (typeof input.toString !== 'function') {\n    return '';\n  }\n\n  return input.toString().trim();\n};\n\nexport const pascalcase = (value, options = {}) => {\n  const input = toString(value);\n  const regex = options.punctuationRegex ?? PUNCTUATION;\n  const output = input ? camelcase(regex ? input.replace(regex, ' ') : input, options) : '';\n  return output ? output[0].toLocaleUpperCase(options.locale) + output.slice(1) : '';\n};\n\nexport default pascalcase;\n"]}