@odoo/o-spreadsheet 16.2.28 → 16.2.29

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.
@@ -2021,27 +2021,30 @@
2021
2021
  }
2022
2022
  function createLargeNumberFormat(format, magnitude, postFix) {
2023
2023
  const internalFormat = parseFormat(format || "#,##0");
2024
- const largeNumberFormat = internalFormat
2025
- .map((formatPart) => {
2026
- if (formatPart.type === "NUMBER") {
2027
- return [
2028
- {
2029
- ...formatPart,
2030
- format: {
2031
- ...formatPart.format,
2032
- magnitude,
2033
- decimalPart: undefined,
2034
- },
2035
- },
2036
- {
2037
- type: "STRING",
2038
- format: postFix,
2039
- },
2040
- ];
2024
+ const largeNumberFormat = [];
2025
+ for (let i = 0; i < internalFormat.length; i++) {
2026
+ const formatPart = internalFormat[i];
2027
+ if (formatPart.type !== "NUMBER") {
2028
+ largeNumberFormat.push(formatPart);
2029
+ continue;
2041
2030
  }
2042
- return formatPart;
2043
- })
2044
- .flat();
2031
+ largeNumberFormat.push({
2032
+ ...formatPart,
2033
+ format: {
2034
+ ...formatPart.format,
2035
+ magnitude,
2036
+ decimalPart: undefined,
2037
+ },
2038
+ });
2039
+ largeNumberFormat.push({
2040
+ type: "STRING",
2041
+ format: postFix,
2042
+ });
2043
+ const nextFormatPart = internalFormat[i + 1];
2044
+ if ((nextFormatPart === null || nextFormatPart === void 0 ? void 0 : nextFormatPart.type) === "STRING" && ["k", "m", "b"].includes(nextFormatPart.format)) {
2045
+ i++;
2046
+ }
2047
+ }
2045
2048
  return convertInternalFormatToFormat(largeNumberFormat);
2046
2049
  }
2047
2050
  function changeDecimalPlaces(format, step) {
@@ -4312,64 +4315,65 @@
4312
4315
  CommandResult[CommandResult["InvalidFigureId"] = 28] = "InvalidFigureId";
4313
4316
  CommandResult[CommandResult["InputAlreadyFocused"] = 29] = "InputAlreadyFocused";
4314
4317
  CommandResult[CommandResult["MaximumRangesReached"] = 30] = "MaximumRangesReached";
4315
- CommandResult[CommandResult["InvalidChartDefinition"] = 31] = "InvalidChartDefinition";
4316
- CommandResult[CommandResult["InvalidDataSet"] = 32] = "InvalidDataSet";
4317
- CommandResult[CommandResult["InvalidLabelRange"] = 33] = "InvalidLabelRange";
4318
- CommandResult[CommandResult["InvalidScorecardKeyValue"] = 34] = "InvalidScorecardKeyValue";
4319
- CommandResult[CommandResult["InvalidScorecardBaseline"] = 35] = "InvalidScorecardBaseline";
4320
- CommandResult[CommandResult["InvalidGaugeDataRange"] = 36] = "InvalidGaugeDataRange";
4321
- CommandResult[CommandResult["EmptyGaugeRangeMin"] = 37] = "EmptyGaugeRangeMin";
4322
- CommandResult[CommandResult["GaugeRangeMinNaN"] = 38] = "GaugeRangeMinNaN";
4323
- CommandResult[CommandResult["EmptyGaugeRangeMax"] = 39] = "EmptyGaugeRangeMax";
4324
- CommandResult[CommandResult["GaugeRangeMaxNaN"] = 40] = "GaugeRangeMaxNaN";
4325
- CommandResult[CommandResult["GaugeRangeMinBiggerThanRangeMax"] = 41] = "GaugeRangeMinBiggerThanRangeMax";
4326
- CommandResult[CommandResult["GaugeLowerInflectionPointNaN"] = 42] = "GaugeLowerInflectionPointNaN";
4327
- CommandResult[CommandResult["GaugeUpperInflectionPointNaN"] = 43] = "GaugeUpperInflectionPointNaN";
4328
- CommandResult[CommandResult["GaugeLowerBiggerThanUpper"] = 44] = "GaugeLowerBiggerThanUpper";
4329
- CommandResult[CommandResult["InvalidAutofillSelection"] = 45] = "InvalidAutofillSelection";
4330
- CommandResult[CommandResult["WrongComposerSelection"] = 46] = "WrongComposerSelection";
4331
- CommandResult[CommandResult["MinBiggerThanMax"] = 47] = "MinBiggerThanMax";
4332
- CommandResult[CommandResult["LowerBiggerThanUpper"] = 48] = "LowerBiggerThanUpper";
4333
- CommandResult[CommandResult["MidBiggerThanMax"] = 49] = "MidBiggerThanMax";
4334
- CommandResult[CommandResult["MinBiggerThanMid"] = 50] = "MinBiggerThanMid";
4335
- CommandResult[CommandResult["FirstArgMissing"] = 51] = "FirstArgMissing";
4336
- CommandResult[CommandResult["SecondArgMissing"] = 52] = "SecondArgMissing";
4337
- CommandResult[CommandResult["MinNaN"] = 53] = "MinNaN";
4338
- CommandResult[CommandResult["MidNaN"] = 54] = "MidNaN";
4339
- CommandResult[CommandResult["MaxNaN"] = 55] = "MaxNaN";
4340
- CommandResult[CommandResult["ValueUpperInflectionNaN"] = 56] = "ValueUpperInflectionNaN";
4341
- CommandResult[CommandResult["ValueLowerInflectionNaN"] = 57] = "ValueLowerInflectionNaN";
4342
- CommandResult[CommandResult["MinInvalidFormula"] = 58] = "MinInvalidFormula";
4343
- CommandResult[CommandResult["MidInvalidFormula"] = 59] = "MidInvalidFormula";
4344
- CommandResult[CommandResult["MaxInvalidFormula"] = 60] = "MaxInvalidFormula";
4345
- CommandResult[CommandResult["ValueUpperInvalidFormula"] = 61] = "ValueUpperInvalidFormula";
4346
- CommandResult[CommandResult["ValueLowerInvalidFormula"] = 62] = "ValueLowerInvalidFormula";
4347
- CommandResult[CommandResult["InvalidSortZone"] = 63] = "InvalidSortZone";
4348
- CommandResult[CommandResult["WaitingSessionConfirmation"] = 64] = "WaitingSessionConfirmation";
4349
- CommandResult[CommandResult["MergeOverlap"] = 65] = "MergeOverlap";
4350
- CommandResult[CommandResult["TooManyHiddenElements"] = 66] = "TooManyHiddenElements";
4351
- CommandResult[CommandResult["Readonly"] = 67] = "Readonly";
4352
- CommandResult[CommandResult["InvalidViewportSize"] = 68] = "InvalidViewportSize";
4353
- CommandResult[CommandResult["InvalidScrollingDirection"] = 69] = "InvalidScrollingDirection";
4354
- CommandResult[CommandResult["FigureDoesNotExist"] = 70] = "FigureDoesNotExist";
4355
- CommandResult[CommandResult["InvalidConditionalFormatId"] = 71] = "InvalidConditionalFormatId";
4356
- CommandResult[CommandResult["InvalidCellPopover"] = 72] = "InvalidCellPopover";
4357
- CommandResult[CommandResult["EmptyTarget"] = 73] = "EmptyTarget";
4358
- CommandResult[CommandResult["InvalidFreezeQuantity"] = 74] = "InvalidFreezeQuantity";
4359
- CommandResult[CommandResult["FrozenPaneOverlap"] = 75] = "FrozenPaneOverlap";
4360
- CommandResult[CommandResult["ValuesNotChanged"] = 76] = "ValuesNotChanged";
4361
- CommandResult[CommandResult["InvalidFilterZone"] = 77] = "InvalidFilterZone";
4362
- CommandResult[CommandResult["FilterOverlap"] = 78] = "FilterOverlap";
4363
- CommandResult[CommandResult["FilterNotFound"] = 79] = "FilterNotFound";
4364
- CommandResult[CommandResult["MergeInFilter"] = 80] = "MergeInFilter";
4365
- CommandResult[CommandResult["NonContinuousTargets"] = 81] = "NonContinuousTargets";
4366
- CommandResult[CommandResult["DuplicatedFigureId"] = 82] = "DuplicatedFigureId";
4367
- CommandResult[CommandResult["InvalidSelectionStep"] = 83] = "InvalidSelectionStep";
4368
- CommandResult[CommandResult["DuplicatedChartId"] = 84] = "DuplicatedChartId";
4369
- CommandResult[CommandResult["ChartDoesNotExist"] = 85] = "ChartDoesNotExist";
4370
- CommandResult[CommandResult["InvalidHeaderIndex"] = 86] = "InvalidHeaderIndex";
4371
- CommandResult[CommandResult["InvalidQuantity"] = 87] = "InvalidQuantity";
4372
- CommandResult[CommandResult["NoChanges"] = 88] = "NoChanges";
4318
+ CommandResult[CommandResult["InvalidInputId"] = 31] = "InvalidInputId";
4319
+ CommandResult[CommandResult["InvalidChartDefinition"] = 32] = "InvalidChartDefinition";
4320
+ CommandResult[CommandResult["InvalidDataSet"] = 33] = "InvalidDataSet";
4321
+ CommandResult[CommandResult["InvalidLabelRange"] = 34] = "InvalidLabelRange";
4322
+ CommandResult[CommandResult["InvalidScorecardKeyValue"] = 35] = "InvalidScorecardKeyValue";
4323
+ CommandResult[CommandResult["InvalidScorecardBaseline"] = 36] = "InvalidScorecardBaseline";
4324
+ CommandResult[CommandResult["InvalidGaugeDataRange"] = 37] = "InvalidGaugeDataRange";
4325
+ CommandResult[CommandResult["EmptyGaugeRangeMin"] = 38] = "EmptyGaugeRangeMin";
4326
+ CommandResult[CommandResult["GaugeRangeMinNaN"] = 39] = "GaugeRangeMinNaN";
4327
+ CommandResult[CommandResult["EmptyGaugeRangeMax"] = 40] = "EmptyGaugeRangeMax";
4328
+ CommandResult[CommandResult["GaugeRangeMaxNaN"] = 41] = "GaugeRangeMaxNaN";
4329
+ CommandResult[CommandResult["GaugeRangeMinBiggerThanRangeMax"] = 42] = "GaugeRangeMinBiggerThanRangeMax";
4330
+ CommandResult[CommandResult["GaugeLowerInflectionPointNaN"] = 43] = "GaugeLowerInflectionPointNaN";
4331
+ CommandResult[CommandResult["GaugeUpperInflectionPointNaN"] = 44] = "GaugeUpperInflectionPointNaN";
4332
+ CommandResult[CommandResult["GaugeLowerBiggerThanUpper"] = 45] = "GaugeLowerBiggerThanUpper";
4333
+ CommandResult[CommandResult["InvalidAutofillSelection"] = 46] = "InvalidAutofillSelection";
4334
+ CommandResult[CommandResult["WrongComposerSelection"] = 47] = "WrongComposerSelection";
4335
+ CommandResult[CommandResult["MinBiggerThanMax"] = 48] = "MinBiggerThanMax";
4336
+ CommandResult[CommandResult["LowerBiggerThanUpper"] = 49] = "LowerBiggerThanUpper";
4337
+ CommandResult[CommandResult["MidBiggerThanMax"] = 50] = "MidBiggerThanMax";
4338
+ CommandResult[CommandResult["MinBiggerThanMid"] = 51] = "MinBiggerThanMid";
4339
+ CommandResult[CommandResult["FirstArgMissing"] = 52] = "FirstArgMissing";
4340
+ CommandResult[CommandResult["SecondArgMissing"] = 53] = "SecondArgMissing";
4341
+ CommandResult[CommandResult["MinNaN"] = 54] = "MinNaN";
4342
+ CommandResult[CommandResult["MidNaN"] = 55] = "MidNaN";
4343
+ CommandResult[CommandResult["MaxNaN"] = 56] = "MaxNaN";
4344
+ CommandResult[CommandResult["ValueUpperInflectionNaN"] = 57] = "ValueUpperInflectionNaN";
4345
+ CommandResult[CommandResult["ValueLowerInflectionNaN"] = 58] = "ValueLowerInflectionNaN";
4346
+ CommandResult[CommandResult["MinInvalidFormula"] = 59] = "MinInvalidFormula";
4347
+ CommandResult[CommandResult["MidInvalidFormula"] = 60] = "MidInvalidFormula";
4348
+ CommandResult[CommandResult["MaxInvalidFormula"] = 61] = "MaxInvalidFormula";
4349
+ CommandResult[CommandResult["ValueUpperInvalidFormula"] = 62] = "ValueUpperInvalidFormula";
4350
+ CommandResult[CommandResult["ValueLowerInvalidFormula"] = 63] = "ValueLowerInvalidFormula";
4351
+ CommandResult[CommandResult["InvalidSortZone"] = 64] = "InvalidSortZone";
4352
+ CommandResult[CommandResult["WaitingSessionConfirmation"] = 65] = "WaitingSessionConfirmation";
4353
+ CommandResult[CommandResult["MergeOverlap"] = 66] = "MergeOverlap";
4354
+ CommandResult[CommandResult["TooManyHiddenElements"] = 67] = "TooManyHiddenElements";
4355
+ CommandResult[CommandResult["Readonly"] = 68] = "Readonly";
4356
+ CommandResult[CommandResult["InvalidViewportSize"] = 69] = "InvalidViewportSize";
4357
+ CommandResult[CommandResult["InvalidScrollingDirection"] = 70] = "InvalidScrollingDirection";
4358
+ CommandResult[CommandResult["FigureDoesNotExist"] = 71] = "FigureDoesNotExist";
4359
+ CommandResult[CommandResult["InvalidConditionalFormatId"] = 72] = "InvalidConditionalFormatId";
4360
+ CommandResult[CommandResult["InvalidCellPopover"] = 73] = "InvalidCellPopover";
4361
+ CommandResult[CommandResult["EmptyTarget"] = 74] = "EmptyTarget";
4362
+ CommandResult[CommandResult["InvalidFreezeQuantity"] = 75] = "InvalidFreezeQuantity";
4363
+ CommandResult[CommandResult["FrozenPaneOverlap"] = 76] = "FrozenPaneOverlap";
4364
+ CommandResult[CommandResult["ValuesNotChanged"] = 77] = "ValuesNotChanged";
4365
+ CommandResult[CommandResult["InvalidFilterZone"] = 78] = "InvalidFilterZone";
4366
+ CommandResult[CommandResult["FilterOverlap"] = 79] = "FilterOverlap";
4367
+ CommandResult[CommandResult["FilterNotFound"] = 80] = "FilterNotFound";
4368
+ CommandResult[CommandResult["MergeInFilter"] = 81] = "MergeInFilter";
4369
+ CommandResult[CommandResult["NonContinuousTargets"] = 82] = "NonContinuousTargets";
4370
+ CommandResult[CommandResult["DuplicatedFigureId"] = 83] = "DuplicatedFigureId";
4371
+ CommandResult[CommandResult["InvalidSelectionStep"] = 84] = "InvalidSelectionStep";
4372
+ CommandResult[CommandResult["DuplicatedChartId"] = 85] = "DuplicatedChartId";
4373
+ CommandResult[CommandResult["ChartDoesNotExist"] = 86] = "ChartDoesNotExist";
4374
+ CommandResult[CommandResult["InvalidHeaderIndex"] = 87] = "InvalidHeaderIndex";
4375
+ CommandResult[CommandResult["InvalidQuantity"] = 88] = "InvalidQuantity";
4376
+ CommandResult[CommandResult["NoChanges"] = 89] = "NoChanges";
4373
4377
  })(exports.CommandResult || (exports.CommandResult = {}));
