solve-engine 2.27.0 → 2.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/{EngineError-C-kBwYlN.d.cts → EngineError-CA2tiVaI.d.cts} +2 -0
  2. package/dist/{EngineError-C-kBwYlN.d.ts → EngineError-CA2tiVaI.d.ts} +2 -0
  3. package/dist/{Lexer-DqtnZMC5.d.ts → Lexer-B62Hn9I-.d.ts} +1 -1
  4. package/dist/{Lexer-DhGhoAa2.d.cts → Lexer-DOXatsjO.d.cts} +1 -1
  5. package/dist/{PackageCompatibility-fj_f7uqC.d.ts → PackageCompatibility-DT1IPlQx.d.ts} +1 -1
  6. package/dist/{PackageCompatibility-CNiTtC6S.d.cts → PackageCompatibility-DW18LqED.d.cts} +1 -1
  7. package/dist/{PackageRegistry-BHBCFswo.d.cts → PackageRegistry-CevYUzRn.d.cts} +3 -3
  8. package/dist/{PackageRegistry-CNZUwWHJ.d.ts → PackageRegistry-Dl9kNP14.d.ts} +3 -3
  9. package/dist/{VMBuiltins-kv4rr0y5.d.cts → VMBuiltins-AIivGl0a.d.cts} +1 -1
  10. package/dist/{VMBuiltins-CZiZRKn-.d.ts → VMBuiltins-CbuFfIgQ.d.ts} +1 -1
  11. package/dist/{VMCheckpoints-yun4ocSv.d.cts → VMCheckpoints-BVrJwfZY.d.cts} +1 -1
  12. package/dist/{VMCheckpoints-DXze6ypg.d.ts → VMCheckpoints-DFCl63K5.d.ts} +1 -1
  13. package/dist/{WorkerError-CfBJYueR.d.ts → WorkerError-BuO9MrRr.d.ts} +1 -1
  14. package/dist/{WorkerError-BLZyNq6M.d.cts → WorkerError-DDtwl4oH.d.cts} +1 -1
  15. package/dist/{chunk-GVL3ZMS7.cjs → chunk-2G3AW6OQ.cjs} +2 -2
  16. package/dist/{chunk-GVL3ZMS7.cjs.map → chunk-2G3AW6OQ.cjs.map} +1 -1
  17. package/dist/{chunk-BCR53EIL.js → chunk-2RLNVS6G.js} +2 -2
  18. package/dist/{chunk-BCR53EIL.js.map → chunk-2RLNVS6G.js.map} +1 -1
  19. package/dist/{chunk-TMQ37JQY.cjs → chunk-2YNRIT2L.cjs} +3 -3
  20. package/dist/{chunk-TMQ37JQY.cjs.map → chunk-2YNRIT2L.cjs.map} +1 -1
  21. package/dist/chunk-3LWK33TJ.js +3 -0
  22. package/dist/chunk-3LWK33TJ.js.map +1 -0
  23. package/dist/{chunk-TPPM4QSS.cjs → chunk-5J2XDCSV.cjs} +2 -2
  24. package/dist/{chunk-TPPM4QSS.cjs.map → chunk-5J2XDCSV.cjs.map} +1 -1
  25. package/dist/chunk-5NQE5JMU.cjs +2 -0
  26. package/dist/{chunk-QQHHZPEW.cjs.map → chunk-5NQE5JMU.cjs.map} +1 -1
  27. package/dist/{chunk-LTUYWJGO.js → chunk-6T5HPIZX.js} +2 -2
  28. package/dist/{chunk-LTUYWJGO.js.map → chunk-6T5HPIZX.js.map} +1 -1
  29. package/dist/{chunk-S3ODNMJS.js → chunk-7ASISMXA.js} +2 -2
  30. package/dist/{chunk-S3ODNMJS.js.map → chunk-7ASISMXA.js.map} +1 -1
  31. package/dist/{chunk-YG7UWQFV.js → chunk-7ZYYWSLT.js} +2 -2
  32. package/dist/{chunk-YG7UWQFV.js.map → chunk-7ZYYWSLT.js.map} +1 -1
  33. package/dist/{chunk-BLJ6E577.js → chunk-A7RRWNLE.js} +2 -2
  34. package/dist/{chunk-BLJ6E577.js.map → chunk-A7RRWNLE.js.map} +1 -1
  35. package/dist/{chunk-BCY2WY5P.js → chunk-APU5LON7.js} +3 -3
  36. package/dist/{chunk-BCY2WY5P.js.map → chunk-APU5LON7.js.map} +1 -1
  37. package/dist/{chunk-ESZNJQ2C.js → chunk-DDVDRWCK.js} +3 -3
  38. package/dist/{chunk-ESZNJQ2C.js.map → chunk-DDVDRWCK.js.map} +1 -1
  39. package/dist/{chunk-ZPHUTCJ5.cjs → chunk-FSNBYRNA.cjs} +3 -3
  40. package/dist/{chunk-ZPHUTCJ5.cjs.map → chunk-FSNBYRNA.cjs.map} +1 -1
  41. package/dist/{chunk-2SYYKQ4Q.cjs → chunk-GWEINEJG.cjs} +2 -2
  42. package/dist/{chunk-2SYYKQ4Q.cjs.map → chunk-GWEINEJG.cjs.map} +1 -1
  43. package/dist/{chunk-GXO7TSXQ.cjs → chunk-HTAT4MGN.cjs} +3 -3
  44. package/dist/chunk-HTAT4MGN.cjs.map +1 -0
  45. package/dist/{chunk-D4VBWPWN.js → chunk-I6WGOM3C.js} +2 -2
  46. package/dist/{chunk-D4VBWPWN.js.map → chunk-I6WGOM3C.js.map} +1 -1
  47. package/dist/{chunk-CL7DM2FX.js → chunk-IAL64FCP.js} +2 -2
  48. package/dist/{chunk-CL7DM2FX.js.map → chunk-IAL64FCP.js.map} +1 -1
  49. package/dist/{chunk-TC23XEAV.js → chunk-IEBWLNI5.js} +2 -2
  50. package/dist/{chunk-TC23XEAV.js.map → chunk-IEBWLNI5.js.map} +1 -1
  51. package/dist/{chunk-YSHWNCDH.cjs → chunk-IIBR4LVH.cjs} +4 -4
  52. package/dist/{chunk-YSHWNCDH.cjs.map → chunk-IIBR4LVH.cjs.map} +1 -1
  53. package/dist/{chunk-UVHD7BBC.js → chunk-JHHSQ2YR.js} +3 -3
  54. package/dist/{chunk-UVHD7BBC.js.map → chunk-JHHSQ2YR.js.map} +1 -1
  55. package/dist/{chunk-G2V33LFM.cjs → chunk-KYE5BWPN.cjs} +2 -2
  56. package/dist/{chunk-G2V33LFM.cjs.map → chunk-KYE5BWPN.cjs.map} +1 -1
  57. package/dist/{chunk-LQIRBP4Q.js → chunk-LV7PJ2MU.js} +2 -2
  58. package/dist/{chunk-LQIRBP4Q.js.map → chunk-LV7PJ2MU.js.map} +1 -1
  59. package/dist/{chunk-SE6ZCGZ5.cjs → chunk-MKBB7IVN.cjs} +2 -2
  60. package/dist/{chunk-SE6ZCGZ5.cjs.map → chunk-MKBB7IVN.cjs.map} +1 -1
  61. package/dist/{chunk-LE6WZLJ4.js → chunk-MONPHAHO.js} +2 -2
  62. package/dist/{chunk-LE6WZLJ4.js.map → chunk-MONPHAHO.js.map} +1 -1
  63. package/dist/{chunk-ZC2NPRLO.js → chunk-N22D5ZD4.js} +3 -3
  64. package/dist/{chunk-ZC2NPRLO.js.map → chunk-N22D5ZD4.js.map} +1 -1
  65. package/dist/{chunk-GJZIJK2Q.cjs → chunk-O5ZLOZPH.cjs} +2 -2
  66. package/dist/{chunk-GJZIJK2Q.cjs.map → chunk-O5ZLOZPH.cjs.map} +1 -1
  67. package/dist/{chunk-Y7XRA2EV.js → chunk-OKSAUK5C.js} +2 -2
  68. package/dist/{chunk-Y7XRA2EV.js.map → chunk-OKSAUK5C.js.map} +1 -1
  69. package/dist/{chunk-RRUGQ6DM.js → chunk-OLATJABN.js} +2 -2
  70. package/dist/{chunk-RRUGQ6DM.js.map → chunk-OLATJABN.js.map} +1 -1
  71. package/dist/{chunk-REZQFPVX.js → chunk-POIHAKBX.js} +2 -2
  72. package/dist/{chunk-REZQFPVX.js.map → chunk-POIHAKBX.js.map} +1 -1
  73. package/dist/{chunk-AZX4NTYN.cjs → chunk-QXGKONTZ.cjs} +3 -3
  74. package/dist/{chunk-AZX4NTYN.cjs.map → chunk-QXGKONTZ.cjs.map} +1 -1
  75. package/dist/{chunk-VQO54ZMA.js → chunk-RRJ77SF6.js} +2 -2
  76. package/dist/{chunk-VQO54ZMA.js.map → chunk-RRJ77SF6.js.map} +1 -1
  77. package/dist/{chunk-O5PO4D2A.cjs → chunk-RVNW627Y.cjs} +2 -2
  78. package/dist/{chunk-O5PO4D2A.cjs.map → chunk-RVNW627Y.cjs.map} +1 -1
  79. package/dist/{chunk-CQLCTKMX.cjs → chunk-TTHCH7V2.cjs} +2 -2
  80. package/dist/{chunk-CQLCTKMX.cjs.map → chunk-TTHCH7V2.cjs.map} +1 -1
  81. package/dist/{chunk-6EYKVQT3.cjs → chunk-U7CNADCJ.cjs} +2 -2
  82. package/dist/{chunk-6EYKVQT3.cjs.map → chunk-U7CNADCJ.cjs.map} +1 -1
  83. package/dist/{chunk-FDKTESBC.cjs → chunk-UBKWHRFL.cjs} +2 -2
  84. package/dist/{chunk-FDKTESBC.cjs.map → chunk-UBKWHRFL.cjs.map} +1 -1
  85. package/dist/{chunk-ZSLVLMO5.cjs → chunk-UMW5PO42.cjs} +2 -2
  86. package/dist/{chunk-ZSLVLMO5.cjs.map → chunk-UMW5PO42.cjs.map} +1 -1
  87. package/dist/{chunk-7RC6RBS6.cjs → chunk-W5BBKLNS.cjs} +2 -2
  88. package/dist/{chunk-7RC6RBS6.cjs.map → chunk-W5BBKLNS.cjs.map} +1 -1
  89. package/dist/{chunk-ZDJTDFTR.cjs → chunk-WXOJ3DS3.cjs} +2 -2
  90. package/dist/{chunk-ZDJTDFTR.cjs.map → chunk-WXOJ3DS3.cjs.map} +1 -1
  91. package/dist/chunk-YIXCPLCN.cjs +3 -0
  92. package/dist/chunk-YIXCPLCN.cjs.map +1 -0
  93. package/dist/{chunk-ZE5KKMBV.cjs → chunk-YLTNXYA7.cjs} +2 -2
  94. package/dist/{chunk-ZE5KKMBV.cjs.map → chunk-YLTNXYA7.cjs.map} +1 -1
  95. package/dist/{chunk-VB6QMU2W.js → chunk-Z5DA5UXY.js} +3 -3
  96. package/dist/chunk-Z5DA5UXY.js.map +1 -0
  97. package/dist/{chunk-HANGBVEE.js → chunk-Z5VBXZ4A.js} +2 -2
  98. package/dist/{chunk-HANGBVEE.js.map → chunk-Z5VBXZ4A.js.map} +1 -1
  99. package/dist/constants.cjs +1 -1
  100. package/dist/constants.js +1 -1
  101. package/dist/engine.cjs +1 -1
  102. package/dist/engine.d.cts +6 -6
  103. package/dist/engine.d.ts +6 -6
  104. package/dist/engine.js +1 -1
  105. package/dist/errors.cjs +1 -1
  106. package/dist/errors.d.cts +3 -3
  107. package/dist/errors.d.ts +3 -3
  108. package/dist/errors.js +1 -1
  109. package/dist/format.cjs +1 -1
  110. package/dist/format.js +1 -1
  111. package/dist/index.cjs +1 -1
  112. package/dist/index.d.cts +6 -6
  113. package/dist/index.d.ts +6 -6
  114. package/dist/index.js +1 -1
  115. package/dist/language.d.cts +5 -5
  116. package/dist/language.d.ts +5 -5
  117. package/dist/lexer.cjs +1 -1
  118. package/dist/lexer.d.cts +3 -3
  119. package/dist/lexer.d.ts +3 -3
  120. package/dist/lexer.js +1 -1
  121. package/dist/normalizer.cjs +1 -1
  122. package/dist/normalizer.js +1 -1
  123. package/dist/packages.cjs +1 -1
  124. package/dist/packages.d.cts +4 -4
  125. package/dist/packages.d.ts +4 -4
  126. package/dist/packages.js +1 -1
  127. package/dist/parser.cjs +1 -1
  128. package/dist/parser.js +1 -1
  129. package/dist/temporal.cjs +1 -1
  130. package/dist/temporal.js +1 -1
  131. package/dist/testing.cjs +2 -2
  132. package/dist/testing.d.cts +5 -5
  133. package/dist/testing.d.ts +5 -5
  134. package/dist/testing.js +1 -1
  135. package/dist/uom.cjs +1 -1
  136. package/dist/uom.js +1 -1
  137. package/dist/vm.cjs +1 -1
  138. package/dist/vm.d.cts +3 -3
  139. package/dist/vm.d.ts +3 -3
  140. package/dist/vm.js +1 -1
  141. package/dist/worker.cjs +2 -2
  142. package/dist/worker.d.cts +5 -5
  143. package/dist/worker.d.ts +5 -5
  144. package/dist/worker.js +1 -1
  145. package/package.json +1 -1
  146. package/dist/chunk-DFMAZ6XM.cjs +0 -3
  147. package/dist/chunk-DFMAZ6XM.cjs.map +0 -1
  148. package/dist/chunk-GXO7TSXQ.cjs.map +0 -1
  149. package/dist/chunk-PQFI55AC.js +0 -3
  150. package/dist/chunk-PQFI55AC.js.map +0 -1
  151. package/dist/chunk-QQHHZPEW.cjs +0 -2
  152. package/dist/chunk-VB6QMU2W.js.map +0 -1
