{"version":3,"sources":["jsdelivr-header.js","/npm/react-performance-observer@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,MAAM,aAAe,KACf,eAAiB,KAEjB,sBAAwB,qCACxB,sBAAwB,kCAE9B,SAAS,WAAW,GAClB,IAAI,EAAO,EAAM,KACb,EAAU,EAAK,WARA,MASf,EAAY,EAAK,WARA,MAUrB,GAAI,GAAW,EAAW,CACxB,IAAI,EAAa,EAAK,QAAQ,EAZb,KACE,KAWoD,IAEnE,EACF,EAAW,MAAM,wBACjB,EAAW,MAAM,uBAEnB,GAAI,EACF,MAAO,CACL,OACA,cAAe,EAAM,GACrB,MAAO,EAAM,GACb,QAAS,EAAa,EAAM,KAAM,EAAQ,KAC1C,UAAW,EAAM,UACjB,UAAW,EAAM,UACjB,SAAU,EAAM,SAGtB,CAEA,OAAO,IACT,CAEA,SAAS,QAAQ,GACA,IAAI,OAAO,qBAAoB,IAC5C,IAAI,EAAU,EAAK,aACf,EAAe,GAEnB,EAAQ,SAAQ,IACd,IAAI,EAAQ,WAAW,GACnB,GACF,EAAa,KAAK,EACpB,IAGF,EAAS,EAAa,IAGf,QAAQ,CACf,WAAY,CAAC,YAEjB,CAEA,QAAQ,WAAa,WACrB,QAAQ,QAAU","file":"/npm/react-performance-observer@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-performance-observer@1.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","'use strict';\n\nconst REACT_PREFIX = '\\u269B ';\nconst WARNING_PREFIX = '\\u26D4 ';\n\nconst RENDER_LIFECYCLE_NAME = /^(\\w+) \\[(\\w+)\\]( Warning: (.*))?$/;\nconst LIFECYCLE_METHOD_NAME = /^(\\w+)\\.(\\w+)( Warning: (.*))?$/;\n\nfunction parseEntry(entry) {\n  let name = entry.name;\n  let isReact = name.startsWith(REACT_PREFIX);\n  let isWarning = name.startsWith(WARNING_PREFIX);\n\n  if (isReact || isWarning) {\n    let normalized = name.replace(isReact ? REACT_PREFIX : WARNING_PREFIX, '');\n\n    let match =\n      normalized.match(RENDER_LIFECYCLE_NAME) ||\n      normalized.match(LIFECYCLE_METHOD_NAME);\n\n    if (match) {\n      return {\n        name,\n        componentName: match[1],\n        phase: match[2],\n        warning: isWarning ? (match[4] || true) : null,\n        entryType: entry.entryType,\n        startTime: entry.startTime,\n        duration: entry.duration,\n      };\n    }\n  }\n\n  return null;\n}\n\nfunction observe(callback) {\n  let observer = new window.PerformanceObserver(list => {\n    let entries = list.getEntries();\n    let measurements = [];\n\n    entries.forEach(entry => {\n      let match = parseEntry(entry);\n      if (match) {\n        measurements.push(match);\n      }\n    });\n\n    callback(measurements);\n  });\n\n  observer.observe({\n    entryTypes: ['measure'],\n  });\n}\n\nexports.parseEntry = parseEntry;\nexports.observe = observe;\n"]}