4374
4378
 
4375
4379
  function isMatrix(x) {
@@ -6395,11 +6399,11 @@
6395
6399
  if (definition.dataSets) {
6396
6400
  const invalidRanges = definition.dataSets.find((range) => !rangeReference.test(range)) !== undefined;
6397
6401
  if (invalidRanges) {
6398
- return 32 /* CommandResult.InvalidDataSet */;
6402
+ return 33 /* CommandResult.InvalidDataSet */;
6399
6403
  }
6400
6404
  const zones = definition.dataSets.map(toUnboundedZone);
6401
6405
  if (zones.some((zone) => zone.top !== zone.bottom && isFullRow(zone))) {
6402
- return 32 /* CommandResult.InvalidDataSet */;
6406
+ return 33 /* CommandResult.InvalidDataSet */;
6403
6407
  }
6404
6408
  }
6405
6409
  return 0 /* CommandResult.Success */;
@@ -6408,7 +6412,7 @@
6408
6412
  if (definition.labelRange) {
6409
6413
  const invalidLabels = !rangeReference.test(definition.labelRange || "");
6410
6414
  if (invalidLabels) {
6411
- return 33 /* CommandResult.InvalidLabelRange */;
6415
+ return 34 /* CommandResult.InvalidLabelRange */;
6412
6416
  }
6413
6417
  }
6414
6418
  return 0 /* CommandResult.Success */;
@@ -6481,22 +6485,22 @@
6481
6485
  const CfTerms = {
6482
6486
  Errors: {
6483
6487
  [25 /* CommandResult.InvalidRange */]: _lt("The range is invalid"),
6484
- [51 /* CommandResult.FirstArgMissing */]: _lt("The argument is missing. Please provide a value"),
6485
- [52 /* CommandResult.SecondArgMissing */]: _lt("The second argument is missing. Please provide a value"),
6486
- [53 /* CommandResult.MinNaN */]: _lt("The minpoint must be a number"),
6487
- [54 /* CommandResult.MidNaN */]: _lt("The midpoint must be a number"),
6488
- [55 /* CommandResult.MaxNaN */]: _lt("The maxpoint must be a number"),
6489
- [56 /* CommandResult.ValueUpperInflectionNaN */]: _lt("The first value must be a number"),
6490
- [57 /* CommandResult.ValueLowerInflectionNaN */]: _lt("The second value must be a number"),
6491
- [47 /* CommandResult.MinBiggerThanMax */]: _lt("Minimum must be smaller then Maximum"),
6492
- [50 /* CommandResult.MinBiggerThanMid */]: _lt("Minimum must be smaller then Midpoint"),
6493
- [49 /* CommandResult.MidBiggerThanMax */]: _lt("Midpoint must be smaller then Maximum"),
6494
- [48 /* CommandResult.LowerBiggerThanUpper */]: _lt("Lower inflection point must be smaller than upper inflection point"),
6495
- [58 /* CommandResult.MinInvalidFormula */]: _lt("Invalid Minpoint formula"),
6496
- [60 /* CommandResult.MaxInvalidFormula */]: _lt("Invalid Maxpoint formula"),
6497
- [59 /* CommandResult.MidInvalidFormula */]: _lt("Invalid Midpoint formula"),
6498
- [61 /* CommandResult.ValueUpperInvalidFormula */]: _lt("Invalid upper inflection point formula"),
6499
- [62 /* CommandResult.ValueLowerInvalidFormula */]: _lt("Invalid lower inflection point formula"),
6488
+ [52 /* CommandResult.FirstArgMissing */]: _lt("The argument is missing. Please provide a value"),
6489
+ [53 /* CommandResult.SecondArgMissing */]: _lt("The second argument is missing. Please provide a value"),
6490
+ [54 /* CommandResult.MinNaN */]: _lt("The minpoint must be a number"),
6491
+ [55 /* CommandResult.MidNaN */]: _lt("The midpoint must be a number"),
6492
+ [56 /* CommandResult.MaxNaN */]: _lt("The maxpoint must be a number"),
6493
+ [57 /* CommandResult.ValueUpperInflectionNaN */]: _lt("The first value must be a number"),
6494
+ [58 /* CommandResult.ValueLowerInflectionNaN */]: _lt("The second value must be a number"),
6495
+ [48 /* CommandResult.MinBiggerThanMax */]: _lt("Minimum must be smaller then Maximum"),
6496
+ [51 /* CommandResult.MinBiggerThanMid */]: _lt("Minimum must be smaller then Midpoint"),
6497
+ [50 /* CommandResult.MidBiggerThanMax */]: _lt("Midpoint must be smaller then Maximum"),
6498
+ [49 /* CommandResult.LowerBiggerThanUpper */]: _lt("Lower inflection point must be smaller than upper inflection point"),
6499
+ [59 /* CommandResult.MinInvalidFormula */]: _lt("Invalid Minpoint formula"),
6500
+ [61 /* CommandResult.MaxInvalidFormula */]: _lt("Invalid Maxpoint formula"),
6501
+ [60 /* CommandResult.MidInvalidFormula */]: _lt("Invalid Midpoint formula"),
6502
+ [62 /* CommandResult.ValueUpperInvalidFormula */]: _lt("Invalid upper inflection point formula"),
6503
+ [63 /* CommandResult.ValueLowerInvalidFormula */]: _lt("Invalid lower inflection point formula"),
6500
6504
  [24 /* CommandResult.EmptyRange */]: _lt("A range needs to be defined"),
6501
6505
  Unexpected: _lt("The rule is invalid for an unknown reason"),
6502
6506
  },
@@ -6524,20 +6528,20 @@
6524
6528
  Errors: {
6525
6529
  Unexpected: _lt("The chart definition is invalid for an unknown reason"),
6526
6530
  // BASIC CHART ERRORS (LINE | BAR | PIE)
6527
- [32 /* CommandResult.InvalidDataSet */]: _lt("The dataset is invalid"),
6528
- [33 /* CommandResult.InvalidLabelRange */]: _lt("Labels are invalid"),
6531
+ [33 /* CommandResult.InvalidDataSet */]: _lt("The dataset is invalid"),
6532
+ [34 /* CommandResult.InvalidLabelRange */]: _lt("Labels are invalid"),
6529
6533
  // SCORECARD CHART ERRORS
6530
- [34 /* CommandResult.InvalidScorecardKeyValue */]: _lt("The key value is invalid"),
6531
- [35 /* CommandResult.InvalidScorecardBaseline */]: _lt("The baseline value is invalid"),
6534
+ [35 /* CommandResult.InvalidScorecardKeyValue */]: _lt("The key value is invalid"),
6535
+ [36 /* CommandResult.InvalidScorecardBaseline */]: _lt("The baseline value is invalid"),
6532
6536
  // GAUGE CHART ERRORS
6533
- [36 /* CommandResult.InvalidGaugeDataRange */]: _lt("The data range is invalid"),
6534
- [37 /* CommandResult.EmptyGaugeRangeMin */]: _lt("A minimum range limit value is needed"),
6535
- [38 /* CommandResult.GaugeRangeMinNaN */]: _lt("The minimum range limit value must be a number"),
6536
- [39 /* CommandResult.EmptyGaugeRangeMax */]: _lt("A maximum range limit value is needed"),
6537
- [40 /* CommandResult.GaugeRangeMaxNaN */]: _lt("The maximum range limit value must be a number"),
6538
- [41 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */]: _lt("Minimum range limit must be smaller than maximum range limit"),
6539
- [42 /* CommandResult.GaugeLowerInflectionPointNaN */]: _lt("The lower inflection point value must be a number"),
6540
- [43 /* CommandResult.GaugeUpperInflectionPointNaN */]: _lt("The upper inflection point value must be a number"),
6537
+ [37 /* CommandResult.InvalidGaugeDataRange */]: _lt("The data range is invalid"),
6538
+ [38 /* CommandResult.EmptyGaugeRangeMin */]: _lt("A minimum range limit value is needed"),
6539
+ [39 /* CommandResult.GaugeRangeMinNaN */]: _lt("The minimum range limit value must be a number"),
6540
+ [40 /* CommandResult.EmptyGaugeRangeMax */]: _lt("A maximum range limit value is needed"),
6541
+ [41 /* CommandResult.GaugeRangeMaxNaN */]: _lt("The maximum range limit value must be a number"),
6542
+ [42 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */]: _lt("Minimum range limit must be smaller than maximum range limit"),
6543
+ [43 /* CommandResult.GaugeLowerInflectionPointNaN */]: _lt("The lower inflection point value must be a number"),
6544
+ [44 /* CommandResult.GaugeUpperInflectionPointNaN */]: _lt("The upper inflection point value must be a number"),
6541
6545
  },
6542
6546
  };
6543
6547
  const NumberFormatTerms = {
@@ -6943,7 +6947,7 @@
6943
6947
 
6944
6948
  function isDataRangeValid(definition) {
6945
6949
  return definition.dataRange && !rangeReference.test(definition.dataRange)
6946
- ? 36 /* CommandResult.InvalidGaugeDataRange */
6950
+ ? 37 /* CommandResult.InvalidGaugeDataRange */
6947
6951
  : 0 /* CommandResult.Success */;
6948
6952
  }
6949
6953
  function checkRangeLimits(check, batchValidations) {
@@ -6975,7 +6979,7 @@
6975
6979
  function checkRangeMinBiggerThanRangeMax(definition) {
6976
6980
  if (definition.sectionRule) {
6977
6981
  if (Number(definition.sectionRule.rangeMin) >= Number(definition.sectionRule.rangeMax)) {
6978
- return 41 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */;
6982
+ return 42 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */;
6979
6983
  }
6980
6984
  }
6981
6985
  return 0 /* CommandResult.Success */;
@@ -6984,9 +6988,9 @@
6984
6988
  if (value === "") {
6985
6989
  switch (valueName) {
6986
6990
  case "rangeMin":
6987
- return 37 /* CommandResult.EmptyGaugeRangeMin */;
6991
+ return 38 /* CommandResult.EmptyGaugeRangeMin */;
6988
6992
  case "rangeMax":
6989
- return 39 /* CommandResult.EmptyGaugeRangeMax */;
6993
+ return 40 /* CommandResult.EmptyGaugeRangeMax */;
6990
6994
  }
6991
6995
  }
6992
6996
  return 0 /* CommandResult.Success */;
@@ -6995,13 +6999,13 @@
6995
6999
  if (isNaN(value)) {
6996
7000
  switch (valueName) {
6997
7001
  case "rangeMin":
6998
- return 38 /* CommandResult.GaugeRangeMinNaN */;
7002
+ return 39 /* CommandResult.GaugeRangeMinNaN */;
6999
7003
  case "rangeMax":
7000
- return 40 /* CommandResult.GaugeRangeMaxNaN */;
7004
+ return 41 /* CommandResult.GaugeRangeMaxNaN */;
7001
7005
  case "lowerInflectionPointValue":
7002
- return 42 /* CommandResult.GaugeLowerInflectionPointNaN */;
7006
+ return 43 /* CommandResult.GaugeLowerInflectionPointNaN */;
7003
7007
  case "upperInflectionPointValue":
7004
- return 43 /* CommandResult.GaugeUpperInflectionPointNaN */;
7008
+ return 44 /* CommandResult.GaugeUpperInflectionPointNaN */;
7005
7009
  }
7006
7010
  }
7007
7011
  return 0 /* CommandResult.Success */;
@@ -7759,12 +7763,12 @@
7759
7763
 
7760
7764
  function checkKeyValue(definition) {
7761
7765
  return definition.keyValue && !rangeReference.test(definition.keyValue)
7762
- ? 34 /* CommandResult.InvalidScorecardKeyValue */
7766
+ ? 35 /* CommandResult.InvalidScorecardKeyValue */
7763
7767
  : 0 /* CommandResult.Success */;
7764
7768
  }
7765
7769
  function checkBaseline(definition) {
7766
7770
  return definition.baseline && !rangeReference.test(definition.baseline)
7767
- ? 35 /* CommandResult.InvalidScorecardBaseline */
7771
+ ? 36 /* CommandResult.InvalidScorecardBaseline */
7768
7772
  : 0 /* CommandResult.Success */;
7769
7773
  }
7770
7774
  class ScorecardChart extends AbstractChart {
@@ -8494,7 +8498,7 @@
8494
8498
  });
8495
8499
  }
8496
8500
  }
8497
- if (result.isCancelledBecause(63 /* CommandResult.InvalidSortZone */)) {
8501
+ if (result.isCancelledBecause(64 /* CommandResult.InvalidSortZone */)) {
8498
8502
  const { col, row } = anchor;
8499
8503
  env.model.selection.selectZone({ cell: { col, row }, zone });
8500
8504
  env.raiseError(_lt("Cannot sort. To sort, select only cells or only merges that have the same size."));
@@ -8517,13 +8521,13 @@
8517
8521
  };
8518
8522
  function interactiveAddFilter(env, sheetId, target) {
8519
8523
  const result = env.model.dispatch("CREATE_FILTER_TABLE", { target, sheetId });
8520
- if (result.isCancelledBecause(78 /* CommandResult.FilterOverlap */)) {
8524
+ if (result.isCancelledBecause(79 /* CommandResult.FilterOverlap */)) {
8521
8525
  env.raiseError(AddFilterInteractiveContent.filterOverlap);
8522
8526
  }
8523
- else if (result.isCancelledBecause(80 /* CommandResult.MergeInFilter */)) {
8527
+ else if (result.isCancelledBecause(81 /* CommandResult.MergeInFilter */)) {
8524
8528
  env.raiseError(AddFilterInteractiveContent.mergeInFilter);
8525
8529
  }
8526
- else if (result.isCancelledBecause(81 /* CommandResult.NonContinuousTargets */)) {
8530
+ else if (result.isCancelledBecause(82 /* CommandResult.NonContinuousTargets */)) {
8527
8531
  env.raiseError(AddFilterInteractiveContent.nonContinuousTargets);
8528
8532
  }
8529
8533
  }
@@ -8545,7 +8549,7 @@
8545
8549
  else if (result.reasons.includes(22 /* CommandResult.WrongFigurePasteOption */)) {
8546
8550
  env.raiseError(PasteInteractiveContent.wrongFigurePasteOption);
8547
8551
  }
8548
- else if (result.reasons.includes(75 /* CommandResult.FrozenPaneOverlap */)) {
8552
+ else if (result.reasons.includes(76 /* CommandResult.FrozenPaneOverlap */)) {
8549
8553
  env.raiseError(PasteInteractiveContent.frozenPaneOverlap);
8550
8554
  }
8551
8555
  }
@@ -16222,7 +16226,7 @@
16222
16226
  const sheetId = env.model.getters.getActiveSheetId();
16223
16227
  const cmd = dimension === "COL" ? "FREEZE_COLUMNS" : "FREEZE_ROWS";
16224
16228
  const result = env.model.dispatch(cmd, { sheetId, quantity: base });
16225
- if (result.isCancelledBecause(65 /* CommandResult.MergeOverlap */)) {
16229
+ if (result.isCancelledBecause(66 /* CommandResult.MergeOverlap */)) {
16226
16230
  env.raiseError(MergeErrorMessage);
16227
16231
  }
16228
16232
  }
@@ -17018,11 +17022,11 @@
17018
17022
  }
17019
17023
  get isDatasetInvalid() {
17020
17024
  var _a;
17021
- return !!((_a = this.state.datasetDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(32 /* CommandResult.InvalidDataSet */));
17025
+ return !!((_a = this.state.datasetDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(33 /* CommandResult.InvalidDataSet */));
17022
17026
  }
17023
17027
  get isLabelInvalid() {
17024
17028
  var _a;
17025
- return !!((_a = this.state.labelsDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(33 /* CommandResult.InvalidLabelRange */));
17029
+ return !!((_a = this.state.labelsDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(34 /* CommandResult.InvalidLabelRange */));
17026
17030
  }
17027
17031
  onUpdateDataSetsHaveTitle(ev) {
17028
17032
  this.props.updateChart(this.props.figureId, {
@@ -17460,7 +17464,7 @@
17460
17464
  }
17461
17465
  get isDataRangeInvalid() {
17462
17466
  var _a;
17463
- return !!((_a = this.state.dataRangeDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(36 /* CommandResult.InvalidGaugeDataRange */));
17467
+ return !!((_a = this.state.dataRangeDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(37 /* CommandResult.InvalidGaugeDataRange */));
17464
17468
  }
17465
17469
  onDataRangeChanged(ranges) {
17466
17470
  this.dataRange = ranges[0];
@@ -17539,28 +17543,28 @@
17539
17543
  }
17540
17544
  isRangeMinInvalid() {
17541
17545
  var _a, _b, _c;
17542
- return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(37 /* CommandResult.EmptyGaugeRangeMin */)) ||
17543
- ((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(38 /* CommandResult.GaugeRangeMinNaN */)) ||
17544
- ((_c = this.state.sectionRuleDispatchResult) === null || _c === void 0 ? void 0 : _c.isCancelledBecause(41 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */)));
17546
+ return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(38 /* CommandResult.EmptyGaugeRangeMin */)) ||
17547
+ ((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(39 /* CommandResult.GaugeRangeMinNaN */)) ||
17548
+ ((_c = this.state.sectionRuleDispatchResult) === null || _c === void 0 ? void 0 : _c.isCancelledBecause(42 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */)));
17545
17549
  }
17546
17550
  isRangeMaxInvalid() {
17547
17551
  var _a, _b, _c;
17548
- return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(39 /* CommandResult.EmptyGaugeRangeMax */)) ||
17549
- ((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(40 /* CommandResult.GaugeRangeMaxNaN */)) ||
17550
- ((_c = this.state.sectionRuleDispatchResult) === null || _c === void 0 ? void 0 : _c.isCancelledBecause(41 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */)));
17552
+ return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(40 /* CommandResult.EmptyGaugeRangeMax */)) ||
17553
+ ((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(41 /* CommandResult.GaugeRangeMaxNaN */)) ||
17554
+ ((_c = this.state.sectionRuleDispatchResult) === null || _c === void 0 ? void 0 : _c.isCancelledBecause(42 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */)));
17551
17555
  }
17552
17556
  // ---------------------------------------------------------------------------
17553
17557
  // COLOR_SECTION_TEMPLATE
17554
17558
  // ---------------------------------------------------------------------------
17555
17559
  get isLowerInflectionPointInvalid() {
17556
17560
  var _a, _b;
17557
- return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(42 /* CommandResult.GaugeLowerInflectionPointNaN */)) ||
17558
- ((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(44 /* CommandResult.GaugeLowerBiggerThanUpper */)));
17561
+ return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(43 /* CommandResult.GaugeLowerInflectionPointNaN */)) ||
17562
+ ((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(45 /* CommandResult.GaugeLowerBiggerThanUpper */)));
17559
17563
  }
17560
17564
  get isUpperInflectionPointInvalid() {
17561
17565
  var _a, _b;
17562
- return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(43 /* CommandResult.GaugeUpperInflectionPointNaN */)) ||
17563
- ((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(44 /* CommandResult.GaugeLowerBiggerThanUpper */)));
17566
+ return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(44 /* CommandResult.GaugeUpperInflectionPointNaN */)) ||
17567
+ ((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(45 /* CommandResult.GaugeLowerBiggerThanUpper */)));
17564
17568
  }
17565
17569
  updateInflectionPointValue(attr, ev) {
17566
17570
  const sectionRule = deepCopy(this.props.definition.sectionRule);
@@ -17673,11 +17677,11 @@
17673
17677
  }
17674
17678
  get isKeyValueInvalid() {
17675
17679
  var _a;
17676
- return !!((_a = this.state.keyValueDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(34 /* CommandResult.InvalidScorecardKeyValue */));
17680
+ return !!((_a = this.state.keyValueDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(35 /* CommandResult.InvalidScorecardKeyValue */));
17677
17681
  }
17678
17682
  get isBaselineInvalid() {
17679
17683
  var _a;
17680
- return !!((_a = this.state.keyValueDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(35 /* CommandResult.InvalidScorecardBaseline */));
17684
+ return !!((_a = this.state.keyValueDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(36 /* CommandResult.InvalidScorecardBaseline */));
17681
17685
  }
17682
17686
  onKeyValueRangeChanged(ranges) {
17683
17687
  this.keyValue = ranges[0];
@@ -18531,11 +18535,11 @@
18531
18535
  ****************************************************************************/
18532
18536
  get isValue1Invalid() {
18533
18537
  var _a;
18534
- return !!((_a = this.state.errors) === null || _a === void 0 ? void 0 : _a.includes(51 /* CommandResult.FirstArgMissing */));
18538
+ return !!((_a = this.state.errors) === null || _a === void 0 ? void 0 : _a.includes(52 /* CommandResult.FirstArgMissing */));
18535
18539
  }
18536
18540
  get isValue2Invalid() {
18537
18541
  var _a;
18538
- return !!((_a = this.state.errors) === null || _a === void 0 ? void 0 : _a.includes(52 /* CommandResult.SecondArgMissing */));
18542
+ return !!((_a = this.state.errors) === null || _a === void 0 ? void 0 : _a.includes(53 /* CommandResult.SecondArgMissing */));
18539
18543
  }
18540
18544
  toggleStyle(tool) {
18541
18545
  const style = this.state.rules.cellIs.style;
@@ -18552,17 +18556,17 @@
18552
18556
  isValueInvalid(threshold) {
18553
18557
  switch (threshold) {
18554
18558
  case "minimum":
18555
- return (this.state.errors.includes(58 /* CommandResult.MinInvalidFormula */) ||
18556
- this.state.errors.includes(50 /* CommandResult.MinBiggerThanMid */) ||
18557
- this.state.errors.includes(47 /* CommandResult.MinBiggerThanMax */) ||
18558
- this.state.errors.includes(53 /* CommandResult.MinNaN */));
18559
+ return (this.state.errors.includes(59 /* CommandResult.MinInvalidFormula */) ||
18560
+ this.state.errors.includes(51 /* CommandResult.MinBiggerThanMid */) ||
18561
+ this.state.errors.includes(48 /* CommandResult.MinBiggerThanMax */) ||
18562
+ this.state.errors.includes(54 /* CommandResult.MinNaN */));
18559
18563
  case "midpoint":
18560
- return (this.state.errors.includes(59 /* CommandResult.MidInvalidFormula */) ||
18561
- this.state.errors.includes(54 /* CommandResult.MidNaN */) ||
18562
- this.state.errors.includes(49 /* CommandResult.MidBiggerThanMax */));
18564
+ return (this.state.errors.includes(60 /* CommandResult.MidInvalidFormula */) ||
18565
+ this.state.errors.includes(55 /* CommandResult.MidNaN */) ||
18566
+ this.state.errors.includes(50 /* CommandResult.MidBiggerThanMax */));
18563
18567
  case "maximum":
18564
- return (this.state.errors.includes(60 /* CommandResult.MaxInvalidFormula */) ||
18565
- this.state.errors.includes(55 /* CommandResult.MaxNaN */));
18568
+ return (this.state.errors.includes(61 /* CommandResult.MaxInvalidFormula */) ||
18569
+ this.state.errors.includes(56 /* CommandResult.MaxNaN */));
18566
18570
  default:
18567
18571
  return false;
18568
18572
  }
@@ -18611,13 +18615,13 @@
18611
18615
  isInflectionPointInvalid(inflectionPoint) {
18612
18616
  switch (inflectionPoint) {
18613
18617
  case "lowerInflectionPoint":
18614
- return (this.state.errors.includes(57 /* CommandResult.ValueLowerInflectionNaN */) ||
18615
- this.state.errors.includes(62 /* CommandResult.ValueLowerInvalidFormula */) ||
18616
- this.state.errors.includes(48 /* CommandResult.LowerBiggerThanUpper */));
18618
+ return (this.state.errors.includes(58 /* CommandResult.ValueLowerInflectionNaN */) ||
18619
+ this.state.errors.includes(63 /* CommandResult.ValueLowerInvalidFormula */) ||
18620
+ this.state.errors.includes(49 /* CommandResult.LowerBiggerThanUpper */));
18617
18621
  case "upperInflectionPoint":
18618
- return (this.state.errors.includes(56 /* CommandResult.ValueUpperInflectionNaN */) ||
18619
- this.state.errors.includes(61 /* CommandResult.ValueUpperInvalidFormula */) ||
18620
- this.state.errors.includes(48 /* CommandResult.LowerBiggerThanUpper */));
18622
+ return (this.state.errors.includes(57 /* CommandResult.ValueUpperInflectionNaN */) ||
18623
+ this.state.errors.includes(62 /* CommandResult.ValueUpperInvalidFormula */) ||
18624
+ this.state.errors.includes(49 /* CommandResult.LowerBiggerThanUpper */));
18621
18625
  default:
18622
18626
  return true;
18623
18627
  }
@@ -28014,7 +28018,7 @@
28014
28018
  const currentBorder = this.getCellBorder(cmd);
28015
28019
  const areAllNewBordersUndefined = !((_a = cmd.border) === null || _a === void 0 ? void 0 : _a.bottom) && !((_b = cmd.border) === null || _b === void 0 ? void 0 : _b.left) && !((_c = cmd.border) === null || _c === void 0 ? void 0 : _c.right) && !((_d = cmd.border) === null || _d === void 0 ? void 0 : _d.top);
28016
28020
  if ((!currentBorder && areAllNewBordersUndefined) || deepEquals(currentBorder, cmd.border)) {
28017
- return 88 /* CommandResult.NoChanges */;
28021
+ return 89 /* CommandResult.NoChanges */;
28018
28022
  }
28019
28023
  return 0 /* CommandResult.Success */;
28020
28024
  }
@@ -28532,9 +28536,9 @@
28532
28536
  checkUselessClearCell(cmd) {
28533
28537
  const cell = this.getters.getCell(cmd);
28534
28538
  if (!cell)
28535
- return 88 /* CommandResult.NoChanges */;
28539
+ return 89 /* CommandResult.NoChanges */;
28536
28540
  if (!cell.content && !cell.style && !cell.format) {
28537
- return 88 /* CommandResult.NoChanges */;
28541
+ return 89 /* CommandResult.NoChanges */;
28538
28542
  }
28539
28543
  return 0 /* CommandResult.Success */;
28540
28544
  }
@@ -28743,13 +28747,13 @@
28743
28747
  }
28744
28748
  checkChartDuplicate(cmd) {
28745
28749
  return this.getters.getFigureSheetId(cmd.id)
28746
- ? 84 /* CommandResult.DuplicatedChartId */
28750
+ ? 85 /* CommandResult.DuplicatedChartId */
28747
28751
  : 0 /* CommandResult.Success */;
28748
28752
  }
28749
28753
  checkChartExists(cmd) {
28750
28754
  return this.getters.getFigureSheetId(cmd.id)
28751
28755
  ? 0 /* CommandResult.Success */
28752
- : 85 /* CommandResult.ChartDoesNotExist */;
28756
+ : 86 /* CommandResult.ChartDoesNotExist */;
28753
28757
  }
28754
28758
  }
28755
28759
  ChartPlugin.getters = [
@@ -28951,10 +28955,10 @@
28951
28955
  return 27 /* CommandResult.InvalidSheetId */;
28952
28956
  const ruleIndex = this.cfRules[sheetId].findIndex((cf) => cf.id === cfId);
28953
28957
  if (ruleIndex === -1)
28954
- return 71 /* CommandResult.InvalidConditionalFormatId */;
28958
+ return 72 /* CommandResult.InvalidConditionalFormatId */;
28955
28959
  const cfIndex2 = direction === "up" ? ruleIndex - 1 : ruleIndex + 1;
28956
28960
  if (cfIndex2 < 0 || cfIndex2 >= this.cfRules[sheetId].length) {
28957
- return 71 /* CommandResult.InvalidConditionalFormatId */;
28961
+ return 72 /* CommandResult.InvalidConditionalFormatId */;
28958
28962
  }
28959
28963
  return 0 /* CommandResult.Success */;
28960
28964
  }
@@ -28995,10 +28999,10 @@
28995
28999
  const errors = [];
28996
29000
  const isEmpty = (value) => value === undefined || value === "";
28997
29001
  if (expectedNumber >= 1 && isEmpty(rule.values[0])) {
28998
- errors.push(51 /* CommandResult.FirstArgMissing */);
29002
+ errors.push(52 /* CommandResult.FirstArgMissing */);
28999
29003
  }
29000
29004
  if (expectedNumber >= 2 && isEmpty(rule.values[1])) {
29001
- errors.push(52 /* CommandResult.SecondArgMissing */);
29005
+ errors.push(53 /* CommandResult.SecondArgMissing */);
29002
29006
  }
29003
29007
  return errors.length ? errors : 0 /* CommandResult.Success */;
29004
29008
  }
@@ -29010,15 +29014,15 @@
29010
29014
  (threshold.value === "" || isNaN(threshold.value))) {
29011
29015
  switch (thresholdName) {
29012
29016
  case "min":
29013
- return 53 /* CommandResult.MinNaN */;
29017
+ return 54 /* CommandResult.MinNaN */;
29014
29018
  case "max":
29015
- return 55 /* CommandResult.MaxNaN */;
29019
+ return 56 /* CommandResult.MaxNaN */;
29016
29020
  case "mid":
29017
- return 54 /* CommandResult.MidNaN */;
29021
+ return 55 /* CommandResult.MidNaN */;
29018
29022
  case "upperInflectionPoint":
29019
- return 56 /* CommandResult.ValueUpperInflectionNaN */;
29023
+ return 57 /* CommandResult.ValueUpperInflectionNaN */;
29020
29024
  case "lowerInflectionPoint":
29021
- return 57 /* CommandResult.ValueLowerInflectionNaN */;
29025
+ return 58 /* CommandResult.ValueLowerInflectionNaN */;
29022
29026
  }
29023
29027
  }
29024
29028
  return 0 /* CommandResult.Success */;
@@ -29032,15 +29036,15 @@
29032
29036
  catch (error) {
29033
29037
  switch (thresholdName) {
29034
29038
  case "min":
29035
- return 58 /* CommandResult.MinInvalidFormula */;
29039
+ return 59 /* CommandResult.MinInvalidFormula */;
29036
29040
  case "max":
29037
- return 60 /* CommandResult.MaxInvalidFormula */;
29041
+ return 61 /* CommandResult.MaxInvalidFormula */;
29038
29042
  case "mid":
29039
- return 59 /* CommandResult.MidInvalidFormula */;
29043
+ return 60 /* CommandResult.MidInvalidFormula */;
29040
29044
  case "upperInflectionPoint":
29041
- return 61 /* CommandResult.ValueUpperInvalidFormula */;
29045
+ return 62 /* CommandResult.ValueUpperInvalidFormula */;
29042
29046
  case "lowerInflectionPoint":
29043
- return 62 /* CommandResult.ValueLowerInvalidFormula */;
29047
+ return 63 /* CommandResult.ValueLowerInvalidFormula */;
29044
29048
  }
29045
29049
  }
29046
29050
  return 0 /* CommandResult.Success */;
@@ -29057,7 +29061,7 @@
29057
29061
  if (["number", "percentage", "percentile"].includes(rule.lowerInflectionPoint.type) &&
29058
29062
  rule.lowerInflectionPoint.type === rule.upperInflectionPoint.type &&
29059
29063
  Number(minValue) > Number(maxValue)) {
29060
- return 48 /* CommandResult.LowerBiggerThanUpper */;
29064
+ return 49 /* CommandResult.LowerBiggerThanUpper */;
29061
29065
  }
29062
29066
  return 0 /* CommandResult.Success */;
29063
29067
  }
@@ -29067,7 +29071,7 @@
29067
29071
  if (["number", "percentage", "percentile"].includes(rule.minimum.type) &&
29068
29072
  rule.minimum.type === rule.maximum.type &&
29069
29073
  stringToNumber(minValue) >= stringToNumber(maxValue)) {
29070
- return 47 /* CommandResult.MinBiggerThanMax */;
29074
+ return 48 /* CommandResult.MinBiggerThanMax */;
29071
29075
  }
29072
29076
  return 0 /* CommandResult.Success */;
29073
29077
  }
@@ -29079,7 +29083,7 @@
29079
29083
  ["number", "percentage", "percentile"].includes(rule.midpoint.type) &&
29080
29084
  rule.midpoint.type === rule.maximum.type &&
29081
29085
  stringToNumber(midValue) >= stringToNumber(maxValue)) {
29082
- return 49 /* CommandResult.MidBiggerThanMax */;
29086
+ return 50 /* CommandResult.MidBiggerThanMax */;
29083
29087
  }
29084
29088
  return 0 /* CommandResult.Success */;
29085
29089
  }
@@ -29091,7 +29095,7 @@
29091
29095
  ["number", "percentage", "percentile"].includes(rule.midpoint.type) &&
29092
29096
  rule.minimum.type === rule.midpoint.type &&
29093
29097
  stringToNumber(minValue) >= stringToNumber(midValue)) {
29094
- return 50 /* CommandResult.MinBiggerThanMid */;
29098
+ return 51 /* CommandResult.MinBiggerThanMid */;
29095
29099
  }
29096
29100
  return 0 /* CommandResult.Success */;
29097
29101
  }
@@ -29192,13 +29196,13 @@
29192
29196
  checkFigureExists(sheetId, figureId) {
29193
29197
  var _a;
29194
29198
  if (((_a = this.figures[sheetId]) === null || _a === void 0 ? void 0 : _a[figureId]) === undefined) {
29195
- return 70 /* CommandResult.FigureDoesNotExist */;
29199
+ return 71 /* CommandResult.FigureDoesNotExist */;
29196
29200
  }
29197
29201
  return 0 /* CommandResult.Success */;
29198
29202
  }
29199
29203
  checkFigureDuplicate(figureId) {
29200
29204
  if (Object.values(this.figures).find((sheet) => sheet === null || sheet === void 0 ? void 0 : sheet[figureId])) {
29201
- return 82 /* CommandResult.DuplicatedFigureId */;
29205
+ return 83 /* CommandResult.DuplicatedFigureId */;
29202
29206
  }
29203
29207
  return 0 /* CommandResult.Success */;
29204
29208
  }
@@ -29300,12 +29304,12 @@
29300
29304
  switch (cmd.type) {
29301
29305
  case "CREATE_FILTER_TABLE":
29302
29306
  if (!areZonesContinuous(...cmd.target)) {
29303
- return 81 /* CommandResult.NonContinuousTargets */;
29307
+ return 82 /* CommandResult.NonContinuousTargets */;
29304
29308
  }
29305
29309
  const zone = union(...cmd.target);
29306
29310
  const checkFilterOverlap = () => {
29307
29311
  if (this.getFilterTables(cmd.sheetId).some((filter) => overlap(filter.zone, zone))) {
29308
- return 78 /* CommandResult.FilterOverlap */;
29312
+ return 79 /* CommandResult.FilterOverlap */;
29309
29313
  }
29310
29314
  return 0 /* CommandResult.Success */;
29311
29315
  };
@@ -29313,7 +29317,7 @@
29313
29317
  const mergesInTarget = this.getters.getMergesInZone(cmd.sheetId, zone);
29314
29318
  for (let merge of mergesInTarget) {
29315
29319
  if (overlap(zone, merge)) {
29316
- return 80 /* CommandResult.MergeInFilter */;
29320
+ return 81 /* CommandResult.MergeInFilter */;
29317
29321
  }
29318
29322
  }
29319
29323
  return 0 /* CommandResult.Success */;
@@ -29323,7 +29327,7 @@
29323
29327
  for (let merge of cmd.target) {
29324
29328
  for (let filterTable of this.getFilterTables(cmd.sheetId)) {
29325
29329
  if (overlap(filterTable.zone, merge)) {
29326
- return 80 /* CommandResult.MergeInFilter */;
29330
+ return 81 /* CommandResult.MergeInFilter */;
29327
29331
  }
29328
29332
  }
29329
29333
  }
@@ -29823,10 +29827,10 @@
29823
29827
  : this.getters.getNumberRows(cmd.sheetId);
29824
29828
  const hiddenElements = new Set((hiddenGroup || []).flat().concat(cmd.elements));
29825
29829
  if (hiddenElements.size >= elements) {
29826
- return 66 /* CommandResult.TooManyHiddenElements */;
29830
+ return 67 /* CommandResult.TooManyHiddenElements */;
29827
29831
  }
29828
29832
  else if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
29829
- return 86 /* CommandResult.InvalidHeaderIndex */;
29833
+ return 87 /* CommandResult.InvalidHeaderIndex */;
29830
29834
  }
29831
29835
  else {
29832
29836
  return 0 /* CommandResult.Success */;
@@ -30370,7 +30374,7 @@
30370
30374
  for (const zone of target) {
30371
30375
  for (const zone2 of target) {
30372
30376
  if (zone !== zone2 && overlap(zone, zone2)) {
30373
- return 65 /* CommandResult.MergeOverlap */;
30377
+ return 66 /* CommandResult.MergeOverlap */;
30374
30378
  }
30375
30379
  }
30376
30380
  }
@@ -30384,7 +30388,7 @@
30384
30388
  for (const zone of target) {
30385
30389
  if ((zone.left < xSplit && zone.right >= xSplit) ||
30386
30390
  (zone.top < ySplit && zone.bottom >= ySplit)) {
30387
- return 75 /* CommandResult.FrozenPaneOverlap */;
30391
+ return 76 /* CommandResult.FrozenPaneOverlap */;
30388
30392
  }
30389
30393
  }
30390
30394
  return 0 /* CommandResult.Success */;
@@ -30916,9 +30920,10 @@
30916
30920
  * Get a Xc string that represent a part of a range
30917
30921
  */
30918
30922
  getRangePartString(range, part) {
30919
- const colFixed = range.parts && range.parts[part].colFixed ? "$" : "";
30923
+ var _a, _b;
30924
+ const colFixed = range.parts && ((_a = range.parts[part]) === null || _a === void 0 ? void 0 : _a.colFixed) ? "$" : "";
30920
30925
  const col = part === 0 ? numberToLetters(range.zone.left) : numberToLetters(range.zone.right);
30921
- const rowFixed = range.parts && range.parts[part].rowFixed ? "$" : "";
30926
+ const rowFixed = range.parts && ((_b = range.parts[part]) === null || _b === void 0 ? void 0 : _b.rowFixed) ? "$" : "";
30922
30927
  const row = part === 0 ? String(range.zone.top + 1) : String(range.zone.bottom + 1);
30923
30928
  let str = "";
30924
30929
  if (range.isFullCol) {
@@ -31008,10 +31013,10 @@
31008
31013
  ? this.getNumberCols(cmd.sheetId)
31009
31014
  : this.getNumberRows(cmd.sheetId);
31010
31015
  if (cmd.base < 0 || cmd.base >= elements) {
31011
- return 86 /* CommandResult.InvalidHeaderIndex */;
31016
+ return 87 /* CommandResult.InvalidHeaderIndex */;
31012
31017
  }
31013
31018
  else if (cmd.quantity <= 0) {
31014
- return 87 /* CommandResult.InvalidQuantity */;
31019
+ return 88 /* CommandResult.InvalidQuantity */;
31015
31020
  }
31016
31021
  return 0 /* CommandResult.Success */;
31017
31022
  case "REMOVE_COLUMNS_ROWS": {
@@ -31019,7 +31024,7 @@
31019
31024
  ? this.getNumberCols(cmd.sheetId)
31020
31025
  : this.getNumberRows(cmd.sheetId);
31021
31026
  if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
31022
- return 86 /* CommandResult.InvalidHeaderIndex */;
31027
+ return 87 /* CommandResult.InvalidHeaderIndex */;
31023
31028
  }
31024
31029
  else if (this.checkElementsIncludeAllNonFrozenHeaders(cmd.sheetId, cmd.dimension, cmd.elements)) {
31025
31030
  return 8 /* CommandResult.NotEnoughElements */;
@@ -31459,18 +31464,18 @@
31459
31464
  checkRowFreezeQuantity(cmd) {
31460
31465
  return cmd.quantity >= 1 && cmd.quantity < this.getNumberRows(cmd.sheetId)
31461
31466
  ? 0 /* CommandResult.Success */
31462
- : 74 /* CommandResult.InvalidFreezeQuantity */;
31467
+ : 75 /* CommandResult.InvalidFreezeQuantity */;
31463
31468
  }
31464
31469
  checkColFreezeQuantity(cmd) {
31465
31470
  return cmd.quantity >= 1 && cmd.quantity < this.getNumberCols(cmd.sheetId)
31466
31471
  ? 0 /* CommandResult.Success */
31467
- : 74 /* CommandResult.InvalidFreezeQuantity */;
31472
+ : 75 /* CommandResult.InvalidFreezeQuantity */;
31468
31473
  }
31469
31474
  checkRowFreezeOverlapMerge(cmd) {
31470
31475
  const merges = this.getters.getMerges(cmd.sheetId);
31471
31476
  for (let merge of merges) {
31472
31477
  if (merge.top < cmd.quantity && cmd.quantity <= merge.bottom) {
31473
- return 65 /* CommandResult.MergeOverlap */;
31478
+ return 66 /* CommandResult.MergeOverlap */;
31474
31479
  }
31475
31480
  }
31476
31481
  return 0 /* CommandResult.Success */;
@@ -31479,7 +31484,7 @@
31479
31484
  const merges = this.getters.getMerges(cmd.sheetId);
31480
31485
  for (let merge of merges) {
31481
31486
  if (merge.left < cmd.quantity && cmd.quantity <= merge.right) {
31482
- return 65 /* CommandResult.MergeOverlap */;
31487
+ return 66 /* CommandResult.MergeOverlap */;
31483
31488
  }
31484
31489
  }
31485
31490
  return 0 /* CommandResult.Success */;
@@ -32243,10 +32248,8 @@
32243
32248
  * that are actually present in the grid.
32244
32249
  */
32245
32250
  function range(range) {
32251
+ assertRangeValid(range);
32246
32252
  const sheetId = range.sheetId;
32247
- if (!isZoneValid(range.zone)) {
32248
- throw new InvalidReferenceError();
32249
- }
32250
32253
  // Performance issue: Avoid fetching data on positions that are out of the spreadsheet
32251
32254
  // e.g. A1:ZZZ9999 in a sheet with 10 cols and 10 rows should ignore everything past J10 and return a 10x10 array
32252
32255
  const sheetZone = getters.getSheetZone(sheetId);
@@ -32281,23 +32284,26 @@
32281
32284
  * The `compute` of the formula's function must process it completely
32282
32285
  */
32283
32286
  function refFn(range, isMeta, functionName, paramNumber) {
32287
+ assertRangeValid(range);
32284
32288
  if (isMeta) {
32285
32289
  // Use zoneToXc of zone instead of getRangeString to avoid sending unbounded ranges
32286
32290
  return { value: zoneToXc(range.zone) };
32287
32291
  }
32288
- if (!isZoneValid(range.zone)) {
32289
- throw new InvalidReferenceError();
32290
- }
32291
32292
  // if the formula definition could have accepted a range, we would pass through the _range function and not here
32292
32293
  if (range.zone.bottom !== range.zone.top || range.zone.left !== range.zone.right) {
32293
32294
  throw new Error(paramNumber
32294
32295
  ? _lt("Function %s expects the parameter %s to be a single value or a single cell reference, not a range.", functionName.toString(), paramNumber.toString())
32295
32296
  : _lt("Function %s expects its parameters to be single values or single cell references, not ranges.", functionName.toString()));
32296
32297
  }
32298
+ return readCell(range);
32299
+ }
32300
+ function assertRangeValid(range) {
32301
+ if (!isZoneValid(range.zone)) {
32302
+ throw new InvalidReferenceError();
32303
+ }
32297
32304
  if (range.invalidSheetName) {
32298
32305
  throw new Error(_lt("Invalid sheet name: %s", range.invalidSheetName));
32299
32306
  }
32300
- return readCell(range);
32301
32307
  }
32302
32308
  return [refFn, range, evalContext];
32303
32309
  }
@@ -32797,7 +32803,7 @@
32797
32803
  switch (cmd.type) {
32798
32804
  case "UPDATE_FILTER":
32799
32805
  if (!this.getters.getFilterId(cmd)) {
32800
- return 79 /* CommandResult.FilterNotFound */;
32806
+ return 80 /* CommandResult.FilterNotFound */;
32801
32807
  }
32802
32808
  break;
32803
32809
  }
@@ -33744,7 +33750,7 @@
33744
33750
  }
33745
33751
  checkPositiveDimension(cmd) {
33746
33752
  if (cmd.width < 0 || cmd.height < 0) {
33747
- return 68 /* CommandResult.InvalidViewportSize */;
33753
+ return 69 /* CommandResult.InvalidViewportSize */;
33748
33754
  }
33749
33755
  return 0 /* CommandResult.Success */;
33750
33756
  }
@@ -33754,7 +33760,7 @@
33754
33760
  cmd.gridOffsetY === this.gridOffsetY &&
33755
33761
  cmd.width === width &&
33756
33762
  cmd.height === height) {
33757
- return 76 /* CommandResult.ValuesNotChanged */;
33763
+ return 77 /* CommandResult.ValuesNotChanged */;
33758
33764
  }
33759
33765
  return 0 /* CommandResult.Success */;
33760
33766
  }
@@ -33762,7 +33768,7 @@
33762
33768
  const pane = this.getMainInternalViewport(this.getters.getActiveSheetId());
33763
33769
  if ((!pane.canScrollHorizontally && offsetX > 0) ||
33764
33770
  (!pane.canScrollVertically && offsetY > 0)) {
33765
- return 69 /* CommandResult.InvalidScrollingDirection */;
33771
+ return 70 /* CommandResult.InvalidScrollingDirection */;
33766
33772
  }
33767
33773
  return 0 /* CommandResult.Success */;
33768
33774
  }
@@ -34018,7 +34024,7 @@
34018
34024
  if (this.lastCellSelected.col !== undefined && this.lastCellSelected.row !== undefined) {
34019
34025
  return 0 /* CommandResult.Success */;
34020
34026
  }
34021
- return 45 /* CommandResult.InvalidAutofillSelection */;
34027
+ return 46 /* CommandResult.InvalidAutofillSelection */;
34022
34028
  case "AUTOFILL_AUTO":
34023
34029
  const zone = this.getters.getSelectedZone();
34024
34030
  return zone.top === zone.bottom
@@ -34620,7 +34626,7 @@
34620
34626
  cellPopoverRegistry.get(cmd.popoverType);
34621
34627
  }
34622
34628
  catch (error) {
34623
- return 72 /* CommandResult.InvalidCellPopover */;
34629
+ return 73 /* CommandResult.InvalidCellPopover */;
34624
34630
  }
34625
34631
  return 0 /* CommandResult.Success */;
34626
34632
  default:
@@ -35823,21 +35829,6 @@
35823
35829
  // ---------------------------------------------------------------------------
35824
35830
  // Command Handling
35825
35831
  // ---------------------------------------------------------------------------
35826
- allowDispatch(cmd) {
35827
- switch (cmd.type) {
35828
- case "ADD_EMPTY_RANGE":
35829
- if (this.inputHasSingleRange && this.ranges.length === 1) {
35830
- return 30 /* CommandResult.MaximumRangesReached */;
35831
- }
35832
- break;
35833
- case "CHANGE_RANGE":
35834
- if (this.inputHasSingleRange && cmd.value.split(",").length > 1) {
35835
- return 30 /* CommandResult.MaximumRangesReached */;
35836
- }
35837
- break;
35838
- }
35839
- return 0 /* CommandResult.Success */;
35840
- }
35841
35832
  handleEvent(event) {
35842
35833
  const xc = zoneToXc(event.anchor.zone);
35843
35834
  const inputSheetId = this.activeSheet;
@@ -36048,6 +36039,15 @@
36048
36039
  // ---------------------------------------------------------------------------
36049
36040
  allowDispatch(cmd) {
36050
36041
  var _a, _b;
36042
+ switch (cmd.type) {
36043
+ case "FOCUS_RANGE":
36044
+ case "CHANGE_RANGE":
36045
+ case "ADD_EMPTY_RANGE":
36046
+ case "REMOVE_RANGE":
36047
+ if (!this.inputs[cmd.id]) {
36048
+ return 31 /* CommandResult.InvalidInputId */;
36049
+ }
36050
+ }
36051
36051
  switch (cmd.type) {
36052
36052
  case "FOCUS_RANGE":
36053
36053
  const index = (_a = this.currentInput) === null || _a === void 0 ? void 0 : _a.getIndex(cmd.rangeId);
@@ -36055,9 +36055,19 @@
36055
36055
  return 29 /* CommandResult.InputAlreadyFocused */;
36056
36056
  }
36057
36057
  break;
36058
- }
36059
- if (this.currentInput) {
36060
- return this.currentInput.allowDispatch(cmd);
36058
+ case "ADD_EMPTY_RANGE":
36059
+ const input = this.inputs[cmd.id];
36060
+ if (input.inputHasSingleRange && input.ranges.length === 1) {
36061
+ return 30 /* CommandResult.MaximumRangesReached */;
36062
+ }
36063
+ break;
36064
+ case "CHANGE_RANGE": {
36065
+ const input = this.inputs[cmd.id];
36066
+ if (input.inputHasSingleRange && cmd.value.split(",").length > 1) {
36067
+ return 30 /* CommandResult.MaximumRangesReached */;
36068
+ }
36069
+ break;
36070
+ }
36061
36071
  }
36062
36072
  return 0 /* CommandResult.Success */;
36063
36073
  }
@@ -37037,7 +37047,7 @@
37037
37047
  /*Test the presence of single cells*/
37038
37048
  const singleCells = positions(zone).some(({ col, row }) => !this.getters.isInMerge({ sheetId, col, row }));
37039
37049
  if (singleCells) {
37040
- return 63 /* CommandResult.InvalidSortZone */;
37050
+ return 64 /* CommandResult.InvalidSortZone */;
37041
37051
  }
37042
37052
  return 0 /* CommandResult.Success */;
37043
37053
  }