package/dist/engine.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { t as DocumentModel, E as ExpressionEngine, V as ViewportRange, u as LineChange, U as UnifiedParsingOptions, P as ParsingResult, v as InlineSolvePosition } from './PackageRegistry-CNZUwWHJ.js';
2
- export { A as ApplyChangesResult, w as AsyncCachePackageInfo, x as AsyncErrorEvent, y as AsyncResolutionBatcher, z as AsyncResolutionEvent, B as BatcherMetrics, F as BytecodeCacheEntry, G as CacheSnapshot, H as CheckpointSnapshot, D as DateOrderSource, b as DateReading, c as DateReadingPolicy, a as EngineOptions, d as EngineRestoreOptions, e as EngineSnapshot, f as Explanation, g as ExplanationStep, J as LineCacheEntryInfo, K as LineState, M as LinesUpdatedEvent, N as ParsedLine, R as ResolvedDateOrder, S as SNAPSHOT_FORMAT, h as SNAPSHOT_VERSION, i as SerializedAnonymousBody, j as SerializedBytecode, k as SerializedDecimal, l as SerializedLineCacheEntry, m as SerializedNumber, n as SerializedRational, o as SerializedUserFunction, p as SerializedValue, q as SnapshotErrorCodes } from './PackageRegistry-CNZUwWHJ.js';
1
+ import { t as DocumentModel, E as ExpressionEngine, V as ViewportRange, u as LineChange, U as UnifiedParsingOptions, P as ParsingResult, v as InlineSolvePosition } from './PackageRegistry-Dl9kNP14.js';
2
+ export { A as ApplyChangesResult, w as AsyncCachePackageInfo, x as AsyncErrorEvent, y as AsyncResolutionBatcher, z as AsyncResolutionEvent, B as BatcherMetrics, F as BytecodeCacheEntry, G as CacheSnapshot, H as CheckpointSnapshot, D as DateOrderSource, b as DateReading, c as DateReadingPolicy, a as EngineOptions, d as EngineRestoreOptions, e as EngineSnapshot, f as Explanation, g as ExplanationStep, J as LineCacheEntryInfo, K as LineState, M as LinesUpdatedEvent, N as ParsedLine, R as ResolvedDateOrder, S as SNAPSHOT_FORMAT, h as SNAPSHOT_VERSION, i as SerializedAnonymousBody, j as SerializedBytecode, k as SerializedDecimal, l as SerializedLineCacheEntry, m as SerializedNumber, n as SerializedRational, o as SerializedUserFunction, p as SerializedValue, q as SnapshotErrorCodes } from './PackageRegistry-Dl9kNP14.js';
3
3
  export { C as CalendarBackend, a as CalendarFields, Z as ZonedFields } from './CalendarBackend-MdS3Bb4P.js';
4
4
  export { D as DATE_CALENDAR, a as DateCalendar, c as calendarOf, d as dateCalendarInZone } from './DateCalendar-B85t6Vk6.js';
5
5
  import { V as Value } from './Value-BYHw-x7q.js';
6
- import { a as VMCheckpointer } from './VMCheckpoints-DXze6ypg.js';
6
+ import { a as VMCheckpointer } from './VMCheckpoints-DFCl63K5.js';
7
7
  import { T as Token } from './Token-D8f7yaz1.js';
8
- import { E as EngineError } from './EngineError-C-kBwYlN.js';
8
+ import { E as EngineError } from './EngineError-CA2tiVaI.js';
9
9
  import { a as BytecodeProgram } from './BytecodeBuilder-DSWKZi4f.js';
10
- export { f as DagSnapshot } from './VMBuiltins-CZiZRKn-.js';
10
+ export { f as DagSnapshot } from './VMBuiltins-CbuFfIgQ.js';
11
11
  import './Parselet-Dgymjxzd.js';
12
12
  import './pipeline-Cl7KW8CB.js';
13
- import './Lexer-DqtnZMC5.js';
13
+ import './Lexer-B62Hn9I-.js';
14
14
  import './resolvers.js';
15
15
  import '@tanstack/query-core';
16
16
  import './TokenNormalizer-IF7nPRMp.js';
package/dist/engine.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as DocumentModel,b as EvalTier,c as ThreeTierEvaluator,d as evaluateDocument}from'./chunk-UVHD7BBC.js';import'./chunk-RAF57WYO.js';export{h as AsyncResolutionBatcher,n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,j as checkExpressionComplexity,i as checkExpressionLength,k as extractReadsAndWrites,m as findInlineSolvesInLine,l as isEmptyLine}from'./chunk-BCY2WY5P.js';import'./chunk-VQO54ZMA.js';import'./chunk-2RWAXT6O.js';import'./chunk-IJHL3LMH.js';import'./chunk-MIQBJGGR.js';import'./chunk-TC23XEAV.js';import'./chunk-JP4JMQOG.js';import'./chunk-ZC2NPRLO.js';import'./chunk-XEIDV5JP.js';import'./chunk-S3ODNMJS.js';import'./chunk-YG7UWQFV.js';import'./chunk-LE6WZLJ4.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-CL7DM2FX.js';import'./chunk-D4VBWPWN.js';import'./chunk-ESZNJQ2C.js';import'./chunk-TZYMXNIB.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-LTUYWJGO.js';export{b as DATE_CALENDAR,a as DateCalendar,c as calendarOf,d as dateCalendarInZone}from'./chunk-BLJ6E577.js';import'./chunk-J4K72CQN.js';import'./chunk-LQIRBP4Q.js';import'./chunk-4CNYGIND.js';import'./chunk-REZQFPVX.js';import'./chunk-Y7XRA2EV.js';import'./chunk-JPFCXLJV.js';import'./chunk-RRUGQ6DM.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import'./chunk-VB6QMU2W.js';//# sourceMappingURL=engine.js.map
1
+ export{a as DocumentModel,b as EvalTier,c as ThreeTierEvaluator,d as evaluateDocument}from'./chunk-JHHSQ2YR.js';import'./chunk-RAF57WYO.js';export{h as AsyncResolutionBatcher,n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,j as checkExpressionComplexity,i as checkExpressionLength,k as extractReadsAndWrites,m as findInlineSolvesInLine,l as isEmptyLine}from'./chunk-APU5LON7.js';import'./chunk-RRJ77SF6.js';import'./chunk-2RWAXT6O.js';import'./chunk-IJHL3LMH.js';import'./chunk-MIQBJGGR.js';import'./chunk-IEBWLNI5.js';import'./chunk-JP4JMQOG.js';import'./chunk-N22D5ZD4.js';import'./chunk-XEIDV5JP.js';import'./chunk-7ASISMXA.js';import'./chunk-7ZYYWSLT.js';import'./chunk-MONPHAHO.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-IAL64FCP.js';import'./chunk-I6WGOM3C.js';import'./chunk-DDVDRWCK.js';import'./chunk-TZYMXNIB.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-6T5HPIZX.js';export{b as DATE_CALENDAR,a as DateCalendar,c as calendarOf,d as dateCalendarInZone}from'./chunk-A7RRWNLE.js';import'./chunk-J4K72CQN.js';import'./chunk-LV7PJ2MU.js';import'./chunk-4CNYGIND.js';import'./chunk-POIHAKBX.js';import'./chunk-OKSAUK5C.js';import'./chunk-JPFCXLJV.js';import'./chunk-OLATJABN.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import'./chunk-Z5DA5UXY.js';//# sourceMappingURL=engine.js.map
2
2
  //# sourceMappingURL=engine.js.map
package/dist/errors.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkSE6ZCGZ5_cjs=require('./chunk-SE6ZCGZ5.cjs'),chunkGXO7TSXQ_cjs=require('./chunk-GXO7TSXQ.cjs');Object.defineProperty(exports,"WorkerErrorCodes",{enumerable:true,get:function(){return chunkSE6ZCGZ5_cjs.a}});Object.defineProperty(exports,"deserializeEngineError",{enumerable:true,get:function(){return chunkSE6ZCGZ5_cjs.c}});Object.defineProperty(exports,"serializeEngineError",{enumerable:true,get:function(){return chunkSE6ZCGZ5_cjs.b}});Object.defineProperty(exports,"workerCancelledError",{enumerable:true,get:function(){return chunkSE6ZCGZ5_cjs.d}});Object.defineProperty(exports,"workerTerminatedError",{enumerable:true,get:function(){return chunkSE6ZCGZ5_cjs.e}});Object.defineProperty(exports,"workerTransportError",{enumerable:true,get:function(){return chunkSE6ZCGZ5_cjs.f}});Object.defineProperty(exports,"CoreErrorCodes",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.r}});Object.defineProperty(exports,"EngineError",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.b}});Object.defineProperty(exports,"ErrorCategory",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.a}});Object.defineProperty(exports,"ErrorFactory",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.c}});Object.defineProperty(exports,"andThen",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.k}});Object.defineProperty(exports,"combine",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.n}});Object.defineProperty(exports,"err",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.f}});Object.defineProperty(exports,"isErr",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.h}});Object.defineProperty(exports,"isOk",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.g}});Object.defineProperty(exports,"map",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.i}});Object.defineProperty(exports,"mapErr",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.j}});Object.defineProperty(exports,"match",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.m}});Object.defineProperty(exports,"normalizeUnknownError",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.d}});Object.defineProperty(exports,"ok",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.e}});Object.defineProperty(exports,"throwIfErr",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.o}});Object.defineProperty(exports,"tryCatch",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.p}});Object.defineProperty(exports,"tryCatchAsync",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.q}});Object.defineProperty(exports,"unwrapOr",{enumerable:true,get:function(){return chunkGXO7TSXQ_cjs.l}});//# sourceMappingURL=errors.cjs.map
1
+ 'use strict';var chunkMKBB7IVN_cjs=require('./chunk-MKBB7IVN.cjs'),chunkHTAT4MGN_cjs=require('./chunk-HTAT4MGN.cjs');Object.defineProperty(exports,"WorkerErrorCodes",{enumerable:true,get:function(){return chunkMKBB7IVN_cjs.a}});Object.defineProperty(exports,"deserializeEngineError",{enumerable:true,get:function(){return chunkMKBB7IVN_cjs.c}});Object.defineProperty(exports,"serializeEngineError",{enumerable:true,get:function(){return chunkMKBB7IVN_cjs.b}});Object.defineProperty(exports,"workerCancelledError",{enumerable:true,get:function(){return chunkMKBB7IVN_cjs.d}});Object.defineProperty(exports,"workerTerminatedError",{enumerable:true,get:function(){return chunkMKBB7IVN_cjs.e}});Object.defineProperty(exports,"workerTransportError",{enumerable:true,get:function(){return chunkMKBB7IVN_cjs.f}});Object.defineProperty(exports,"CoreErrorCodes",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.r}});Object.defineProperty(exports,"EngineError",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.b}});Object.defineProperty(exports,"ErrorCategory",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.a}});Object.defineProperty(exports,"ErrorFactory",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.c}});Object.defineProperty(exports,"andThen",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.k}});Object.defineProperty(exports,"combine",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.n}});Object.defineProperty(exports,"err",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.f}});Object.defineProperty(exports,"isErr",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.h}});Object.defineProperty(exports,"isOk",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.g}});Object.defineProperty(exports,"map",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.i}});Object.defineProperty(exports,"mapErr",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.j}});Object.defineProperty(exports,"match",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.m}});Object.defineProperty(exports,"normalizeUnknownError",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.d}});Object.defineProperty(exports,"ok",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.e}});Object.defineProperty(exports,"throwIfErr",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.o}});Object.defineProperty(exports,"tryCatch",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.p}});Object.defineProperty(exports,"tryCatchAsync",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.q}});Object.defineProperty(exports,"unwrapOr",{enumerable:true,get:function(){return chunkHTAT4MGN_cjs.l}});//# sourceMappingURL=errors.cjs.map
2
2
  //# sourceMappingURL=errors.cjs.map
package/dist/errors.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { E as EngineError } from './EngineError-C-kBwYlN.cjs';
2
- export { C as CoreErrorCode, a as CoreErrorCodes, b as EngineErrorInit, c as ErrorCategory, d as ErrorCode, e as ErrorFactory, S as SourceSpan, n as normalizeUnknownError } from './EngineError-C-kBwYlN.cjs';
3
- export { S as SerializedEngineError, W as WorkerErrorCodes, d as deserializeEngineError, s as serializeEngineError, w as workerCancelledError, a as workerTerminatedError, b as workerTransportError } from './WorkerError-BLZyNq6M.cjs';
1
+ import { E as EngineError } from './EngineError-CA2tiVaI.cjs';
2
+ export { C as CoreErrorCode, a as CoreErrorCodes, b as EngineErrorInit, c as ErrorCategory, d as ErrorCode, e as ErrorFactory, S as SourceSpan, n as normalizeUnknownError } from './EngineError-CA2tiVaI.cjs';
3
+ export { S as SerializedEngineError, W as WorkerErrorCodes, d as deserializeEngineError, s as serializeEngineError, w as workerCancelledError, a as workerTerminatedError, b as workerTransportError } from './WorkerError-DDtwl4oH.cjs';
4
4
 
