{"version":3,"file":"jsx-runtime.cjs","names":["h"],"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import { h } from './html'\n\n// See\n// https://esbuild.github.io/api/#jsx-import-source\n// https://www.typescriptlang.org/tsconfig/#jsxImportSource\n\n/** Fragment for the automatic runtime, `<>...</>` renders only its children */\nexport const Fragment = ''\n\n/**\n * Entry point of the automatic JSX runtime (`\"jsx\": \"react-jsx\"`).\n * Children arrive as `props.children` instead of extra arguments, `key` as\n * separate argument which has no meaning for static markup.\n */\nexport function jsx(tag: any, props?: Record<string, unknown> | null, _key?: unknown): string {\n  // Function components get the props like in React, children included\n  if (typeof tag === 'function')\n    return tag(props ?? {})\n  const { children, ...attrs } = props ?? {}\n  if (children === undefined)\n    return h(tag, attrs)\n  return h(tag, attrs, ...(Array.isArray(children)\n    ? children\n    : [children]))\n}\n\nexport {\n  h,\n  jsx as jsxDEV,\n  jsx as jsxs,\n}\n"],"mappings":";;;;AAOA,MAAa,WAAW;;;;;;AAOxB,SAAgB,IAAI,KAAU,OAAwC,MAAwB;CAE5F,IAAI,OAAO,QAAQ,YACjB,OAAO,IAAI,SAAS,CAAC,CAAC;CACxB,MAAM,EAAE,UAAU,GAAG,UAAU,SAAS,CAAC;CACzC,IAAI,aAAa,KAAA,GACf,OAAOA,aAAAA,EAAE,KAAK,KAAK;CACrB,OAAOA,aAAAA,EAAE,KAAK,OAAO,GAAI,MAAM,QAAQ,QAAQ,IAC3C,WACA,CAAC,QAAQ,CAAE;AACjB"}