{"version":3,"sources":["../src/index.ts","../../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js"],"sourcesContent":["/**\n * @fhir-toolkit/r5-specs\n *\n * FHIR R5 StructureDefinitions, ValueSets, and CodeSystems for validation.\n * This package provides the official HL7 FHIR R5 specification files.\n *\n * @packageDocumentation\n */\n\nimport { resolve, dirname } from 'path';\nimport { fileURLToPath } from 'url';\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n/**\n * FHIR version provided by this package\n */\nexport const FHIR_VERSION = 'R5' as const;\n\n/**\n * FHIR version string (e.g., \"5.0.0\")\n */\nexport const FHIR_VERSION_STRING = '5.0.0' as const;\n\n/**\n * Path to the specs directory containing StructureDefinitions, ValueSets, and CodeSystems\n *\n * @example\n * ```typescript\n * import { specsPath } from '@fhir-toolkit/r5-specs';\n * import { FhirValidator } from '@fhir-toolkit/yafv';\n *\n * const validator = new FhirValidator({\n *   fhirVersion: 'R5',\n *   specsPath: specsPath\n * });\n * ```\n */\nexport const specsPath: string = resolve(__dirname, '..', 'specs');\n\n/**\n * Package metadata\n */\nexport const metadata = {\n  name: '@fhir-toolkit/r5-specs',\n  version: FHIR_VERSION,\n  versionString: FHIR_VERSION_STRING,\n  specsPath,\n} as const;\n\nexport default metadata;\n","// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () => \n  typeof document === \"undefined\" \n    ? new URL(`file:${__filename}`).href \n    : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') \n      ? document.currentScript.src \n      : new URL(\"main.js\", document.baseURI).href;\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKA,IAAM,mBAAmB,MACvB,OAAO,aAAa,cAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,OAC7B,SAAS,iBAAiB,SAAS,cAAc,QAAQ,YAAY,MAAM,WAC1E,SAAS,cAAc,MACvB,IAAI,IAAI,WAAW,SAAS,OAAO,EAAE;AAEtC,IAAM,gBAAgC,iCAAiB;;;ADH9D,kBAAiC;AACjC,iBAA8B;AAE9B,IAAMA,kBAAa,0BAAc,aAAe;AAChD,IAAM,gBAAY,qBAAQA,WAAU;AAK7B,IAAM,eAAe;AAKrB,IAAM,sBAAsB;AAgB5B,IAAM,gBAAoB,qBAAQ,WAAW,MAAM,OAAO;AAK1D,IAAM,WAAW;AAAA,EACtB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,eAAe;AAAA,EACf;AACF;AAEA,IAAO,gBAAQ;","names":["__filename"]}