5
5
  /**
6
6
  * A Rust-style `Result<T, E>`, the value half of this engine's error-handling
package/dist/errors.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { E as EngineError } from './EngineError-C-kBwYlN.js';
2
- export { C as CoreErrorCode, a as CoreErrorCodes, b as EngineErrorInit, c as ErrorCategory, d as ErrorCode, e as ErrorFactory, S as SourceSpan, n as normalizeUnknownError } from './EngineError-C-kBwYlN.js';
3
- export { S as SerializedEngineError, W as WorkerErrorCodes, d as deserializeEngineError, s as serializeEngineError, w as workerCancelledError, a as workerTerminatedError, b as workerTransportError } from './WorkerError-CfBJYueR.js';
1
+ import { E as EngineError } from './EngineError-CA2tiVaI.js';
2
+ export { C as CoreErrorCode, a as CoreErrorCodes, b as EngineErrorInit, c as ErrorCategory, d as ErrorCode, e as ErrorFactory, S as SourceSpan, n as normalizeUnknownError } from './EngineError-CA2tiVaI.js';
3
+ export { S as SerializedEngineError, W as WorkerErrorCodes, d as deserializeEngineError, s as serializeEngineError, w as workerCancelledError, a as workerTerminatedError, b as workerTransportError } from './WorkerError-BuO9MrRr.js';
4
4
 
5
5
  /**
6
6
  * A Rust-style `Result<T, E>`, the value half of this engine's error-handling
package/dist/errors.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as WorkerErrorCodes,c as deserializeEngineError,b as serializeEngineError,d as workerCancelledError,e as workerTerminatedError,f as workerTransportError}from'./chunk-BCR53EIL.js';export{r as CoreErrorCodes,b as EngineError,a as ErrorCategory,c as ErrorFactory,k as andThen,n as combine,f as err,h as isErr,g as isOk,i as map,j as mapErr,m as match,d as normalizeUnknownError,e as ok,o as throwIfErr,p as tryCatch,q as tryCatchAsync,l as unwrapOr}from'./chunk-VB6QMU2W.js';//# sourceMappingURL=errors.js.map
1
+ export{a as WorkerErrorCodes,c as deserializeEngineError,b as serializeEngineError,d as workerCancelledError,e as workerTerminatedError,f as workerTransportError}from'./chunk-2RLNVS6G.js';export{r as CoreErrorCodes,b as EngineError,a as ErrorCategory,c as ErrorFactory,k as andThen,n as combine,f as err,h as isErr,g as isOk,i as map,j as mapErr,m as match,d as normalizeUnknownError,e as ok,o as throwIfErr,p as tryCatch,q as tryCatchAsync,l as unwrapOr}from'./chunk-Z5DA5UXY.js';//# sourceMappingURL=errors.js.map
2
2
  //# sourceMappingURL=errors.js.map
package/dist/format.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkAZX4NTYN_cjs=require('./chunk-AZX4NTYN.cjs');require('./chunk-R2SZFJTT.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-FDKTESBC.cjs'),require('./chunk-TPPM4QSS.cjs'),require('./chunk-E4HAKNBQ.cjs'),require('./chunk-GJZIJK2Q.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-GXO7TSXQ.cjs');Object.defineProperty(exports,"DEFAULT_FORMATTING_SETTINGS",{enumerable:true,get:function(){return chunkAZX4NTYN_cjs.a}});Object.defineProperty(exports,"formatMatrixAligned",{enumerable:true,get:function(){return chunkAZX4NTYN_cjs.b}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return chunkAZX4NTYN_cjs.c}});//# sourceMappingURL=format.cjs.map
1
+ 'use strict';var chunkQXGKONTZ_cjs=require('./chunk-QXGKONTZ.cjs');require('./chunk-R2SZFJTT.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-UBKWHRFL.cjs'),require('./chunk-5J2XDCSV.cjs'),require('./chunk-E4HAKNBQ.cjs'),require('./chunk-O5ZLOZPH.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-HTAT4MGN.cjs');Object.defineProperty(exports,"DEFAULT_FORMATTING_SETTINGS",{enumerable:true,get:function(){return chunkQXGKONTZ_cjs.a}});Object.defineProperty(exports,"formatMatrixAligned",{enumerable:true,get:function(){return chunkQXGKONTZ_cjs.b}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return chunkQXGKONTZ_cjs.c}});//# sourceMappingURL=format.cjs.map
2
2
  //# sourceMappingURL=format.cjs.map
package/dist/format.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as DEFAULT_FORMATTING_SETTINGS,b as formatMatrixAligned,c as formatValue}from'./chunk-ZC2NPRLO.js';import'./chunk-XEIDV5JP.js';import'./chunk-5TCSFTZD.js';import'./chunk-LTUYWJGO.js';import'./chunk-BLJ6E577.js';import'./chunk-J4K72CQN.js';import'./chunk-LQIRBP4Q.js';import'./chunk-LHLW7JLS.js';import'./chunk-VB6QMU2W.js';//# sourceMappingURL=format.js.map
1
+ export{a as DEFAULT_FORMATTING_SETTINGS,b as formatMatrixAligned,c as formatValue}from'./chunk-N22D5ZD4.js';import'./chunk-XEIDV5JP.js';import'./chunk-5TCSFTZD.js';import'./chunk-6T5HPIZX.js';import'./chunk-A7RRWNLE.js';import'./chunk-J4K72CQN.js';import'./chunk-LV7PJ2MU.js';import'./chunk-LHLW7JLS.js';import'./chunk-Z5DA5UXY.js';//# sourceMappingURL=format.js.map
2
2
  //# sourceMappingURL=format.js.map
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';require('./chunk-ZPHUTCJ5.cjs'),require('./chunk-EFJCC6FJ.cjs');var chunkYSHWNCDH_cjs=require('./chunk-YSHWNCDH.cjs');require('./chunk-2SYYKQ4Q.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-ZVPZQ66D.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-GVL3ZMS7.cjs'),require('./chunk-HG4NPDN5.cjs');var chunkAZX4NTYN_cjs=require('./chunk-AZX4NTYN.cjs');require('./chunk-R2SZFJTT.cjs');var chunkDFMAZ6XM_cjs=require('./chunk-DFMAZ6XM.cjs');require('./chunk-G2V33LFM.cjs'),require('./chunk-7RC6RBS6.cjs');var chunkZDJTDFTR_cjs=require('./chunk-ZDJTDFTR.cjs');require('./chunk-ZSLVLMO5.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-QQHHZPEW.cjs'),require('./chunk-ZE5KKMBV.cjs'),require('./chunk-TMQ37JQY.cjs'),require('./chunk-ABVDKMNF.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-FDKTESBC.cjs');var chunkTPPM4QSS_cjs=require('./chunk-TPPM4QSS.cjs');require('./chunk-E4HAKNBQ.cjs');var chunkGJZIJK2Q_cjs=require('./chunk-GJZIJK2Q.cjs');require('./chunk-ZKFCKAIX.cjs');var chunkO5PO4D2A_cjs=require('./chunk-O5PO4D2A.cjs');require('./chunk-CQLCTKMX.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-6EYKVQT3.cjs'),require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-J4LSAHCY.cjs'),require('./chunk-EZKR44MA.cjs');var chunkGXO7TSXQ_cjs=require('./chunk-GXO7TSXQ.cjs');var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},V=/^[a-z_][a-z0-9_]*$/i,N=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function d(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function O(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw chunkGXO7TSXQ_cjs.c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${d(e)}`,expected:`a ${n.type}`,found:d(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function R(e,n,t){switch(n){case "number":if(typeof e=="number")return chunkGJZIJK2Q_cjs.n(e);break;case "string":if(typeof e=="string")return chunkGJZIJK2Q_cjs.t(e);break;case "boolean":if(typeof e=="boolean")return chunkGJZIJK2Q_cjs.L(e);break}throw chunkGXO7TSXQ_cjs.c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,a){n.consume("LPAREN");let i=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(chunkZDJTDFTR_cjs.a.Lowest,a),i++;n.match("COMMA");)n.parseExpression(chunkZDJTDFTR_cjs.a.Lowest,a),i++;n.consume("RPAREN"),a.emitPluginCall(this.fnName,i);}};function D(e){let n=e.args.length;return t=>{if(t.length!==n)throw chunkGXO7TSXQ_cjs.c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let a=new Array(n);for(let s=0;s<n;s++)a[s]=O(t[s],e.args[s],e.name);let i=e.call(...a);return R(i,e.returns,e.name)}}function h(e){if(typeof e?.name!="string"||!V.test(e.name))throw chunkGXO7TSXQ_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw chunkGXO7TSXQ_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw chunkGXO7TSXQ_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!N.has(n.type))throw chunkGXO7TSXQ_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!N.has(e.returns))throw chunkGXO7TSXQ_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw chunkGXO7TSXQ_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function k(e){h(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:D(e)}}}function U(e={}){let{extraPackages:n=[],...t}=e;return new chunkYSHWNCDH_cjs.n({...t,packages:n.length>0?[...chunkDFMAZ6XM_cjs.z,...n]:chunkDFMAZ6XM_cjs.z})}Object.defineProperty(exports,"ExpressionEngine",{enumerable:true,get:function(){return chunkYSHWNCDH_cjs.n}});Object.defineProperty(exports,"SNAPSHOT_FORMAT",{enumerable:true,get:function(){return chunkYSHWNCDH_cjs.d}});Object.defineProperty(exports,"SNAPSHOT_VERSION",{enumerable:true,get:function(){return chunkYSHWNCDH_cjs.e}});Object.defineProperty(exports,"SnapshotErrorCodes",{enumerable:true,get:function(){return chunkYSHWNCDH_cjs.f}});Object.defineProperty(exports,"assertEngineVersionCompatible",{enumerable:true,get:function(){return chunkYSHWNCDH_cjs.c}});Object.defineProperty(exports,"checkEngineVersionCompatibility",{enumerable:true,get:function(){return chunkYSHWNCDH_cjs.b}});Object.defineProperty(exports,"checkPackageCompatibility",{enumerable:true,get:function(){return chunkYSHWNCDH_cjs.a}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return chunkAZX4NTYN_cjs.c}});Object.defineProperty(exports,"dateCalendarInZone",{enumerable:true,get:function(){return chunkTPPM4QSS_cjs.d}});Object.defineProperty(exports,"Value",{enumerable:true,get:function(){return chunkGJZIJK2Q_cjs.m}});Object.defineProperty(exports,"ValueType",{enumerable:true,get:function(){return chunkGJZIJK2Q_cjs.g}});Object.defineProperty(exports,"ENGINE_VERSION",{enumerable:true,get:function(){return chunkO5PO4D2A_cjs.a}});exports.DefineFunctionErrorCodes=r;exports.createEngine=U;exports.defineFunction=k;//# sourceMappingURL=index.cjs.map
1
+ 'use strict';require('./chunk-FSNBYRNA.cjs'),require('./chunk-EFJCC6FJ.cjs');var chunkIIBR4LVH_cjs=require('./chunk-IIBR4LVH.cjs');require('./chunk-GWEINEJG.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-ZVPZQ66D.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-2G3AW6OQ.cjs'),require('./chunk-HG4NPDN5.cjs');var chunkQXGKONTZ_cjs=require('./chunk-QXGKONTZ.cjs');require('./chunk-R2SZFJTT.cjs');var chunkYIXCPLCN_cjs=require('./chunk-YIXCPLCN.cjs');require('./chunk-KYE5BWPN.cjs'),require('./chunk-W5BBKLNS.cjs');var chunkWXOJ3DS3_cjs=require('./chunk-WXOJ3DS3.cjs');require('./chunk-UMW5PO42.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-5NQE5JMU.cjs'),require('./chunk-YLTNXYA7.cjs'),require('./chunk-2YNRIT2L.cjs'),require('./chunk-ABVDKMNF.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-UBKWHRFL.cjs');var chunk5J2XDCSV_cjs=require('./chunk-5J2XDCSV.cjs');require('./chunk-E4HAKNBQ.cjs');var chunkO5ZLOZPH_cjs=require('./chunk-O5ZLOZPH.cjs');require('./chunk-ZKFCKAIX.cjs');var chunkRVNW627Y_cjs=require('./chunk-RVNW627Y.cjs');require('./chunk-TTHCH7V2.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-U7CNADCJ.cjs'),require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-J4LSAHCY.cjs'),require('./chunk-EZKR44MA.cjs');var chunkHTAT4MGN_cjs=require('./chunk-HTAT4MGN.cjs');var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},V=/^[a-z_][a-z0-9_]*$/i,N=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function d(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function O(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw chunkHTAT4MGN_cjs.c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${d(e)}`,expected:`a ${n.type}`,found:d(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function R(e,n,t){switch(n){case "number":if(typeof e=="number")return chunkO5ZLOZPH_cjs.n(e);break;case "string":if(typeof e=="string")return chunkO5ZLOZPH_cjs.t(e);break;case "boolean":if(typeof e=="boolean")return chunkO5ZLOZPH_cjs.L(e);break}throw chunkHTAT4MGN_cjs.c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,a){n.consume("LPAREN");let i=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(chunkWXOJ3DS3_cjs.a.Lowest,a),i++;n.match("COMMA");)n.parseExpression(chunkWXOJ3DS3_cjs.a.Lowest,a),i++;n.consume("RPAREN"),a.emitPluginCall(this.fnName,i);}};function D(e){let n=e.args.length;return t=>{if(t.length!==n)throw chunkHTAT4MGN_cjs.c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let a=new Array(n);for(let s=0;s<n;s++)a[s]=O(t[s],e.args[s],e.name);let i=e.call(...a);return R(i,e.returns,e.name)}}function h(e){if(typeof e?.name!="string"||!V.test(e.name))throw chunkHTAT4MGN_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw chunkHTAT4MGN_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw chunkHTAT4MGN_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!N.has(n.type))throw chunkHTAT4MGN_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!N.has(e.returns))throw chunkHTAT4MGN_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw chunkHTAT4MGN_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function k(e){h(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:D(e)}}}function U(e={}){let{extraPackages:n=[],...t}=e;return new chunkIIBR4LVH_cjs.n({...t,packages:n.length>0?[...chunkYIXCPLCN_cjs.z,...n]:chunkYIXCPLCN_cjs.z})}Object.defineProperty(exports,"ExpressionEngine",{enumerable:true,get:function(){return chunkIIBR4LVH_cjs.n}});Object.defineProperty(exports,"SNAPSHOT_FORMAT",{enumerable:true,get:function(){return chunkIIBR4LVH_cjs.d}});Object.defineProperty(exports,"SNAPSHOT_VERSION",{enumerable:true,get:function(){return chunkIIBR4LVH_cjs.e}});Object.defineProperty(exports,"SnapshotErrorCodes",{enumerable:true,get:function(){return chunkIIBR4LVH_cjs.f}});Object.defineProperty(exports,"assertEngineVersionCompatible",{enumerable:true,get:function(){return chunkIIBR4LVH_cjs.c}});Object.defineProperty(exports,"checkEngineVersionCompatibility",{enumerable:true,get:function(){return chunkIIBR4LVH_cjs.b}});Object.defineProperty(exports,"checkPackageCompatibility",{enumerable:true,get:function(){return chunkIIBR4LVH_cjs.a}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return chunkQXGKONTZ_cjs.c}});Object.defineProperty(exports,"dateCalendarInZone",{enumerable:true,get:function(){return chunk5J2XDCSV_cjs.d}});Object.defineProperty(exports,"Value",{enumerable:true,get:function(){return chunkO5ZLOZPH_cjs.m}});Object.defineProperty(exports,"ValueType",{enumerable:true,get:function(){return chunkO5ZLOZPH_cjs.g}});Object.defineProperty(exports,"ENGINE_VERSION",{enumerable:true,get:function(){return chunkRVNW627Y_cjs.a}});exports.DefineFunctionErrorCodes=r;exports.createEngine=U;exports.defineFunction=k;//# sourceMappingURL=index.cjs.map
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-BHBCFswo.cjs';
2
- export { D as DateOrderSource, b as DateReading, c as DateReadingPolicy, d as EngineRestoreOptions, e as EngineSnapshot, f as Explanation, g as ExplanationStep, R as ResolvedDateOrder, S as SNAPSHOT_FORMAT, h as SNAPSHOT_VERSION, i as SerializedAnonymousBody, j as SerializedBytecode, k as SerializedDecimal, l as SerializedLineCacheEntry, m as SerializedNumber, n as SerializedRational, o as SerializedUserFunction, p as SerializedValue, q as SnapshotErrorCodes } from './PackageRegistry-BHBCFswo.cjs';
3
- export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-CNiTtC6S.cjs';
1
+ import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-CevYUzRn.cjs';
2
+ export { D as DateOrderSource, b as DateReading, c as DateReadingPolicy, d as EngineRestoreOptions, e as EngineSnapshot, f as Explanation, g as ExplanationStep, R as ResolvedDateOrder, S as SNAPSHOT_FORMAT, h as SNAPSHOT_VERSION, i as SerializedAnonymousBody, j as SerializedBytecode, k as SerializedDecimal, l as SerializedLineCacheEntry, m as SerializedNumber, n as SerializedRational, o as SerializedUserFunction, p as SerializedValue, q as SnapshotErrorCodes } from './PackageRegistry-CevYUzRn.cjs';
3
+ export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-DW18LqED.cjs';
4
4
  export { E as EngineConfigOverride } from './Configuration-BxriK9Kw.cjs';
5
5
  export { D as DatetimeGrain, V as Value, b as ValueType } from './Value-BYHw-x7q.cjs';
6
6
  export { formatValue } from './format.cjs';
@@ -12,12 +12,12 @@ import './Parselet-DF3864la.cjs';
12
12
  import './BytecodeBuilder-DSWKZi4f.cjs';
13
13
  import './Token-D8f7yaz1.cjs';
14
14
  import './pipeline-BYkKNpql.cjs';
15
- import './Lexer-DhGhoAa2.cjs';
16
- import './EngineError-C-kBwYlN.cjs';
15
+ import './Lexer-DOXatsjO.cjs';
16
+ import './EngineError-CA2tiVaI.cjs';
17
17
  import './resolvers.cjs';
18
18
  import '@tanstack/query-core';
19
19
  import './TokenNormalizer-Pe3_390t.cjs';
20
- import './VMBuiltins-kv4rr0y5.cjs';
20
+ import './VMBuiltins-AIivGl0a.cjs';
21
21
 
22
22
  /**
23
23
  * A higher-level, declarative way to contribute a single `name(args)`
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-CNZUwWHJ.js';
2
- export { D as DateOrderSource, b as DateReading, c as DateReadingPolicy, d as EngineRestoreOptions, e as EngineSnapshot, f as Explanation, g as ExplanationStep, R as ResolvedDateOrder, S as SNAPSHOT_FORMAT, h as SNAPSHOT_VERSION, i as SerializedAnonymousBody, j as SerializedBytecode, k as SerializedDecimal, l as SerializedLineCacheEntry, m as SerializedNumber, n as SerializedRational, o as SerializedUserFunction, p as SerializedValue, q as SnapshotErrorCodes } from './PackageRegistry-CNZUwWHJ.js';
3
- export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-fj_f7uqC.js';
1
+ import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-Dl9kNP14.js';
2
+ export { D as DateOrderSource, b as DateReading, c as DateReadingPolicy, d as EngineRestoreOptions, e as EngineSnapshot, f as Explanation, g as ExplanationStep, R as ResolvedDateOrder, S as SNAPSHOT_FORMAT, h as SNAPSHOT_VERSION, i as SerializedAnonymousBody, j as SerializedBytecode, k as SerializedDecimal, l as SerializedLineCacheEntry, m as SerializedNumber, n as SerializedRational, o as SerializedUserFunction, p as SerializedValue, q as SnapshotErrorCodes } from './PackageRegistry-Dl9kNP14.js';
3
+ export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-DT1IPlQx.js';
4
4
  export { E as EngineConfigOverride } from './Configuration-BxriK9Kw.js';
5
5
  export { D as DatetimeGrain, V as Value, b as ValueType } from './Value-BYHw-x7q.js';
6
6
  export { formatValue } from './format.js';
@@ -12,12 +12,12 @@ import './Parselet-Dgymjxzd.js';
12
12
  import './BytecodeBuilder-DSWKZi4f.js';
13
13
  import './Token-D8f7yaz1.js';
14
14
  import './pipeline-Cl7KW8CB.js';
15
- import './Lexer-DqtnZMC5.js';
16
- import './EngineError-C-kBwYlN.js';
15
+ import './Lexer-B62Hn9I-.js';
16
+ import './EngineError-CA2tiVaI.js';
17
17
  import './resolvers.js';
18
18
  import '@tanstack/query-core';
19
19
  import './TokenNormalizer-IF7nPRMp.js';
20
- import './VMBuiltins-CZiZRKn-.js';
20
+ import './VMBuiltins-CbuFfIgQ.js';
21
21
 
22
22
  /**
23
23
  * A higher-level, declarative way to contribute a single `name(args)`
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import'./chunk-UVHD7BBC.js';import'./chunk-RAF57WYO.js';import {n}from'./chunk-BCY2WY5P.js';export{n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,c as assertEngineVersionCompatible,b as checkEngineVersionCompatibility,a as checkPackageCompatibility}from'./chunk-BCY2WY5P.js';import'./chunk-VQO54ZMA.js';import'./chunk-2RWAXT6O.js';import'./chunk-IJHL3LMH.js';import'./chunk-MIQBJGGR.js';import'./chunk-TC23XEAV.js';import'./chunk-JP4JMQOG.js';export{c as formatValue}from'./chunk-ZC2NPRLO.js';import'./chunk-XEIDV5JP.js';import {z}from'./chunk-PQFI55AC.js';import'./chunk-HANGBVEE.js';import'./chunk-S3ODNMJS.js';import {a}from'./chunk-YG7UWQFV.js';import'./chunk-LE6WZLJ4.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-CL7DM2FX.js';import'./chunk-D4VBWPWN.js';import'./chunk-ESZNJQ2C.js';import'./chunk-TZYMXNIB.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-LTUYWJGO.js';export{d as dateCalendarInZone}from'./chunk-BLJ6E577.js';import'./chunk-J4K72CQN.js';import {L,t,n as n$1}from'./chunk-LQIRBP4Q.js';export{m as Value,g as ValueType}from'./chunk-LQIRBP4Q.js';import'./chunk-4CNYGIND.js';export{a as ENGINE_VERSION}from'./chunk-REZQFPVX.js';import'./chunk-Y7XRA2EV.js';import'./chunk-JPFCXLJV.js';import'./chunk-RRUGQ6DM.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import {c}from'./chunk-VB6QMU2W.js';var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},V=/^[a-z_][a-z0-9_]*$/i,N=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function d(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function O(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${d(e)}`,expected:`a ${n.type}`,found:d(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function R(e,n,t$1){switch(n){case "number":if(typeof e=="number")return n$1(e);break;case "string":if(typeof e=="string")return t(e);break;case "boolean":if(typeof e=="boolean")return L(e);break}throw c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t$1}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t$1,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,a$1){n.consume("LPAREN");let i=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(a.Lowest,a$1),i++;n.match("COMMA");)n.parseExpression(a.Lowest,a$1),i++;n.consume("RPAREN"),a$1.emitPluginCall(this.fnName,i);}};function D(e){let n=e.args.length;return t=>{if(t.length!==n)throw c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let a=new Array(n);for(let s=0;s<n;s++)a[s]=O(t[s],e.args[s],e.name);let i=e.call(...a);return R(i,e.returns,e.name)}}function h(e){if(typeof e?.name!="string"||!V.test(e.name))throw c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!N.has(n.type))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!N.has(e.returns))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function k(e){h(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:D(e)}}}function U(e={}){let{extraPackages:n$1=[],...t}=e;return new n({...t,packages:n$1.length>0?[...z,...n$1]:z})}export{r as DefineFunctionErrorCodes,U as createEngine,k as defineFunction};//# sourceMappingURL=index.js.map
1
+ import'./chunk-JHHSQ2YR.js';import'./chunk-RAF57WYO.js';import {n}from'./chunk-APU5LON7.js';export{n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,c as assertEngineVersionCompatible,b as checkEngineVersionCompatibility,a as checkPackageCompatibility}from'./chunk-APU5LON7.js';import'./chunk-RRJ77SF6.js';import'./chunk-2RWAXT6O.js';import'./chunk-IJHL3LMH.js';import'./chunk-MIQBJGGR.js';import'./chunk-IEBWLNI5.js';import'./chunk-JP4JMQOG.js';export{c as formatValue}from'./chunk-N22D5ZD4.js';import'./chunk-XEIDV5JP.js';import {z}from'./chunk-3LWK33TJ.js';import'./chunk-Z5VBXZ4A.js';import'./chunk-7ASISMXA.js';import {a}from'./chunk-7ZYYWSLT.js';import'./chunk-MONPHAHO.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-IAL64FCP.js';import'./chunk-I6WGOM3C.js';import'./chunk-DDVDRWCK.js';import'./chunk-TZYMXNIB.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-6T5HPIZX.js';export{d as dateCalendarInZone}from'./chunk-A7RRWNLE.js';import'./chunk-J4K72CQN.js';import {L,t,n as n$1}from'./chunk-LV7PJ2MU.js';export{m as Value,g as ValueType}from'./chunk-LV7PJ2MU.js';import'./chunk-4CNYGIND.js';export{a as ENGINE_VERSION}from'./chunk-POIHAKBX.js';import'./chunk-OKSAUK5C.js';import'./chunk-JPFCXLJV.js';import'./chunk-OLATJABN.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import {c}from'./chunk-Z5DA5UXY.js';var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},V=/^[a-z_][a-z0-9_]*$/i,N=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function d(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function O(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${d(e)}`,expected:`a ${n.type}`,found:d(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function R(e,n,t$1){switch(n){case "number":if(typeof e=="number")return n$1(e);break;case "string":if(typeof e=="string")return t(e);break;case "boolean":if(typeof e=="boolean")return L(e);break}throw c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t$1}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t$1,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,a$1){n.consume("LPAREN");let i=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(a.Lowest,a$1),i++;n.match("COMMA");)n.parseExpression(a.Lowest,a$1),i++;n.consume("RPAREN"),a$1.emitPluginCall(this.fnName,i);}};function D(e){let n=e.args.length;return t=>{if(t.length!==n)throw c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let a=new Array(n);for(let s=0;s<n;s++)a[s]=O(t[s],e.args[s],e.name);let i=e.call(...a);return R(i,e.returns,e.name)}}function h(e){if(typeof e?.name!="string"||!V.test(e.name))throw c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!N.has(n.type))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!N.has(e.returns))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function k(e){h(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:D(e)}}}function U(e={}){let{extraPackages:n$1=[],...t}=e;return new n({...t,packages:n$1.length>0?[...z,...n$1]:z})}export{r as DefineFunctionErrorCodes,U as createEngine,k as defineFunction};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import { C as CompletionItem } from './PackageRegistry-BHBCFswo.cjs';
2
- export { L as LanguageService, r as LanguageServiceOptions, s as SemanticToken } from './PackageRegistry-BHBCFswo.cjs';
3
- import { e as TokenCategory } from './Lexer-DhGhoAa2.cjs';
1
+ import { C as CompletionItem } from './PackageRegistry-CevYUzRn.cjs';
2
+ export { L as LanguageService, r as LanguageServiceOptions, s as SemanticToken } from './PackageRegistry-CevYUzRn.cjs';
3
+ import { e as TokenCategory } from './Lexer-DOXatsjO.cjs';
4
4
  import './Parselet-DF3864la.cjs';
5
5
  import './BytecodeBuilder-DSWKZi4f.cjs';
6
6
  import './Token-D8f7yaz1.cjs';
@@ -10,8 +10,8 @@ import './CalendarBackend-MdS3Bb4P.cjs';
10
10
  import './resolvers.cjs';
11
11
  import '@tanstack/query-core';
12
12
  import './TokenNormalizer-Pe3_390t.cjs';
13
- import './VMBuiltins-kv4rr0y5.cjs';
14
- import './EngineError-C-kBwYlN.cjs';
13
+ import './VMBuiltins-AIivGl0a.cjs';
14
+ import './EngineError-CA2tiVaI.cjs';
15
15
  import './Configuration-BxriK9Kw.cjs';
16
16
 
17
17
  /**
@@ -1,6 +1,6 @@
1
- import { C as CompletionItem } from './PackageRegistry-CNZUwWHJ.js';
2
- export { L as LanguageService, r as LanguageServiceOptions, s as SemanticToken } from './PackageRegistry-CNZUwWHJ.js';
3
- import { e as TokenCategory } from './Lexer-DqtnZMC5.js';
1
+ import { C as CompletionItem } from './PackageRegistry-Dl9kNP14.js';
2
+ export { L as LanguageService, r as LanguageServiceOptions, s as SemanticToken } from './PackageRegistry-Dl9kNP14.js';
3
+ import { e as TokenCategory } from './Lexer-B62Hn9I-.js';
4
4
  import './Parselet-Dgymjxzd.js';
5
5
  import './BytecodeBuilder-DSWKZi4f.js';
6
6
  import './Token-D8f7yaz1.js';
@@ -10,8 +10,8 @@ import './CalendarBackend-MdS3Bb4P.js';
10
10
  import './resolvers.js';
11
11
  import '@tanstack/query-core';
12
12
  import './TokenNormalizer-IF7nPRMp.js';
13
- import './VMBuiltins-CZiZRKn-.js';
14
- import './EngineError-C-kBwYlN.js';
13
+ import './VMBuiltins-CbuFfIgQ.js';
14
+ import './EngineError-CA2tiVaI.js';
15
15
  import './Configuration-BxriK9Kw.js';
16
16
 
17
17
  /**
package/dist/lexer.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkCQLCTKMX_cjs=require('./chunk-CQLCTKMX.cjs');require('./chunk-Y7O4D3BJ.cjs');var chunk6EYKVQT3_cjs=require('./chunk-6EYKVQT3.cjs'),chunkYBQOQTVL_cjs=require('./chunk-YBQOQTVL.cjs'),chunkS3DFU33X_cjs=require('./chunk-S3DFU33X.cjs'),chunkJ4LSAHCY_cjs=require('./chunk-J4LSAHCY.cjs');require('./chunk-EZKR44MA.cjs'),require('./chunk-GXO7TSXQ.cjs');var i=class{constructor(){this.classes=[];this.localeKeywordMap=null;this.localePhraseMap=null;this.unitNames=null;}register(e){this.classes.push(e);}unregister(e){this.classes=this.classes.filter(r=>r.tokenType!==e);}setLocale(e,r){this.localeKeywordMap=e,this.localePhraseMap=r??null;}setUnits(e){this.unitNames=e;}build(){let e=new Map;if(this.localeKeywordMap)for(let[s,t]of Object.entries(this.localeKeywordMap))e.set(s.toLowerCase(),t);let r=[...this.classes].sort((s,t)=>(s.priority??0)-(t.priority??0));for(let s of r)for(let t of Object.keys(s.keywords))e.set(t.toLowerCase(),s.tokenType);let o=this.buildPhraseTrie(),n=this.buildPhraseStartWords();return {keywordToType:e,phraseTrie:o,phraseStartWords:n,unitNames:this.unitNames??new Set}}buildPhraseTrie(){let e={children:new Map};if(this.localePhraseMap)for(let[r,o]of Object.entries(this.localePhraseMap))this.insertPhrase(e,r.toLowerCase(),o);for(let r of this.classes)if(r.phrases)for(let o of Object.keys(r.phrases))this.insertPhrase(e,o.toLowerCase(),r.tokenType);return e.children.size>0?e:null}insertPhrase(e,r,o){let n=r.split(" "),s=e;for(let t of n)s.children.has(t)||s.children.set(t,{children:new Map}),s=s.children.get(t);s.type||(s.type=o);}buildPhraseStartWords(){let e=new Set;if(this.localePhraseMap)for(let r of Object.keys(this.localePhraseMap)){let o=r.split(" ")[0].toLowerCase();e.add(o);}for(let r of this.classes)if(r.phrases)for(let o of Object.keys(r.phrases)){let n=o.split(" ")[0].toLowerCase();e.add(n);}return e}};function m(p="en"){let e=chunkS3DFU33X_cjs.a(p),r=new i;return r.setLocale(e.keywordMap,chunk6EYKVQT3_cjs.c),r.setUnits(chunkJ4LSAHCY_cjs.a),r.build()}Object.defineProperty(exports,"Lexer",{enumerable:true,get:function(){return chunkCQLCTKMX_cjs.b}});Object.defineProperty(exports,"LexerState",{enumerable:true,get:function(){return chunkCQLCTKMX_cjs.a}});Object.defineProperty(exports,"sharedLexer",{enumerable:true,get:function(){return chunkCQLCTKMX_cjs.c}});Object.defineProperty(exports,"ExpressionLexer",{enumerable:true,get:function(){return chunk6EYKVQT3_cjs.b}});Object.defineProperty(exports,"LexerToken",{enumerable:true,get:function(){return chunk6EYKVQT3_cjs.a}});Object.defineProperty(exports,"TokenTypes",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.a}});Object.defineProperty(exports,"registerAllTokenTypes",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.e}});Object.defineProperty(exports,"registerTokenType",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.b}});Object.defineProperty(exports,"tokenTypeId",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.c}});Object.defineProperty(exports,"tokenTypeName",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.d}});Object.defineProperty(exports,"knownUnits",{enumerable:true,get:function(){return chunkJ4LSAHCY_cjs.a}});exports.buildTokenLookup=m;//# sourceMappingURL=lexer.cjs.map
1
+ 'use strict';var chunkTTHCH7V2_cjs=require('./chunk-TTHCH7V2.cjs');require('./chunk-Y7O4D3BJ.cjs');var chunkU7CNADCJ_cjs=require('./chunk-U7CNADCJ.cjs'),chunkYBQOQTVL_cjs=require('./chunk-YBQOQTVL.cjs'),chunkS3DFU33X_cjs=require('./chunk-S3DFU33X.cjs'),chunkJ4LSAHCY_cjs=require('./chunk-J4LSAHCY.cjs');require('./chunk-EZKR44MA.cjs'),require('./chunk-HTAT4MGN.cjs');var i=class{constructor(){this.classes=[];this.localeKeywordMap=null;this.localePhraseMap=null;this.unitNames=null;}register(e){this.classes.push(e);}unregister(e){this.classes=this.classes.filter(r=>r.tokenType!==e);}setLocale(e,r){this.localeKeywordMap=e,this.localePhraseMap=r??null;}setUnits(e){this.unitNames=e;}build(){let e=new Map;if(this.localeKeywordMap)for(let[s,t]of Object.entries(this.localeKeywordMap))e.set(s.toLowerCase(),t);let r=[...this.classes].sort((s,t)=>(s.priority??0)-(t.priority??0));for(let s of r)for(let t of Object.keys(s.keywords))e.set(t.toLowerCase(),s.tokenType);let o=this.buildPhraseTrie(),n=this.buildPhraseStartWords();return {keywordToType:e,phraseTrie:o,phraseStartWords:n,unitNames:this.unitNames??new Set}}buildPhraseTrie(){let e={children:new Map};if(this.localePhraseMap)for(let[r,o]of Object.entries(this.localePhraseMap))this.insertPhrase(e,r.toLowerCase(),o);for(let r of this.classes)if(r.phrases)for(let o of Object.keys(r.phrases))this.insertPhrase(e,o.toLowerCase(),r.tokenType);return e.children.size>0?e:null}insertPhrase(e,r,o){let n=r.split(" "),s=e;for(let t of n)s.children.has(t)||s.children.set(t,{children:new Map}),s=s.children.get(t);s.type||(s.type=o);}buildPhraseStartWords(){let e=new Set;if(this.localePhraseMap)for(let r of Object.keys(this.localePhraseMap)){let o=r.split(" ")[0].toLowerCase();e.add(o);}for(let r of this.classes)if(r.phrases)for(let o of Object.keys(r.phrases)){let n=o.split(" ")[0].toLowerCase();e.add(n);}return e}};function m(p="en"){let e=chunkS3DFU33X_cjs.a(p),r=new i;return r.setLocale(e.keywordMap,chunkU7CNADCJ_cjs.c),r.setUnits(chunkJ4LSAHCY_cjs.a),r.build()}Object.defineProperty(exports,"Lexer",{enumerable:true,get:function(){return chunkTTHCH7V2_cjs.b}});Object.defineProperty(exports,"LexerState",{enumerable:true,get:function(){return chunkTTHCH7V2_cjs.a}});Object.defineProperty(exports,"sharedLexer",{enumerable:true,get:function(){return chunkTTHCH7V2_cjs.c}});Object.defineProperty(exports,"ExpressionLexer",{enumerable:true,get:function(){return chunkU7CNADCJ_cjs.b}});Object.defineProperty(exports,"LexerToken",{enumerable:true,get:function(){return chunkU7CNADCJ_cjs.a}});Object.defineProperty(exports,"TokenTypes",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.a}});Object.defineProperty(exports,"registerAllTokenTypes",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.e}});Object.defineProperty(exports,"registerTokenType",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.b}});Object.defineProperty(exports,"tokenTypeId",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.c}});Object.defineProperty(exports,"tokenTypeName",{enumerable:true,get:function(){return chunkYBQOQTVL_cjs.d}});Object.defineProperty(exports,"knownUnits",{enumerable:true,get:function(){return chunkJ4LSAHCY_cjs.a}});exports.buildTokenLookup=m;//# sourceMappingURL=lexer.cjs.map
2
2
  //# sourceMappingURL=lexer.cjs.map
package/dist/lexer.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { T as TokenLookup } from './Lexer-DhGhoAa2.cjs';
2
- export { E as ExpressionLexer, I as InlineSolveSpan, L as Lexer, a as LexerState, b as LexerToken, c as LexerVocabulary, d as LineClassification, M as MarkdownLineType, S as ScanLineResult, s as sharedLexer } from './Lexer-DhGhoAa2.cjs';
1
+ import { T as TokenLookup } from './Lexer-DOXatsjO.cjs';
2
+ export { E as ExpressionLexer, I as InlineSolveSpan, L as Lexer, a as LexerState, b as LexerToken, c as LexerVocabulary, d as LineClassification, M as MarkdownLineType, S as ScanLineResult, s as sharedLexer } from './Lexer-DOXatsjO.cjs';
3
3
  export { T as Token, a as TokenType, b as TokenTypes, r as registerAllTokenTypes, c as registerTokenType, t as tokenTypeId, d as tokenTypeName } from './Token-D8f7yaz1.cjs';
4
- import './EngineError-C-kBwYlN.cjs';
4
+ import './EngineError-CA2tiVaI.cjs';
5
5
 
6
6
  /**
7
7
  * The set of unit identifiers the lexer will turn into a UNIT token.
package/dist/lexer.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { T as TokenLookup } from './Lexer-DqtnZMC5.js';
2
- export { E as ExpressionLexer, I as InlineSolveSpan, L as Lexer, a as LexerState, b as LexerToken, c as LexerVocabulary, d as LineClassification, M as MarkdownLineType, S as ScanLineResult, s as sharedLexer } from './Lexer-DqtnZMC5.js';
1
+ import { T as TokenLookup } from './Lexer-B62Hn9I-.js';
2
+ export { E as ExpressionLexer, I as InlineSolveSpan, L as Lexer, a as LexerState, b as LexerToken, c as LexerVocabulary, d as LineClassification, M as MarkdownLineType, S as ScanLineResult, s as sharedLexer } from './Lexer-B62Hn9I-.js';
3
3
  export { T as Token, a as TokenType, b as TokenTypes, r as registerAllTokenTypes, c as registerTokenType, t as tokenTypeId, d as tokenTypeName } from './Token-D8f7yaz1.js';
4
- import './EngineError-C-kBwYlN.js';
4
+ import './EngineError-CA2tiVaI.js';
5
5
 
6
6
  /**
7
7
  * The set of unit identifiers the lexer will turn into a UNIT token.
package/dist/lexer.js CHANGED
@@ -1,2 +1,2 @@
1
- export{b as Lexer,a as LexerState,c as sharedLexer}from'./chunk-Y7XRA2EV.js';import'./chunk-JPFCXLJV.js';import {c}from'./chunk-RRUGQ6DM.js';export{b as ExpressionLexer,a as LexerToken}from'./chunk-RRUGQ6DM.js';export{a as TokenTypes,e as registerAllTokenTypes,b as registerTokenType,c as tokenTypeId,d as tokenTypeName}from'./chunk-FAO6DQ74.js';import {a}from'./chunk-LHLW7JLS.js';import {a as a$1}from'./chunk-CHVGFTO3.js';export{a as knownUnits}from'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import'./chunk-VB6QMU2W.js';var i=class{constructor(){this.classes=[];this.localeKeywordMap=null;this.localePhraseMap=null;this.unitNames=null;}register(e){this.classes.push(e);}unregister(e){this.classes=this.classes.filter(r=>r.tokenType!==e);}setLocale(e,r){this.localeKeywordMap=e,this.localePhraseMap=r??null;}setUnits(e){this.unitNames=e;}build(){let e=new Map;if(this.localeKeywordMap)for(let[s,t]of Object.entries(this.localeKeywordMap))e.set(s.toLowerCase(),t);let r=[...this.classes].sort((s,t)=>(s.priority??0)-(t.priority??0));for(let s of r)for(let t of Object.keys(s.keywords))e.set(t.toLowerCase(),s.tokenType);let o=this.buildPhraseTrie(),n=this.buildPhraseStartWords();return {keywordToType:e,phraseTrie:o,phraseStartWords:n,unitNames:this.unitNames??new Set}}buildPhraseTrie(){let e={children:new Map};if(this.localePhraseMap)for(let[r,o]of Object.entries(this.localePhraseMap))this.insertPhrase(e,r.toLowerCase(),o);for(let r of this.classes)if(r.phrases)for(let o of Object.keys(r.phrases))this.insertPhrase(e,o.toLowerCase(),r.tokenType);return e.children.size>0?e:null}insertPhrase(e,r,o){let n=r.split(" "),s=e;for(let t of n)s.children.has(t)||s.children.set(t,{children:new Map}),s=s.children.get(t);s.type||(s.type=o);}buildPhraseStartWords(){let e=new Set;if(this.localePhraseMap)for(let r of Object.keys(this.localePhraseMap)){let o=r.split(" ")[0].toLowerCase();e.add(o);}for(let r of this.classes)if(r.phrases)for(let o of Object.keys(r.phrases)){let n=o.split(" ")[0].toLowerCase();e.add(n);}return e}};function m(p="en"){let e=a(p),r=new i;return r.setLocale(e.keywordMap,c),r.setUnits(a$1),r.build()}export{m as buildTokenLookup};//# sourceMappingURL=lexer.js.map
1
+ export{b as Lexer,a as LexerState,c as sharedLexer}from'./chunk-OKSAUK5C.js';import'./chunk-JPFCXLJV.js';import {c}from'./chunk-OLATJABN.js';export{b as ExpressionLexer,a as LexerToken}from'./chunk-OLATJABN.js';export{a as TokenTypes,e as registerAllTokenTypes,b as registerTokenType,c as tokenTypeId,d as tokenTypeName}from'./chunk-FAO6DQ74.js';import {a}from'./chunk-LHLW7JLS.js';import {a as a$1}from'./chunk-CHVGFTO3.js';export{a as knownUnits}from'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import'./chunk-Z5DA5UXY.js';var i=class{constructor(){this.classes=[];this.localeKeywordMap=null;this.localePhraseMap=null;this.unitNames=null;}register(e){this.classes.push(e);}unregister(e){this.classes=this.classes.filter(r=>r.tokenType!==e);}setLocale(e,r){this.localeKeywordMap=e,this.localePhraseMap=r??null;}setUnits(e){this.unitNames=e;}build(){let e=new Map;if(this.localeKeywordMap)for(let[s,t]of Object.entries(this.localeKeywordMap))e.set(s.toLowerCase(),t);let r=[...this.classes].sort((s,t)=>(s.priority??0)-(t.priority??0));for(let s of r)for(let t of Object.keys(s.keywords))e.set(t.toLowerCase(),s.tokenType);let o=this.buildPhraseTrie(),n=this.buildPhraseStartWords();return {keywordToType:e,phraseTrie:o,phraseStartWords:n,unitNames:this.unitNames??new Set}}buildPhraseTrie(){let e={children:new Map};if(this.localePhraseMap)for(let[r,o]of Object.entries(this.localePhraseMap))this.insertPhrase(e,r.toLowerCase(),o);for(let r of this.classes)if(r.phrases)for(let o of Object.keys(r.phrases))this.insertPhrase(e,o.toLowerCase(),r.tokenType);return e.children.size>0?e:null}insertPhrase(e,r,o){let n=r.split(" "),s=e;for(let t of n)s.children.has(t)||s.children.set(t,{children:new Map}),s=s.children.get(t);s.type||(s.type=o);}buildPhraseStartWords(){let e=new Set;if(this.localePhraseMap)for(let r of Object.keys(this.localePhraseMap)){let o=r.split(" ")[0].toLowerCase();e.add(o);}for(let r of this.classes)if(r.phrases)for(let o of Object.keys(r.phrases)){let n=o.split(" ")[0].toLowerCase();e.add(n);}return e}};function m(p="en"){let e=a(p),r=new i;return r.setLocale(e.keywordMap,c),r.setUnits(a$1),r.build()}export{m as buildTokenLookup};//# sourceMappingURL=lexer.js.map
2
2
  //# sourceMappingURL=lexer.js.map
@@ -1,2 +1,2 @@
1
- 'use strict';require('./chunk-NGBBNL4K.cjs');var chunkZSLVLMO5_cjs=require('./chunk-ZSLVLMO5.cjs'),chunk6EYKVQT3_cjs=require('./chunk-6EYKVQT3.cjs');require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-J4LSAHCY.cjs'),require('./chunk-EZKR44MA.cjs'),require('./chunk-GXO7TSXQ.cjs');Object.defineProperty(exports,"PhraseTrie",{enumerable:true,get:function(){return chunkZSLVLMO5_cjs.a}});Object.defineProperty(exports,"TokenNormalizer",{enumerable:true,get:function(){return chunkZSLVLMO5_cjs.c}});Object.defineProperty(exports,"createBuiltinNormalizerRules",{enumerable:true,get:function(){return chunkZSLVLMO5_cjs.f}});Object.defineProperty(exports,"createFusedToken",{enumerable:true,get:function(){return chunkZSLVLMO5_cjs.b}});Object.defineProperty(exports,"implicitMultiplyRule",{enumerable:true,get:function(){return chunkZSLVLMO5_cjs.d}});Object.defineProperty(exports,"BUILTIN_PHRASES",{enumerable:true,get:function(){return chunk6EYKVQT3_cjs.c}});//# sourceMappingURL=normalizer.cjs.map
1
+ 'use strict';require('./chunk-NGBBNL4K.cjs');var chunkUMW5PO42_cjs=require('./chunk-UMW5PO42.cjs'),chunkU7CNADCJ_cjs=require('./chunk-U7CNADCJ.cjs');require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-J4LSAHCY.cjs'),require('./chunk-EZKR44MA.cjs'),require('./chunk-HTAT4MGN.cjs');Object.defineProperty(exports,"PhraseTrie",{enumerable:true,get:function(){return chunkUMW5PO42_cjs.a}});Object.defineProperty(exports,"TokenNormalizer",{enumerable:true,get:function(){return chunkUMW5PO42_cjs.c}});Object.defineProperty(exports,"createBuiltinNormalizerRules",{enumerable:true,get:function(){return chunkUMW5PO42_cjs.f}});Object.defineProperty(exports,"createFusedToken",{enumerable:true,get:function(){return chunkUMW5PO42_cjs.b}});Object.defineProperty(exports,"implicitMultiplyRule",{enumerable:true,get:function(){return chunkUMW5PO42_cjs.d}});Object.defineProperty(exports,"BUILTIN_PHRASES",{enumerable:true,get:function(){return chunkU7CNADCJ_cjs.c}});//# sourceMappingURL=normalizer.cjs.map
2
2
  //# sourceMappingURL=normalizer.cjs.map
@@ -1,2 +1,2 @@
1
- import'./chunk-2RWAXT6O.js';export{a as PhraseTrie,c as TokenNormalizer,f as createBuiltinNormalizerRules,b as createFusedToken,d as implicitMultiplyRule}from'./chunk-LE6WZLJ4.js';export{c as BUILTIN_PHRASES}from'./chunk-RRUGQ6DM.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import'./chunk-VB6QMU2W.js';//# sourceMappingURL=normalizer.js.map
1
+ import'./chunk-2RWAXT6O.js';export{a as PhraseTrie,c as TokenNormalizer,f as createBuiltinNormalizerRules,b as createFusedToken,d as implicitMultiplyRule}from'./chunk-MONPHAHO.js';export{c as BUILTIN_PHRASES}from'./chunk-OLATJABN.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import'./chunk-Z5DA5UXY.js';//# sourceMappingURL=normalizer.js.map
2
2
  //# sourceMappingURL=normalizer.js.map
package/dist/packages.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkDFMAZ6XM_cjs=require('./chunk-DFMAZ6XM.cjs');require('./chunk-G2V33LFM.cjs');var chunk7RC6RBS6_cjs=require('./chunk-7RC6RBS6.cjs');require('./chunk-ZDJTDFTR.cjs'),require('./chunk-ZSLVLMO5.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-QQHHZPEW.cjs'),require('./chunk-ZE5KKMBV.cjs'),require('./chunk-TMQ37JQY.cjs'),require('./chunk-ABVDKMNF.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-FDKTESBC.cjs'),require('./chunk-TPPM4QSS.cjs'),require('./chunk-E4HAKNBQ.cjs'),require('./chunk-GJZIJK2Q.cjs'),require('./chunk-ZKFCKAIX.cjs'),require('./chunk-6EYKVQT3.cjs'),require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-J4LSAHCY.cjs'),require('./chunk-EZKR44MA.cjs'),require('./chunk-GXO7TSXQ.cjs');Object.defineProperty(exports,"ARITHMETIC_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.a}});Object.defineProperty(exports,"BIGINT_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.n}});Object.defineProperty(exports,"BUILTIN_PACKAGES",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.z}});Object.defineProperty(exports,"CONDITIONALS_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.o}});Object.defineProperty(exports,"CONVERTERS_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.p}});Object.defineProperty(exports,"CURRENCY_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.j}});Object.defineProperty(exports,"DATETIME_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.d}});Object.defineProperty(exports,"DICE_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.f}});Object.defineProperty(exports,"FINANCE_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.r}});Object.defineProperty(exports,"FUNCTION_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.c}});Object.defineProperty(exports,"LINES_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.w}});Object.defineProperty(exports,"MAPREDUCE_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.m}});Object.defineProperty(exports,"MATHPHRASES_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.q}});Object.defineProperty(exports,"MATRIX_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.l}});Object.defineProperty(exports,"PERCENTAGE_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.b}});Object.defineProperty(exports,"TABLES_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.x}});Object.defineProperty(exports,"TAGS_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.y}});Object.defineProperty(exports,"TIME_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.e}});Object.defineProperty(exports,"UOM_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.h}});Object.defineProperty(exports,"VARIABLES_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.g}});Object.defineProperty(exports,"VECTOR_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.k}});Object.defineProperty(exports,"WEATHER_PACKAGE",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.s}});Object.defineProperty(exports,"createCryptoPackage",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.u}});Object.defineProperty(exports,"createCurrencyPackage",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.i}});Object.defineProperty(exports,"createKnowledgePackage",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.v}});Object.defineProperty(exports,"createStocksPackage",{enumerable:true,get:function(){return chunkDFMAZ6XM_cjs.t}});Object.defineProperty(exports,"SYMBOLIC_PACKAGE",{enumerable:true,get:function(){return chunk7RC6RBS6_cjs.a}});//# sourceMappingURL=packages.cjs.map
1
+ 'use strict';var chunkYIXCPLCN_cjs=require('./chunk-YIXCPLCN.cjs');require('./chunk-KYE5BWPN.cjs');var chunkW5BBKLNS_cjs=require('./chunk-W5BBKLNS.cjs');require('./chunk-WXOJ3DS3.cjs'),require('./chunk-UMW5PO42.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-5NQE5JMU.cjs'),require('./chunk-YLTNXYA7.cjs'),require('./chunk-2YNRIT2L.cjs'),require('./chunk-ABVDKMNF.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-UBKWHRFL.cjs'),require('./chunk-5J2XDCSV.cjs'),require('./chunk-E4HAKNBQ.cjs'),require('./chunk-O5ZLOZPH.cjs'),require('./chunk-ZKFCKAIX.cjs'),require('./chunk-U7CNADCJ.cjs'),require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-J4LSAHCY.cjs'),require('./chunk-EZKR44MA.cjs'),require('./chunk-HTAT4MGN.cjs');Object.defineProperty(exports,"ARITHMETIC_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.a}});Object.defineProperty(exports,"BIGINT_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.n}});Object.defineProperty(exports,"BUILTIN_PACKAGES",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.z}});Object.defineProperty(exports,"CONDITIONALS_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.o}});Object.defineProperty(exports,"CONVERTERS_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.p}});Object.defineProperty(exports,"CURRENCY_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.j}});Object.defineProperty(exports,"DATETIME_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.d}});Object.defineProperty(exports,"DICE_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.f}});Object.defineProperty(exports,"FINANCE_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.r}});Object.defineProperty(exports,"FUNCTION_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.c}});Object.defineProperty(exports,"LINES_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.w}});Object.defineProperty(exports,"MAPREDUCE_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.m}});Object.defineProperty(exports,"MATHPHRASES_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.q}});Object.defineProperty(exports,"MATRIX_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.l}});Object.defineProperty(exports,"PERCENTAGE_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.b}});Object.defineProperty(exports,"TABLES_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.x}});Object.defineProperty(exports,"TAGS_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.y}});Object.defineProperty(exports,"TIME_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.e}});Object.defineProperty(exports,"UOM_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.h}});Object.defineProperty(exports,"VARIABLES_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.g}});Object.defineProperty(exports,"VECTOR_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.k}});Object.defineProperty(exports,"WEATHER_PACKAGE",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.s}});Object.defineProperty(exports,"createCryptoPackage",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.u}});Object.defineProperty(exports,"createCurrencyPackage",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.i}});Object.defineProperty(exports,"createKnowledgePackage",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.v}});Object.defineProperty(exports,"createStocksPackage",{enumerable:true,get:function(){return chunkYIXCPLCN_cjs.t}});Object.defineProperty(exports,"SYMBOLIC_PACKAGE",{enumerable:true,get:function(){return chunkW5BBKLNS_cjs.a}});//# sourceMappingURL=packages.cjs.map
2
2
  //# sourceMappingURL=packages.cjs.map
@@ -1,16 +1,16 @@
1
- import { I as IEnginePackage } from './PackageRegistry-BHBCFswo.cjs';
1
+ import { I as IEnginePackage } from './PackageRegistry-CevYUzRn.cjs';
2
2
  import './Parselet-DF3864la.cjs';
3
3
  import './BytecodeBuilder-DSWKZi4f.cjs';
4
4
  import './Token-D8f7yaz1.cjs';
5
5
  import './pipeline-BYkKNpql.cjs';
6
6
  import './Value-BYHw-x7q.cjs';
7
7
  import './CalendarBackend-MdS3Bb4P.cjs';
8
- import './Lexer-DhGhoAa2.cjs';
9
- import './EngineError-C-kBwYlN.cjs';
8
+ import './Lexer-DOXatsjO.cjs';
9
+ import './EngineError-CA2tiVaI.cjs';
10
10
  import './resolvers.cjs';
11
11
  import '@tanstack/query-core';
12
12
  import './TokenNormalizer-Pe3_390t.cjs';
13
- import './VMBuiltins-kv4rr0y5.cjs';
13
+ import './VMBuiltins-AIivGl0a.cjs';
14
14
  import './Configuration-BxriK9Kw.cjs';
15
15
 
16
16
  /** Core arithmetic: numbers, `()` grouping, `pi`/`e` constants, `+ - * / % ^`, bitwise `<< >> & | ^`, and their `*_by` word forms. */