@@ -37056,7 +37066,7 @@
37056
37066
  ];
37057
37067
  return widthCurrent === widthFirst && heightCurrent === heightFirst;
37058
37068
  })) {
37059
- return 63 /* CommandResult.InvalidSortZone */;
37069
+ return 64 /* CommandResult.InvalidSortZone */;
37060
37070
  }
37061
37071
  return 0 /* CommandResult.Success */;
37062
37072
  }
@@ -37696,7 +37706,7 @@
37696
37706
  for (const zone of this.getPasteZones(target)) {
37697
37707
  if ((zone.left < xSplit && zone.right >= xSplit) ||
37698
37708
  (zone.top < ySplit && zone.bottom >= ySplit)) {
37699
- return 75 /* CommandResult.FrozenPaneOverlap */;
37709
+ return 76 /* CommandResult.FrozenPaneOverlap */;
37700
37710
  }
37701
37711
  }
37702
37712
  return 0 /* CommandResult.Success */;
@@ -38084,7 +38094,7 @@
38084
38094
  }
38085
38095
  isPasteAllowed(target, option) {
38086
38096
  if (target.length === 0) {
38087
- return 73 /* CommandResult.EmptyTarget */;
38097
+ return 74 /* CommandResult.EmptyTarget */;
38088
38098
  }
38089
38099
  if ((option === null || option === void 0 ? void 0 : option.pasteOption) !== undefined) {
38090
38100
  return 22 /* CommandResult.WrongFigurePasteOption */;
@@ -38801,7 +38811,7 @@
38801
38811
  validateSelection(length, start, end) {
38802
38812
  return start >= 0 && start <= length && end >= 0 && end <= length
38803
38813
  ? 0 /* CommandResult.Success */
38804
- : 46 /* CommandResult.WrongComposerSelection */;
38814
+ : 47 /* CommandResult.WrongComposerSelection */;
38805
38815
  }
38806
38816
  onColumnsRemoved(cmd) {
38807
38817
  if (cmd.elements.includes(this.col) && this.mode !== "inactive") {
@@ -39113,9 +39123,10 @@
39113
39123
  */
39114
39124
  getReferencedRanges() {
39115
39125
  const editionSheetId = this.getters.getEditionSheet();
39116
- return this.currentTokens
39126
+ const referenceRanges = this.currentTokens
39117
39127
  .filter((token) => token.type === "REFERENCE")
39118
39128
  .map((token) => this.getters.getRangeFromSheetXC(editionSheetId, token.value));
39129
+ return referenceRanges.filter((range) => !range.invalidSheetName && !range.invalidXc);
39119
39130
  }
39120
39131
  /**
39121
39132
  * Function used to determine when composer selection can start.
@@ -39718,7 +39729,7 @@
39718
39729
  const headers = [cmd.base, ...cmd.elements];
39719
39730
  const maxHeaderValue = isCol ? this.getters.getNumberCols(id) : this.getters.getNumberRows(id);
39720
39731
  if (headers.some((h) => h < 0 || h >= maxHeaderValue)) {
39721
- return 86 /* CommandResult.InvalidHeaderIndex */;
39732
+ return 87 /* CommandResult.InvalidHeaderIndex */;
39722
39733
  }
39723
39734
  return 0 /* CommandResult.Success */;
39724
39735
  }
@@ -41093,7 +41104,7 @@
41093
41104
  };
41094
41105
  function interactiveAddMerge(env, sheetId, target) {
41095
41106
  const result = env.model.dispatch("ADD_MERGE", { sheetId, target });
41096
- if (result.isCancelledBecause(80 /* CommandResult.MergeInFilter */)) {
41107
+ if (result.isCancelledBecause(81 /* CommandResult.MergeInFilter */)) {
41097
41108
  env.raiseError(AddMergeInteractiveContent.MergeInFilter);
41098
41109
  }
41099
41110
  else if (result.isCancelledBecause(3 /* CommandResult.MergeIsDestructive */)) {
@@ -43087,7 +43098,7 @@
43087
43098
  */
43088
43099
  moveAnchorCell(direction, step = 1) {
43089
43100
  if (step !== "end" && step <= 0) {
43090
- return new DispatchResult(83 /* CommandResult.InvalidSelectionStep */);
43101
+ return new DispatchResult(84 /* CommandResult.InvalidSelectionStep */);
43091
43102
  }
43092
43103
  const { col, row } = this.getNextAvailablePosition(direction, step);
43093
43104
  return this.selectCell(col, row);
@@ -43133,7 +43144,7 @@
43133
43144
  */
43134
43145
  resizeAnchorZone(direction, step = 1) {
43135
43146
  if (step !== "end" && step <= 0) {
43136
- return new DispatchResult(83 /* CommandResult.InvalidSelectionStep */);
43147
+ return new DispatchResult(84 /* CommandResult.InvalidSelectionStep */);
43137
43148
  }
43138
43149
  const sheetId = this.getters.getActiveSheetId();
43139
43150
  const anchor = this.anchor;
@@ -45171,10 +45182,10 @@
45171
45182
  const command = { ...payload, type };
45172
45183
  let status = this.status;
45173
45184
  if (this.getters.isReadonly() && !canExecuteInReadonly(command)) {
45174
- return new DispatchResult(67 /* CommandResult.Readonly */);
45185
+ return new DispatchResult(68 /* CommandResult.Readonly */);
45175
45186
  }
45176
45187
  if (!this.session.canApplyOptimisticUpdate()) {
45177
- return new DispatchResult(64 /* CommandResult.WaitingSessionConfirmation */);
45188
+ return new DispatchResult(65 /* CommandResult.WaitingSessionConfirmation */);
45178
45189
  }
45179
45190
  switch (status) {
45180
45191
  case 0 /* Status.Ready */:
@@ -45663,9 +45674,9 @@
45663
45674
  Object.defineProperty(exports, '__esModule', { value: true });
45664
45675
 
45665
45676
 
45666
- __info__.version = '16.2.28';
45667
- __info__.date = '2024-01-17T10:24:07.951Z';
45668
- __info__.hash = '16cee48';
45677
+ __info__.version = '16.2.29';
45678
+ __info__.date = '2024-01-29T13:49:36.240Z';
45679
+ __info__.hash = '27b2ec1';
45669
45680
 
45670
45681
 
45671
45682
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);