{"version":3,"sources":["jsdelivr-header.js","/npm/@patternfly/pfe-core@5.0.8/core.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACAA,SAAS,cACP,GAEA,MAAO,CACL,cAAc,GACS,iBAAV,EACF,KAEA,EAAM,MAAM,KAAK,IAAI,GAGhC,YAAY,GACH,EAAM,KAAK,KAGxB,QAMO,MAAM,oBACX,eAAc,GAAK,SAAS,GAAG,OAAQ,aAMlC,MAAM,oBACX,eAAc,GAAK,EAAE,gBAMjB,MAAO,sBAAsB,MACjC,WAAA,CAAY,EAAc,GACxB,MAAM,EAAM,CACV,SAAS,EACT,UAAU,KACP,GAEP","file":"/npm/@patternfly/pfe-core@5.0.8/core.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@patternfly/pfe-core@5.0.8/core.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 type { ComplexAttributeConverter } from 'lit';\n\nexport type RequireProps<T, Ps extends keyof T> = T & {\n  [P in Ps]-?: T[P];\n};\n\nfunction makeConverter<T>(\n  f: (x: string, type?: unknown) => T,\n): ComplexAttributeConverter<null | T[]> {\n  return {\n    fromAttribute(value: string) {\n      if (typeof value !== 'string') {\n        return null;\n      } else {\n        return value.split(',').map(f);\n      }\n    },\n    toAttribute(value: T[]) {\n      return value.join(',');\n    },\n  };\n}\n\n/**\n * A LitElement property converter which represents a list of numbers as a comma separated string\n * @see https://lit.dev/docs/components/properties/#conversion-converter\n */\nexport const NumberListConverter: ComplexAttributeConverter<number[] | null, unknown> =\n  makeConverter(x => parseInt(x?.trim(), 10));\n\n/**\n * A LitElement property converter which represents a list of strings as a comma separated string\n * @see https://lit.dev/docs/components/properties/#conversion-converter\n */\nexport const StringListConverter: ComplexAttributeConverter<string[] | null, unknown> =\n  makeConverter(x => x.trim());\n\n/**\n * A composed, bubbling event for UI interactions\n * e.g. when an accordion panel opens.\n */\nexport class ComposedEvent extends Event {\n  constructor(type: string, init?: EventInit) {\n    super(type, {\n      bubbles: true,\n      composed: true,\n      ...init,\n    });\n  }\n}\n\n"]}