@@ -1,16 +1,16 @@
1
- import { I as IEnginePackage } from './PackageRegistry-CNZUwWHJ.js';
1
+ import { I as IEnginePackage } from './PackageRegistry-Dl9kNP14.js';
2
2
  import './Parselet-Dgymjxzd.js';
3
3
  import './BytecodeBuilder-DSWKZi4f.js';
4
4
  import './Token-D8f7yaz1.js';
5
5
  import './pipeline-Cl7KW8CB.js';
6
6
  import './Value-BYHw-x7q.js';
7
7
  import './CalendarBackend-MdS3Bb4P.js';
8
- import './Lexer-DqtnZMC5.js';
9
- import './EngineError-C-kBwYlN.js';
8
+ import './Lexer-B62Hn9I-.js';
9
+ import './EngineError-CA2tiVaI.js';
10
10
  import './resolvers.js';
11
11
  import '@tanstack/query-core';
12
12
  import './TokenNormalizer-IF7nPRMp.js';
13
- import './VMBuiltins-CZiZRKn-.js';
13
+ import './VMBuiltins-CbuFfIgQ.js';
14
14
  import './Configuration-BxriK9Kw.js';
15
15
 
16
16
  /** Core arithmetic: numbers, `()` grouping, `pi`/`e` constants, `+ - * / % ^`, bitwise `<< >> & | ^`, and their `*_by` word forms. */
