{
  "version": 3,
  "sources": ["../../../../../src/functions/lookup/count/count.ts"],
  "sourcesContent": [
    "import {\n  type FunctionDefinition,\n  type FunctionEvaluationResult,\n} from \"../../../core/types.mjs\";\nimport { createArgumentIterator } from \"../../../functions/function-utils.mjs\";\nimport { performCount } from \"./count-utils.mjs\";\n\n/**\n * COUNT function - Counts the number of cells that contain numbers\n * \n * Usage: COUNT(value1, [value2], ...)\n * \n * Examples:\n *   COUNT(1, 2, 3) - returns 3\n *   COUNT(A1:A10) - counts numeric values in the range A1:A10\n *   COUNT(A1:A5, B1:B5) - counts numeric values in both ranges\n * \n * Note:\n * - Only numeric values are counted (numbers and infinities)\n * - Text, logical values, and empty cells are ignored\n * - Errors propagate immediately\n * \n * From Excel documentation:\n * \"The COUNT function counts the number of cells that contain numbers, \n * and counts numbers within the list of arguments.\"\n */\nexport const COUNT: FunctionDefinition = {\n  name: \"COUNT\",\n  evaluate: function (node, context): FunctionEvaluationResult {\n    // Create iterator over all argument values\n    const argumentValues = createArgumentIterator(this, node, context, \"col-major\");\n\n    if (argumentValues.type !== \"values\") {\n      return argumentValues;\n    }\n    // Use shared counting utility\n    return performCount(argumentValues.values);\n  },\n};\n"
  ],
  "mappings": ";AAIA;AACA;AAqBO,IAAM,QAA4B;AAAA,EACvC,MAAM;AAAA,EACN,UAAU,QAAS,CAAC,MAAM,SAAmC;AAAA,IAE3D,MAAM,iBAAiB,uBAAuB,MAAM,MAAM,SAAS,WAAW;AAAA,IAE9E,IAAI,eAAe,SAAS,UAAU;AAAA,MACpC,OAAO;AAAA,IACT;AAAA,IAEA,OAAO,aAAa,eAAe,MAAM;AAAA;AAE7C;",
  "debugId": "9BE1648CD1E3933E64756E2164756E21",
  "names": []
}