{
  "version": 3,
  "sources": ["../../../../../src/functions/math/sum/sum.ts"],
  "sourcesContent": [
    "import { type FunctionDefinition } from \"../../../core/types.mjs\";\nimport { performSummation } from \"./summation-utils.mjs\";\nimport { createArgumentIterator } from \"../../function-utils.mjs\";\n\n/**\n * SUM function - Adds all numbers in the arguments\n */\nexport const SUM: FunctionDefinition = {\n  name: \"SUM\",\n  evaluate: function (node, context) {\n    // Create iterator from all arguments\n    const argumentIterator = createArgumentIterator(\n      this,\n      node,\n      context,\n      \"col-major\"\n    );\n\n    if (argumentIterator.type !== \"values\") {\n      return argumentIterator;\n    }\n\n    // Perform summation with error propagation (SUM propagates errors from direct arguments)\n    return performSummation(argumentIterator.values);\n  },\n};\n"
  ],
  "mappings": ";AACA;AACA;AAKO,IAAM,MAA0B;AAAA,EACrC,MAAM;AAAA,EACN,UAAU,QAAS,CAAC,MAAM,SAAS;AAAA,IAEjC,MAAM,mBAAmB,uBACvB,MACA,MACA,SACA,WACF;AAAA,IAEA,IAAI,iBAAiB,SAAS,UAAU;AAAA,MACtC,OAAO;AAAA,IACT;AAAA,IAGA,OAAO,iBAAiB,iBAAiB,MAAM;AAAA;AAEnD;",
  "debugId": "D18937ED6441729B64756E2164756E21",
  "names": []
}