package/dist/packages.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as ARITHMETIC_PACKAGE,n as BIGINT_PACKAGE,z as BUILTIN_PACKAGES,o as CONDITIONALS_PACKAGE,p as CONVERTERS_PACKAGE,j as CURRENCY_PACKAGE,d as DATETIME_PACKAGE,f as DICE_PACKAGE,r as FINANCE_PACKAGE,c as FUNCTION_PACKAGE,w as LINES_PACKAGE,m as MAPREDUCE_PACKAGE,q as MATHPHRASES_PACKAGE,l as MATRIX_PACKAGE,b as PERCENTAGE_PACKAGE,x as TABLES_PACKAGE,y as TAGS_PACKAGE,e as TIME_PACKAGE,h as UOM_PACKAGE,g as VARIABLES_PACKAGE,k as VECTOR_PACKAGE,s as WEATHER_PACKAGE,u as createCryptoPackage,i as createCurrencyPackage,v as createKnowledgePackage,t as createStocksPackage}from'./chunk-PQFI55AC.js';import'./chunk-HANGBVEE.js';export{a as SYMBOLIC_PACKAGE}from'./chunk-S3ODNMJS.js';import'./chunk-YG7UWQFV.js';import'./chunk-LE6WZLJ4.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-CL7DM2FX.js';import'./chunk-D4VBWPWN.js';import'./chunk-ESZNJQ2C.js';import'./chunk-TZYMXNIB.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-LTUYWJGO.js';import'./chunk-BLJ6E577.js';import'./chunk-J4K72CQN.js';import'./chunk-LQIRBP4Q.js';import'./chunk-4CNYGIND.js';import'./chunk-RRUGQ6DM.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import'./chunk-VB6QMU2W.js';//# sourceMappingURL=packages.js.map
1
+ export{a as ARITHMETIC_PACKAGE,n as BIGINT_PACKAGE,z as BUILTIN_PACKAGES,o as CONDITIONALS_PACKAGE,p as CONVERTERS_PACKAGE,j as CURRENCY_PACKAGE,d as DATETIME_PACKAGE,f as DICE_PACKAGE,r as FINANCE_PACKAGE,c as FUNCTION_PACKAGE,w as LINES_PACKAGE,m as MAPREDUCE_PACKAGE,q as MATHPHRASES_PACKAGE,l as MATRIX_PACKAGE,b as PERCENTAGE_PACKAGE,x as TABLES_PACKAGE,y as TAGS_PACKAGE,e as TIME_PACKAGE,h as UOM_PACKAGE,g as VARIABLES_PACKAGE,k as VECTOR_PACKAGE,s as WEATHER_PACKAGE,u as createCryptoPackage,i as createCurrencyPackage,v as createKnowledgePackage,t as createStocksPackage}from'./chunk-3LWK33TJ.js';import'./chunk-Z5VBXZ4A.js';export{a as SYMBOLIC_PACKAGE}from'./chunk-7ASISMXA.js';import'./chunk-7ZYYWSLT.js';import'./chunk-MONPHAHO.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-IAL64FCP.js';import'./chunk-I6WGOM3C.js';import'./chunk-DDVDRWCK.js';import'./chunk-TZYMXNIB.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-6T5HPIZX.js';import'./chunk-A7RRWNLE.js';import'./chunk-J4K72CQN.js';import'./chunk-LV7PJ2MU.js';import'./chunk-4CNYGIND.js';import'./chunk-OLATJABN.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-CHVGFTO3.js';import'./chunk-PRSXXDTA.js';import'./chunk-Z5DA5UXY.js';//# sourceMappingURL=packages.js.map
2
2
  //# sourceMappingURL=packages.js.map
