@lightdash/common 2.477.0 → 2.478.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 (55) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/types/filterGrammar.d.ts +2 -0
  3. package/dist/cjs/types/filterGrammar.d.ts.map +1 -1
  4. package/dist/cjs/types/filterGrammar.grammar.d.ts +1 -1
  5. package/dist/cjs/types/filterGrammar.grammar.d.ts.map +1 -1
  6. package/dist/cjs/types/filterGrammar.grammar.js +14 -1
  7. package/dist/cjs/types/filterGrammar.grammar.js.map +1 -1
  8. package/dist/cjs/types/filterGrammar.js +11 -14
  9. package/dist/cjs/types/filterGrammar.js.map +1 -1
  10. package/dist/cjs/types/filterGrammar.parser.d.ts.map +1 -1
  11. package/dist/cjs/types/filterGrammar.parser.js +493 -164
  12. package/dist/cjs/types/filterGrammar.parser.js.map +1 -1
  13. package/dist/cjs/types/filterGrammarConversion.d.ts.map +1 -1
  14. package/dist/cjs/types/filterGrammarConversion.js +8 -2
  15. package/dist/cjs/types/filterGrammarConversion.js.map +1 -1
  16. package/dist/cjs/utils/filters.d.ts.map +1 -1
  17. package/dist/cjs/utils/filters.js +6 -0
  18. package/dist/cjs/utils/filters.js.map +1 -1
  19. package/dist/esm/.tsbuildinfo +1 -1
  20. package/dist/esm/types/filterGrammar.d.ts +2 -0
  21. package/dist/esm/types/filterGrammar.d.ts.map +1 -1
  22. package/dist/esm/types/filterGrammar.grammar.d.ts +1 -1
  23. package/dist/esm/types/filterGrammar.grammar.d.ts.map +1 -1
  24. package/dist/esm/types/filterGrammar.grammar.js +14 -1
  25. package/dist/esm/types/filterGrammar.grammar.js.map +1 -1
  26. package/dist/esm/types/filterGrammar.js +11 -14
  27. package/dist/esm/types/filterGrammar.js.map +1 -1
  28. package/dist/esm/types/filterGrammar.parser.d.ts.map +1 -1
  29. package/dist/esm/types/filterGrammar.parser.js +493 -164
  30. package/dist/esm/types/filterGrammar.parser.js.map +1 -1
  31. package/dist/esm/types/filterGrammarConversion.d.ts.map +1 -1
  32. package/dist/esm/types/filterGrammarConversion.js +8 -2
  33. package/dist/esm/types/filterGrammarConversion.js.map +1 -1
  34. package/dist/esm/utils/filters.d.ts.map +1 -1
  35. package/dist/esm/utils/filters.js +6 -0
  36. package/dist/esm/utils/filters.js.map +1 -1
  37. package/dist/types/.tsbuildinfo +1 -1
  38. package/dist/types/types/filterGrammar.d.ts +2 -0
  39. package/dist/types/types/filterGrammar.d.ts.map +1 -1
  40. package/dist/types/types/filterGrammar.grammar.d.ts +1 -1
  41. package/dist/types/types/filterGrammar.grammar.d.ts.map +1 -1
  42. package/dist/types/types/filterGrammar.grammar.js +14 -1
  43. package/dist/types/types/filterGrammar.grammar.js.map +1 -1
  44. package/dist/types/types/filterGrammar.js +11 -14
  45. package/dist/types/types/filterGrammar.js.map +1 -1
  46. package/dist/types/types/filterGrammar.parser.d.ts.map +1 -1
  47. package/dist/types/types/filterGrammar.parser.js +493 -164
  48. package/dist/types/types/filterGrammar.parser.js.map +1 -1
  49. package/dist/types/types/filterGrammarConversion.d.ts.map +1 -1
  50. package/dist/types/types/filterGrammarConversion.js +8 -2
  51. package/dist/types/types/filterGrammarConversion.js.map +1 -1
  52. package/dist/types/utils/filters.d.ts.map +1 -1
  53. package/dist/types/utils/filters.js +6 -0
  54. package/dist/types/utils/filters.js.map +1 -1
  55. package/package.json +1 -1
