{"version":3,"sources":["jsdelivr-header.js","/npm/markdown-it-sup@2.0.0/dist/index.cjs.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAKA,MAAM,YAAc,6CACpB,SAAS,YAAY,EAAO,GAC1B,MAAM,EAAM,EAAM,OACZ,EAAQ,EAAM,IACpB,GAAoC,KAAhC,EAAM,IAAI,WAAW,GACvB,OAAO,EAET,GAAI,EACF,OAAO,EAET,GAAI,EAAQ,GAAK,EACf,OAAO,EAET,EAAM,IAAM,EAAQ,EACpB,IAAI,GAAQ,EACZ,KAAO,EAAM,IAAM,GAAK,CACtB,GAAwC,KAApC,EAAM,IAAI,WAAW,EAAM,KAAuB,CACpD,GAAQ,EACR,KACF,CACA,EAAM,GAAG,OAAO,UAAU,EAC5B,CACA,IAAK,GAAS,EAAQ,IAAM,EAAM,IAEhC,OADA,EAAM,IAAM,GACL,EAET,MAAM,EAAU,EAAM,IAAI,MAAM,EAAQ,EAAG,EAAM,KAGjD,GAAI,EAAQ,MAAM,sBAEhB,OADA,EAAM,IAAM,GACL,EAIT,EAAM,OAAS,EAAM,IACrB,EAAM,IAAM,EAAQ,EAGH,EAAM,KAAK,WAAY,MAAO,GACtC,OAAS,IACF,EAAM,KAAK,OAAQ,GAAI,GAC/B,QAAU,EAAQ,QAAQ,YAAa,MAK/C,OAJiB,EAAM,KAAK,YAAa,OAAQ,GACxC,OAAS,IAClB,EAAM,IAAM,EAAM,OAAS,EAC3B,EAAM,OAAS,GACR,CACT,CACA,SAAS,WAAW,GAClB,EAAG,OAAO,MAAM,MAAM,WAAY,MAAO,YAC3C,CAEA,OAAO,QAAU","file":"/npm/markdown-it-sup@2.0.0/dist/index.cjs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/markdown-it-sup@2.0.0/dist/index.cjs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\n// Process ^superscript^\n\n// same as UNESCAPE_MD_RE plus a space\nconst UNESCAPE_RE = /\\\\([ \\\\!\"#$%&'()*+,./:;<=>?@[\\]^_`{|}~-])/g;\nfunction superscript(state, silent) {\n  const max = state.posMax;\n  const start = state.pos;\n  if (state.src.charCodeAt(start) !== 0x5E /* ^ */) {\n    return false;\n  }\n  if (silent) {\n    return false;\n  } // don't run any pairs in validation mode\n  if (start + 2 >= max) {\n    return false;\n  }\n  state.pos = start + 1;\n  let found = false;\n  while (state.pos < max) {\n    if (state.src.charCodeAt(state.pos) === 0x5E /* ^ */) {\n      found = true;\n      break;\n    }\n    state.md.inline.skipToken(state);\n  }\n  if (!found || start + 1 === state.pos) {\n    state.pos = start;\n    return false;\n  }\n  const content = state.src.slice(start + 1, state.pos);\n\n  // don't allow unescaped spaces/newlines inside\n  if (content.match(/(^|[^\\\\])(\\\\\\\\)*\\s/)) {\n    state.pos = start;\n    return false;\n  }\n\n  // found!\n  state.posMax = state.pos;\n  state.pos = start + 1;\n\n  // Earlier we checked !silent, but this implementation does not need it\n  const token_so = state.push('sup_open', 'sup', 1);\n  token_so.markup = '^';\n  const token_t = state.push('text', '', 0);\n  token_t.content = content.replace(UNESCAPE_RE, '$1');\n  const token_sc = state.push('sup_close', 'sup', -1);\n  token_sc.markup = '^';\n  state.pos = state.posMax + 1;\n  state.posMax = max;\n  return true;\n}\nfunction sup_plugin(md) {\n  md.inline.ruler.after('emphasis', 'sup', superscript);\n}\n\nmodule.exports = sup_plugin;\n"]}