{"version":3,"sources":["jsdelivr-header.js","/npm/@crit-fumble/core@10.35.0/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCwDS,cAAe,WAAY,cAAkB,2BAE7C,SAAU,qBAAsB,aAAiB,mBAEjD,wBAAyB,wBAAyB,YAAa,qBAAyB,mBAExF,gBAAiB,eAAgB,mBAAoB,mBAAoB,mBAAuB,sBAEhG,KAAK,yBAEL,KAAK,4BAEL,KAAK","file":"/npm/@crit-fumble/core@10.35.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@crit-fumble/core@10.35.0/dist/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","/**\n * @crit-fumble/core\n *\n * Client SDK for Crit-Fumble Core API.\n * Provides shared types and HTTP client for web apps and Discord bot.\n *\n * @example\n * ```typescript\n * // Using the API client\n * import { CoreApiClient } from '@crit-fumble/core'\n *\n * const api = new CoreApiClient({\n *   baseUrl: 'https://core.crit-fumble.com',\n *   apiKey: process.env.CORE_API_KEY\n * })\n *\n * // Health check\n * const health = await api.health()\n * console.log(health.status) // 'ok'\n *\n * // Get campaigns\n * const { campaigns } = await api.campaigns.list({ guildId: '123456789' })\n *\n * // Create a character\n * const character = await api.characters.create({\n *   name: 'Gandalf',\n *   type: 'npc',\n *   campaignId: 'campaign-id'\n * })\n * ```\n *\n * @example\n * ```typescript\n * // Using types only\n * import type { Campaign, Character, User } from '@crit-fumble/core/types'\n *\n * function displayCampaign(campaign: Campaign) {\n *   console.log(`${campaign.name} - ${campaign.status}`)\n * }\n * ```\n *\n * @example\n * ```typescript\n * // Low-level HTTP client\n * import { HttpClient, HttpError } from '@crit-fumble/core/client'\n *\n * const http = new HttpClient({\n *   baseUrl: 'https://core.crit-fumble.com',\n *   apiKey: 'your-api-key'\n * })\n *\n * try {\n *   const { data } = await http.get('/api/campaigns')\n *   console.log(data)\n * } catch (error) {\n *   if (error instanceof HttpError) {\n *     console.error(`API Error: ${error.status} - ${error.message}`)\n *   }\n * }\n * ```\n */\n// Client\nexport { CoreApiClient, HttpClient, HttpError, } from './client/index.js';\n// Dice Rolling\nexport { rollDice, validateDiceNotation, DiceRoll, } from './dice.js';\n// Auth Utilities (Service-to-Service Security)\nexport { createResponseSignature, verifyResponseSignature, signedFetch, fetchCoreSession, } from './auth.js';\n// Schedule Utilities (iCal generation only - rrule removed)\nexport { formatDateToICS, generateVEvent, generateICalHeader, generateICalFooter, escapeICalText, } from './schedule.js';\n// Types\nexport * from './types/index.js';\n// Field Mappings (Game System Data Transforms)\nexport * from './mappings/index.js';\n// Adventure Engine (Grid, Scales, Donjon Parser)\nexport * from './adventure/index.js';\n"]}