package/dist/parser.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk2SYYKQ4Q_cjs=require('./chunk-2SYYKQ4Q.cjs');require('./chunk-HG4NPDN5.cjs');var chunkZDJTDFTR_cjs=require('./chunk-ZDJTDFTR.cjs'),chunkABVDKMNF_cjs=require('./chunk-ABVDKMNF.cjs');require('./chunk-TPPM4QSS.cjs'),require('./chunk-E4HAKNBQ.cjs'),require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-GXO7TSXQ.cjs');Object.defineProperty(exports,"ParseletRegistry",{enumerable:true,get:function(){return chunk2SYYKQ4Q_cjs.b}});Object.defineProperty(exports,"Parser",{enumerable:true,get:function(){return chunk2SYYKQ4Q_cjs.a}});Object.defineProperty(exports,"PrecedenceParser",{enumerable:true,get:function(){return chunk2SYYKQ4Q_cjs.a}});Object.defineProperty(exports,"sharedParseletRegistry",{enumerable:true,get:function(){return chunk2SYYKQ4Q_cjs.c}});Object.defineProperty(exports,"BindingPower",{enumerable:true,get:function(){return chunkZDJTDFTR_cjs.a}});Object.defineProperty(exports,"BytecodeBuilder",{enumerable:true,get:function(){return chunkZDJTDFTR_cjs.d}});Object.defineProperty(exports,"buildBindingPowerTable",{enumerable:true,get:function(){return chunkZDJTDFTR_cjs.b}});Object.defineProperty(exports,"invalidateBindingPowerTable",{enumerable:true,get:function(){return chunkZDJTDFTR_cjs.c}});Object.defineProperty(exports,"OpCode",{enumerable:true,get:function(){return chunkABVDKMNF_cjs.a}});Object.defineProperty(exports,"getOpCodeName",{enumerable:true,get:function(){return chunkABVDKMNF_cjs.b}});//# sourceMappingURL=parser.cjs.map
1
+ 'use strict';var chunkGWEINEJG_cjs=require('./chunk-GWEINEJG.cjs');require('./chunk-HG4NPDN5.cjs');var chunkWXOJ3DS3_cjs=require('./chunk-WXOJ3DS3.cjs'),chunkABVDKMNF_cjs=require('./chunk-ABVDKMNF.cjs');require('./chunk-5J2XDCSV.cjs'),require('./chunk-E4HAKNBQ.cjs'),require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-HTAT4MGN.cjs');Object.defineProperty(exports,"ParseletRegistry",{enumerable:true,get:function(){return chunkGWEINEJG_cjs.b}});Object.defineProperty(exports,"Parser",{enumerable:true,get:function(){return chunkGWEINEJG_cjs.a}});Object.defineProperty(exports,"PrecedenceParser",{enumerable:true,get:function(){return chunkGWEINEJG_cjs.a}});Object.defineProperty(exports,"sharedParseletRegistry",{enumerable:true,get:function(){return chunkGWEINEJG_cjs.c}});Object.defineProperty(exports,"BindingPower",{enumerable:true,get:function(){return chunkWXOJ3DS3_cjs.a}});Object.defineProperty(exports,"BytecodeBuilder",{enumerable:true,get:function(){return chunkWXOJ3DS3_cjs.d}});Object.defineProperty(exports,"buildBindingPowerTable",{enumerable:true,get:function(){return chunkWXOJ3DS3_cjs.b}});Object.defineProperty(exports,"invalidateBindingPowerTable",{enumerable:true,get:function(){return chunkWXOJ3DS3_cjs.c}});Object.defineProperty(exports,"OpCode",{enumerable:true,get:function(){return chunkABVDKMNF_cjs.a}});Object.defineProperty(exports,"getOpCodeName",{enumerable:true,get:function(){return chunkABVDKMNF_cjs.b}});//# sourceMappingURL=parser.cjs.map
2
2
  //# sourceMappingURL=parser.cjs.map