@@ -163,89 +163,97 @@ exports.filterGrammarParser /*
163
163
  values: [value],
164
164
  date_interval: interval,
165
165
  };
166
- }, peg$c49 = 'inThePast', peg$c50 = peg$literalExpectation('inThePast', false), peg$c51 = 'inTheNext', peg$c52 = peg$literalExpectation('inTheNext', false), peg$c53 = 'milliseconds', peg$c54 = peg$literalExpectation('milliseconds', false), peg$c55 = 'seconds', peg$c56 = peg$literalExpectation('seconds', false), peg$c57 = 'minutes', peg$c58 = peg$literalExpectation('minutes', false), peg$c59 = 'hours', peg$c60 = peg$literalExpectation('hours', false), peg$c61 = 'days', peg$c62 = peg$literalExpectation('days', false), peg$c63 = 'weeks', peg$c64 = peg$literalExpectation('weeks', false), peg$c65 = 'months', peg$c66 = peg$literalExpectation('months', false), peg$c67 = 'years', peg$c68 = peg$literalExpectation('years', false), peg$c69 = function (operator, interval) {
166
+ }, peg$c49 = 'inThePast', peg$c50 = peg$literalExpectation('inThePast', false), peg$c51 = 'inTheNext', peg$c52 = peg$literalExpectation('inTheNext', false), peg$c53 = 'milliseconds', peg$c54 = peg$literalExpectation('milliseconds', false), peg$c55 = 'seconds', peg$c56 = peg$literalExpectation('seconds', false), peg$c57 = 'minutes', peg$c58 = peg$literalExpectation('minutes', false), peg$c59 = 'hours', peg$c60 = peg$literalExpectation('hours', false), peg$c61 = 'days', peg$c62 = peg$literalExpectation('days', false), peg$c63 = 'weeks', peg$c64 = peg$literalExpectation('weeks', false), peg$c65 = 'months', peg$c66 = peg$literalExpectation('months', false), peg$c67 = 'years', peg$c68 = peg$literalExpectation('years', false), peg$c69 = 'to', peg$c70 = peg$literalExpectation('to', false), peg$c71 = 'date', peg$c72 = peg$literalExpectation('date', false), peg$c73 = 'excluding', peg$c74 = peg$literalExpectation('excluding', false), peg$c75 = 'today', peg$c76 = peg$literalExpectation('today', false), peg$c77 = function (operator, interval, excludeToday) {
167
167
  return {
168
168
  type: operator,
169
169
  values: [1],
170
170
  date_interval: interval,
171
+ to_date: true,
172
+ ...(excludeToday ? { exclude_today: true } : {}),
171
173
  };
172
- }, peg$c70 = 'notInTheCurrent', peg$c71 = peg$literalExpectation('notInTheCurrent', false), peg$c72 = 'inTheCurrent', peg$c73 = peg$literalExpectation('inTheCurrent', false), peg$c74 = 'quarters', peg$c75 = peg$literalExpectation('quarters', false), peg$c76 = 'millisecond', peg$c77 = peg$literalExpectation('millisecond', false), peg$c78 = 'second', peg$c79 = peg$literalExpectation('second', false), peg$c80 = 'minute', peg$c81 = peg$literalExpectation('minute', false), peg$c82 = 'hour', peg$c83 = peg$literalExpectation('hour', false), peg$c84 = 'day', peg$c85 = peg$literalExpectation('day', false), peg$c86 = 'week', peg$c87 = peg$literalExpectation('week', false), peg$c88 = 'month', peg$c89 = peg$literalExpectation('month', false), peg$c90 = 'quarter', peg$c91 = peg$literalExpectation('quarter', false), peg$c92 = 'year', peg$c93 = peg$literalExpectation('year', false), peg$c94 = function (singular) {
174
+ }, peg$c78 = function (operator, interval) {
175
+ return {
176
+ type: operator,
177
+ values: [1],
178
+ date_interval: interval,
179
+ };
180
+ }, peg$c79 = 'notInTheCurrent', peg$c80 = peg$literalExpectation('notInTheCurrent', false), peg$c81 = 'inTheCurrent', peg$c82 = peg$literalExpectation('inTheCurrent', false), peg$c83 = 'quarters', peg$c84 = peg$literalExpectation('quarters', false), peg$c85 = 'millisecond', peg$c86 = peg$literalExpectation('millisecond', false), peg$c87 = 'second', peg$c88 = peg$literalExpectation('second', false), peg$c89 = 'minute', peg$c90 = peg$literalExpectation('minute', false), peg$c91 = 'hour', peg$c92 = peg$literalExpectation('hour', false), peg$c93 = 'day', peg$c94 = peg$literalExpectation('day', false), peg$c95 = 'week', peg$c96 = peg$literalExpectation('week', false), peg$c97 = 'month', peg$c98 = peg$literalExpectation('month', false), peg$c99 = 'quarter', peg$c100 = peg$literalExpectation('quarter', false), peg$c101 = 'year', peg$c102 = peg$literalExpectation('year', false), peg$c103 = function (singular) {
173
181
  return singular + 's';
174
- }, peg$c95 = /^[Ee]/, peg$c96 = peg$classExpectation(['E', 'e'], false, false), peg$c97 = /^[+\-]/, peg$c98 = peg$classExpectation(['+', '-'], false, false), peg$c99 = function () {
182
+ }, peg$c104 = /^[Ee]/, peg$c105 = peg$classExpectation(['E', 'e'], false, false), peg$c106 = /^[+\-]/, peg$c107 = peg$classExpectation(['+', '-'], false, false), peg$c108 = function () {
175
183
  return Number(text());
176
- }, peg$c100 = function (left, right) {
184
+ }, peg$c109 = function (left, right) {
177
185
  return {
178
186
  type: ',',
179
187
  left: left,
180
188
  right: right,
181
189
  };
182
- }, peg$c101 = function (not, term) {
190
+ }, peg$c110 = function (not, term) {
183
191
  term.is = not ? false : true;
184
192
  return term;
185
- }, peg$c102 = 'EMPTY', peg$c103 = peg$literalExpectation('EMPTY', false), peg$c104 = 'empty', peg$c105 = peg$literalExpectation('empty', false), peg$c106 = function () {
193
+ }, peg$c111 = 'EMPTY', peg$c112 = peg$literalExpectation('EMPTY', false), peg$c113 = 'empty', peg$c114 = peg$literalExpectation('empty', false), peg$c115 = function () {
186
194
  return {
187
195
  type: 'blank',
188
196
  };
189
- }, peg$c107 = 'NULL', peg$c108 = peg$literalExpectation('NULL', false), peg$c109 = 'null', peg$c110 = peg$literalExpectation('null', false), peg$c111 = function () {
197
+ }, peg$c116 = 'NULL', peg$c117 = peg$literalExpectation('NULL', false), peg$c118 = 'null', peg$c119 = peg$literalExpectation('null', false), peg$c120 = function () {
190
198
  return {
191
199
  type: 'null',
192
200
  };
193
- }, peg$c112 = function (sequence) {
201
+ }, peg$c121 = function (sequence) {
194
202
  return {
195
203
  type: 'equals',
196
204
  values: [sequence.join('')],
197
205
  };
198
- }, peg$c113 = function (sequence) {
206
+ }, peg$c122 = function (sequence) {
199
207
  return {
200
208
  type: 'equals',
201
209
  values: [sequence.join('')],
202
210
  };
203
- }, peg$c114 = function (value) {
211
+ }, peg$c123 = function (value) {
204
212
  return {
205
213
  type: 'include',
206
214
  values: [value.join('')],
207
215
  };
208
- }, peg$c115 = function (value) {
216
+ }, peg$c124 = function (value) {
209
217
  return {
210
218
  type: 'startsWith',
211
219
  values: [value.join('')],
212
220
  };
213
- }, peg$c116 = function (value) {
221
+ }, peg$c125 = function (value) {
214
222
  return {
215
223
  type: 'endsWith',
216
224
  values: [value.join('')],
217
225
  };
218
- }, peg$c117 = '!', peg$c118 = peg$literalExpectation('!', false), peg$c119 = peg$otherExpectation('string'), peg$c120 = function (str) {
226
+ }, peg$c126 = '!', peg$c127 = peg$literalExpectation('!', false), peg$c128 = peg$otherExpectation('string'), peg$c129 = function (str) {
219
227
  return str;
220
- }, peg$c121 = function (str) {
228
+ }, peg$c130 = function (str) {
221
229
  return str ? str.trim() : str;
222
- }, peg$c122 = function (chars) {
230
+ }, peg$c131 = function (chars) {
223
231
  return '"' + chars.join('') + '"';
224
- }, peg$c123 = function (chars) {
232
+ }, peg$c132 = function (chars) {
225
233
  return chars.join('');
226
- }, peg$c124 = peg$otherExpectation('character'), peg$c125 = function (symbol) {
234
+ }, peg$c133 = peg$otherExpectation('character'), peg$c134 = function (symbol) {
227
235
  return symbol;
228
- }, peg$c126 = '"', peg$c127 = peg$literalExpectation('"', false), peg$c128 = '\\', peg$c129 = peg$literalExpectation('\\', false), peg$c130 = '/', peg$c131 = peg$literalExpectation('/', false), peg$c132 = 'b', peg$c133 = peg$literalExpectation('b', false), peg$c134 = function () {
236
+ }, peg$c135 = '"', peg$c136 = peg$literalExpectation('"', false), peg$c137 = '\\', peg$c138 = peg$literalExpectation('\\', false), peg$c139 = '/', peg$c140 = peg$literalExpectation('/', false), peg$c141 = 'b', peg$c142 = peg$literalExpectation('b', false), peg$c143 = function () {
229
237
  return '\b';
230
- }, peg$c135 = 'f', peg$c136 = peg$literalExpectation('f', false), peg$c137 = function () {
238
+ }, peg$c144 = 'f', peg$c145 = peg$literalExpectation('f', false), peg$c146 = function () {
231
239
  return '\f';
232
- }, peg$c138 = 'n', peg$c139 = peg$literalExpectation('n', false), peg$c140 = function () {
240
+ }, peg$c147 = 'n', peg$c148 = peg$literalExpectation('n', false), peg$c149 = function () {
233
241
  return '\n';
234
- }, peg$c141 = 'r', peg$c142 = peg$literalExpectation('r', false), peg$c143 = function () {
242
+ }, peg$c150 = 'r', peg$c151 = peg$literalExpectation('r', false), peg$c152 = function () {
235
243
  return '\r';
236
- }, peg$c144 = 't', peg$c145 = peg$literalExpectation('t', false), peg$c146 = function () {
244
+ }, peg$c153 = 't', peg$c154 = peg$literalExpectation('t', false), peg$c155 = function () {
237
245
  return '\t';
238
- }, peg$c147 = 'u', peg$c148 = peg$literalExpectation('u', false), peg$c149 = function (digits) {
246
+ }, peg$c156 = 'u', peg$c157 = peg$literalExpectation('u', false), peg$c158 = function (digits) {
239
247
  return String.fromCharCode(parseInt(digits, 16));
240
- }, peg$c150 = function (sequence) {
248
+ }, peg$c159 = function (sequence) {
241
249
  return sequence;
242
- }, peg$c151 = function () {
250
+ }, peg$c160 = function () {
243
251
  return ' ';
244
- }, peg$c152 = function (symbol) {
252
+ }, peg$c161 = function (symbol) {
245
253
  return symbol;
246
- }, peg$c153 = '%', peg$c154 = peg$literalExpectation('%', false), peg$c155 = '_', peg$c156 = peg$literalExpectation('_', false), peg$c157 = ',', peg$c158 = peg$literalExpectation(',', false), peg$c159 = ' ', peg$c160 = peg$literalExpectation(' ', false), peg$c161 = '^ ', peg$c162 = peg$literalExpectation('^ ', false), peg$c163 = peg$anyExpectation(), peg$c164 = ' ^ ', peg$c165 = peg$literalExpectation(' ^ ', false), peg$c166 = '^', peg$c167 = peg$literalExpectation('^', false), peg$c168 = '\\"', peg$c169 = peg$literalExpectation('\\"', false), peg$c170 = function (char) {
254
+ }, peg$c162 = '%', peg$c163 = peg$literalExpectation('%', false), peg$c164 = '_', peg$c165 = peg$literalExpectation('_', false), peg$c166 = ',', peg$c167 = peg$literalExpectation(',', false), peg$c168 = ' ', peg$c169 = peg$literalExpectation(' ', false), peg$c170 = '^ ', peg$c171 = peg$literalExpectation('^ ', false), peg$c172 = peg$anyExpectation(), peg$c173 = ' ^ ', peg$c174 = peg$literalExpectation(' ^ ', false), peg$c175 = '^', peg$c176 = peg$literalExpectation('^', false), peg$c177 = '\\"', peg$c178 = peg$literalExpectation('\\"', false), peg$c179 = function (char) {
247
255
  return char;
248
- }, peg$c171 = /^[^\0-\x1F"\\]/, peg$c172 = peg$classExpectation([['\0', '\x1F'], '"', '\\'], true, false), peg$c173 = /^[0-9a-f]/i, peg$c174 = peg$classExpectation([
256
+ }, peg$c180 = /^[^\0-\x1F"\\]/, peg$c181 = peg$classExpectation([['\0', '\x1F'], '"', '\\'], true, false), peg$c182 = /^[0-9a-f]/i, peg$c183 = peg$classExpectation([
249
257
  ['0', '9'],
250
258
  ['a', 'f'],
251
259
  ], false, true), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
@@ -1590,7 +1598,7 @@ exports.filterGrammarParser /*
1590
1598
  return s0;
1591
1599
  }
1592
1600
  function peg$parseCURRENT_DATE_RESTRICTION() {
1593
- var s0, s1, s2, s3, s4;
1601
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13;
1594
1602
  s0 = peg$currPos;
1595
1603
  s1 = [];
1596
1604
  s2 = peg$parseSPACE_SYMBOL();
@@ -1613,11 +1621,178 @@ exports.filterGrammarParser /*
1613
1621
  s3 = peg$FAILED;
1614
1622
  }
1615
1623
  if (s3 !== peg$FAILED) {
1616
- s4 = peg$parseCURRENT_DATE_INTERVAL();
1624
+ s4 = peg$parseCURRENT_PERIOD_INTERVAL();
1617
1625
  if (s4 !== peg$FAILED) {
1618
- peg$savedPos = s0;
1619
- s1 = peg$c69(s2, s4);
1620
- s0 = s1;
1626
+ s5 = [];
1627
+ s6 = peg$parseSPACE_SYMBOL();
1628
+ if (s6 !== peg$FAILED) {
1629
+ while (s6 !== peg$FAILED) {
1630
+ s5.push(s6);
1631
+ s6 = peg$parseSPACE_SYMBOL();
1632
+ }
1633
+ }
1634
+ else {
1635
+ s5 = peg$FAILED;
1636
+ }
1637
+ if (s5 !== peg$FAILED) {
1638
+ if (input.substr(peg$currPos, 2) === peg$c69) {
1639
+ s6 = peg$c69;
1640
+ peg$currPos += 2;
1641
+ }
1642
+ else {
1643
+ s6 = peg$FAILED;
1644
+ if (peg$silentFails === 0) {
1645
+ peg$fail(peg$c70);
1646
+ }
1647
+ }
1648
+ if (s6 !== peg$FAILED) {
1649
+ s7 = [];
1650
+ s8 = peg$parseSPACE_SYMBOL();
1651
+ if (s8 !== peg$FAILED) {
1652
+ while (s8 !== peg$FAILED) {
1653
+ s7.push(s8);
1654
+ s8 = peg$parseSPACE_SYMBOL();
1655
+ }
1656
+ }
1657
+ else {
1658
+ s7 = peg$FAILED;
1659
+ }
1660
+ if (s7 !== peg$FAILED) {
1661
+ if (input.substr(peg$currPos, 4) ===
1662
+ peg$c71) {
1663
+ s8 = peg$c71;
1664
+ peg$currPos += 4;
1665
+ }
1666
+ else {
1667
+ s8 = peg$FAILED;
1668
+ if (peg$silentFails === 0) {
1669
+ peg$fail(peg$c72);
1670
+ }
1671
+ }
1672
+ if (s8 !== peg$FAILED) {
1673
+ s9 = peg$currPos;
1674
+ s10 = [];
1675
+ s11 = peg$parseSPACE_SYMBOL();
1676
+ if (s11 !== peg$FAILED) {
1677
+ while (s11 !== peg$FAILED) {
1678
+ s10.push(s11);
1679
+ s11 =
1680
+ peg$parseSPACE_SYMBOL();
1681
+ }
1682
+ }
1683
+ else {
1684
+ s10 = peg$FAILED;
1685
+ }
1686
+ if (s10 !== peg$FAILED) {
1687
+ if (input.substr(peg$currPos, 9) === peg$c73) {
1688
+ s11 = peg$c73;
1689
+ peg$currPos += 9;
1690
+ }
1691
+ else {
1692
+ s11 = peg$FAILED;
1693
+ if (peg$silentFails === 0) {
1694
+ peg$fail(peg$c74);
1695
+ }
1696
+ }
1697
+ if (s11 !== peg$FAILED) {
1698
+ s12 = [];
1699
+ s13 =
1700
+ peg$parseSPACE_SYMBOL();
1701
+ if (s13 !== peg$FAILED) {
1702
+ while (s13 !== peg$FAILED) {
1703
+ s12.push(s13);
1704
+ s13 =
1705
+ peg$parseSPACE_SYMBOL();
1706
+ }
1707
+ }
1708
+ else {
1709
+ s12 = peg$FAILED;
1710
+ }
1711
+ if (s12 !== peg$FAILED) {
1712
+ if (input.substr(peg$currPos, 5) === peg$c75) {
1713
+ s13 = peg$c75;
1714
+ peg$currPos += 5;
1715
+ }
1716
+ else {
1717
+ s13 = peg$FAILED;
1718
+ if (peg$silentFails ===
1719
+ 0) {
1720
+ peg$fail(peg$c76);
1721
+ }
1722
+ }
1723
+ if (s13 !== peg$FAILED) {
1724
+ s10 = [
1725
+ s10,
1726
+ s11,
1727
+ s12,
1728
+ s13,
1729
+ ];
1730
+ s9 = s10;
1731
+ }
1732
+ else {
1733
+ peg$currPos = s9;
1734
+ s9 = peg$FAILED;
1735
+ }
1736
+ }
1737
+ else {
1738
+ peg$currPos = s9;
1739
+ s9 = peg$FAILED;
1740
+ }
1741
+ }
1742
+ else {
1743
+ peg$currPos = s9;
1744
+ s9 = peg$FAILED;
1745
+ }
1746
+ }
1747
+ else {
1748
+ peg$currPos = s9;
1749
+ s9 = peg$FAILED;
1750
+ }
1751
+ if (s9 === peg$FAILED) {
1752
+ s9 = null;
1753
+ }
1754
+ if (s9 !== peg$FAILED) {
1755
+ s10 = [];
1756
+ s11 = peg$parseSPACE_SYMBOL();
1757
+ while (s11 !== peg$FAILED) {
1758
+ s10.push(s11);
1759
+ s11 =
1760
+ peg$parseSPACE_SYMBOL();
1761
+ }
1762
+ if (s10 !== peg$FAILED) {
1763
+ peg$savedPos = s0;
1764
+ s1 = peg$c77(s2, s4, s9);
1765
+ s0 = s1;
1766
+ }
1767
+ else {
1768
+ peg$currPos = s0;
1769
+ s0 = peg$FAILED;
1770
+ }
1771
+ }
1772
+ else {
1773
+ peg$currPos = s0;
1774
+ s0 = peg$FAILED;
1775
+ }
1776
+ }
1777
+ else {
1778
+ peg$currPos = s0;
1779
+ s0 = peg$FAILED;
1780
+ }
1781
+ }
1782
+ else {
1783
+ peg$currPos = s0;
1784
+ s0 = peg$FAILED;
1785
+ }
1786
+ }
1787
+ else {
1788
+ peg$currPos = s0;
1789
+ s0 = peg$FAILED;
1790
+ }
1791
+ }
1792
+ else {
1793
+ peg$currPos = s0;
1794
+ s0 = peg$FAILED;
1795
+ }
1621
1796
  }
1622
1797
  else {
1623
1798
  peg$currPos = s0;
@@ -1638,29 +1813,78 @@ exports.filterGrammarParser /*
1638
1813
  peg$currPos = s0;
1639
1814
  s0 = peg$FAILED;
1640
1815
  }
1816
+ if (s0 === peg$FAILED) {
1817
+ s0 = peg$currPos;
1818
+ s1 = [];
1819
+ s2 = peg$parseSPACE_SYMBOL();
1820
+ while (s2 !== peg$FAILED) {
1821
+ s1.push(s2);
1822
+ s2 = peg$parseSPACE_SYMBOL();
1823
+ }
1824
+ if (s1 !== peg$FAILED) {
1825
+ s2 = peg$parseCURRENT_DATE_OPERATOR();
1826
+ if (s2 !== peg$FAILED) {
1827
+ s3 = [];
1828
+ s4 = peg$parseSPACE_SYMBOL();
1829
+ if (s4 !== peg$FAILED) {
1830
+ while (s4 !== peg$FAILED) {
1831
+ s3.push(s4);
1832
+ s4 = peg$parseSPACE_SYMBOL();
1833
+ }
1834
+ }
1835
+ else {
1836
+ s3 = peg$FAILED;
1837
+ }
1838
+ if (s3 !== peg$FAILED) {
1839
+ s4 = peg$parseCURRENT_DATE_INTERVAL();
1840
+ if (s4 !== peg$FAILED) {
1841
+ peg$savedPos = s0;
1842
+ s1 = peg$c78(s2, s4);
1843
+ s0 = s1;
1844
+ }
1845
+ else {
1846
+ peg$currPos = s0;
1847
+ s0 = peg$FAILED;
1848
+ }
1849
+ }
1850
+ else {
1851
+ peg$currPos = s0;
1852
+ s0 = peg$FAILED;
1853
+ }
1854
+ }
1855
+ else {
1856
+ peg$currPos = s0;
1857
+ s0 = peg$FAILED;
1858
+ }
1859
+ }
1860
+ else {
1861
+ peg$currPos = s0;
1862
+ s0 = peg$FAILED;
1863
+ }
1864
+ }
1641
1865
  return s0;
1642
1866
  }
1643
1867
  function peg$parseCURRENT_DATE_OPERATOR() {
1644
1868
  var s0;
1645
- if (input.substr(peg$currPos, 15) === peg$c70) {
1646
- s0 = peg$c70;
1869
+ if (input.substr(peg$currPos, 15) === peg$c79) {
1870
+ s0 = peg$c79;
1647
1871
  peg$currPos += 15;
1648
1872
  }
1649
1873
  else {
1650
1874
  s0 = peg$FAILED;
1651
1875
  if (peg$silentFails === 0) {
1652
- peg$fail(peg$c71);
1876
+ peg$fail(peg$c80);
1653
1877
  }
1654
1878
  }
1655
1879
  if (s0 === peg$FAILED) {
1656
- if (input.substr(peg$currPos, 12) === peg$c72) {
1657
- s0 = peg$c72;
1880
+ if (input.substr(peg$currPos, 12) === peg$c81) {
1881
+ s0 = peg$c81;
1658
1882
  peg$currPos += 12;
1659
1883
  }
1660
1884
  else {
1661
1885
  s0 = peg$FAILED;
1662
1886
  if (peg$silentFails === 0) {
1663
- peg$fail(peg$c73);
1887
+ peg$fail(peg$c82);
1664
1888
  }
1665
1889
  }
1666
1890
  }
@@ -1746,14 +1970,14 @@ exports.filterGrammarParser /*
1746
1970
  }
1747
1971
  if (s0 === peg$FAILED) {
1748
1972
  if (input.substr(peg$currPos, 8) ===
1749
- peg$c74) {
1750
- s0 = peg$c74;
1973
+ peg$c83) {
1974
+ s0 = peg$c83;
1751
1975
  peg$currPos += 8;
1752
1976
  }
1753
1977
  else {
1754
1978
  s0 = peg$FAILED;
1755
1979
  if (peg$silentFails === 0) {
1756
- peg$fail(peg$c75);
1980
+ peg$fail(peg$c84);
1757
1981
  }
1758
1982
  }
1759
1983
  if (s0 === peg$FAILED) {
@@ -1770,58 +1994,58 @@ exports.filterGrammarParser /*
1770
1994
  }
1771
1995
  if (s0 === peg$FAILED) {
1772
1996
  s0 = peg$currPos;
1773
- if (input.substr(peg$currPos, 11) === peg$c76) {
1774
- s1 = peg$c76;
1997
+ if (input.substr(peg$currPos, 11) === peg$c85) {
1998
+ s1 = peg$c85;
1775
1999
  peg$currPos += 11;
1776
2000
  }
1777
2001
  else {
1778
2002
  s1 = peg$FAILED;
1779
2003
  if (peg$silentFails === 0) {
1780
- peg$fail(peg$c77);
2004
+ peg$fail(peg$c86);
1781
2005
  }
1782
2006
  }
1783
2007
  if (s1 === peg$FAILED) {
1784
- if (input.substr(peg$currPos, 6) === peg$c78) {
1785
- s1 = peg$c78;
2008
+ if (input.substr(peg$currPos, 6) === peg$c87) {
2009
+ s1 = peg$c87;
1786
2010
  peg$currPos += 6;
1787
2011
  }
1788
2012
  else {
1789
2013
  s1 = peg$FAILED;
1790
2014
  if (peg$silentFails ===
1791
2015
  0) {
1792
- peg$fail(peg$c79);
2016
+ peg$fail(peg$c88);
1793
2017
  }
1794
2018
  }
1795
2019
  if (s1 === peg$FAILED) {
1796
- if (input.substr(peg$currPos, 6) === peg$c80) {
1797
- s1 = peg$c80;
2020
+ if (input.substr(peg$currPos, 6) === peg$c89) {
2021
+ s1 = peg$c89;
1798
2022
  peg$currPos += 6;
1799
2023
  }
1800
2024
  else {
1801
2025
  s1 = peg$FAILED;
1802
2026
  if (peg$silentFails ===
1803
2027
  0) {
1804
- peg$fail(peg$c81);
2028
+ peg$fail(peg$c90);
1805
2029
  }
1806
2030
  }
1807
2031
  if (s1 === peg$FAILED) {
1808
- if (input.substr(peg$currPos, 4) === peg$c82) {
1809
- s1 = peg$c82;
2032
+ if (input.substr(peg$currPos, 4) === peg$c91) {
2033
+ s1 = peg$c91;
1810
2034
  peg$currPos += 4;
1811
2035
  }
1812
2036
  else {
1813
2037
  s1 = peg$FAILED;
1814
2038
  if (peg$silentFails ===
1815
2039
  0) {
1816
- peg$fail(peg$c83);
2040
+ peg$fail(peg$c92);
1817
2041
  }
1818
2042
  }
1819
2043
  if (s1 ===
1820
2044
  peg$FAILED) {
1821
2045
  if (input.substr(peg$currPos, 3) ===
1822
- peg$c84) {
2046
+ peg$c93) {
1823
2047
  s1 =
1824
- peg$c84;
2048
+ peg$c93;
1825
2049
  peg$currPos += 3;
1826
2050
  }
1827
2051
  else {
@@ -1829,15 +2053,15 @@ exports.filterGrammarParser /*
1829
2053
  peg$FAILED;
1830
2054
  if (peg$silentFails ===
1831
2055
  0) {
1832
- peg$fail(peg$c85);
2056
+ peg$fail(peg$c94);
1833
2057
  }
1834
2058
  }
1835
2059
  if (s1 ===
1836
2060
  peg$FAILED) {
1837
2061
  if (input.substr(peg$currPos, 4) ===
1838
- peg$c86) {
2062
+ peg$c95) {
1839
2063
  s1 =
1840
- peg$c86;
2064
+ peg$c95;
1841
2065
  peg$currPos += 4;
1842
2066
  }
1843
2067
  else {
@@ -1845,15 +2069,15 @@ exports.filterGrammarParser /*
1845
2069
  peg$FAILED;
1846
2070
  if (peg$silentFails ===
1847
2071
  0) {
1848
- peg$fail(peg$c87);
2072
+ peg$fail(peg$c96);
1849
2073
  }
1850
2074
  }
1851
2075
  if (s1 ===
1852
2076
  peg$FAILED) {
1853
2077
  if (input.substr(peg$currPos, 5) ===
1854
- peg$c88) {
2078
+ peg$c97) {
1855
2079
  s1 =
1856
- peg$c88;
2080
+ peg$c97;
1857
2081
  peg$currPos += 5;
1858
2082
  }
1859
2083
  else {
@@ -1861,15 +2085,15 @@ exports.filterGrammarParser /*
1861
2085
  peg$FAILED;
1862
2086
  if (peg$silentFails ===
1863
2087
  0) {
1864
- peg$fail(peg$c89);
2088
+ peg$fail(peg$c98);
1865
2089
  }
1866
2090
  }
1867
2091
  if (s1 ===
1868
2092
  peg$FAILED) {
1869
2093
  if (input.substr(peg$currPos, 7) ===
1870
- peg$c90) {
2094
+ peg$c99) {
1871
2095
  s1 =
1872
- peg$c90;
2096
+ peg$c99;
1873
2097
  peg$currPos += 7;
1874
2098
  }
1875
2099
  else {
@@ -1877,15 +2101,15 @@ exports.filterGrammarParser /*
1877
2101
  peg$FAILED;
1878
2102
  if (peg$silentFails ===
1879
2103
  0) {
1880
- peg$fail(peg$c91);
2104
+ peg$fail(peg$c100);
1881
2105
  }
1882
2106
  }
1883
2107
  if (s1 ===
1884
2108
  peg$FAILED) {
1885
2109
  if (input.substr(peg$currPos, 4) ===
1886
- peg$c92) {
2110
+ peg$c101) {
1887
2111
  s1 =
1888
- peg$c92;
2112
+ peg$c101;
1889
2113
  peg$currPos += 4;
1890
2114
  }
1891
2115
  else {
@@ -1893,7 +2117,7 @@ exports.filterGrammarParser /*
1893
2117
  peg$FAILED;
1894
2118
  if (peg$silentFails ===
1895
2119
  0) {
1896
- peg$fail(peg$c93);
2120
+ peg$fail(peg$c102);
1897
2121
  }
1898
2122
  }
1899
2123
  }
@@ -1906,7 +2130,7 @@ exports.filterGrammarParser /*
1906
2130
  }
1907
2131
  if (s1 !== peg$FAILED) {
1908
2132
  peg$savedPos = s0;
1909
- s1 = peg$c94(s1);
2133
+ s1 = peg$c103(s1);
1910
2134
  }
1911
2135
  s0 = s1;
1912
2136
  }
@@ -1920,6 +2144,111 @@ exports.filterGrammarParser /*
1920
2144
  }
1921
2145
  return s0;
1922
2146
  }
2147
+ function peg$parseCURRENT_PERIOD_INTERVAL() {
2148
+ var s0, s1;
2149
+ if (input.substr(peg$currPos, 5) === peg$c63) {
2150
+ s0 = peg$c63;
2151
+ peg$currPos += 5;
2152
+ }
2153
+ else {
2154
+ s0 = peg$FAILED;
2155
+ if (peg$silentFails === 0) {
2156
+ peg$fail(peg$c64);
2157
+ }
2158
+ }
2159
+ if (s0 === peg$FAILED) {
2160
+ if (input.substr(peg$currPos, 6) === peg$c65) {
2161
+ s0 = peg$c65;
2162
+ peg$currPos += 6;
2163
+ }
2164
+ else {
2165
+ s0 = peg$FAILED;
2166
+ if (peg$silentFails === 0) {
2167
+ peg$fail(peg$c66);
2168
+ }
2169
+ }
2170
+ if (s0 === peg$FAILED) {
2171
+ if (input.substr(peg$currPos, 8) === peg$c83) {
2172
+ s0 = peg$c83;
2173
+ peg$currPos += 8;
2174
+ }
2175
+ else {
2176
+ s0 = peg$FAILED;
2177
+ if (peg$silentFails === 0) {
2178
+ peg$fail(peg$c84);
2179
+ }
2180
+ }
2181
+ if (s0 === peg$FAILED) {
2182
+ if (input.substr(peg$currPos, 5) === peg$c67) {
2183
+ s0 = peg$c67;
2184
+ peg$currPos += 5;
2185
+ }
2186
+ else {
2187
+ s0 = peg$FAILED;
2188
+ if (peg$silentFails === 0) {
2189
+ peg$fail(peg$c68);
2190
+ }
2191
+ }
2192
+ if (s0 === peg$FAILED) {
2193
+ s0 = peg$currPos;
2194
+ if (input.substr(peg$currPos, 4) === peg$c95) {
2195
+ s1 = peg$c95;
2196
+ peg$currPos += 4;
2197
+ }
2198
+ else {
2199
+ s1 = peg$FAILED;
2200
+ if (peg$silentFails === 0) {
2201
+ peg$fail(peg$c96);
2202
+ }
2203
+ }
2204
+ if (s1 === peg$FAILED) {
2205
+ if (input.substr(peg$currPos, 5) === peg$c97) {
2206
+ s1 = peg$c97;
2207
+ peg$currPos += 5;
2208
+ }
2209
+ else {
2210
+ s1 = peg$FAILED;
2211
+ if (peg$silentFails === 0) {
2212
+ peg$fail(peg$c98);
2213
+ }
2214
+ }
2215
+ if (s1 === peg$FAILED) {
2216
+ if (input.substr(peg$currPos, 7) === peg$c99) {
2217
+ s1 = peg$c99;
2218
+ peg$currPos += 7;
2219
+ }
2220
+ else {
2221
+ s1 = peg$FAILED;
2222
+ if (peg$silentFails === 0) {
2223
+ peg$fail(peg$c100);
2224
+ }
2225
+ }
2226
+ if (s1 === peg$FAILED) {
2227
+ if (input.substr(peg$currPos, 4) ===
2228
+ peg$c101) {
2229
+ s1 = peg$c101;
2230
+ peg$currPos += 4;
2231
+ }
2232
+ else {
2233
+ s1 = peg$FAILED;
2234
+ if (peg$silentFails === 0) {
2235
+ peg$fail(peg$c102);
2236
+ }
2237
+ }
2238
+ }
2239
+ }
2240
+ }
2241
+ if (s1 !== peg$FAILED) {
2242
+ peg$savedPos = s0;
2243
+ s1 = peg$c103(s1);
2244
+ }
2245
+ s0 = s1;
2246
+ }
2247
+ }
2248
+ }
2249
+ }
2250
+ return s0;
2251
+ }
1923
2252
  function peg$parseNUMBER() {
1924
2253
  var s0, s1, s2, s3, s4, s5, s6;
1925
2254
  s0 = peg$currPos;
@@ -1940,25 +2269,25 @@ exports.filterGrammarParser /*
1940
2269
  s2 = peg$parseFLOAT();
1941
2270
  if (s2 !== peg$FAILED) {
1942
2271
  s3 = peg$currPos;
1943
- if (peg$c95.test(input.charAt(peg$currPos))) {
2272
+ if (peg$c104.test(input.charAt(peg$currPos))) {
1944
2273
  s4 = input.charAt(peg$currPos);
1945
2274
  peg$currPos++;
1946
2275
  }
1947
2276
  else {
1948
2277
  s4 = peg$FAILED;
1949
2278
  if (peg$silentFails === 0) {
1950
- peg$fail(peg$c96);
2279
+ peg$fail(peg$c105);
1951
2280
  }
1952
2281
  }
1953
2282
  if (s4 !== peg$FAILED) {
1954
- if (peg$c97.test(input.charAt(peg$currPos))) {
2283
+ if (peg$c106.test(input.charAt(peg$currPos))) {
1955
2284
  s5 = input.charAt(peg$currPos);
1956
2285
  peg$currPos++;
1957
2286
  }
1958
2287
  else {
1959
2288
  s5 = peg$FAILED;
1960
2289
  if (peg$silentFails === 0) {
1961
- peg$fail(peg$c98);
2290
+ peg$fail(peg$c107);
1962
2291
  }
1963
2292
  }
1964
2293
  if (s5 === peg$FAILED) {
@@ -1989,7 +2318,7 @@ exports.filterGrammarParser /*
1989
2318
  }
1990
2319
  if (s3 !== peg$FAILED) {
1991
2320
  peg$savedPos = s0;
1992
- s1 = peg$c99();
2321
+ s1 = peg$c108();
1993
2322
  s0 = s1;
1994
2323
  }
1995
2324
  else {
@@ -2094,7 +2423,7 @@ exports.filterGrammarParser /*
2094
2423
  s3 = peg$parseEXPRESSION();
2095
2424
  if (s3 !== peg$FAILED) {
2096
2425
  peg$savedPos = s0;
2097
- s1 = peg$c100(s1, s3);
2426
+ s1 = peg$c109(s1, s3);
2098
2427
  s0 = s1;
2099
2428
  }
2100
2429
  else {
@@ -2130,7 +2459,7 @@ exports.filterGrammarParser /*
2130
2459
  }
2131
2460
  if (s2 !== peg$FAILED) {
2132
2461
  peg$savedPos = s0;
2133
- s1 = peg$c101(s1, s2);
2462
+ s1 = peg$c110(s1, s2);
2134
2463
  s0 = s1;
2135
2464
  }
2136
2465
  else {
@@ -2147,60 +2476,60 @@ exports.filterGrammarParser /*
2147
2476
  function peg$parseKEYWORDS() {
2148
2477
  var s0, s1;
2149
2478
  s0 = peg$currPos;
2150
- if (input.substr(peg$currPos, 5) === peg$c102) {
2151
- s1 = peg$c102;
2479
+ if (input.substr(peg$currPos, 5) === peg$c111) {
2480
+ s1 = peg$c111;
2152
2481
  peg$currPos += 5;
2153
2482
  }
2154
2483
  else {
2155
2484
  s1 = peg$FAILED;
2156
2485
  if (peg$silentFails === 0) {
2157
- peg$fail(peg$c103);
2486
+ peg$fail(peg$c112);
2158
2487
  }
2159
2488
  }
2160
2489
  if (s1 === peg$FAILED) {
2161
- if (input.substr(peg$currPos, 5) === peg$c104) {
2162
- s1 = peg$c104;
2490
+ if (input.substr(peg$currPos, 5) === peg$c113) {
2491
+ s1 = peg$c113;
2163
2492
  peg$currPos += 5;
2164
2493
  }
2165
2494
  else {
2166
2495
  s1 = peg$FAILED;
2167
2496
  if (peg$silentFails === 0) {
2168
- peg$fail(peg$c105);
2497
+ peg$fail(peg$c114);
2169
2498
  }
2170
2499
  }
2171
2500
  }
2172
2501
  if (s1 !== peg$FAILED) {
2173
2502
  peg$savedPos = s0;
2174
- s1 = peg$c106();
2503
+ s1 = peg$c115();
2175
2504
  }
2176
2505
  s0 = s1;
2177
2506
  if (s0 === peg$FAILED) {
2178
2507
  s0 = peg$currPos;
2179
- if (input.substr(peg$currPos, 4) === peg$c107) {
2180
- s1 = peg$c107;
2508
+ if (input.substr(peg$currPos, 4) === peg$c116) {
2509
+ s1 = peg$c116;
2181
2510
  peg$currPos += 4;
2182
2511
  }
2183
2512
  else {
2184
2513
  s1 = peg$FAILED;
2185
2514
  if (peg$silentFails === 0) {
2186
- peg$fail(peg$c108);
2515
+ peg$fail(peg$c117);
2187
2516
  }
2188
2517
  }
2189
2518
  if (s1 === peg$FAILED) {
2190
- if (input.substr(peg$currPos, 4) === peg$c109) {
2191
- s1 = peg$c109;
2519
+ if (input.substr(peg$currPos, 4) === peg$c118) {
2520
+ s1 = peg$c118;
2192
2521
  peg$currPos += 4;
2193
2522
  }
2194
2523
  else {
2195
2524
  s1 = peg$FAILED;
2196
2525
  if (peg$silentFails === 0) {
2197
- peg$fail(peg$c110);
2526
+ peg$fail(peg$c119);
2198
2527
  }
2199
2528
  }
2200
2529
  }
2201
2530
  if (s1 !== peg$FAILED) {
2202
2531
  peg$savedPos = s0;
2203
- s1 = peg$c111();
2532
+ s1 = peg$c120();
2204
2533
  }
2205
2534
  s0 = s1;
2206
2535
  }
@@ -2244,7 +2573,7 @@ exports.filterGrammarParser /*
2244
2573
  s3 = peg$parsequotation_mark();
2245
2574
  if (s3 !== peg$FAILED) {
2246
2575
  peg$savedPos = s0;
2247
- s1 = peg$c112(s2);
2576
+ s1 = peg$c121(s2);
2248
2577
  s0 = s1;
2249
2578
  }
2250
2579
  else {
@@ -2294,7 +2623,7 @@ exports.filterGrammarParser /*
2294
2623
  }
2295
2624
  if (s1 !== peg$FAILED) {
2296
2625
  peg$savedPos = s0;
2297
- s1 = peg$c113(s1);
2626
+ s1 = peg$c122(s1);
2298
2627
  }
2299
2628
  s0 = s1;
2300
2629
  }
@@ -2355,7 +2684,7 @@ exports.filterGrammarParser /*
2355
2684
  }
2356
2685
  if (s4 !== peg$FAILED) {
2357
2686
  peg$savedPos = s0;
2358
- s1 = peg$c114(s2);
2687
+ s1 = peg$c123(s2);
2359
2688
  s0 = s1;
2360
2689
  }
2361
2690
  else {
@@ -2421,7 +2750,7 @@ exports.filterGrammarParser /*
2421
2750
  }
2422
2751
  if (s3 !== peg$FAILED) {
2423
2752
  peg$savedPos = s0;
2424
- s1 = peg$c115(s1);
2753
+ s1 = peg$c124(s1);
2425
2754
  s0 = s1;
2426
2755
  }
2427
2756
  else {
@@ -2476,7 +2805,7 @@ exports.filterGrammarParser /*
2476
2805
  }
2477
2806
  if (s3 !== peg$FAILED) {
2478
2807
  peg$savedPos = s0;
2479
- s1 = peg$c116(s2);
2808
+ s1 = peg$c125(s2);
2480
2809
  s0 = s1;
2481
2810
  }
2482
2811
  else {
@@ -2498,13 +2827,13 @@ exports.filterGrammarParser /*
2498
2827
  function peg$parseNOT() {
2499
2828
  var s0;
2500
2829
  if (input.charCodeAt(peg$currPos) === 33) {
2501
- s0 = peg$c117;
2830
+ s0 = peg$c126;
2502
2831
  peg$currPos++;
2503
2832
  }
2504
2833
  else {
2505
2834
  s0 = peg$FAILED;
2506
2835
  if (peg$silentFails === 0) {
2507
- peg$fail(peg$c118);
2836
+ peg$fail(peg$c127);
2508
2837
  }
2509
2838
  }
2510
2839
  return s0;
@@ -2516,14 +2845,14 @@ exports.filterGrammarParser /*
2516
2845
  s1 = peg$parsechar_sequence();
2517
2846
  if (s1 !== peg$FAILED) {
2518
2847
  peg$savedPos = s0;
2519
- s1 = peg$c120(s1);
2848
+ s1 = peg$c129(s1);
2520
2849
  }
2521
2850
  s0 = s1;
2522
2851
  peg$silentFails--;
2523
2852
  if (s0 === peg$FAILED) {
2524
2853
  s1 = peg$FAILED;
2525
2854
  if (peg$silentFails === 0) {
2526
- peg$fail(peg$c119);
2855
+ peg$fail(peg$c128);
2527
2856
  }
2528
2857
  }
2529
2858
  return s0;
@@ -2535,14 +2864,14 @@ exports.filterGrammarParser /*
2535
2864
  s1 = peg$parsechar_sequence();
2536
2865
  if (s1 !== peg$FAILED) {
2537
2866
  peg$savedPos = s0;
2538
- s1 = peg$c121(s1);
2867
+ s1 = peg$c130(s1);
2539
2868
  }
2540
2869
  s0 = s1;
2541
2870
  peg$silentFails--;
2542
2871
  if (s0 === peg$FAILED) {
2543
2872
  s1 = peg$FAILED;
2544
2873
  if (peg$silentFails === 0) {
2545
- peg$fail(peg$c119);
2874
+ peg$fail(peg$c128);
2546
2875
  }
2547
2876
  }
2548
2877
  return s0;
@@ -2569,7 +2898,7 @@ exports.filterGrammarParser /*
2569
2898
  s3 = peg$parsequotation_mark();
2570
2899
  if (s3 !== peg$FAILED) {
2571
2900
  peg$savedPos = s0;
2572
- s1 = peg$c122(s2);
2901
+ s1 = peg$c131(s2);
2573
2902
  s0 = s1;
2574
2903
  }
2575
2904
  else {
@@ -2601,7 +2930,7 @@ exports.filterGrammarParser /*
2601
2930
  }
2602
2931
  if (s1 !== peg$FAILED) {
2603
2932
  peg$savedPos = s0;
2604
- s1 = peg$c123(s1);
2933
+ s1 = peg$c132(s1);
2605
2934
  }
2606
2935
  s0 = s1;
2607
2936
  }
@@ -2609,7 +2938,7 @@ exports.filterGrammarParser /*
2609
2938
  if (s0 === peg$FAILED) {
2610
2939
  s1 = peg$FAILED;
2611
2940
  if (peg$silentFails === 0) {
2612
- peg$fail(peg$c119);
2941
+ peg$fail(peg$c128);
2613
2942
  }
2614
2943
  }
2615
2944
  return s0;
@@ -2625,7 +2954,7 @@ exports.filterGrammarParser /*
2625
2954
  s2 = peg$parseSYMBOLS();
2626
2955
  if (s2 !== peg$FAILED) {
2627
2956
  peg$savedPos = s0;
2628
- s1 = peg$c125(s2);
2957
+ s1 = peg$c134(s2);
2629
2958
  s0 = s1;
2630
2959
  }
2631
2960
  else {
@@ -2642,135 +2971,135 @@ exports.filterGrammarParser /*
2642
2971
  s1 = peg$parseescape();
2643
2972
  if (s1 !== peg$FAILED) {
2644
2973
  if (input.charCodeAt(peg$currPos) === 34) {
2645
- s2 = peg$c126;
2974
+ s2 = peg$c135;
2646
2975
  peg$currPos++;
2647
2976
  }
2648
2977
  else {
2649
2978
  s2 = peg$FAILED;
2650
2979
  if (peg$silentFails === 0) {
2651
- peg$fail(peg$c127);
2980
+ peg$fail(peg$c136);
2652
2981
  }
2653
2982
  }
2654
2983
  if (s2 === peg$FAILED) {
2655
2984
  if (input.charCodeAt(peg$currPos) === 92) {
2656
- s2 = peg$c128;
2985
+ s2 = peg$c137;
2657
2986
  peg$currPos++;
2658
2987
  }
2659
2988
  else {
2660
2989
  s2 = peg$FAILED;
2661
2990
  if (peg$silentFails === 0) {
2662
- peg$fail(peg$c129);
2991
+ peg$fail(peg$c138);
2663
2992
  }
2664
2993
  }
2665
2994
  if (s2 === peg$FAILED) {
2666
2995
  if (input.charCodeAt(peg$currPos) === 47) {
2667
- s2 = peg$c130;
2996
+ s2 = peg$c139;
2668
2997
  peg$currPos++;
2669
2998
  }
2670
2999
  else {
2671
3000
  s2 = peg$FAILED;
2672
3001
  if (peg$silentFails === 0) {
2673
- peg$fail(peg$c131);
3002
+ peg$fail(peg$c140);
2674
3003
  }
2675
3004
  }
2676
3005
  if (s2 === peg$FAILED) {
2677
3006
  s2 = peg$currPos;
2678
3007
  if (input.charCodeAt(peg$currPos) === 98) {
2679
- s3 = peg$c132;
3008
+ s3 = peg$c141;
2680
3009
  peg$currPos++;
2681
3010
  }
2682
3011
  else {
2683
3012
  s3 = peg$FAILED;
2684
3013
  if (peg$silentFails === 0) {
2685
- peg$fail(peg$c133);
3014
+ peg$fail(peg$c142);
2686
3015
  }
2687
3016
  }
2688
3017
  if (s3 !== peg$FAILED) {
2689
3018
  peg$savedPos = s2;
2690
- s3 = peg$c134();
3019
+ s3 = peg$c143();
2691
3020
  }
2692
3021
  s2 = s3;
2693
3022
  if (s2 === peg$FAILED) {
2694
3023
  s2 = peg$currPos;
2695
3024
  if (input.charCodeAt(peg$currPos) ===
2696
3025
  102) {
2697
- s3 = peg$c135;
3026
+ s3 = peg$c144;
2698
3027
  peg$currPos++;
2699
3028
  }
2700
3029
  else {
2701
3030
  s3 = peg$FAILED;
2702
3031
  if (peg$silentFails === 0) {
2703
- peg$fail(peg$c136);
3032
+ peg$fail(peg$c145);
2704
3033
  }
2705
3034
  }
2706
3035
  if (s3 !== peg$FAILED) {
2707
3036
  peg$savedPos = s2;
2708
- s3 = peg$c137();
3037
+ s3 = peg$c146();
2709
3038
  }
2710
3039
  s2 = s3;
2711
3040
  if (s2 === peg$FAILED) {
2712
3041
  s2 = peg$currPos;
2713
3042
  if (input.charCodeAt(peg$currPos) === 110) {
2714
- s3 = peg$c138;
3043
+ s3 = peg$c147;
2715
3044
  peg$currPos++;
2716
3045
  }
2717
3046
  else {
2718
3047
  s3 = peg$FAILED;
2719
3048
  if (peg$silentFails === 0) {
2720
- peg$fail(peg$c139);
3049
+ peg$fail(peg$c148);
2721
3050
  }
2722
3051
  }
2723
3052
  if (s3 !== peg$FAILED) {
2724
3053
  peg$savedPos = s2;
2725
- s3 = peg$c140();
3054
+ s3 = peg$c149();
2726
3055
  }
2727
3056
  s2 = s3;
2728
3057
  if (s2 === peg$FAILED) {
2729
3058
  s2 = peg$currPos;
2730
3059
  if (input.charCodeAt(peg$currPos) === 114) {
2731
- s3 = peg$c141;
3060
+ s3 = peg$c150;
2732
3061
  peg$currPos++;
2733
3062
  }
2734
3063
  else {
2735
3064
  s3 = peg$FAILED;
2736
3065
  if (peg$silentFails === 0) {
2737
- peg$fail(peg$c142);
3066
+ peg$fail(peg$c151);
2738
3067
  }
2739
3068
  }
2740
3069
  if (s3 !== peg$FAILED) {
2741
3070
  peg$savedPos = s2;
2742
- s3 = peg$c143();
3071
+ s3 = peg$c152();
2743
3072
  }
2744
3073
  s2 = s3;
2745
3074
  if (s2 === peg$FAILED) {
2746
3075
  s2 = peg$currPos;
2747
3076
  if (input.charCodeAt(peg$currPos) === 116) {
2748
- s3 = peg$c144;
3077
+ s3 = peg$c153;
2749
3078
  peg$currPos++;
2750
3079
  }
2751
3080
  else {
2752
3081
  s3 = peg$FAILED;
2753
3082
  if (peg$silentFails ===
2754
3083
  0) {
2755
- peg$fail(peg$c145);
3084
+ peg$fail(peg$c154);
2756
3085
  }
2757
3086
  }
2758
3087
  if (s3 !== peg$FAILED) {
2759
3088
  peg$savedPos = s2;
2760
- s3 = peg$c146();
3089
+ s3 = peg$c155();
2761
3090
  }
2762
3091
  s2 = s3;
2763
3092
  if (s2 === peg$FAILED) {
2764
3093
  s2 = peg$currPos;
2765
3094
  if (input.charCodeAt(peg$currPos) === 117) {
2766
- s3 = peg$c147;
3095
+ s3 = peg$c156;
2767
3096
  peg$currPos++;
2768
3097
  }
2769
3098
  else {
2770
3099
  s3 = peg$FAILED;
2771
3100
  if (peg$silentFails ===
2772
3101
  0) {
2773
- peg$fail(peg$c148);
3102
+ peg$fail(peg$c157);
2774
3103
  }
2775
3104
  }
2776
3105
  if (s3 !== peg$FAILED) {
@@ -2841,7 +3170,7 @@ exports.filterGrammarParser /*
2841
3170
  peg$savedPos =
2842
3171
  s2;
2843
3172
  s3 =
2844
- peg$c149(s4);
3173
+ peg$c158(s4);
2845
3174
  s2 = s3;
2846
3175
  }
2847
3176
  else {
@@ -2864,7 +3193,7 @@ exports.filterGrammarParser /*
2864
3193
  }
2865
3194
  if (s2 !== peg$FAILED) {
2866
3195
  peg$savedPos = s0;
2867
- s1 = peg$c150(s2);
3196
+ s1 = peg$c159(s2);
2868
3197
  s0 = s1;
2869
3198
  }
2870
3199
  else {
@@ -2888,7 +3217,7 @@ exports.filterGrammarParser /*
2888
3217
  if (s0 === peg$FAILED) {
2889
3218
  s1 = peg$FAILED;
2890
3219
  if (peg$silentFails === 0) {
2891
- peg$fail(peg$c124);
3220
+ peg$fail(peg$c133);
2892
3221
  }
2893
3222
  }
2894
3223
  return s0;
@@ -2930,7 +3259,7 @@ exports.filterGrammarParser /*
2930
3259
  }
2931
3260
  if (s2 !== peg$FAILED) {
2932
3261
  peg$savedPos = s0;
2933
- s1 = peg$c151();
3262
+ s1 = peg$c160();
2934
3263
  s0 = s1;
2935
3264
  }
2936
3265
  else {
@@ -2961,7 +3290,7 @@ exports.filterGrammarParser /*
2961
3290
  }
2962
3291
  if (s2 !== peg$FAILED) {
2963
3292
  peg$savedPos = s0;
2964
- s1 = peg$c152(s2);
3293
+ s1 = peg$c161(s2);
2965
3294
  s0 = s1;
2966
3295
  }
2967
3296
  else {
@@ -2996,13 +3325,13 @@ exports.filterGrammarParser /*
2996
3325
  function peg$parsePCT_SYMBOL() {
2997
3326
  var s0;
2998
3327
  if (input.charCodeAt(peg$currPos) === 37) {
2999
- s0 = peg$c153;
3328
+ s0 = peg$c162;
3000
3329
  peg$currPos++;
3001
3330
  }
3002
3331
  else {
3003
3332
  s0 = peg$FAILED;
3004
3333
  if (peg$silentFails === 0) {
3005
- peg$fail(peg$c154);
3334
+ peg$fail(peg$c163);
3006
3335
  }
3007
3336
  }
3008
3337
  return s0;
@@ -3010,13 +3339,13 @@ exports.filterGrammarParser /*
3010
3339
  function peg$parseUNDERSCORE() {
3011
3340
  var s0;
3012
3341
  if (input.charCodeAt(peg$currPos) === 95) {
3013
- s0 = peg$c155;
3342
+ s0 = peg$c164;
3014
3343
  peg$currPos++;
3015
3344
  }
3016
3345
  else {
3017
3346
  s0 = peg$FAILED;
3018
3347
  if (peg$silentFails === 0) {
3019
- peg$fail(peg$c156);
3348
+ peg$fail(peg$c165);
3020
3349
  }
3021
3350
  }
3022
3351
  return s0;
@@ -3024,13 +3353,13 @@ exports.filterGrammarParser /*
3024
3353
  function peg$parseCOMMA_SYMBOL() {
3025
3354
  var s0;
3026
3355
  if (input.charCodeAt(peg$currPos) === 44) {
3027
- s0 = peg$c157;
3356
+ s0 = peg$c166;
3028
3357
  peg$currPos++;
3029
3358
  }
3030
3359
  else {
3031
3360
  s0 = peg$FAILED;
3032
3361
  if (peg$silentFails === 0) {
3033
- peg$fail(peg$c158);
3362
+ peg$fail(peg$c167);
3034
3363
  }
3035
3364
  }
3036
3365
  return s0;
@@ -3052,13 +3381,13 @@ exports.filterGrammarParser /*
3052
3381
  function peg$parseSPACE_SYMBOL() {
3053
3382
  var s0;
3054
3383
  if (input.charCodeAt(peg$currPos) === 32) {
3055
- s0 = peg$c159;
3384
+ s0 = peg$c168;
3056
3385
  peg$currPos++;
3057
3386
  }
3058
3387
  else {
3059
3388
  s0 = peg$FAILED;
3060
3389
  if (peg$silentFails === 0) {
3061
- peg$fail(peg$c160);
3390
+ peg$fail(peg$c169);
3062
3391
  }
3063
3392
  }
3064
3393
  return s0;
@@ -3066,14 +3395,14 @@ exports.filterGrammarParser /*
3066
3395
  function peg$parseFOLLOWING_SPACE_END() {
3067
3396
  var s0, s1, s2, s3;
3068
3397
  s0 = peg$currPos;
3069
- if (input.substr(peg$currPos, 2) === peg$c161) {
3070
- s1 = peg$c161;
3398
+ if (input.substr(peg$currPos, 2) === peg$c170) {
3399
+ s1 = peg$c170;
3071
3400
  peg$currPos += 2;
3072
3401
  }
3073
3402
  else {
3074
3403
  s1 = peg$FAILED;
3075
3404
  if (peg$silentFails === 0) {
3076
- peg$fail(peg$c162);
3405
+ peg$fail(peg$c171);
3077
3406
  }
3078
3407
  }
3079
3408
  if (s1 !== peg$FAILED) {
@@ -3098,7 +3427,7 @@ exports.filterGrammarParser /*
3098
3427
  else {
3099
3428
  s3 = peg$FAILED;
3100
3429
  if (peg$silentFails === 0) {
3101
- peg$fail(peg$c163);
3430
+ peg$fail(peg$c172);
3102
3431
  }
3103
3432
  }
3104
3433
  peg$silentFails--;
@@ -3127,14 +3456,14 @@ exports.filterGrammarParser /*
3127
3456
  }
3128
3457
  function peg$parseESCAPED_DOUBLE_SPACE() {
3129
3458
  var s0;
3130
- if (input.substr(peg$currPos, 3) === peg$c164) {
3131
- s0 = peg$c164;
3459
+ if (input.substr(peg$currPos, 3) === peg$c173) {
3460
+ s0 = peg$c173;
3132
3461
  peg$currPos += 3;
3133
3462
  }
3134
3463
  else {
3135
3464
  s0 = peg$FAILED;
3136
3465
  if (peg$silentFails === 0) {
3137
- peg$fail(peg$c165);
3466
+ peg$fail(peg$c174);
3138
3467
  }
3139
3468
  }
3140
3469
  return s0;
@@ -3142,13 +3471,13 @@ exports.filterGrammarParser /*
3142
3471
  function peg$parseCARET() {
3143
3472
  var s0;
3144
3473
  if (input.charCodeAt(peg$currPos) === 94) {
3145
- s0 = peg$c166;
3474
+ s0 = peg$c175;
3146
3475
  peg$currPos++;
3147
3476
  }
3148
3477
  else {
3149
3478
  s0 = peg$FAILED;
3150
3479
  if (peg$silentFails === 0) {
3151
- peg$fail(peg$c167);
3480
+ peg$fail(peg$c176);
3152
3481
  }
3153
3482
  }
3154
3483
  return s0;
@@ -3156,27 +3485,27 @@ exports.filterGrammarParser /*
3156
3485
  function peg$parseescape() {
3157
3486
  var s0;
3158
3487
  if (input.charCodeAt(peg$currPos) === 92) {
3159
- s0 = peg$c128;
3488
+ s0 = peg$c137;
3160
3489
  peg$currPos++;
3161
3490
  }
3162
3491
  else {
3163
3492
  s0 = peg$FAILED;
3164
3493
  if (peg$silentFails === 0) {
3165
- peg$fail(peg$c129);
3494
+ peg$fail(peg$c138);
3166
3495
  }
3167
3496
  }
3168
3497
  return s0;
3169
3498
  }
3170
3499
  function peg$parseescaped_quotation_mark() {
3171
3500
  var s0;
3172
- if (input.substr(peg$currPos, 2) === peg$c168) {
3173
- s0 = peg$c168;
3501
+ if (input.substr(peg$currPos, 2) === peg$c177) {
3502
+ s0 = peg$c177;
3174
3503
  peg$currPos += 2;
3175
3504
  }
3176
3505
  else {
3177
3506
  s0 = peg$FAILED;
3178
3507
  if (peg$silentFails === 0) {
3179
- peg$fail(peg$c169);
3508
+ peg$fail(peg$c178);
3180
3509
  }
3181
3510
  }
3182
3511
  return s0;
@@ -3184,13 +3513,13 @@ exports.filterGrammarParser /*
3184
3513
  function peg$parsequotation_mark() {
3185
3514
  var s0;
3186
3515
  if (input.charCodeAt(peg$currPos) === 34) {
3187
- s0 = peg$c126;
3516
+ s0 = peg$c135;
3188
3517
  peg$currPos++;
3189
3518
  }
3190
3519
  else {
3191
3520
  s0 = peg$FAILED;
3192
3521
  if (peg$silentFails === 0) {
3193
- peg$fail(peg$c127);
3522
+ peg$fail(peg$c136);
3194
3523
  }
3195
3524
  }
3196
3525
  return s0;
@@ -3213,7 +3542,7 @@ exports.filterGrammarParser /*
3213
3542
  s2 = peg$parsechar_range();
3214
3543
  if (s2 !== peg$FAILED) {
3215
3544
  peg$savedPos = s0;
3216
- s1 = peg$c170(s2);
3545
+ s1 = peg$c179(s2);
3217
3546
  s0 = s1;
3218
3547
  }
3219
3548
  else {
@@ -3233,35 +3562,35 @@ exports.filterGrammarParser /*
3233
3562
  s1 = peg$parsechar_range();
3234
3563
  if (s1 !== peg$FAILED) {
3235
3564
  peg$savedPos = s0;
3236
- s1 = peg$c170(s1);
3565
+ s1 = peg$c179(s1);
3237
3566
  }
3238
3567
  s0 = s1;
3239
3568
  return s0;
3240
3569
  }
3241
3570
  function peg$parsechar_range() {
3242
3571
  var s0;
3243
- if (peg$c171.test(input.charAt(peg$currPos))) {
3572
+ if (peg$c180.test(input.charAt(peg$currPos))) {
3244
3573
  s0 = input.charAt(peg$currPos);
3245
3574
  peg$currPos++;
3246
3575
  }
3247
3576
  else {
3248
3577
  s0 = peg$FAILED;
3249
3578
  if (peg$silentFails === 0) {
3250
- peg$fail(peg$c172);
3579
+ peg$fail(peg$c181);
3251
3580
  }
3252
3581
  }
3253
3582
  return s0;
3254
3583
  }
3255
3584
  function peg$parseHEXDIG() {
3256
3585
  var s0;
3257
- if (peg$c173.test(input.charAt(peg$currPos))) {
3586
+ if (peg$c182.test(input.charAt(peg$currPos))) {
3258
3587
  s0 = input.charAt(peg$currPos);
3259
3588
  peg$currPos++;
3260
3589
  }
3261
3590
  else {
3262
3591
  s0 = peg$FAILED;
3263
3592
  if (peg$silentFails === 0) {
3264
- peg$fail(peg$c174);
3593
+ peg$fail(peg$c183);
3265
3594
  }
3266
3595
  }
3267
3596
  return s0;