package/dist/parser.js CHANGED
@@ -1,2 +1,2 @@
1
- export{b as ParseletRegistry,a as Parser,a as PrecedenceParser,c as sharedParseletRegistry}from'./chunk-VQO54ZMA.js';import'./chunk-JP4JMQOG.js';export{a as BindingPower,d as BytecodeBuilder,b as buildBindingPowerTable,c as invalidateBindingPowerTable}from'./chunk-YG7UWQFV.js';export{a as OpCode,b as getOpCodeName}from'./chunk-TZYMXNIB.js';import'./chunk-BLJ6E577.js';import'./chunk-J4K72CQN.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-VB6QMU2W.js';//# sourceMappingURL=parser.js.map
1
+ export{b as ParseletRegistry,a as Parser,a as PrecedenceParser,c as sharedParseletRegistry}from'./chunk-RRJ77SF6.js';import'./chunk-JP4JMQOG.js';export{a as BindingPower,d as BytecodeBuilder,b as buildBindingPowerTable,c as invalidateBindingPowerTable}from'./chunk-7ZYYWSLT.js';export{a as OpCode,b as getOpCodeName}from'./chunk-TZYMXNIB.js';import'./chunk-A7RRWNLE.js';import'./chunk-J4K72CQN.js';import'./chunk-FAO6DQ74.js';import'./chunk-LHLW7JLS.js';import'./chunk-Z5DA5UXY.js';//# sourceMappingURL=parser.js.map
2
2
  //# sourceMappingURL=parser.js.map
package/dist/temporal.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkZE5KKMBV_cjs=require('./chunk-ZE5KKMBV.cjs');require('./chunk-E4HAKNBQ.cjs'),require('./chunk-GXO7TSXQ.cjs');Object.defineProperty(exports,"TemporalCalendar",{enumerable:true,get:function(){return chunkZE5KKMBV_cjs.a}});Object.defineProperty(exports,"createTemporalCalendar",{enumerable:true,get:function(){return chunkZE5KKMBV_cjs.b}});//# sourceMappingURL=temporal.cjs.map
1
+ 'use strict';var chunkYLTNXYA7_cjs=require('./chunk-YLTNXYA7.cjs');require('./chunk-E4HAKNBQ.cjs'),require('./chunk-HTAT4MGN.cjs');Object.defineProperty(exports,"TemporalCalendar",{enumerable:true,get:function(){return chunkYLTNXYA7_cjs.a}});Object.defineProperty(exports,"createTemporalCalendar",{enumerable:true,get:function(){return chunkYLTNXYA7_cjs.b}});//# sourceMappingURL=temporal.cjs.map
2
2
  //# sourceMappingURL=temporal.cjs.map
package/dist/temporal.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as TemporalCalendar,b as createTemporalCalendar}from'./chunk-D4VBWPWN.js';import'./chunk-J4K72CQN.js';import'./chunk-VB6QMU2W.js';//# sourceMappingURL=temporal.js.map
1
+ export{a as TemporalCalendar,b as createTemporalCalendar}from'./chunk-I6WGOM3C.js';import'./chunk-J4K72CQN.js';import'./chunk-Z5DA5UXY.js';//# sourceMappingURL=temporal.js.map
2
2
  //# sourceMappingURL=temporal.js.map
package/dist/testing.cjs CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var chunkYSHWNCDH_cjs=require('./chunk-YSHWNCDH.cjs');require('./chunk-2SYYKQ4Q.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-ZVPZQ66D.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-GVL3ZMS7.cjs'),require('./chunk-HG4NPDN5.cjs'),require('./chunk-AZX4NTYN.cjs'),require('./chunk-R2SZFJTT.cjs');var chunkDFMAZ6XM_cjs=require('./chunk-DFMAZ6XM.cjs');require('./chunk-G2V33LFM.cjs'),require('./chunk-7RC6RBS6.cjs'),require('./chunk-ZDJTDFTR.cjs'),require('./chunk-ZSLVLMO5.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-QQHHZPEW.cjs'),require('./chunk-ZE5KKMBV.cjs'),require('./chunk-TMQ37JQY.cjs'),require('./chunk-ABVDKMNF.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-FDKTESBC.cjs'),require('./chunk-TPPM4QSS.cjs'),require('./chunk-E4HAKNBQ.cjs');var chunkGJZIJK2Q_cjs=require('./chunk-GJZIJK2Q.cjs');require('./chunk-ZKFCKAIX.cjs');var chunkO5PO4D2A_cjs=require('./chunk-O5PO4D2A.cjs');require('./chunk-CQLCTKMX.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-6EYKVQT3.cjs'),require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-J4LSAHCY.cjs'),require('./chunk-EZKR44MA.cjs');var chunkGXO7TSXQ_cjs=require('./chunk-GXO7TSXQ.cjs');var i=class o extends Error{constructor(t){super(t.message),this.name="ExpectationError",this.code=t.code,this.expected=t.expected,this.actual=t.actual,Object.setPrototypeOf(this,o.prototype);}};function V(o=[],t={}){let{locale:e="en",includeBuiltins:r=true}=t,s=new chunkYSHWNCDH_cjs.n({locale:e,packages:r?chunkDFMAZ6XM_cjs.z:[]});for(let a of o)s.registerPackage(a);return s}function v(o,t){try{let e=o.evaluateExpression(t);return e.isError()?{status:"error",code:e.errorCode??"",message:e.errorMessage??"",source:e}:e.isPending()?{status:"pending",value:e}:{status:"value",value:e}}catch(e){if(e instanceof chunkGXO7TSXQ_cjs.b)return {status:"error",code:e.code,message:e.message,source:e};let r=e instanceof Error?e.message:String(e);return {status:"error",code:"UNKNOWN_ERROR",message:r,source:new chunkGJZIJK2Q_cjs.m(13,"UNKNOWN_ERROR",r)}}}function x(o,t){if(Object.is(o,t))return true;if(!Number.isFinite(o)||!Number.isFinite(t))return false;let e=1e-9*Math.max(1,Math.abs(o),Math.abs(t));return Math.abs(o-t)<=e}function l(o){return o.type===3?JSON.stringify(o.value):o.type===6&&typeof o.unit=="string"?`${String(o.value)} ${o.unit}`:String(o.value)}function n(o){switch(o.status){case "value":return l(o.value);case "pending":return "a pending async value";case "error":return `an error (${o.code}: ${o.message})`}}var d=class{constructor(t,e){this.expression=t;this.outcome=e;}get value(){if(this.outcome.status==="error")throw new i({code:"EXPECTED_VALUE",message:`Expected "${this.expression}" to evaluate, but it failed with ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this.outcome.value}toEvaluate(){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EVALUATE",message:`Expected "${this.expression}" to evaluate to a value, but got ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this}toEqual(t,e){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but got ${n(this.outcome)}.`,expected:c(t,e),actual:n(this.outcome)});let r=this.outcome.value,s;if(typeof t=="number"?s=x(r.toNumber(),t):typeof t=="boolean"?s=r.type===10&&r.value===t:s=C(r)===t,!s)throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but it was ${l(r)}.`,expected:c(t,e),actual:l(r)});if(e!==void 0&&r.unit!==e)throw new i({code:"EXPECTED_UNIT",message:`Expected "${this.expression}" to carry the unit "${e}", but it was ${r.unit===void 0?"unitless":`"${r.unit}"`}.`,expected:`unit "${e}"`,actual:r.unit===void 0?"no unit":`unit "${r.unit}"`});return this}toBeError(){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_ERROR",message:`Expected "${this.expression}" to fail, but it produced ${n(this.outcome)}.`,expected:"an error",actual:n(this.outcome)});return this}toFailWith(t){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it produced ${n(this.outcome)}.`,expected:`error code "${t}"`,actual:n(this.outcome)});if(this.outcome.code!==t)throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it failed with "${this.outcome.code}" (${this.outcome.message}).`,expected:`error code "${t}"`,actual:`error code "${this.outcome.code}"`});return this}toBePending(){if(this.outcome.status!=="pending")throw new i({code:"EXPECTED_PENDING",message:`Expected "${this.expression}" to be pending, but got ${n(this.outcome)}.`,expected:"a pending async value",actual:n(this.outcome)});return this}};function c(o,t){let e=typeof o=="string"?JSON.stringify(o):String(o);return t===void 0?e:`${e} ${t}`}function C(o){return String(o.value)}function D(o,t){return new d(t,v(o,t))}var O=["a","an","and","or","but","if","then","the","this","that","these","those","in","on","at","to","of","for","from","with","by","as","per","into","over","is","are","was","were","be","been","being","do","does","did","have","has","had","will","would","can","could","should","may","might","must","price","cost","value","total","sum","count","rate","amount","number","time","date","day","week","month","year","hour","minute","second","add","buy","sell","hold","make","take","give","get","set","run","up","down","out","off","all","some","any","no","not","more","less","one","two","three","first","last","next","each","every","here","there"],$=["error","warning","info"];function k(o){let t=[],e=o.lexerVocabulary;if(e?.keywords)for(let[r,s]of Object.entries(e.keywords))t.push({word:r,via:"keyword",tokenType:s});if(e?.units)for(let r of e.units)t.push({word:r,via:"unit"});if(e?.operators)for(let[r,s]of Object.entries(e.operators))t.push({word:r,via:"operator",tokenType:s});if(o.phrases)for(let[r,s]of Object.entries(o.phrases))r.includes(" ")||t.push({word:r,via:"phrase",tokenType:s});return t}var p=class{constructor(t){this.pkg=t;}notToShadow(t=O){let e=new Set(t.map(s=>s.toLowerCase())),r=k(this.pkg).filter(s=>e.has(s.word.toLowerCase()));if(r.length>0){let s=r.map(a=>`"${a.word}" (${a.via})`).join(", ");throw new i({code:"PACKAGE_SHADOWS_PROSE",message:`Package "${this.pkg.name}" claims prose word(s) as syntax: ${s}. A word that is also ordinary English turns prose into arithmetic; prefer a multi-word phrase or a form that requires a parenthesis.`,expected:"no prose words claimed as syntax",actual:s})}return r}notToCollideWith(t,e="error"){let r=chunkYSHWNCDH_cjs.a(this.pkg,t),s=$.indexOf(e),a=r.conflicts.filter(u=>$.indexOf(u.severity)<=s);if(a.length>0){let u=a.map(g=>`[${g.severity}] ${g.detail}`).join(`
1
+ 'use strict';var chunkIIBR4LVH_cjs=require('./chunk-IIBR4LVH.cjs');require('./chunk-GWEINEJG.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-ZVPZQ66D.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-2G3AW6OQ.cjs'),require('./chunk-HG4NPDN5.cjs'),require('./chunk-QXGKONTZ.cjs'),require('./chunk-R2SZFJTT.cjs');var chunkYIXCPLCN_cjs=require('./chunk-YIXCPLCN.cjs');require('./chunk-KYE5BWPN.cjs'),require('./chunk-W5BBKLNS.cjs'),require('./chunk-WXOJ3DS3.cjs'),require('./chunk-UMW5PO42.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-5NQE5JMU.cjs'),require('./chunk-YLTNXYA7.cjs'),require('./chunk-2YNRIT2L.cjs'),require('./chunk-ABVDKMNF.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-UBKWHRFL.cjs'),require('./chunk-5J2XDCSV.cjs'),require('./chunk-E4HAKNBQ.cjs');var chunkO5ZLOZPH_cjs=require('./chunk-O5ZLOZPH.cjs');require('./chunk-ZKFCKAIX.cjs');var chunkRVNW627Y_cjs=require('./chunk-RVNW627Y.cjs');require('./chunk-TTHCH7V2.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-U7CNADCJ.cjs'),require('./chunk-YBQOQTVL.cjs'),require('./chunk-S3DFU33X.cjs'),require('./chunk-J4LSAHCY.cjs'),require('./chunk-EZKR44MA.cjs');var chunkHTAT4MGN_cjs=require('./chunk-HTAT4MGN.cjs');var i=class o extends Error{constructor(t){super(t.message),this.name="ExpectationError",this.code=t.code,this.expected=t.expected,this.actual=t.actual,Object.setPrototypeOf(this,o.prototype);}};function V(o=[],t={}){let{locale:e="en",includeBuiltins:r=true}=t,s=new chunkIIBR4LVH_cjs.n({locale:e,packages:r?chunkYIXCPLCN_cjs.z:[]});for(let a of o)s.registerPackage(a);return s}function v(o,t){try{let e=o.evaluateExpression(t);return e.isError()?{status:"error",code:e.errorCode??"",message:e.errorMessage??"",source:e}:e.isPending()?{status:"pending",value:e}:{status:"value",value:e}}catch(e){if(e instanceof chunkHTAT4MGN_cjs.b)return {status:"error",code:e.code,message:e.message,source:e};let r=e instanceof Error?e.message:String(e);return {status:"error",code:"UNKNOWN_ERROR",message:r,source:new chunkO5ZLOZPH_cjs.m(13,"UNKNOWN_ERROR",r)}}}function x(o,t){if(Object.is(o,t))return true;if(!Number.isFinite(o)||!Number.isFinite(t))return false;let e=1e-9*Math.max(1,Math.abs(o),Math.abs(t));return Math.abs(o-t)<=e}function l(o){return o.type===3?JSON.stringify(o.value):o.type===6&&typeof o.unit=="string"?`${String(o.value)} ${o.unit}`:String(o.value)}function n(o){switch(o.status){case "value":return l(o.value);case "pending":return "a pending async value";case "error":return `an error (${o.code}: ${o.message})`}}var d=class{constructor(t,e){this.expression=t;this.outcome=e;}get value(){if(this.outcome.status==="error")throw new i({code:"EXPECTED_VALUE",message:`Expected "${this.expression}" to evaluate, but it failed with ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this.outcome.value}toEvaluate(){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EVALUATE",message:`Expected "${this.expression}" to evaluate to a value, but got ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this}toEqual(t,e){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but got ${n(this.outcome)}.`,expected:c(t,e),actual:n(this.outcome)});let r=this.outcome.value,s;if(typeof t=="number"?s=x(r.toNumber(),t):typeof t=="boolean"?s=r.type===10&&r.value===t:s=C(r)===t,!s)throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but it was ${l(r)}.`,expected:c(t,e),actual:l(r)});if(e!==void 0&&r.unit!==e)throw new i({code:"EXPECTED_UNIT",message:`Expected "${this.expression}" to carry the unit "${e}", but it was ${r.unit===void 0?"unitless":`"${r.unit}"`}.`,expected:`unit "${e}"`,actual:r.unit===void 0?"no unit":`unit "${r.unit}"`});return this}toBeError(){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_ERROR",message:`Expected "${this.expression}" to fail, but it produced ${n(this.outcome)}.`,expected:"an error",actual:n(this.outcome)});return this}toFailWith(t){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it produced ${n(this.outcome)}.`,expected:`error code "${t}"`,actual:n(this.outcome)});if(this.outcome.code!==t)throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it failed with "${this.outcome.code}" (${this.outcome.message}).`,expected:`error code "${t}"`,actual:`error code "${this.outcome.code}"`});return this}toBePending(){if(this.outcome.status!=="pending")throw new i({code:"EXPECTED_PENDING",message:`Expected "${this.expression}" to be pending, but got ${n(this.outcome)}.`,expected:"a pending async value",actual:n(this.outcome)});return this}};function c(o,t){let e=typeof o=="string"?JSON.stringify(o):String(o);return t===void 0?e:`${e} ${t}`}function C(o){return String(o.value)}function D(o,t){return new d(t,v(o,t))}var O=["a","an","and","or","but","if","then","the","this","that","these","those","in","on","at","to","of","for","from","with","by","as","per","into","over","is","are","was","were","be","been","being","do","does","did","have","has","had","will","would","can","could","should","may","might","must","price","cost","value","total","sum","count","rate","amount","number","time","date","day","week","month","year","hour","minute","second","add","buy","sell","hold","make","take","give","get","set","run","up","down","out","off","all","some","any","no","not","more","less","one","two","three","first","last","next","each","every","here","there"],$=["error","warning","info"];function k(o){let t=[],e=o.lexerVocabulary;if(e?.keywords)for(let[r,s]of Object.entries(e.keywords))t.push({word:r,via:"keyword",tokenType:s});if(e?.units)for(let r of e.units)t.push({word:r,via:"unit"});if(e?.operators)for(let[r,s]of Object.entries(e.operators))t.push({word:r,via:"operator",tokenType:s});if(o.phrases)for(let[r,s]of Object.entries(o.phrases))r.includes(" ")||t.push({word:r,via:"phrase",tokenType:s});return t}var p=class{constructor(t){this.pkg=t;}notToShadow(t=O){let e=new Set(t.map(s=>s.toLowerCase())),r=k(this.pkg).filter(s=>e.has(s.word.toLowerCase()));if(r.length>0){let s=r.map(a=>`"${a.word}" (${a.via})`).join(", ");throw new i({code:"PACKAGE_SHADOWS_PROSE",message:`Package "${this.pkg.name}" claims prose word(s) as syntax: ${s}. A word that is also ordinary English turns prose into arithmetic; prefer a multi-word phrase or a form that requires a parenthesis.`,expected:"no prose words claimed as syntax",actual:s})}return r}notToCollideWith(t,e="error"){let r=chunkIIBR4LVH_cjs.a(this.pkg,t),s=$.indexOf(e),a=r.conflicts.filter(u=>$.indexOf(u.severity)<=s);if(a.length>0){let u=a.map(g=>`[${g.severity}] ${g.detail}`).join(`
2
2
  `);throw new i({code:"PACKAGE_VOCABULARY_COLLISION",message:`Package "${this.pkg.name}" collides with another package:
3
- ${u}`,expected:`no conflicts at or above "${e}" severity`,actual:`${a.length} conflict(s)`})}return r}toDeclareCompatibleEngineVersion(t=chunkO5PO4D2A_cjs.a){let e=chunkYSHWNCDH_cjs.b(this.pkg,t);if(!e.compatible){let r=e.reason==="invalid-range"?`its range "${e.declaredRange}" is not valid semver`:`its range "${e.declaredRange}" is not satisfied by engine version "${e.engineVersion}"`;throw new i({code:"PACKAGE_ENGINE_VERSION_INCOMPATIBLE",message:`Package "${this.pkg.name}" declares an engineVersion that will be rejected at registration: ${r}.`,expected:`an engineVersion satisfied by "${t}"`,actual:`"${e.declaredRange}"`})}return this}};function L(o){return new p(o)}exports.COMMON_PROSE_WORDS=O;exports.ExpectationError=i;exports.ExpressionAssertion=d;exports.PackageAssertion=p;exports.createTestEngine=V;exports.expectExpression=D;exports.expectPackage=L;//# sourceMappingURL=testing.cjs.map
3
+ ${u}`,expected:`no conflicts at or above "${e}" severity`,actual:`${a.length} conflict(s)`})}return r}toDeclareCompatibleEngineVersion(t=chunkRVNW627Y_cjs.a){let e=chunkIIBR4LVH_cjs.b(this.pkg,t);if(!e.compatible){let r=e.reason==="invalid-range"?`its range "${e.declaredRange}" is not valid semver`:`its range "${e.declaredRange}" is not satisfied by engine version "${e.engineVersion}"`;throw new i({code:"PACKAGE_ENGINE_VERSION_INCOMPATIBLE",message:`Package "${this.pkg.name}" declares an engineVersion that will be rejected at registration: ${r}.`,expected:`an engineVersion satisfied by "${t}"`,actual:`"${e.declaredRange}"`})}return this}};function L(o){return new p(o)}exports.COMMON_PROSE_WORDS=O;exports.ExpectationError=i;exports.ExpressionAssertion=d;exports.PackageAssertion=p;exports.createTestEngine=V;exports.expectExpression=D;exports.expectPackage=L;//# sourceMappingURL=testing.cjs.map
4
4
  //# sourceMappingURL=testing.cjs.map
@@ -1,17 +1,17 @@
1
- import { I as IEnginePackage, E as ExpressionEngine } from './PackageRegistry-BHBCFswo.cjs';
1
+ import { I as IEnginePackage, E as ExpressionEngine } from './PackageRegistry-CevYUzRn.cjs';
2
2
  import { V as Value } from './Value-BYHw-x7q.cjs';
3
- import { E as EngineError } from './EngineError-C-kBwYlN.cjs';
4
- import { C as CompatibilityReport } from './PackageCompatibility-CNiTtC6S.cjs';
3
+ import { E as EngineError } from './EngineError-CA2tiVaI.cjs';
4
+ import { C as CompatibilityReport } from './PackageCompatibility-DW18LqED.cjs';
5
5
  import './Parselet-DF3864la.cjs';
6
6
  import './BytecodeBuilder-DSWKZi4f.cjs';
7
7
  import './Token-D8f7yaz1.cjs';
8
8
  import './pipeline-BYkKNpql.cjs';
9
9
  import './CalendarBackend-MdS3Bb4P.cjs';
10
- import './Lexer-DhGhoAa2.cjs';
10
+ import './Lexer-DOXatsjO.cjs';
11
11
  import './resolvers.cjs';
12
12
  import '@tanstack/query-core';
13
13
  import './TokenNormalizer-Pe3_390t.cjs';
14
- import './VMBuiltins-kv4rr0y5.cjs';
14
+ import './VMBuiltins-AIivGl0a.cjs';
15
15
  import './Configuration-BxriK9Kw.cjs';
16
16
 
17
17
  /**
package/dist/testing.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import { I as IEnginePackage, E as ExpressionEngine } from './PackageRegistry-CNZUwWHJ.js';
1
+ import { I as IEnginePackage, E as ExpressionEngine } from './PackageRegistry-Dl9kNP14.js';
2
2
  import { V as Value } from './Value-BYHw-x7q.js';
3
- import { E as EngineError } from './EngineError-C-kBwYlN.js';
4
- import { C as CompatibilityReport } from './PackageCompatibility-fj_f7uqC.js';
3
+ import { E as EngineError } from './EngineError-CA2tiVaI.js';
4
+ import { C as CompatibilityReport } from './PackageCompatibility-DT1IPlQx.js';
5
5
  import './Parselet-Dgymjxzd.js';
6
6
  import './BytecodeBuilder-DSWKZi4f.js';
7
7
  import './Token-D8f7yaz1.js';
8
8
  import './pipeline-Cl7KW8CB.js';
9
9
  import './CalendarBackend-MdS3Bb4P.js';
10
- import './Lexer-DqtnZMC5.js';
10
+ import './Lexer-B62Hn9I-.js';
11
11
  import './resolvers.js';
12
12
  import '@tanstack/query-core';
13
13
  import './TokenNormalizer-IF7nPRMp.js';
14
- import './VMBuiltins-CZiZRKn-.js';
14
+ import './VMBuiltins-CbuFfIgQ.js';
15
15
  import './Configuration-BxriK9Kw.js';
16
16
 
17
17
  /**