@awsless/cli 0.1.40 → 0.1.42

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 (2) hide show
  1. package/dist/bin.js +919 -344
  2. package/package.json +17 -17
package/dist/bin.js CHANGED
@@ -188726,7 +188726,7 @@ var TERM_STOP = /* @__PURE__ */ new Set([
188726
188726
  "{",
188727
188727
  "}"
188728
188728
  ]);
188729
- var Parser = class {
188729
+ var Parser$1 = class {
188730
188730
  text;
188731
188731
  defaultOperator;
188732
188732
  pos = 0;
@@ -188985,7 +188985,7 @@ var Parser = class {
188985
188985
  };
188986
188986
  var unescape3 = (text2) => text2.replace(/\\(.)/g, "$1");
188987
188987
  var parseQueryString = (text2, defaultOperator) => {
188988
- const parser2 = new Parser(text2, defaultOperator);
188988
+ const parser2 = new Parser$1(text2, defaultOperator);
188989
188989
  const clauses = parser2.parseClauses();
188990
188990
  parser2.skipSpace();
188991
188991
  if (!parser2.eof())
@@ -189397,7 +189397,9 @@ var resolveMinimumShouldMatch = (spec, count) => {
189397
189397
  var boolQuery = ({ must, filter: filter2, should, mustNot, minimumShouldMatch, boost = 1 }) => {
189398
189398
  if (must.length + filter2.length + should.length + mustNot.length === 0)
189399
189399
  return matchAll(boost);
189400
- const msm = minimumShouldMatch === undefined ? should.length > 0 && must.length === 0 && filter2.length === 0 ? 1 : 0 : resolveMinimumShouldMatch(minimumShouldMatch, should.length);
189400
+ const optionalOnly = should.length > 0 && must.length === 0 && filter2.length === 0;
189401
+ const requested = minimumShouldMatch === undefined ? 0 : resolveMinimumShouldMatch(minimumShouldMatch, should.length);
189402
+ const msm = optionalOnly ? Math.max(1, requested) : requested;
189401
189403
  return { match: (unit) => {
189402
189404
  let score = 0;
189403
189405
  for (const query of must) {
@@ -190238,6 +190240,507 @@ var compileStringNode = (ctx, node, settings2) => {
190238
190240
  });
190239
190241
  }
190240
190242
  };
190243
+ var DocField = class {
190244
+ values;
190245
+ constructor(values) {
190246
+ this.values = values;
190247
+ }
190248
+ };
190249
+ var ParamsBag = class {
190250
+ params;
190251
+ constructor(params) {
190252
+ this.params = params;
190253
+ }
190254
+ };
190255
+ var OPERATORS = [
190256
+ "&&",
190257
+ "||",
190258
+ "==",
190259
+ "!=",
190260
+ "<=",
190261
+ ">=",
190262
+ "?",
190263
+ ":",
190264
+ "!",
190265
+ "<",
190266
+ ">",
190267
+ "+",
190268
+ "-",
190269
+ "*",
190270
+ "/",
190271
+ "%",
190272
+ "(",
190273
+ ")",
190274
+ "[",
190275
+ "]",
190276
+ ".",
190277
+ ",",
190278
+ ";"
190279
+ ];
190280
+ var REJECTED_BEFORE = [
190281
+ "<<<",
190282
+ ">>>",
190283
+ "<<",
190284
+ ">>",
190285
+ "++",
190286
+ "--",
190287
+ "+=",
190288
+ "-=",
190289
+ "*=",
190290
+ "/=",
190291
+ "%=",
190292
+ "===",
190293
+ "!==",
190294
+ "?:",
190295
+ "->",
190296
+ "::"
190297
+ ];
190298
+ var REJECTED_AFTER = [
190299
+ "&",
190300
+ "|",
190301
+ "^",
190302
+ "~",
190303
+ "=",
190304
+ "{",
190305
+ "}"
190306
+ ];
190307
+ var tokenize = (source) => {
190308
+ const tokens = [];
190309
+ let i4 = 0;
190310
+ while (i4 < source.length) {
190311
+ const char = source[i4];
190312
+ if (/\s/.test(char)) {
190313
+ i4++;
190314
+ continue;
190315
+ }
190316
+ if (/[0-9]/.test(char) || char === "." && /[0-9]/.test(source[i4 + 1] ?? "")) {
190317
+ const match2 = /^[0-9]*\.?[0-9]+(?:[eE][+-]?[0-9]+)?[lLfFdD]?/.exec(source.slice(i4));
190318
+ tokens.push({
190319
+ kind: "number",
190320
+ value: Number.parseFloat(match2[0].replace(/[lLfFdD]$/, ""))
190321
+ });
190322
+ i4 += match2[0].length;
190323
+ continue;
190324
+ }
190325
+ if (char === "'" || char === '"') {
190326
+ let j4 = i4 + 1;
190327
+ let text2 = "";
190328
+ while (j4 < source.length && source[j4] !== char) {
190329
+ if (source[j4] === "\\")
190330
+ j4++;
190331
+ text2 += source[j4];
190332
+ j4++;
190333
+ }
190334
+ if (j4 >= source.length)
190335
+ throw illegalArgument(`Unterminated string in script: ${source}`);
190336
+ tokens.push({
190337
+ kind: "string",
190338
+ value: text2
190339
+ });
190340
+ i4 = j4 + 1;
190341
+ continue;
190342
+ }
190343
+ if (/[A-Za-z_$]/.test(char)) {
190344
+ const match2 = /^[A-Za-z_$][A-Za-z0-9_$]*/.exec(source.slice(i4));
190345
+ tokens.push({
190346
+ kind: "name",
190347
+ value: match2[0]
190348
+ });
190349
+ i4 += match2[0].length;
190350
+ continue;
190351
+ }
190352
+ const rejected = REJECTED_BEFORE.find((candidate) => source.startsWith(candidate, i4)) ?? (OPERATORS.some((candidate) => source.startsWith(candidate, i4)) ? undefined : REJECTED_AFTER.find((candidate) => source.startsWith(candidate, i4)));
190353
+ if (rejected)
190354
+ throw unsupported2(`the "${rejected}" operator in scripts`);
190355
+ const op = OPERATORS.find((candidate) => source.startsWith(candidate, i4));
190356
+ if (!op)
190357
+ throw unsupported2(`the "${char}" character in scripts`);
190358
+ tokens.push({
190359
+ kind: "op",
190360
+ value: op
190361
+ });
190362
+ i4 += op.length;
190363
+ }
190364
+ tokens.push({ kind: "end" });
190365
+ return tokens;
190366
+ };
190367
+ var truthy = (value) => {
190368
+ if (typeof value !== "boolean")
190369
+ throw illegalArgument("Script conditions must evaluate to a boolean");
190370
+ return value;
190371
+ };
190372
+ var number4 = (value, what) => {
190373
+ if (typeof value === "number")
190374
+ return value;
190375
+ if (typeof value === "boolean")
190376
+ return value ? 1 : 0;
190377
+ throw illegalArgument(`Script operator ${what} needs numbers, got ${describe3(value)}`);
190378
+ };
190379
+ var describe3 = (value) => {
190380
+ if (value === null)
190381
+ return "null";
190382
+ if (value instanceof DocField)
190383
+ return "doc field";
190384
+ if (value instanceof ParamsBag)
190385
+ return "params";
190386
+ if (Array.isArray(value))
190387
+ return "list";
190388
+ return typeof value;
190389
+ };
190390
+ var equal = (a4, b3) => {
190391
+ if (a4 instanceof DocField || b3 instanceof DocField)
190392
+ throw illegalArgument("Compare doc['field'].value, not the field itself");
190393
+ return a4 === b3;
190394
+ };
190395
+ var contains = (list2, value) => list2.some((entry) => equal(entry, value));
190396
+ var member = (target2, name, args, source) => {
190397
+ if (target2 instanceof ParamsBag) {
190398
+ if (args)
190399
+ throw unsupported2(`calling "${name}" on params`);
190400
+ const value = target2.params[name];
190401
+ return value === undefined ? null : value;
190402
+ }
190403
+ if (target2 instanceof DocField) {
190404
+ switch (name) {
190405
+ case "value":
190406
+ if (args)
190407
+ break;
190408
+ return target2.values[0] ?? null;
190409
+ case "values":
190410
+ if (args)
190411
+ break;
190412
+ return target2.values;
190413
+ case "length":
190414
+ case "size":
190415
+ return target2.values.length;
190416
+ case "empty":
190417
+ case "isEmpty":
190418
+ return target2.values.length === 0;
190419
+ case "contains":
190420
+ if (args?.length !== 1)
190421
+ break;
190422
+ return contains(target2.values, args[0]);
190423
+ }
190424
+ throw unsupported2(`"${name}" on a doc field in scripts (${source})`);
190425
+ }
190426
+ if (Array.isArray(target2)) {
190427
+ switch (name) {
190428
+ case "length":
190429
+ case "size":
190430
+ return target2.length;
190431
+ case "empty":
190432
+ case "isEmpty":
190433
+ return target2.length === 0;
190434
+ case "contains":
190435
+ if (args?.length !== 1)
190436
+ break;
190437
+ return contains(target2, args[0]);
190438
+ }
190439
+ throw unsupported2(`"${name}" on a list in scripts (${source})`);
190440
+ }
190441
+ if (typeof target2 === "string") {
190442
+ switch (name) {
190443
+ case "length":
190444
+ return target2.length;
190445
+ case "isEmpty":
190446
+ case "empty":
190447
+ return target2.length === 0;
190448
+ case "toLowerCase":
190449
+ return target2.toLowerCase();
190450
+ case "toUpperCase":
190451
+ return target2.toUpperCase();
190452
+ case "contains":
190453
+ case "startsWith":
190454
+ case "endsWith":
190455
+ case "equals":
190456
+ if (args?.length !== 1 || typeof args[0] !== "string")
190457
+ break;
190458
+ if (name === "equals")
190459
+ return target2 === args[0];
190460
+ if (name === "contains")
190461
+ return target2.includes(args[0]);
190462
+ return name === "startsWith" ? target2.startsWith(args[0]) : target2.endsWith(args[0]);
190463
+ }
190464
+ throw unsupported2(`"${name}" on a string in scripts (${source})`);
190465
+ }
190466
+ if (target2 === null)
190467
+ throw illegalArgument(`Cannot access "${name}" on null in script: ${source}`);
190468
+ throw unsupported2(`"${name}" on a ${describe3(target2)} in scripts (${source})`);
190469
+ };
190470
+ var mathFunction = (name, args) => {
190471
+ switch (name) {
190472
+ case "max":
190473
+ return Math.max(...args);
190474
+ case "min":
190475
+ return Math.min(...args);
190476
+ case "abs":
190477
+ return Math.abs(args[0]);
190478
+ case "floor":
190479
+ return Math.floor(args[0]);
190480
+ case "ceil":
190481
+ return Math.ceil(args[0]);
190482
+ case "round":
190483
+ return Math.round(args[0]);
190484
+ case "sqrt":
190485
+ return Math.sqrt(args[0]);
190486
+ case "pow":
190487
+ return Math.pow(args[0], args[1]);
190488
+ case "log":
190489
+ return Math.log(args[0]);
190490
+ }
190491
+ throw unsupported2(`"Math.${name}" in scripts`);
190492
+ };
190493
+ var Parser = class {
190494
+ tokens;
190495
+ source;
190496
+ pos = 0;
190497
+ constructor(tokens, source) {
190498
+ this.tokens = tokens;
190499
+ this.source = source;
190500
+ }
190501
+ parse() {
190502
+ if (this.isName("return"))
190503
+ this.pos++;
190504
+ const node = this.ternary();
190505
+ if (this.isOp(";"))
190506
+ this.pos++;
190507
+ if (this.peek().kind !== "end")
190508
+ throw unsupported2(`multi-statement scripts (${this.source})`);
190509
+ return node;
190510
+ }
190511
+ peek() {
190512
+ return this.tokens[this.pos];
190513
+ }
190514
+ isOp(value) {
190515
+ const token = this.peek();
190516
+ return token.kind === "op" && token.value === value;
190517
+ }
190518
+ isName(value) {
190519
+ const token = this.peek();
190520
+ return token.kind === "name" && token.value === value;
190521
+ }
190522
+ expectOp(value) {
190523
+ if (!this.isOp(value))
190524
+ throw illegalArgument(`Expected "${value}" in script: ${this.source}`);
190525
+ this.pos++;
190526
+ }
190527
+ ternary() {
190528
+ const condition = this.or();
190529
+ if (!this.isOp("?"))
190530
+ return condition;
190531
+ this.pos++;
190532
+ const whenTrue = this.ternary();
190533
+ this.expectOp(":");
190534
+ const whenFalse = this.ternary();
190535
+ return (scope) => truthy(condition(scope)) ? whenTrue(scope) : whenFalse(scope);
190536
+ }
190537
+ or() {
190538
+ let left = this.and();
190539
+ while (this.isOp("||")) {
190540
+ this.pos++;
190541
+ const right = this.and();
190542
+ const current = left;
190543
+ left = (scope) => truthy(current(scope)) || truthy(right(scope));
190544
+ }
190545
+ return left;
190546
+ }
190547
+ and() {
190548
+ let left = this.equality();
190549
+ while (this.isOp("&&")) {
190550
+ this.pos++;
190551
+ const right = this.equality();
190552
+ const current = left;
190553
+ left = (scope) => truthy(current(scope)) && truthy(right(scope));
190554
+ }
190555
+ return left;
190556
+ }
190557
+ equality() {
190558
+ let left = this.relational();
190559
+ while (this.isOp("==") || this.isOp("!=")) {
190560
+ const op = this.peek().value;
190561
+ this.pos++;
190562
+ const right = this.relational();
190563
+ const current = left;
190564
+ left = (scope) => op === "==" === equal(current(scope), right(scope));
190565
+ }
190566
+ return left;
190567
+ }
190568
+ relational() {
190569
+ let left = this.additive();
190570
+ while (this.isOp("<") || this.isOp("<=") || this.isOp(">") || this.isOp(">=")) {
190571
+ const op = this.peek().value;
190572
+ this.pos++;
190573
+ const right = this.additive();
190574
+ const current = left;
190575
+ left = (scope) => {
190576
+ const a4 = number4(current(scope), op);
190577
+ const b3 = number4(right(scope), op);
190578
+ return op === "<" ? a4 < b3 : op === "<=" ? a4 <= b3 : op === ">" ? a4 > b3 : a4 >= b3;
190579
+ };
190580
+ }
190581
+ return left;
190582
+ }
190583
+ additive() {
190584
+ let left = this.multiplicative();
190585
+ while (this.isOp("+") || this.isOp("-")) {
190586
+ const op = this.peek().value;
190587
+ this.pos++;
190588
+ const right = this.multiplicative();
190589
+ const current = left;
190590
+ left = (scope) => {
190591
+ const a4 = current(scope);
190592
+ const b3 = right(scope);
190593
+ if (op === "+" && (typeof a4 === "string" || typeof b3 === "string"))
190594
+ return `${String(a4)}${String(b3)}`;
190595
+ return op === "+" ? number4(a4, op) + number4(b3, op) : number4(a4, op) - number4(b3, op);
190596
+ };
190597
+ }
190598
+ return left;
190599
+ }
190600
+ multiplicative() {
190601
+ let left = this.unary();
190602
+ while (this.isOp("*") || this.isOp("/") || this.isOp("%")) {
190603
+ const op = this.peek().value;
190604
+ this.pos++;
190605
+ const right = this.unary();
190606
+ const current = left;
190607
+ left = (scope) => {
190608
+ const a4 = number4(current(scope), op);
190609
+ const b3 = number4(right(scope), op);
190610
+ return op === "*" ? a4 * b3 : op === "/" ? a4 / b3 : a4 % b3;
190611
+ };
190612
+ }
190613
+ return left;
190614
+ }
190615
+ unary() {
190616
+ if (this.isOp("!")) {
190617
+ this.pos++;
190618
+ const operand = this.unary();
190619
+ return (scope) => !truthy(operand(scope));
190620
+ }
190621
+ if (this.isOp("-")) {
190622
+ this.pos++;
190623
+ const operand = this.unary();
190624
+ return (scope) => -number4(operand(scope), "-");
190625
+ }
190626
+ return this.postfix();
190627
+ }
190628
+ postfix() {
190629
+ let node = this.primary();
190630
+ while (true) {
190631
+ if (this.isOp(".")) {
190632
+ this.pos++;
190633
+ const token = this.peek();
190634
+ if (token.kind !== "name")
190635
+ throw illegalArgument(`Expected a member name in script: ${this.source}`);
190636
+ this.pos++;
190637
+ const name = token.value;
190638
+ const args = this.isOp("(") ? this.arguments() : undefined;
190639
+ const target2 = node;
190640
+ node = (scope) => member(target2(scope), name, args?.map((arg) => arg(scope)), this.source);
190641
+ continue;
190642
+ }
190643
+ if (this.isOp("[")) {
190644
+ this.pos++;
190645
+ const key = this.ternary();
190646
+ this.expectOp("]");
190647
+ const target2 = node;
190648
+ node = (scope) => index(target2(scope), key(scope), this.source);
190649
+ continue;
190650
+ }
190651
+ break;
190652
+ }
190653
+ return node;
190654
+ }
190655
+ arguments() {
190656
+ this.expectOp("(");
190657
+ const args = [];
190658
+ if (!this.isOp(")")) {
190659
+ args.push(this.ternary());
190660
+ while (this.isOp(",")) {
190661
+ this.pos++;
190662
+ args.push(this.ternary());
190663
+ }
190664
+ }
190665
+ this.expectOp(")");
190666
+ return args;
190667
+ }
190668
+ primary() {
190669
+ const token = this.peek();
190670
+ if (token.kind === "number") {
190671
+ this.pos++;
190672
+ return () => token.value;
190673
+ }
190674
+ if (token.kind === "string") {
190675
+ this.pos++;
190676
+ return () => token.value;
190677
+ }
190678
+ if (token.kind === "op" && token.value === "(") {
190679
+ this.pos++;
190680
+ const inner = this.ternary();
190681
+ this.expectOp(")");
190682
+ return inner;
190683
+ }
190684
+ if (token.kind === "name") {
190685
+ this.pos++;
190686
+ switch (token.value) {
190687
+ case "true":
190688
+ return () => true;
190689
+ case "false":
190690
+ return () => false;
190691
+ case "null":
190692
+ return () => null;
190693
+ case "params":
190694
+ return (scope) => new ParamsBag(scope.params);
190695
+ case "doc": {
190696
+ this.expectOp("[");
190697
+ const key = this.ternary();
190698
+ this.expectOp("]");
190699
+ return (scope) => {
190700
+ const name = key(scope);
190701
+ if (typeof name !== "string")
190702
+ throw illegalArgument(`doc[] needs a field name in script: ${this.source}`);
190703
+ return new DocField(scope.field(name));
190704
+ };
190705
+ }
190706
+ case "Math": {
190707
+ this.expectOp(".");
190708
+ const name = this.peek();
190709
+ if (name.kind !== "name")
190710
+ throw illegalArgument(`Expected a Math function in script: ${this.source}`);
190711
+ this.pos++;
190712
+ const args = this.arguments();
190713
+ return (scope) => mathFunction(name.value, args.map((arg) => number4(arg(scope), `Math.${name.value}`)));
190714
+ }
190715
+ }
190716
+ throw unsupported2(`the "${token.value}" identifier in scripts (${this.source})`);
190717
+ }
190718
+ throw illegalArgument(`Unexpected token in script: ${this.source}`);
190719
+ }
190720
+ };
190721
+ var index = (target2, key, source) => {
190722
+ if (Array.isArray(target2)) {
190723
+ if (typeof key !== "number")
190724
+ throw illegalArgument(`List index must be a number in script: ${source}`);
190725
+ return target2[key] ?? null;
190726
+ }
190727
+ if (target2 instanceof ParamsBag) {
190728
+ if (typeof key !== "string")
190729
+ throw illegalArgument(`params key must be a string in script: ${source}`);
190730
+ const value = target2.params[key];
190731
+ return value === undefined ? null : value;
190732
+ }
190733
+ throw unsupported2(`indexing a ${describe3(target2)} in scripts (${source})`);
190734
+ };
190735
+ var cache3 = /* @__PURE__ */ new Map;
190736
+ var compileScript = (source) => {
190737
+ const cached2 = cache3.get(source);
190738
+ if (cached2)
190739
+ return cached2;
190740
+ const node = new Parser(tokenize(source), source).parse();
190741
+ cache3.set(source, node);
190742
+ return node;
190743
+ };
190241
190744
  var LONG_MAX = 2 ** 63;
190242
190745
  var LONG_MIN = -(2 ** 63);
190243
190746
  var parseSort = (sort2) => {
@@ -190254,8 +190757,10 @@ var parseSort = (sort2) => {
190254
190757
  if (!isPlainObject3(entry))
190255
190758
  throw illegalArgument("sort entries must be strings or objects");
190256
190759
  for (const [field, options2] of Object.entries(entry)) {
190257
- if (field === "_script")
190258
- throw unsupported2("script sorting");
190760
+ if (field === "_script") {
190761
+ specs.push(makeScriptSpec(options2));
190762
+ continue;
190763
+ }
190259
190764
  if (field === "_geo_distance")
190260
190765
  throw unsupported2("geo distance sorting");
190261
190766
  specs.push(makeSpec(field, isPlainObject3(options2) ? options2 : { order: options2 }));
@@ -190263,6 +190768,44 @@ var parseSort = (sort2) => {
190263
190768
  }
190264
190769
  return specs;
190265
190770
  };
190771
+ var makeScriptSpec = (options2) => {
190772
+ if (!isPlainObject3(options2))
190773
+ throw illegalArgument("_script sort needs an object");
190774
+ for (const key of Object.keys(options2))
190775
+ if (![
190776
+ "type",
190777
+ "order",
190778
+ "script",
190779
+ "mode",
190780
+ "nested"
190781
+ ].includes(key))
190782
+ throw unsupported2(`the "${key}" _script sort option`);
190783
+ if (options2.nested !== undefined)
190784
+ throw unsupported2("nested script sorting");
190785
+ if (options2.mode !== undefined)
190786
+ throw unsupported2('the "mode" _script sort option');
190787
+ const type = options2.type === undefined ? undefined : String(options2.type);
190788
+ if (type !== "number" && type !== "string")
190789
+ throw illegalArgument(`_script sort needs a type of "number" or "string", got [${String(options2.type)}]`);
190790
+ const script2 = options2.script;
190791
+ if (!isPlainObject3(script2))
190792
+ throw illegalArgument("_script sort needs a script object");
190793
+ if (script2.lang !== undefined && script2.lang !== "painless")
190794
+ throw unsupported2(`the "${String(script2.lang)}" script language`);
190795
+ if (script2.id !== undefined)
190796
+ throw unsupported2("stored scripts");
190797
+ const source = script2.source ?? script2.inline;
190798
+ if (typeof source !== "string")
190799
+ throw illegalArgument("_script sort needs a script source");
190800
+ const params = isPlainObject3(script2.params) ? script2.params : {};
190801
+ const spec = makeSpec("_script", { order: options2.order });
190802
+ spec.script = {
190803
+ run: compileScript(source),
190804
+ type,
190805
+ params
190806
+ };
190807
+ return spec;
190808
+ };
190266
190809
  var makeSpec = (field, options2) => {
190267
190810
  for (const key of Object.keys(options2))
190268
190811
  if (![
@@ -190352,11 +190895,43 @@ var reduce = (values, mode, order) => {
190352
190895
  }
190353
190896
  }
190354
190897
  };
190898
+ var scriptFieldValues = (ctx, doc2) => (name) => {
190899
+ const field = resolveField(ctx.index.mapping, name);
190900
+ if (!field)
190901
+ throw illegalArgument(`No field found for [${name}] in mapping`);
190902
+ if (field.type === "object" || field.type === "nested")
190903
+ throw illegalArgument(`Fielddata is not supported on field [${name}] of type [${field.type}]`);
190904
+ if (field.type === "text" && field.mapping.fielddata !== true)
190905
+ throw illegalArgument(TEXT_SORT_ERROR.replace("FIELD", name));
190906
+ return comparableValues(doc2, field);
190907
+ };
190908
+ var scriptSortValue = (ctx, doc2, spec) => {
190909
+ const { run, type, params } = spec.script;
190910
+ const result = run({
190911
+ field: scriptFieldValues(ctx, doc2),
190912
+ params
190913
+ });
190914
+ if (result === null)
190915
+ return null;
190916
+ if (result instanceof DocField)
190917
+ throw illegalArgument("A script sort must return a value, not doc['field']");
190918
+ if (Array.isArray(result) || typeof result === "object")
190919
+ throw illegalArgument("A script sort must return a number or string");
190920
+ if (type === "string")
190921
+ return String(result);
190922
+ if (typeof result === "boolean")
190923
+ return result ? 1 : 0;
190924
+ if (typeof result === "string")
190925
+ throw illegalArgument(`A script sort of type number returned the string [${result}]`);
190926
+ return result;
190927
+ };
190355
190928
  var sortValueOf = (ctx, doc2, score, spec) => {
190356
190929
  if (spec.field === "_score")
190357
190930
  return score;
190358
190931
  if (spec.field === "_doc")
190359
190932
  return doc2.order;
190933
+ if (spec.script)
190934
+ return scriptSortValue(ctx, doc2, spec);
190360
190935
  const field = requireSortableField(ctx, spec.field, spec.unmappedType);
190361
190936
  if (!field)
190362
190937
  return null;
@@ -190431,7 +191006,7 @@ var isAfter = (hit, cursor3, specs) => {
190431
191006
  var renderSortValue = (ctx, value, spec) => {
190432
191007
  if (value !== null)
190433
191008
  return typeof value === "boolean" ? value ? 1 : 0 : value;
190434
- if (spec.field === "_score" || spec.field === "_doc")
191009
+ if (spec.field === "_score" || spec.field === "_doc" || spec.script)
190435
191010
  return null;
190436
191011
  const field = resolveField(ctx.index.mapping, spec.field);
190437
191012
  if (!(field ? isNumericType(field.type) || field.type === "date" || field.type === "boolean" : spec.unmappedType !== "keyword"))
@@ -190598,13 +191173,13 @@ var subResults = (agg, subAggs, units) => {
190598
191173
  return subAggs === undefined ? {} : runAggregations(agg, subAggs, units);
190599
191174
  };
190600
191175
  var compileFilter = (agg, query) => {
190601
- const cache3 = /* @__PURE__ */ new Map;
191176
+ const cache4 = /* @__PURE__ */ new Map;
190602
191177
  return (unit) => {
190603
- const index = unit.root.index;
190604
- let compiled = cache3.get(index);
191178
+ const index2 = unit.root.index;
191179
+ let compiled = cache4.get(index2);
190605
191180
  if (!compiled) {
190606
- compiled = compileQuery(agg.contextFor(index), query);
190607
- cache3.set(index, compiled);
191181
+ compiled = compileQuery(agg.contextFor(index2), query);
191182
+ cache4.set(index2, compiled);
190608
191183
  }
190609
191184
  return compiled.match(unit) !== undefined;
190610
191185
  };
@@ -191138,10 +191713,10 @@ var readBoolean = (value, what) => {
191138
191713
  var readInteger = (value, what) => {
191139
191714
  if (value === undefined || value === null)
191140
191715
  return;
191141
- const number4 = typeof value === "number" ? value : Number(value);
191142
- if (!Number.isInteger(number4))
191716
+ const number5 = typeof value === "number" ? value : Number(value);
191717
+ if (!Number.isInteger(number5))
191143
191718
  throw illegalArgument(`[${what}] must be an integer`);
191144
- return number4;
191719
+ return number5;
191145
191720
  };
191146
191721
  var queryFromParams = (params) => {
191147
191722
  const q3 = params.get("q");
@@ -191175,16 +191750,16 @@ var resolveQuery = (body, params) => {
191175
191750
  throw illegalArgument("Cannot combine the q parameter with a request body query");
191176
191751
  return fromParams ?? body.query;
191177
191752
  };
191178
- var collectMatches = (index, query, now) => {
191179
- const ctx = createContext(index, now);
191753
+ var collectMatches = (index2, query, now) => {
191754
+ const ctx = createContext(index2, now);
191180
191755
  let compiled;
191181
191756
  try {
191182
191757
  compiled = compileQuery(ctx, query);
191183
191758
  } catch (error53) {
191184
- throw wrapSearchError(error53, index.name);
191759
+ throw wrapSearchError(error53, index2.name);
191185
191760
  }
191186
191761
  const hits = [];
191187
- for (const doc2 of index.docs.values()) {
191762
+ for (const doc2 of index2.docs.values()) {
191188
191763
  const score = compiled.match(doc2);
191189
191764
  if (score !== undefined)
191190
191765
  hits.push({
@@ -191194,7 +191769,7 @@ var collectMatches = (index, query, now) => {
191194
191769
  });
191195
191770
  }
191196
191771
  return {
191197
- index,
191772
+ index: index2,
191198
191773
  ctx,
191199
191774
  hits
191200
191775
  };
@@ -191203,8 +191778,8 @@ var countDocuments = (store2, indices, body, params) => {
191203
191778
  const query = resolveQuery(body ?? {}, params);
191204
191779
  let count = 0;
191205
191780
  const now = Date.now();
191206
- for (const index of store2.resolve(indices))
191207
- count += collectMatches(index, query, now).hits.length;
191781
+ for (const index2 of store2.resolve(indices))
191782
+ count += collectMatches(index2, query, now).hits.length;
191208
191783
  return count;
191209
191784
  };
191210
191785
  var deleteByQuery = (store2, indices, body, params) => {
@@ -191213,9 +191788,9 @@ var deleteByQuery = (store2, indices, body, params) => {
191213
191788
  throw illegalArgument("query is missing");
191214
191789
  let deleted = 0;
191215
191790
  const now = Date.now();
191216
- for (const index of store2.resolve(indices))
191217
- for (const hit of collectMatches(index, query, now).hits) {
191218
- index.delete(hit.doc.id);
191791
+ for (const index2 of store2.resolve(indices))
191792
+ for (const hit of collectMatches(index2, query, now).hits) {
191793
+ index2.delete(hit.doc.id);
191219
191794
  deleted++;
191220
191795
  }
191221
191796
  return deleted;
@@ -191253,15 +191828,15 @@ var search = (store2, request) => {
191253
191828
  const indices = store2.resolve(request.indices);
191254
191829
  const now = started;
191255
191830
  const matches = [];
191256
- for (const index of indices) {
191257
- const matched = collectMatches(index, query, now);
191831
+ for (const index2 of indices) {
191832
+ const matched = collectMatches(index2, query, now);
191258
191833
  if (minScore !== undefined)
191259
191834
  matched.hits = matched.hits.filter((hit) => hit.score >= minScore);
191260
191835
  try {
191261
191836
  for (const hit of matched.hits)
191262
191837
  hit.sort = specs.map((spec) => sortValueOf(matched.ctx, hit.doc, hit.score, spec));
191263
191838
  } catch (error53) {
191264
- throw wrapSearchError(error53, index.name);
191839
+ throw wrapSearchError(error53, index2.name);
191265
191840
  }
191266
191841
  matches.push(matched);
191267
191842
  }
@@ -191345,7 +191920,7 @@ var runAggs = (spec, hits, contexts, indices) => {
191345
191920
  const agg = {
191346
191921
  contextFor: (name) => contexts.get(name),
191347
191922
  scores,
191348
- allDocs: () => indices.flatMap((index) => [...index.docs.values()])
191923
+ allDocs: () => indices.flatMap((index2) => [...index2.docs.values()])
191349
191924
  };
191350
191925
  try {
191351
191926
  return runAggregations(agg, spec, hits.map((h4) => h4.doc));
@@ -191376,8 +191951,8 @@ var optionalBody = (request) => {
191376
191951
  throw illegalArgument("request body must be a JSON object");
191377
191952
  return request.body;
191378
191953
  };
191379
- var writeResponse = (index, result) => ({
191380
- _index: index.name,
191954
+ var writeResponse = (index2, result) => ({
191955
+ _index: index2.name,
191381
191956
  _id: result.doc.id,
191382
191957
  _version: result.doc.version,
191383
191958
  result: result.result,
@@ -191385,17 +191960,17 @@ var writeResponse = (index, result) => ({
191385
191960
  _seq_no: result.doc.seqNo,
191386
191961
  _primary_term: 1
191387
191962
  });
191388
- var getResponse = (index, id, sourceFilter) => {
191389
- const doc2 = index.get(id);
191963
+ var getResponse = (index2, id, sourceFilter) => {
191964
+ const doc2 = index2.get(id);
191390
191965
  if (!doc2)
191391
191966
  return {
191392
- _index: index.name,
191967
+ _index: index2.name,
191393
191968
  _id: id,
191394
191969
  found: false
191395
191970
  };
191396
191971
  const source = applySourceFilter(doc2.source, sourceFilter);
191397
191972
  return {
191398
- _index: index.name,
191973
+ _index: index2.name,
191399
191974
  _id: id,
191400
191975
  _version: doc2.version,
191401
191976
  _seq_no: doc2.seqNo,
@@ -191472,17 +192047,17 @@ var parseBulkBody = (raw, defaultIndex) => {
191472
192047
  }
191473
192048
  return items;
191474
192049
  };
191475
- var bulkError = (error53, index, id) => {
192050
+ var bulkError = (error53, index2, id) => {
191476
192051
  if (!(error53 instanceof OpenSearchError))
191477
192052
  throw error53;
191478
192053
  return {
191479
- _index: index,
192054
+ _index: index2,
191480
192055
  _id: id ?? null,
191481
192056
  status: error53.status,
191482
192057
  error: {
191483
192058
  type: error53.type,
191484
192059
  reason: error53.reason,
191485
- index,
192060
+ index: index2,
191486
192061
  index_uuid: "_na_",
191487
192062
  shard: "0"
191488
192063
  }
@@ -191497,12 +192072,12 @@ var runBulk = (store2, request, defaultIndex) => {
191497
192072
  const id = item.meta._id === undefined ? undefined : String(item.meta._id);
191498
192073
  try {
191499
192074
  if (item.action === "delete") {
191500
- const index2 = store2.indices.get(indexName);
191501
- if (!index2)
192075
+ const index3 = store2.indices.get(indexName);
192076
+ if (!index3)
191502
192077
  throw indexNotFound(indexName);
191503
192078
  if (id === undefined)
191504
192079
  throw illegalArgument("Validation Failed: 1: id is missing;");
191505
- const doc2 = index2.delete(id);
192080
+ const doc2 = index3.delete(id);
191506
192081
  return { delete: {
191507
192082
  _index: indexName,
191508
192083
  _id: id,
@@ -191514,20 +192089,20 @@ var runBulk = (store2, request, defaultIndex) => {
191514
192089
  status: doc2 ? 200 : 404
191515
192090
  } };
191516
192091
  }
191517
- const index = store2.getOrCreate(indexName);
192092
+ const index2 = store2.getOrCreate(indexName);
191518
192093
  if (item.action === "update") {
191519
192094
  if (id === undefined)
191520
192095
  throw illegalArgument("Validation Failed: 1: id is missing;");
191521
- const result2 = index.update(id, item.source);
192096
+ const result2 = index2.update(id, item.source);
191522
192097
  return { update: {
191523
- ...writeResponse(index, result2),
192098
+ ...writeResponse(index2, result2),
191524
192099
  status: 200
191525
192100
  } };
191526
192101
  }
191527
192102
  const create = item.action === "create" || item.meta.op_type === "create";
191528
- const result = index.put(id ?? generateId(), item.source, { create });
192103
+ const result = index2.put(id ?? generateId(), item.source, { create });
191529
192104
  return { [item.action]: {
191530
- ...writeResponse(index, result),
192105
+ ...writeResponse(index2, result),
191531
192106
  status: result.result === "created" ? 201 : 200
191532
192107
  } };
191533
192108
  } catch (error53) {
@@ -191546,14 +192121,14 @@ var catIndices = (store2, params, expression) => {
191546
192121
  if (format3 !== "json")
191547
192122
  throw unsupported2(`the "${format3}" cat format (use format=json)`);
191548
192123
  const indices = expression === undefined ? [...store2.indices.values()] : store2.resolve(expression);
191549
- return ok(indices.map((index) => ({
192124
+ return ok(indices.map((index2) => ({
191550
192125
  health: "green",
191551
192126
  status: "open",
191552
- index: index.name,
191553
- uuid: index.uuid,
192127
+ index: index2.name,
192128
+ uuid: index2.uuid,
191554
192129
  pri: "1",
191555
192130
  rep: "1",
191556
- "docs.count": String(index.docs.size),
192131
+ "docs.count": String(index2.docs.size),
191557
192132
  "docs.deleted": "0",
191558
192133
  "store.size": "0b",
191559
192134
  "pri.store.size": "0b"
@@ -191595,13 +192170,13 @@ var mgetDocs = (store2, request, defaultIndex) => {
191595
192170
  for (const doc2 of body.docs) {
191596
192171
  if (!isPlainObject3(doc2))
191597
192172
  throw illegalArgument("docs entries must be objects");
191598
- const index = doc2._index === undefined ? defaultIndex : String(doc2._index);
191599
- if (index === undefined)
192173
+ const index2 = doc2._index === undefined ? defaultIndex : String(doc2._index);
192174
+ if (index2 === undefined)
191600
192175
  throw illegalArgument("Validation Failed: 1: index is missing;");
191601
192176
  if (doc2._id === undefined)
191602
192177
  throw illegalArgument("Validation Failed: 1: id is missing;");
191603
192178
  entries2.push({
191604
- index,
192179
+ index: index2,
191605
192180
  id: String(doc2._id),
191606
192181
  filter: doc2._source === undefined ? filter2 : parseSourceFilter(doc2._source)
191607
192182
  });
@@ -191609,8 +192184,8 @@ var mgetDocs = (store2, request, defaultIndex) => {
191609
192184
  else
191610
192185
  throw illegalArgument("Validation Failed: 1: no documents to get;");
191611
192186
  return ok({ docs: entries2.map((entry) => {
191612
- const index = store2.indices.get(entry.index);
191613
- if (!index) {
192187
+ const index2 = store2.indices.get(entry.index);
192188
+ if (!index2) {
191614
192189
  const error53 = indexNotFound(entry.index);
191615
192190
  return {
191616
192191
  _index: entry.index,
@@ -191622,17 +192197,17 @@ var mgetDocs = (store2, request, defaultIndex) => {
191622
192197
  }
191623
192198
  };
191624
192199
  }
191625
- return getResponse(index, entry.id, entry.filter);
192200
+ return getResponse(index2, entry.id, entry.filter);
191626
192201
  }) });
191627
192202
  };
191628
192203
  var putDocument = (store2, request, indexName, id, forceCreate) => {
191629
192204
  const source = requireBody(request);
191630
- const index = store2.getOrCreate(indexName);
192205
+ const index2 = store2.getOrCreate(indexName);
191631
192206
  const create = forceCreate || request.params.get("op_type") === "create";
191632
- if (create && id !== undefined && index.get(id))
192207
+ if (create && id !== undefined && index2.get(id))
191633
192208
  throw versionConflict(indexName, id);
191634
- const result = index.put(id ?? generateId(), source, { create });
191635
- return ok(writeResponse(index, result), result.result === "created" ? 201 : 200);
192209
+ const result = index2.put(id ?? generateId(), source, { create });
192210
+ return ok(writeResponse(index2, result), result.result === "created" ? 201 : 200);
191636
192211
  };
191637
192212
  var createRoutes = (store2) => {
191638
192213
  const route = (methods, pattern, handler) => ({
@@ -191721,14 +192296,14 @@ var createRoutes = (store2) => {
191721
192296
  }),
191722
192297
  route("GET", "/_mapping", () => {
191723
192298
  const result = {};
191724
- for (const index of store2.indices.values())
191725
- result[index.name] = { mappings: index.mapping };
192299
+ for (const index2 of store2.indices.values())
192300
+ result[index2.name] = { mappings: index2.mapping };
191726
192301
  return ok(result);
191727
192302
  }),
191728
192303
  route("GET", "/_all", () => {
191729
192304
  const result = {};
191730
- for (const index of store2.indices.values())
191731
- result[index.name] = index.describe();
192305
+ for (const index2 of store2.indices.values())
192306
+ result[index2.name] = index2.describe();
191732
192307
  return ok(result);
191733
192308
  }),
191734
192309
  route("HEAD", "/:index", (_request, path6) => {
@@ -191737,8 +192312,8 @@ var createRoutes = (store2) => {
191737
192312
  }),
191738
192313
  route("GET", "/:index", (_request, path6) => {
191739
192314
  const result = {};
191740
- for (const index of store2.resolve(path6.index))
191741
- result[index.name] = index.describe();
192315
+ for (const index2 of store2.resolve(path6.index))
192316
+ result[index2.name] = index2.describe();
191742
192317
  return ok(result);
191743
192318
  }),
191744
192319
  route("PUT", "/:index", (request, path6) => {
@@ -191765,33 +192340,33 @@ var createRoutes = (store2) => {
191765
192340
  }),
191766
192341
  route("GET", "/:index/_mapping", (_request, path6) => {
191767
192342
  const result = {};
191768
- for (const index of store2.resolve(path6.index))
191769
- result[index.name] = { mappings: index.mapping };
192343
+ for (const index2 of store2.resolve(path6.index))
192344
+ result[index2.name] = { mappings: index2.mapping };
191770
192345
  return ok(result);
191771
192346
  }),
191772
192347
  route("PUT,POST", "/:index/_mapping", (request, path6) => {
191773
192348
  const body = requireBody(request);
191774
- for (const index of store2.resolve(path6.index))
191775
- index.putMapping(body);
192349
+ for (const index2 of store2.resolve(path6.index))
192350
+ index2.putMapping(body);
191776
192351
  return ok({ acknowledged: true });
191777
192352
  }),
191778
192353
  route("GET", "/:index/_settings", (_request, path6) => {
191779
192354
  const result = {};
191780
- for (const index of store2.resolve(path6.index))
191781
- result[index.name] = { settings: index.describe().settings };
192355
+ for (const index2 of store2.resolve(path6.index))
192356
+ result[index2.name] = { settings: index2.describe().settings };
191782
192357
  return ok(result);
191783
192358
  }),
191784
192359
  route("POST", "/:index/_doc", (request, path6) => putDocument(store2, request, path6.index, undefined, false)),
191785
192360
  route("PUT,POST", "/:index/_doc/:id", (request, path6) => putDocument(store2, request, path6.index, path6.id, false)),
191786
192361
  route("PUT,POST", "/:index/_create/:id", (request, path6) => putDocument(store2, request, path6.index, path6.id, true)),
191787
192362
  route("GET", "/:index/_doc/:id", (request, path6) => {
191788
- const index = store2.get(path6.index);
191789
- const response = getResponse(index, path6.id, sourceFilterFromParams(request.params));
192363
+ const index2 = store2.get(path6.index);
192364
+ const response = getResponse(index2, path6.id, sourceFilterFromParams(request.params));
191790
192365
  return ok(response, response.found ? 200 : 404);
191791
192366
  }),
191792
192367
  route("HEAD", "/:index/_doc/:id", (_request, path6) => {
191793
- const index = store2.get(path6.index);
191794
- return ok(undefined, index.get(path6.id) ? 200 : 404);
192368
+ const index2 = store2.get(path6.index);
192369
+ return ok(undefined, index2.get(path6.id) ? 200 : 404);
191795
192370
  }),
191796
192371
  route("GET", "/:index/_source/:id", (request, path6) => {
191797
192372
  const doc2 = store2.get(path6.index).get(path6.id);
@@ -191800,14 +192375,14 @@ var createRoutes = (store2) => {
191800
192375
  return ok(applySourceFilter(doc2.source, sourceFilterFromParams(request.params)) ?? {});
191801
192376
  }),
191802
192377
  route("HEAD", "/:index/_source/:id", (_request, path6) => {
191803
- const index = store2.get(path6.index);
191804
- return ok(undefined, index.get(path6.id) ? 200 : 404);
192378
+ const index2 = store2.get(path6.index);
192379
+ return ok(undefined, index2.get(path6.id) ? 200 : 404);
191805
192380
  }),
191806
192381
  route("DELETE", "/:index/_doc/:id", (_request, path6) => {
191807
- const index = store2.get(path6.index);
191808
- const doc2 = index.delete(path6.id);
192382
+ const index2 = store2.get(path6.index);
192383
+ const doc2 = index2.delete(path6.id);
191809
192384
  return ok({
191810
- _index: index.name,
192385
+ _index: index2.name,
191811
192386
  _id: path6.id,
191812
192387
  _version: doc2 ? doc2.version + 1 : 1,
191813
192388
  result: doc2 ? "deleted" : "not_found",
@@ -191817,10 +192392,10 @@ var createRoutes = (store2) => {
191817
192392
  }, doc2 ? 200 : 404);
191818
192393
  }),
191819
192394
  route("POST", "/:index/_update/:id", (request, path6) => {
191820
- const index = store2.get(path6.index);
192395
+ const index2 = store2.get(path6.index);
191821
192396
  const body = requireBody(request);
191822
- const result = index.update(path6.id, body);
191823
- const response = writeResponse(index, result);
192397
+ const result = index2.update(path6.id, body);
192398
+ const response = writeResponse(index2, result);
191824
192399
  const sourceParam = request.params.get("_source") ?? (body._source === true ? "true" : undefined);
191825
192400
  if (sourceParam !== undefined && sourceParam !== "false")
191826
192401
  response.get = {
@@ -192557,9 +193132,9 @@ ${(errors4.trim() || output.trim()).slice(-2000)}`);
192557
193132
  const hashes = files.map((file3) => $hash(join33(staticDir, file3)));
192558
193133
  const version3 = $combine(...hashes).pipe((hashes2) => {
192559
193134
  const hash3 = createHash19("sha1");
192560
- for (const [index, file3] of files.entries()) {
193135
+ for (const [index2, file3] of files.entries()) {
192561
193136
  hash3.update(file3);
192562
- hash3.update(hashes2[index]);
193137
+ hash3.update(hashes2[index2]);
192563
193138
  }
192564
193139
  return hash3.digest("hex");
192565
193140
  });
@@ -192734,9 +193309,9 @@ var storeFeature = defineFeature({
192734
193309
  for (const [id, props] of Object.entries(ctx.stackConfig.stores ?? {})) {
192735
193310
  const group = new Group(ctx.stack, "store", id);
192736
193311
  const folder = getFeatureFolder("store", ctx.stack.name, id);
192737
- for (const [index, rule] of Object.entries(props.lifecycle ?? [])) {
193312
+ for (const [index2, rule] of Object.entries(props.lifecycle ?? [])) {
192738
193313
  bucket.addLifecycleRule({
192739
- id: `expire-${kebabCase(`${folder}${rule.prefix ?? `rule-${index}`}`)}`,
193314
+ id: `expire-${kebabCase(`${folder}${rule.prefix ?? `rule-${index2}`}`)}`,
192740
193315
  enabled: true,
192741
193316
  prefix: `${folder}${rule.prefix ?? ""}`,
192742
193317
  expiration: { days: toDays11(rule.expiration) }
@@ -192827,12 +193402,12 @@ var createDataReset = (props) => {
192827
193402
  const client2 = new Client5({ node: `http://localhost:${search2.port}` });
192828
193403
  for (const stack of props.stackConfigs) {
192829
193404
  for (const [id, searchProps] of Object.entries(stack.searchs ?? {})) {
192830
- const index = formatSearchIndexName(stack.name, id);
193405
+ const index2 = formatSearchIndexName(stack.name, id);
192831
193406
  try {
192832
- await client2.indices.delete({ index });
193407
+ await client2.indices.delete({ index: index2 });
192833
193408
  } catch {}
192834
193409
  await applySearchIndex(client2, {
192835
- index,
193410
+ index: index2,
192836
193411
  mappings: resolveSearchMappings(searchProps),
192837
193412
  settings: searchProps.settings
192838
193413
  });
@@ -192862,11 +193437,11 @@ var formatTableKeys = (props) => {
192862
193437
  hash: props.hash,
192863
193438
  ...props.sort ? { sort: props.sort } : {},
192864
193439
  ...props.indexes && Object.keys(props.indexes).length > 0 ? {
192865
- indexes: Object.fromEntries(Object.entries(props.indexes).map(([name, index]) => [
193440
+ indexes: Object.fromEntries(Object.entries(props.indexes).map(([name, index2]) => [
192866
193441
  name,
192867
193442
  {
192868
- hash: index.hash,
192869
- ...index.sort ? { sort: index.sort } : {}
193443
+ hash: index2.hash,
193444
+ ...index2.sort ? { sort: index2.sort } : {}
192870
193445
  }
192871
193446
  ]))
192872
193447
  } : {}
@@ -192883,9 +193458,9 @@ var createTableInput = (name, props) => {
192883
193458
  const attributes = new Set([
192884
193459
  props.hash,
192885
193460
  props.sort,
192886
- ...Object.values(props.indexes ?? {}).map((index) => [
192887
- index.hash,
192888
- index.sort
193461
+ ...Object.values(props.indexes ?? {}).map((index2) => [
193462
+ index2.hash,
193463
+ index2.sort
192889
193464
  ])
192890
193465
  ].flat(2).filter((v3) => !!v3));
192891
193466
  return {
@@ -192899,12 +193474,12 @@ var createTableInput = (name, props) => {
192899
193474
  AttributeName: name2,
192900
193475
  AttributeType: attributeTypes[props.fields?.[name2] ?? "string"]
192901
193476
  })),
192902
- GlobalSecondaryIndexes: props.indexes && Object.keys(props.indexes).length > 0 ? Object.entries(props.indexes).map(([name2, index]) => ({
193477
+ GlobalSecondaryIndexes: props.indexes && Object.keys(props.indexes).length > 0 ? Object.entries(props.indexes).map(([name2, index2]) => ({
192903
193478
  IndexName: name2,
192904
- Projection: { ProjectionType: constantCase(index.projection) },
193479
+ Projection: { ProjectionType: constantCase(index2.projection) },
192905
193480
  KeySchema: [
192906
- ...index.hash.map((name3) => ({ AttributeName: name3, KeyType: "HASH" })),
192907
- ...(index.sort ?? []).map((name3) => ({ AttributeName: name3, KeyType: "RANGE" }))
193481
+ ...index2.hash.map((name3) => ({ AttributeName: name3, KeyType: "HASH" })),
193482
+ ...(index2.sort ?? []).map((name3) => ({ AttributeName: name3, KeyType: "RANGE" }))
192908
193483
  ]
192909
193484
  })) : undefined,
192910
193485
  StreamSpecification: props.stream ? {
@@ -193036,9 +193611,9 @@ var tableFeature = defineFeature({
193036
193611
  resourceName: name
193037
193612
  });
193038
193613
  const sort2 = props.sort ? keyValue(props.sort) : "undefined";
193039
- const indexes = props.indexes && Object.keys(props.indexes).length > 0 ? `{ ${Object.entries(props.indexes).map(([indexName, index]) => {
193040
- const indexSort = index.sort ? `; sort: ${keyValue(index.sort)}` : "";
193041
- return `'${indexName}': { hash: ${keyValue(index.hash)}${indexSort} }`;
193614
+ const indexes = props.indexes && Object.keys(props.indexes).length > 0 ? `{ ${Object.entries(props.indexes).map(([indexName, index2]) => {
193615
+ const indexSort = index2.sort ? `; sort: ${keyValue(index2.sort)}` : "";
193616
+ return `'${indexName}': { hash: ${keyValue(index2.hash)}${indexSort} }`;
193042
193617
  }).join("; ")} }` : "undefined";
193043
193618
  list2.addType(name, `{
193044
193619
  readonly name: '${tableName}'
@@ -193100,9 +193675,9 @@ var tableFeature = defineFeature({
193100
193675
  const attributes = new Set([
193101
193676
  props.hash,
193102
193677
  props.sort,
193103
- ...Object.values(props.indexes ?? {}).map((index) => [
193104
- index.hash,
193105
- index.sort
193678
+ ...Object.values(props.indexes ?? {}).map((index2) => [
193679
+ index2.hash,
193680
+ index2.sort
193106
193681
  ])
193107
193682
  ].flat(2).filter((v3) => !!v3));
193108
193683
  const types2 = {
@@ -193131,15 +193706,15 @@ var tableFeature = defineFeature({
193131
193706
  pointInTimeRecovery: {
193132
193707
  enabled: props.pointInTimeRecovery
193133
193708
  },
193134
- globalSecondaryIndex: Object.entries(props.indexes ?? {}).map(([name2, index]) => ({
193709
+ globalSecondaryIndex: Object.entries(props.indexes ?? {}).map(([name2, index2]) => ({
193135
193710
  name: name2,
193136
- projectionType: constantCase(index.projection),
193711
+ projectionType: constantCase(index2.projection),
193137
193712
  keySchema: [
193138
- ...index.hash.map((name3) => ({
193713
+ ...index2.hash.map((name3) => ({
193139
193714
  keyType: "HASH",
193140
193715
  attributeName: name3
193141
193716
  })),
193142
- ...(index.sort ?? []).map((name3) => ({
193717
+ ...(index2.sort ?? []).map((name3) => ({
193143
193718
  keyType: "RANGE",
193144
193719
  attributeName: name3
193145
193720
  }))
@@ -193637,11 +194212,11 @@ var vpcFeature = defineFeature({
193637
194212
  const type = _type;
193638
194213
  const subnetIds = subnetIdsByType[type];
193639
194214
  for (const [i4, zone] of zones.entries()) {
193640
- const index = i4 + 1;
193641
- const id = `${type}-${index}`;
194215
+ const index2 = i4 + 1;
194216
+ const id = `${type}-${index2}`;
193642
194217
  const subnet = new aws.Subnet(group, id, {
193643
194218
  tags: {
193644
- Name: `${ctx.app.name}--${type}-${index}`
194219
+ Name: `${ctx.app.name}--${type}-${index2}`
193645
194220
  },
193646
194221
  vpcId: vpc.id,
193647
194222
  cidrBlock: `10.0.${block2}.0/20`,
@@ -194610,14 +195185,14 @@ var import_aws_cron_expression_validator = __toESM(require_src6(), 1);
194610
195185
  var RateExpressionSchema = exports_external.custom((value) => {
194611
195186
  return exports_external.string().regex(/^[0-9]+ (seconds?|minutes?|hours?|days?)$/).refine((rate) => {
194612
195187
  const [str] = rate.split(" ");
194613
- const number4 = parseInt(str);
194614
- return number4 > 0;
195188
+ const number5 = parseInt(str);
195189
+ return number5 > 0;
194615
195190
  }).safeParse(value).success;
194616
195191
  }, { message: "Invalid rate expression" }).transform((rate) => {
194617
195192
  const [str] = rate.split(" ");
194618
- const number4 = parseInt(str);
195193
+ const number5 = parseInt(str);
194619
195194
  const more = rate.endsWith("s");
194620
- if (more && number4 === 1) {
195195
+ if (more && number5 === 1) {
194621
195196
  return `rate(${rate.substring(0, rate.length - 1)})`;
194622
195197
  }
194623
195198
  return `rate(${rate})`;
@@ -195038,15 +195613,15 @@ function patchErrorMessageFormatter(message2, args) {
195038
195613
  }
195039
195614
  var PatchError = function(_super) {
195040
195615
  __extends(PatchError2, _super);
195041
- function PatchError2(message2, name, index, operation, tree) {
195616
+ function PatchError2(message2, name, index2, operation, tree) {
195042
195617
  var _newTarget = this.constructor;
195043
- var _this = _super.call(this, patchErrorMessageFormatter(message2, { name, index, operation, tree })) || this;
195618
+ var _this = _super.call(this, patchErrorMessageFormatter(message2, { name, index: index2, operation, tree })) || this;
195044
195619
  _this.name = name;
195045
- _this.index = index;
195620
+ _this.index = index2;
195046
195621
  _this.operation = operation;
195047
195622
  _this.tree = tree;
195048
195623
  Object.setPrototypeOf(_this, _newTarget.prototype);
195049
- _this.message = patchErrorMessageFormatter(message2, { name, index, operation, tree });
195624
+ _this.message = patchErrorMessageFormatter(message2, { name, index: index2, operation, tree });
195050
195625
  return _this;
195051
195626
  }
195052
195627
  return PatchError2;
@@ -195123,7 +195698,7 @@ function getValueByPointer(document2, pointer) {
195123
195698
  applyOperation(document2, getOriginalDestination);
195124
195699
  return getOriginalDestination.value;
195125
195700
  }
195126
- function applyOperation(document2, operation, validateOperation, mutateDocument, banPrototypeModifications, index) {
195701
+ function applyOperation(document2, operation, validateOperation, mutateDocument, banPrototypeModifications, index2) {
195127
195702
  if (validateOperation === undefined) {
195128
195703
  validateOperation = false;
195129
195704
  }
@@ -195133,8 +195708,8 @@ function applyOperation(document2, operation, validateOperation, mutateDocument,
195133
195708
  if (banPrototypeModifications === undefined) {
195134
195709
  banPrototypeModifications = true;
195135
195710
  }
195136
- if (index === undefined) {
195137
- index = 0;
195711
+ if (index2 === undefined) {
195712
+ index2 = 0;
195138
195713
  }
195139
195714
  if (validateOperation) {
195140
195715
  if (typeof validateOperation == "function") {
@@ -195161,7 +195736,7 @@ function applyOperation(document2, operation, validateOperation, mutateDocument,
195161
195736
  } else if (operation.op === "test") {
195162
195737
  returnValue.test = _areEquals(document2, operation.value);
195163
195738
  if (returnValue.test === false) {
195164
- throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index, operation, document2);
195739
+ throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index2, operation, document2);
195165
195740
  }
195166
195741
  returnValue.newDocument = document2;
195167
195742
  return returnValue;
@@ -195174,7 +195749,7 @@ function applyOperation(document2, operation, validateOperation, mutateDocument,
195174
195749
  return returnValue;
195175
195750
  } else {
195176
195751
  if (validateOperation) {
195177
- throw new JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", index, operation, document2);
195752
+ throw new JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", index2, operation, document2);
195178
195753
  } else {
195179
195754
  return returnValue;
195180
195755
  }
@@ -195222,18 +195797,18 @@ function applyOperation(document2, operation, validateOperation, mutateDocument,
195222
195797
  key = obj.length;
195223
195798
  } else {
195224
195799
  if (validateOperation && !isInteger(key)) {
195225
- throw new JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index", "OPERATION_PATH_ILLEGAL_ARRAY_INDEX", index, operation, document2);
195800
+ throw new JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index", "OPERATION_PATH_ILLEGAL_ARRAY_INDEX", index2, operation, document2);
195226
195801
  } else if (isInteger(key)) {
195227
195802
  key = ~~key;
195228
195803
  }
195229
195804
  }
195230
195805
  if (t2 >= len) {
195231
195806
  if (validateOperation && operation.op === "add" && key > obj.length) {
195232
- throw new JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array", "OPERATION_VALUE_OUT_OF_BOUNDS", index, operation, document2);
195807
+ throw new JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array", "OPERATION_VALUE_OUT_OF_BOUNDS", index2, operation, document2);
195233
195808
  }
195234
195809
  var returnValue = arrOps[operation.op].call(operation, obj, key, document2);
195235
195810
  if (returnValue.test === false) {
195236
- throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index, operation, document2);
195811
+ throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index2, operation, document2);
195237
195812
  }
195238
195813
  return returnValue;
195239
195814
  }
@@ -195241,14 +195816,14 @@ function applyOperation(document2, operation, validateOperation, mutateDocument,
195241
195816
  if (t2 >= len) {
195242
195817
  var returnValue = objOps[operation.op].call(operation, obj, key, document2);
195243
195818
  if (returnValue.test === false) {
195244
- throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index, operation, document2);
195819
+ throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index2, operation, document2);
195245
195820
  }
195246
195821
  return returnValue;
195247
195822
  }
195248
195823
  }
195249
195824
  obj = obj[key];
195250
195825
  if (validateOperation && t2 < len && (!obj || typeof obj !== "object")) {
195251
- throw new JsonPatchError("Cannot perform operation at the desired path", "OPERATION_PATH_UNRESOLVABLE", index, operation, document2);
195826
+ throw new JsonPatchError("Cannot perform operation at the desired path", "OPERATION_PATH_UNRESOLVABLE", index2, operation, document2);
195252
195827
  }
195253
195828
  }
195254
195829
  }
@@ -195276,44 +195851,44 @@ function applyPatch(document2, patch, validateOperation, mutateDocument, banProt
195276
195851
  results.newDocument = document2;
195277
195852
  return results;
195278
195853
  }
195279
- function applyReducer(document2, operation, index) {
195854
+ function applyReducer(document2, operation, index2) {
195280
195855
  var operationResult = applyOperation(document2, operation);
195281
195856
  if (operationResult.test === false) {
195282
- throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index, operation, document2);
195857
+ throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index2, operation, document2);
195283
195858
  }
195284
195859
  return operationResult.newDocument;
195285
195860
  }
195286
- function validator(operation, index, document2, existingPathFragment) {
195861
+ function validator(operation, index2, document2, existingPathFragment) {
195287
195862
  if (typeof operation !== "object" || operation === null || Array.isArray(operation)) {
195288
- throw new JsonPatchError("Operation is not an object", "OPERATION_NOT_AN_OBJECT", index, operation, document2);
195863
+ throw new JsonPatchError("Operation is not an object", "OPERATION_NOT_AN_OBJECT", index2, operation, document2);
195289
195864
  } else if (!objOps[operation.op]) {
195290
- throw new JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", index, operation, document2);
195865
+ throw new JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", index2, operation, document2);
195291
195866
  } else if (typeof operation.path !== "string") {
195292
- throw new JsonPatchError("Operation `path` property is not a string", "OPERATION_PATH_INVALID", index, operation, document2);
195867
+ throw new JsonPatchError("Operation `path` property is not a string", "OPERATION_PATH_INVALID", index2, operation, document2);
195293
195868
  } else if (operation.path.indexOf("/") !== 0 && operation.path.length > 0) {
195294
- throw new JsonPatchError('Operation `path` property must start with "/"', "OPERATION_PATH_INVALID", index, operation, document2);
195869
+ throw new JsonPatchError('Operation `path` property must start with "/"', "OPERATION_PATH_INVALID", index2, operation, document2);
195295
195870
  } else if ((operation.op === "move" || operation.op === "copy") && typeof operation.from !== "string") {
195296
- throw new JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)", "OPERATION_FROM_REQUIRED", index, operation, document2);
195871
+ throw new JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)", "OPERATION_FROM_REQUIRED", index2, operation, document2);
195297
195872
  } else if ((operation.op === "add" || operation.op === "replace" || operation.op === "test") && operation.value === undefined) {
195298
- throw new JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_REQUIRED", index, operation, document2);
195873
+ throw new JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_REQUIRED", index2, operation, document2);
195299
195874
  } else if ((operation.op === "add" || operation.op === "replace" || operation.op === "test") && hasUndefined(operation.value)) {
195300
- throw new JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED", index, operation, document2);
195875
+ throw new JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED", index2, operation, document2);
195301
195876
  } else if (document2) {
195302
195877
  if (operation.op == "add") {
195303
195878
  var pathLen = operation.path.split("/").length;
195304
195879
  var existingPathLen = existingPathFragment.split("/").length;
195305
195880
  if (pathLen !== existingPathLen + 1 && pathLen !== existingPathLen) {
195306
- throw new JsonPatchError("Cannot perform an `add` operation at the desired path", "OPERATION_PATH_CANNOT_ADD", index, operation, document2);
195881
+ throw new JsonPatchError("Cannot perform an `add` operation at the desired path", "OPERATION_PATH_CANNOT_ADD", index2, operation, document2);
195307
195882
  }
195308
195883
  } else if (operation.op === "replace" || operation.op === "remove" || operation.op === "_get") {
195309
195884
  if (operation.path !== existingPathFragment) {
195310
- throw new JsonPatchError("Cannot perform the operation at a path that does not exist", "OPERATION_PATH_UNRESOLVABLE", index, operation, document2);
195885
+ throw new JsonPatchError("Cannot perform the operation at a path that does not exist", "OPERATION_PATH_UNRESOLVABLE", index2, operation, document2);
195311
195886
  }
195312
195887
  } else if (operation.op === "move" || operation.op === "copy") {
195313
195888
  var existingValue = { op: "_get", path: operation.from, value: undefined };
195314
195889
  var error53 = validate3([existingValue], document2);
195315
195890
  if (error53 && error53.name === "OPERATION_PATH_UNRESOLVABLE") {
195316
- throw new JsonPatchError("Cannot perform the operation from a path that does not exist", "OPERATION_FROM_UNRESOLVABLE", index, operation, document2);
195891
+ throw new JsonPatchError("Cannot perform the operation from a path that does not exist", "OPERATION_FROM_UNRESOLVABLE", index2, operation, document2);
195317
195892
  }
195318
195893
  }
195319
195894
  }
@@ -195859,7 +196434,7 @@ var logConfigError = (error53) => {
195859
196434
  const length2 = issue2.path.length;
195860
196435
  const end = ["}"];
195861
196436
  issue2.path.forEach((path6, i4) => {
195862
- const index = i4 + 1;
196437
+ const index2 = i4 + 1;
195863
196438
  const entry = context[path6];
195864
196439
  if (typeof entry !== "undefined") {
195865
196440
  context = entry;
@@ -195868,30 +196443,30 @@ var logConfigError = (error53) => {
195868
196443
  }
195869
196444
  if (typeof path6 === "string") {
195870
196445
  const key = path6 + `: `;
195871
- if (index === length2 || endType(entry)) {
196446
+ if (index2 === length2 || endType(entry)) {
195872
196447
  const space = " ".repeat(key.length);
195873
196448
  const value = format3(entry);
195874
196449
  const error54 = icon.arrow.top.repeat(value.length);
195875
- message2.push(codeLine(key + color2.warning(value), index));
195876
- message2.push(codeLine(space + color2.error(error54), index));
196450
+ message2.push(codeLine(key + color2.warning(value), index2));
196451
+ message2.push(codeLine(space + color2.error(error54), index2));
195877
196452
  } else if (Array.isArray(entry)) {
195878
- message2.push(codeLine(key + "[", index));
195879
- end.unshift(codeLine("]", index));
196453
+ message2.push(codeLine(key + "[", index2));
196454
+ end.unshift(codeLine("]", index2));
195880
196455
  } else if (typeof entry === "object") {
195881
- if (inStack && index === 3) {
196456
+ if (inStack && index2 === 3) {
195882
196457
  const name = error53.data.stacks[issue2.path[1]].name;
195883
- message2.push(codeLine("name: " + color2.info(`"${name}"`) + ",", index));
196458
+ message2.push(codeLine("name: " + color2.info(`"${name}"`) + ",", index2));
195884
196459
  }
195885
- message2.push(codeLine(key + "{", index));
195886
- end.unshift(codeLine("}", index));
196460
+ message2.push(codeLine(key + "{", index2));
196461
+ end.unshift(codeLine("}", index2));
195887
196462
  }
195888
196463
  } else if (typeof entry === "object") {
195889
- message2.push(codeLine("{", index));
195890
- end.unshift(codeLine("}", index));
196464
+ message2.push(codeLine("{", index2));
196465
+ end.unshift(codeLine("}", index2));
195891
196466
  } else if (typeof entry === "string") {
195892
- message2.push(codeLine(color2.warning(`"${entry}"`), index));
196467
+ message2.push(codeLine(color2.warning(`"${entry}"`), index2));
195893
196468
  const error54 = icon.arrow.top.repeat(entry.length + 2);
195894
- message2.push(codeLine(color2.error(error54), index));
196469
+ message2.push(codeLine(color2.error(error54), index2));
195895
196470
  }
195896
196471
  });
195897
196472
  logs_exports.error([...message2, ...end].join(`
@@ -196591,7 +197166,7 @@ import {
196591
197166
  deleteItem,
196592
197167
  DynamoDBClient,
196593
197168
  getItem,
196594
- number as number4,
197169
+ number as number5,
196595
197170
  object as object2,
196596
197171
  optional as optional2,
196597
197172
  putItem,
@@ -196895,8 +197470,8 @@ function buildLocalizeFn(args) {
196895
197470
  const width = options2?.width ? String(options2.width) : args.defaultWidth;
196896
197471
  valuesArray = args.values[width] || args.values[defaultWidth];
196897
197472
  }
196898
- const index = args.argumentCallback ? args.argumentCallback(value) : value;
196899
- return valuesArray[index];
197473
+ const index2 = args.argumentCallback ? args.argumentCallback(value) : value;
197474
+ return valuesArray[index2];
196900
197475
  };
196901
197476
  }
196902
197477
 
@@ -197021,19 +197596,19 @@ var formattingDayPeriodValues = {
197021
197596
  }
197022
197597
  };
197023
197598
  var ordinalNumber = (dirtyNumber, _options) => {
197024
- const number4 = Number(dirtyNumber);
197025
- const rem100 = number4 % 100;
197599
+ const number5 = Number(dirtyNumber);
197600
+ const rem100 = number5 % 100;
197026
197601
  if (rem100 > 20 || rem100 < 10) {
197027
197602
  switch (rem100 % 10) {
197028
197603
  case 1:
197029
- return number4 + "st";
197604
+ return number5 + "st";
197030
197605
  case 2:
197031
- return number4 + "nd";
197606
+ return number5 + "nd";
197032
197607
  case 3:
197033
- return number4 + "rd";
197608
+ return number5 + "rd";
197034
197609
  }
197035
197610
  }
197036
- return number4 + "th";
197611
+ return number5 + "th";
197037
197612
  };
197038
197613
  var localize = {
197039
197614
  ordinalNumber,
@@ -197212,7 +197787,7 @@ var match2 = {
197212
197787
  defaultMatchWidth: "wide",
197213
197788
  parsePatterns: parseQuarterPatterns,
197214
197789
  defaultParseWidth: "any",
197215
- valueCallback: (index) => index + 1
197790
+ valueCallback: (index2) => index2 + 1
197216
197791
  }),
197217
197792
  month: buildMatchFn({
197218
197793
  matchPatterns: matchMonthPatterns,
@@ -197305,9 +197880,9 @@ function getWeek(date5, options2) {
197305
197880
  }
197306
197881
 
197307
197882
  // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
197308
- function addLeadingZeros(number4, targetLength) {
197309
- const sign2 = number4 < 0 ? "-" : "";
197310
- const output = Math.abs(number4).toString().padStart(targetLength, "0");
197883
+ function addLeadingZeros(number5, targetLength) {
197884
+ const sign2 = number5 < 0 ? "-" : "";
197885
+ const output = Math.abs(number5).toString().padStart(targetLength, "0");
197311
197886
  return sign2 + output;
197312
197887
  }
197313
197888
 
@@ -198101,7 +198676,7 @@ var table2 = define2("awsless-deployments", {
198101
198676
  appId: string4(),
198102
198677
  id: string4(),
198103
198678
  branch: string4(),
198104
- seq: number4(),
198679
+ seq: number5(),
198105
198680
  createdAt: string4(),
198106
198681
  user: optional2(string4()),
198107
198682
  commit: optional2(string4()),
@@ -199397,7 +199972,7 @@ var formatFileName = (test, error53) => {
199397
199972
  }
199398
199973
  return name.join("");
199399
199974
  };
199400
- var logTestError = (index, event, test, error53) => {
199975
+ var logTestError = (index2, event, test, error53) => {
199401
199976
  if (error53.stack) {
199402
199977
  debug(`Test error in ${test.file} \u203A ${test.name}: ${error53.message}
199403
199978
  ${error53.stack}`);
@@ -199410,7 +199985,7 @@ ${error53.stack}`);
199410
199985
  ].join(" ");
199411
199986
  logs_exports.error([
199412
199987
  color2.error.inverse.bold(` FAIL `),
199413
- color2.dim(`(${index}/${event.errors.length + event.failed})`),
199988
+ color2.dim(`(${index2}/${event.errors.length + event.failed})`),
199414
199989
  color2.dim(icon.arrow.right),
199415
199990
  formatFileName(test, error53),
199416
199991
  color2.dim(icon.arrow.right),
@@ -199497,7 +200072,7 @@ var runTests = async (tests, stackFilters = [], testFilters = [], opts) => {
199497
200072
  return [dir, fingerprint];
199498
200073
  }))));
199499
200074
  for (const test of selected) {
199500
- for (const [index, dir] of test.paths.entries()) {
200075
+ for (const [index2, dir] of test.paths.entries()) {
199501
200076
  const files = await countTestFiles(dir);
199502
200077
  if (files === 0) {
199503
200078
  continue;
@@ -199517,7 +200092,7 @@ var runTests = async (tests, stackFilters = [], testFilters = [], opts) => {
199517
200092
  continue;
199518
200093
  }
199519
200094
  pending.push({
199520
- name: test.paths.length > 1 ? `${test.name}:${index}` : test.name,
200095
+ name: test.paths.length > 1 ? `${test.name}:${index2}` : test.name,
199521
200096
  stack: test.name,
199522
200097
  dir,
199523
200098
  file: file3,
@@ -200506,9 +201081,9 @@ var createSqsServer = (props) => {
200506
201081
  throw new Error(`Unknown local queue: ${input.QueueUrl}`);
200507
201082
  }
200508
201083
  const store2 = storeOf(queue);
200509
- const index = store2.findIndex((message3) => message3.receipt === input.ReceiptHandle);
200510
- if (index >= 0) {
200511
- store2.splice(index, 1);
201084
+ const index2 = store2.findIndex((message3) => message3.receipt === input.ReceiptHandle);
201085
+ if (index2 >= 0) {
201086
+ store2.splice(index2, 1);
200512
201087
  }
200513
201088
  return {};
200514
201089
  },
@@ -200520,9 +201095,9 @@ var createSqsServer = (props) => {
200520
201095
  const store2 = storeOf(queue);
200521
201096
  return {
200522
201097
  Successful: (input.Entries ?? []).map((entry) => {
200523
- const index = store2.findIndex((message3) => message3.receipt === entry.ReceiptHandle);
200524
- if (index >= 0) {
200525
- store2.splice(index, 1);
201098
+ const index2 = store2.findIndex((message3) => message3.receipt === entry.ReceiptHandle);
201099
+ if (index2 >= 0) {
201100
+ store2.splice(index2, 1);
200526
201101
  }
200527
201102
  return { Id: entry.Id };
200528
201103
  }),
@@ -204016,8 +204591,8 @@ var startDev = async (props) => {
204016
204591
  await mkdir12(join52(directories.output, "local"), { recursive: true });
204017
204592
  await writeFile16(watchdogPath(), WATCHDOG_SOURCE);
204018
204593
  const routerPorts = {};
204019
- Object.keys(appConfig.router ?? {}).forEach((id, index) => {
204020
- routerPorts[id] = props.port + 1 + index;
204594
+ Object.keys(appConfig.router ?? {}).forEach((id, index2) => {
204595
+ routerPorts[id] = props.port + 1 + index2;
204021
204596
  });
204022
204597
  const firstBoot = props.pool.peek("session") === undefined;
204023
204598
  props.pool.begin();
@@ -204788,11 +205363,11 @@ var clearCache = (program3) => {
204788
205363
  });
204789
205364
  await workspace.hydrate(app);
204790
205365
  let distributionId;
204791
- let cache3;
205366
+ let cache4;
204792
205367
  try {
204793
205368
  distributionId = await shared.entry("icon", "distribution-id", name);
204794
205369
  const entry = shared.entry("icon", "cache", name);
204795
- cache3 = { bucket: await entry.bucket, prefix: entry.prefix };
205370
+ cache4 = { bucket: await entry.bucket, prefix: entry.prefix };
204796
205371
  } catch {
204797
205372
  throw new ExpectedError(`The icon resource hasn't been deployed yet.`);
204798
205373
  }
@@ -204812,14 +205387,14 @@ var clearCache = (program3) => {
204812
205387
  let continuationToken;
204813
205388
  while (true) {
204814
205389
  const result = await s3Client.send(new ListObjectsV2Command({
204815
- Bucket: cache3.bucket,
204816
- Prefix: cache3.prefix,
205390
+ Bucket: cache4.bucket,
205391
+ Prefix: cache4.prefix,
204817
205392
  ContinuationToken: continuationToken,
204818
205393
  MaxKeys: 1000
204819
205394
  }));
204820
205395
  if (result.Contents && result.Contents.length > 0) {
204821
205396
  await s3Client.send(new DeleteObjectsCommand({
204822
- Bucket: cache3.bucket,
205397
+ Bucket: cache4.bucket,
204823
205398
  Delete: {
204824
205399
  Objects: result.Contents.map((obj) => ({
204825
205400
  Key: obj.Key
@@ -204915,11 +205490,11 @@ var clearCache2 = (program3) => {
204915
205490
  });
204916
205491
  await workspace.hydrate(app);
204917
205492
  let distributionId;
204918
- let cache3;
205493
+ let cache4;
204919
205494
  try {
204920
205495
  distributionId = await shared.entry("image", "distribution-id", name);
204921
205496
  const entry = shared.entry("image", "cache", name);
204922
- cache3 = { bucket: await entry.bucket, prefix: entry.prefix };
205497
+ cache4 = { bucket: await entry.bucket, prefix: entry.prefix };
204923
205498
  } catch {
204924
205499
  throw new ExpectedError(`The image resource hasn't been deployed yet.`);
204925
205500
  }
@@ -204939,14 +205514,14 @@ var clearCache2 = (program3) => {
204939
205514
  let continuationToken;
204940
205515
  while (true) {
204941
205516
  const result = await s3Client.send(new ListObjectsV2Command2({
204942
- Bucket: cache3.bucket,
204943
- Prefix: cache3.prefix,
205517
+ Bucket: cache4.bucket,
205518
+ Prefix: cache4.prefix,
204944
205519
  ContinuationToken: continuationToken,
204945
205520
  MaxKeys: 1000
204946
205521
  }));
204947
205522
  if (result.Contents && result.Contents.length > 0) {
204948
205523
  await s3Client.send(new DeleteObjectsCommand2({
204949
- Bucket: cache3.bucket,
205524
+ Bucket: cache4.bucket,
204950
205525
  Delete: {
204951
205526
  Objects: result.Contents.map((obj) => ({
204952
205527
  Key: obj.Key
@@ -205212,10 +205787,10 @@ var pruneSiteVersions = async (props) => {
205212
205787
  } while (cursor3);
205213
205788
  const cutoff = subHours(new Date, 24);
205214
205789
  const garbage = [...unreferenced.values()].filter((entry) => isBefore(entry.newest, cutoff)).flatMap((entry) => entry.keys);
205215
- for (let index = 0;index < garbage.length; index += 1000) {
205790
+ for (let index2 = 0;index2 < garbage.length; index2 += 1000) {
205216
205791
  await props.s3.send(new DeleteObjectsCommand3({
205217
205792
  Bucket: props.bucket,
205218
- Delete: { Objects: garbage.slice(index, index + 1000).map((key) => ({ Key: key })) }
205793
+ Delete: { Objects: garbage.slice(index2, index2 + 1000).map((key) => ({ Key: key })) }
205219
205794
  }));
205220
205795
  }
205221
205796
  };
@@ -205939,12 +206514,12 @@ var nodes3 = new Int32Array([
205939
206514
  var bdd3 = import_endpoints5.BinaryDecisionDiagram.from(nodes3, root4, _data3.conditions, _data3.results);
205940
206515
 
205941
206516
  // ../../node_modules/.pnpm/@aws-sdk+client-iot-data-plane@3.1113.0/node_modules/@aws-sdk/client-iot-data-plane/dist-es/endpoint/endpointResolver.js
205942
- var cache3 = new import_endpoints6.EndpointCache({
206517
+ var cache4 = new import_endpoints6.EndpointCache({
205943
206518
  size: 50,
205944
206519
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
205945
206520
  });
205946
206521
  var defaultEndpointResolver3 = (endpointParams, context = {}) => {
205947
- return cache3.get(endpointParams, () => import_endpoints6.decideEndpoint(bdd3, {
206522
+ return cache4.get(endpointParams, () => import_endpoints6.decideEndpoint(bdd3, {
205948
206523
  endpointParams,
205949
206524
  logger: context.logger
205950
206525
  }));
@@ -206714,11 +207289,11 @@ var getHttpAuthExtensionConfiguration3 = (runtimeConfig) => {
206714
207289
  let _credentials = runtimeConfig.credentials;
206715
207290
  return {
206716
207291
  setHttpAuthScheme(httpAuthScheme) {
206717
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
206718
- if (index === -1) {
207292
+ const index2 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
207293
+ if (index2 === -1) {
206719
207294
  _httpAuthSchemes.push(httpAuthScheme);
206720
207295
  } else {
206721
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
207296
+ _httpAuthSchemes.splice(index2, 1, httpAuthScheme);
206722
207297
  }
206723
207298
  },
206724
207299
  httpAuthSchemes() {
@@ -207135,9 +207710,9 @@ var sinon;
207135
207710
  }
207136
207711
  function ensureArgs(name, behavior, args) {
207137
207712
  const property = name.replace(/sArg/, "ArgAt");
207138
- const index = behavior[property];
207139
- if (index >= args.length) {
207140
- throw new TypeError(`${name} failed: ${index + 1} arguments required but only ${args.length} present`);
207713
+ const index2 = behavior[property];
207714
+ if (index2 >= args.length) {
207715
+ throw new TypeError(`${name} failed: ${index2 + 1} arguments required but only ${args.length} present`);
207141
207716
  }
207142
207717
  }
207143
207718
  function callCallback(behavior, args) {
@@ -207222,8 +207797,8 @@ var sinon;
207222
207797
  }
207223
207798
  throw new Error("Unable to find wrapped method");
207224
207799
  },
207225
- onCall: function onCall(index) {
207226
- return this.stub.onCall(index);
207800
+ onCall: function onCall(index2) {
207801
+ return this.stub.onCall(index2);
207227
207802
  },
207228
207803
  onFirstCall: function onFirstCall() {
207229
207804
  return this.stub.onFirstCall();
@@ -207412,44 +207987,44 @@ var sinon;
207412
207987
  fake.exceptionCreator = undefined;
207413
207988
  fake.callsThrough = false;
207414
207989
  },
207415
- callsArg: function callsArg(fake, index) {
207416
- if (typeof index !== "number") {
207990
+ callsArg: function callsArg(fake, index2) {
207991
+ if (typeof index2 !== "number") {
207417
207992
  throw new TypeError("argument index is not number");
207418
207993
  }
207419
- fake.callArgAt = index;
207994
+ fake.callArgAt = index2;
207420
207995
  fake.callbackArguments = [];
207421
207996
  fake.callbackContext = undefined;
207422
207997
  fake.callArgProp = undefined;
207423
207998
  fake.callbackAsync = false;
207424
207999
  fake.callsThrough = false;
207425
208000
  },
207426
- callsArgOn: function callsArgOn(fake, index, context) {
207427
- if (typeof index !== "number") {
208001
+ callsArgOn: function callsArgOn(fake, index2, context) {
208002
+ if (typeof index2 !== "number") {
207428
208003
  throw new TypeError("argument index is not number");
207429
208004
  }
207430
- fake.callArgAt = index;
208005
+ fake.callArgAt = index2;
207431
208006
  fake.callbackArguments = [];
207432
208007
  fake.callbackContext = context;
207433
208008
  fake.callArgProp = undefined;
207434
208009
  fake.callbackAsync = false;
207435
208010
  fake.callsThrough = false;
207436
208011
  },
207437
- callsArgWith: function callsArgWith(fake, index) {
207438
- if (typeof index !== "number") {
208012
+ callsArgWith: function callsArgWith(fake, index2) {
208013
+ if (typeof index2 !== "number") {
207439
208014
  throw new TypeError("argument index is not number");
207440
208015
  }
207441
- fake.callArgAt = index;
208016
+ fake.callArgAt = index2;
207442
208017
  fake.callbackArguments = slice(arguments, 2);
207443
208018
  fake.callbackContext = undefined;
207444
208019
  fake.callArgProp = undefined;
207445
208020
  fake.callbackAsync = false;
207446
208021
  fake.callsThrough = false;
207447
208022
  },
207448
- callsArgOnWith: function callsArgWith(fake, index, context) {
207449
- if (typeof index !== "number") {
208023
+ callsArgOnWith: function callsArgWith(fake, index2, context) {
208024
+ if (typeof index2 !== "number") {
207450
208025
  throw new TypeError("argument index is not number");
207451
208026
  }
207452
- fake.callArgAt = index;
208027
+ fake.callArgAt = index2;
207453
208028
  fake.callbackArguments = slice(arguments, 3);
207454
208029
  fake.callbackContext = context;
207455
208030
  fake.callArgProp = undefined;
@@ -207515,19 +208090,19 @@ var sinon;
207515
208090
  fake.exceptionCreator = undefined;
207516
208091
  fake.fakeFn = undefined;
207517
208092
  },
207518
- returnsArg: function returnsArg(fake, index) {
207519
- if (typeof index !== "number") {
208093
+ returnsArg: function returnsArg(fake, index2) {
208094
+ if (typeof index2 !== "number") {
207520
208095
  throw new TypeError("argument index is not number");
207521
208096
  }
207522
208097
  fake.callsThrough = false;
207523
- fake.returnArgAt = index;
208098
+ fake.returnArgAt = index2;
207524
208099
  },
207525
- throwsArg: function throwsArg(fake, index) {
207526
- if (typeof index !== "number") {
208100
+ throwsArg: function throwsArg(fake, index2) {
208101
+ if (typeof index2 !== "number") {
207527
208102
  throw new TypeError("argument index is not number");
207528
208103
  }
207529
208104
  fake.callsThrough = false;
207530
- fake.throwArgAt = index;
208105
+ fake.throwArgAt = index2;
207531
208106
  },
207532
208107
  returnsThis: function returnsThis(fake) {
207533
208108
  fake.returnThis = true;
@@ -207544,11 +208119,11 @@ var sinon;
207544
208119
  fake.fakeFn = undefined;
207545
208120
  fake.callsThrough = false;
207546
208121
  },
207547
- resolvesArg: function resolvesArg(fake, index) {
207548
- if (typeof index !== "number") {
208122
+ resolvesArg: function resolvesArg(fake, index2) {
208123
+ if (typeof index2 !== "number") {
207549
208124
  throw new TypeError("argument index is not number");
207550
208125
  }
207551
- fake.resolveArgAt = index;
208126
+ fake.resolveArgAt = index2;
207552
208127
  fake.returnValue = undefined;
207553
208128
  fake.resolve = true;
207554
208129
  fake.resolveThis = false;
@@ -208450,8 +209025,8 @@ var sinon;
208450
209025
  matchingFakes: function() {
208451
209026
  return emptyFakes;
208452
209027
  },
208453
- getCall: function getCall(index) {
208454
- let i5 = index;
209028
+ getCall: function getCall(index2) {
209029
+ let i5 = index2;
208455
209030
  if (i5 < 0) {
208456
209031
  i5 += this.callCount;
208457
209032
  }
@@ -209403,11 +209978,11 @@ ${join54(calls, `
209403
209978
  this.resetHistory();
209404
209979
  this.resetBehavior();
209405
209980
  },
209406
- onCall: function onCall(index) {
209407
- if (!this.behaviors[index]) {
209408
- this.behaviors[index] = behavior.create(this);
209981
+ onCall: function onCall(index2) {
209982
+ if (!this.behaviors[index2]) {
209983
+ this.behaviors[index2] = behavior.create(this);
209409
209984
  }
209410
- return this.behaviors[index];
209985
+ return this.behaviors[index2];
209411
209986
  },
209412
209987
  onFirstCall: function onFirstCall() {
209413
209988
  return this.onCall(0);
@@ -209947,10 +210522,10 @@ ${wrappedMethodDesc.stackTraceError.stack}`;
209947
210522
  }
209948
210523
  return callMap[spy.id] < spy.callCount;
209949
210524
  }
209950
- function checkAdjacentCalls(callMap, spy, index, spies) {
210525
+ function checkAdjacentCalls(callMap, spy, index2, spies) {
209951
210526
  var calledBeforeNext = true;
209952
- if (index !== spies.length - 1) {
209953
- calledBeforeNext = spy.calledBefore(spies[index + 1]);
210527
+ if (index2 !== spies.length - 1) {
210528
+ calledBeforeNext = spy.calledBefore(spies[index2 + 1]);
209954
210529
  }
209955
210530
  if (hasCallsLeft(callMap, spy) && calledBeforeNext) {
209956
210531
  callMap[spy.id] += 1;
@@ -211392,24 +211967,24 @@ ${job.error.stack.split(`
211392
211967
  createMatcher.array.deepEquals = function(expectation) {
211393
211968
  return createMatcher(function(actual) {
211394
211969
  var sameLength = actual.length === expectation.length;
211395
- return typeOf(actual) === "array" && sameLength && every(actual, function(element, index) {
211396
- var expected = expectation[index];
211970
+ return typeOf(actual) === "array" && sameLength && every(actual, function(element, index2) {
211971
+ var expected = expectation[index2];
211397
211972
  return typeOf(expected) === "array" && typeOf(element) === "array" ? createMatcher.array.deepEquals(expected).test(element) : deepEqual2(expected, element);
211398
211973
  });
211399
211974
  }, `deepEquals([${iterableToString(expectation)}])`);
211400
211975
  };
211401
211976
  createMatcher.array.startsWith = function(expectation) {
211402
211977
  return createMatcher(function(actual) {
211403
- return typeOf(actual) === "array" && every(expectation, function(expectedElement, index) {
211404
- return actual[index] === expectedElement;
211978
+ return typeOf(actual) === "array" && every(expectation, function(expectedElement, index2) {
211979
+ return actual[index2] === expectedElement;
211405
211980
  });
211406
211981
  }, `startsWith([${iterableToString(expectation)}])`);
211407
211982
  };
211408
211983
  createMatcher.array.endsWith = function(expectation) {
211409
211984
  return createMatcher(function(actual) {
211410
211985
  var offset = actual.length - expectation.length;
211411
- return typeOf(actual) === "array" && every(expectation, function(expectedElement, index) {
211412
- return actual[offset + index] === expectedElement;
211986
+ return typeOf(actual) === "array" && every(expectation, function(expectedElement, index2) {
211987
+ return actual[offset + index2] === expectedElement;
211413
211988
  });
211414
211989
  }, `endsWith([${iterableToString(expectation)}])`);
211415
211990
  };
@@ -212043,10 +212618,10 @@ ${job.error.stack.split(`
212043
212618
  }
212044
212619
  return callMap[spy.id] < spy.callCount;
212045
212620
  }
212046
- function checkAdjacentCalls(callMap, spy, index, spies) {
212621
+ function checkAdjacentCalls(callMap, spy, index2, spies) {
212047
212622
  var calledBeforeNext = true;
212048
- if (index !== spies.length - 1) {
212049
- calledBeforeNext = spy.calledBefore(spies[index + 1]);
212623
+ if (index2 !== spies.length - 1) {
212624
+ calledBeforeNext = spy.calledBefore(spies[index2 + 1]);
212050
212625
  }
212051
212626
  if (hasCallsLeft(callMap, spy) && calledBeforeNext) {
212052
212627
  callMap[spy.id] += 1;
@@ -212814,16 +213389,16 @@ ${job.error.stack.split(`
212814
213389
  });
212815
213390
  var encoders = {};
212816
213391
  var decoders = {};
212817
- function indexCodePointFor(pointer, index2) {
212818
- if (!index2)
213392
+ function indexCodePointFor(pointer, index3) {
213393
+ if (!index3)
212819
213394
  return null;
212820
- return index2[pointer] || null;
213395
+ return index3[pointer] || null;
212821
213396
  }
212822
- function indexPointerFor(code_point, index2) {
212823
- var pointer = index2.indexOf(code_point);
213397
+ function indexPointerFor(code_point, index3) {
213398
+ var pointer = index3.indexOf(code_point);
212824
213399
  return pointer === -1 ? null : pointer;
212825
213400
  }
212826
- function index(name) {
213401
+ function index2(name) {
212827
213402
  if (!("encoding-indexes" in global2)) {
212828
213403
  throw Error("Indexes missing." + " Did you forget to include encoding-indexes.js first?");
212829
213404
  }
@@ -212836,7 +213411,7 @@ ${job.error.stack.split(`
212836
213411
  return 59335;
212837
213412
  var offset = 0;
212838
213413
  var code_point_offset = 0;
212839
- var idx = index("gb18030-ranges");
213414
+ var idx = index2("gb18030-ranges");
212840
213415
  var i5;
212841
213416
  for (i5 = 0;i5 < idx.length; ++i5) {
212842
213417
  var entry = idx[i5];
@@ -212854,7 +213429,7 @@ ${job.error.stack.split(`
212854
213429
  return 7457;
212855
213430
  var offset = 0;
212856
213431
  var pointer_offset = 0;
212857
- var idx = index("gb18030-ranges");
213432
+ var idx = index2("gb18030-ranges");
212858
213433
  var i5;
212859
213434
  for (i5 = 0;i5 < idx.length; ++i5) {
212860
213435
  var entry = idx[i5];
@@ -212868,7 +213443,7 @@ ${job.error.stack.split(`
212868
213443
  return pointer_offset + code_point - offset;
212869
213444
  }
212870
213445
  function indexShiftJISPointerFor(code_point) {
212871
- shift_jis_index = shift_jis_index || index("jis0208").map(function(code_point2, pointer) {
213446
+ shift_jis_index = shift_jis_index || index2("jis0208").map(function(code_point2, pointer) {
212872
213447
  return inRange(pointer, 8272, 8835) ? null : code_point2;
212873
213448
  });
212874
213449
  var index_ = shift_jis_index;
@@ -212876,7 +213451,7 @@ ${job.error.stack.split(`
212876
213451
  }
212877
213452
  var shift_jis_index;
212878
213453
  function indexBig5PointerFor(code_point) {
212879
- big5_index_no_hkscs = big5_index_no_hkscs || index("big5").map(function(code_point2, pointer) {
213454
+ big5_index_no_hkscs = big5_index_no_hkscs || index2("big5").map(function(code_point2, pointer) {
212880
213455
  return pointer < (161 - 129) * 157 ? null : code_point2;
212881
213456
  });
212882
213457
  var index_ = big5_index_no_hkscs;
@@ -213153,27 +213728,27 @@ ${job.error.stack.split(`
213153
213728
  decoders["UTF-8"] = function(options2) {
213154
213729
  return new UTF8Decoder(options2);
213155
213730
  };
213156
- function SingleByteDecoder(index2, options2) {
213731
+ function SingleByteDecoder(index3, options2) {
213157
213732
  var fatal = options2.fatal;
213158
213733
  this.handler = function(stream, bite) {
213159
213734
  if (bite === end_of_stream)
213160
213735
  return finished;
213161
213736
  if (isASCIIByte(bite))
213162
213737
  return bite;
213163
- var code_point = index2[bite - 128];
213738
+ var code_point = index3[bite - 128];
213164
213739
  if (code_point === null)
213165
213740
  return decoderError(fatal);
213166
213741
  return code_point;
213167
213742
  };
213168
213743
  }
213169
- function SingleByteEncoder(index2, options2) {
213744
+ function SingleByteEncoder(index3, options2) {
213170
213745
  var fatal = options2.fatal;
213171
213746
  this.handler = function(stream, code_point) {
213172
213747
  if (code_point === end_of_stream)
213173
213748
  return finished;
213174
213749
  if (isASCIICodePoint(code_point))
213175
213750
  return code_point;
213176
- var pointer = indexPointerFor(code_point, index2);
213751
+ var pointer = indexPointerFor(code_point, index3);
213177
213752
  if (pointer === null)
213178
213753
  encoderError(code_point);
213179
213754
  return pointer + 128;
@@ -213187,7 +213762,7 @@ ${job.error.stack.split(`
213187
213762
  return;
213188
213763
  category.encodings.forEach(function(encoding) {
213189
213764
  var name = encoding.name;
213190
- var idx = index(name.toLowerCase());
213765
+ var idx = index2(name.toLowerCase());
213191
213766
  decoders[name] = function(options2) {
213192
213767
  return new SingleByteDecoder(idx, options2);
213193
213768
  };
@@ -213253,7 +213828,7 @@ ${job.error.stack.split(`
213253
213828
  var offset = bite < 127 ? 64 : 65;
213254
213829
  if (inRange(bite, 64, 126) || inRange(bite, 128, 254))
213255
213830
  pointer = (lead - 129) * 190 + (bite - offset);
213256
- code_point = pointer === null ? null : indexCodePointFor(pointer, index("gb18030"));
213831
+ code_point = pointer === null ? null : indexCodePointFor(pointer, index2("gb18030"));
213257
213832
  if (code_point === null && isASCIIByte(bite))
213258
213833
  stream.prepend(bite);
213259
213834
  if (code_point === null)
@@ -213282,7 +213857,7 @@ ${job.error.stack.split(`
213282
213857
  return encoderError(code_point);
213283
213858
  if (gbk_flag && code_point === 8364)
213284
213859
  return 128;
213285
- var pointer = indexPointerFor(code_point, index("gb18030"));
213860
+ var pointer = indexPointerFor(code_point, index2("gb18030"));
213286
213861
  if (pointer !== null) {
213287
213862
  var lead = floor(pointer / 190) + 129;
213288
213863
  var trail = pointer % 190;
@@ -213339,7 +213914,7 @@ ${job.error.stack.split(`
213339
213914
  case 1166:
213340
213915
  return [234, 780];
213341
213916
  }
213342
- var code_point = pointer === null ? null : indexCodePointFor(pointer, index("big5"));
213917
+ var code_point = pointer === null ? null : indexCodePointFor(pointer, index2("big5"));
213343
213918
  if (code_point === null && isASCIIByte(bite))
213344
213919
  stream.prepend(bite);
213345
213920
  if (code_point === null)
@@ -213403,7 +213978,7 @@ ${job.error.stack.split(`
213403
213978
  eucjp_lead = 0;
213404
213979
  var code_point = null;
213405
213980
  if (inRange(lead, 161, 254) && inRange(bite, 161, 254)) {
213406
- code_point = indexCodePointFor((lead - 161) * 94 + (bite - 161), index(!eucjp_jis0212_flag ? "jis0208" : "jis0212"));
213981
+ code_point = indexCodePointFor((lead - 161) * 94 + (bite - 161), index2(!eucjp_jis0212_flag ? "jis0208" : "jis0212"));
213407
213982
  }
213408
213983
  eucjp_jis0212_flag = false;
213409
213984
  if (!inRange(bite, 161, 254))
@@ -213436,7 +214011,7 @@ ${job.error.stack.split(`
213436
214011
  return [142, code_point - 65377 + 161];
213437
214012
  if (code_point === 8722)
213438
214013
  code_point = 65293;
213439
- var pointer = indexPointerFor(code_point, index("jis0208"));
214014
+ var pointer = indexPointerFor(code_point, index2("jis0208"));
213440
214015
  if (pointer === null)
213441
214016
  return encoderError(code_point);
213442
214017
  var lead = floor(pointer / 94) + 161;
@@ -213539,7 +214114,7 @@ ${job.error.stack.split(`
213539
214114
  if (inRange(bite, 33, 126)) {
213540
214115
  iso2022jp_decoder_state = states.LeadByte;
213541
214116
  var pointer = (iso2022jp_lead - 33) * 94 + bite - 33;
213542
- var code_point = indexCodePointFor(pointer, index("jis0208"));
214117
+ var code_point = indexCodePointFor(pointer, index2("jis0208"));
213543
214118
  if (code_point === null)
213544
214119
  return decoderError(fatal);
213545
214120
  return code_point;
@@ -213627,7 +214202,7 @@ ${job.error.stack.split(`
213627
214202
  }
213628
214203
  if (code_point === 8722)
213629
214204
  code_point = 65293;
213630
- var pointer = indexPointerFor(code_point, index("jis0208"));
214205
+ var pointer = indexPointerFor(code_point, index2("jis0208"));
213631
214206
  if (pointer === null)
213632
214207
  return encoderError(code_point);
213633
214208
  if (iso2022jp_state !== states.jis0208) {
@@ -213666,7 +214241,7 @@ ${job.error.stack.split(`
213666
214241
  pointer = (lead - lead_offset) * 188 + bite - offset;
213667
214242
  if (inRange(pointer, 8836, 10715))
213668
214243
  return 57344 - 8836 + pointer;
213669
- var code_point = pointer === null ? null : indexCodePointFor(pointer, index("jis0208"));
214244
+ var code_point = pointer === null ? null : indexCodePointFor(pointer, index2("jis0208"));
213670
214245
  if (code_point === null && isASCIIByte(bite))
213671
214246
  stream.prepend(bite);
213672
214247
  if (code_point === null)
@@ -213731,7 +214306,7 @@ ${job.error.stack.split(`
213731
214306
  euckr_lead = 0;
213732
214307
  if (inRange(bite, 65, 254))
213733
214308
  pointer = (lead - 129) * 190 + (bite - 65);
213734
- var code_point = pointer === null ? null : indexCodePointFor(pointer, index("euc-kr"));
214309
+ var code_point = pointer === null ? null : indexCodePointFor(pointer, index2("euc-kr"));
213735
214310
  if (pointer === null && isASCIIByte(bite))
213736
214311
  stream.prepend(bite);
213737
214312
  if (code_point === null)
@@ -213754,7 +214329,7 @@ ${job.error.stack.split(`
213754
214329
  return finished;
213755
214330
  if (isASCIICodePoint(code_point))
213756
214331
  return code_point;
213757
- var pointer = indexPointerFor(code_point, index("euc-kr"));
214332
+ var pointer = indexPointerFor(code_point, index2("euc-kr"));
213758
214333
  if (pointer === null)
213759
214334
  return encoderError(code_point);
213760
214335
  var lead = floor(pointer / 190) + 129;
@@ -214021,7 +214596,7 @@ ${job.error.stack.split(`
214021
214596
  fail(value, true, message3, "==", assert2.ok);
214022
214597
  }
214023
214598
  assert2.ok = ok2;
214024
- assert2.equal = function equal(actual, expected, message3) {
214599
+ assert2.equal = function equal2(actual, expected, message3) {
214025
214600
  if (actual != expected)
214026
214601
  fail(actual, expected, message3, "==", assert2.equal);
214027
214602
  };
@@ -214924,7 +215499,7 @@ ${job.error.stack.split(`
214924
215499
  castInput: function castInput(value) {
214925
215500
  return value;
214926
215501
  },
214927
- tokenize: function tokenize(value) {
215502
+ tokenize: function tokenize2(value) {
214928
215503
  return value.split("");
214929
215504
  },
214930
215505
  join: function join54(chars) {
@@ -215237,8 +215812,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
215237
215812
  var options2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
215238
215813
  var diffstr = uniDiff.split(/\r\n|[\n\v\f\r\x85]/), delimiters = uniDiff.match(/\r\n|[\n\v\f\r\x85]/g) || [], list4 = [], i5 = 0;
215239
215814
  function parseIndex() {
215240
- var index = {};
215241
- list4.push(index);
215815
+ var index2 = {};
215816
+ list4.push(index2);
215242
215817
  while (i5 < diffstr.length) {
215243
215818
  var line = diffstr[i5];
215244
215819
  if (/^(\-\-\-|\+\+\+|@@)\s/.test(line)) {
@@ -215246,19 +215821,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
215246
215821
  }
215247
215822
  var header = /^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(line);
215248
215823
  if (header) {
215249
- index.index = header[1];
215824
+ index2.index = header[1];
215250
215825
  }
215251
215826
  i5++;
215252
215827
  }
215253
- parseFileHeader(index);
215254
- parseFileHeader(index);
215255
- index.hunks = [];
215828
+ parseFileHeader(index2);
215829
+ parseFileHeader(index2);
215830
+ index2.hunks = [];
215256
215831
  while (i5 < diffstr.length) {
215257
215832
  var _line = diffstr[i5];
215258
215833
  if (/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(_line)) {
215259
215834
  break;
215260
215835
  } else if (/^@@/.test(_line)) {
215261
- index.hunks.push(parseHunk());
215836
+ index2.hunks.push(parseHunk());
215262
215837
  } else if (_line && options2.strict) {
215263
215838
  throw new Error("Unknown line " + (i5 + 1) + " " + JSON.stringify(_line));
215264
215839
  } else {
@@ -215266,7 +215841,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
215266
215841
  }
215267
215842
  }
215268
215843
  }
215269
- function parseFileHeader(index) {
215844
+ function parseFileHeader(index2) {
215270
215845
  var fileHeader = /^(---|\+\+\+)\s+(.*)$/.exec(diffstr[i5]);
215271
215846
  if (fileHeader) {
215272
215847
  var keyPrefix = fileHeader[1] === "---" ? "old" : "new";
@@ -215275,8 +215850,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
215275
215850
  if (/^".*"$/.test(fileName)) {
215276
215851
  fileName = fileName.substr(1, fileName.length - 2);
215277
215852
  }
215278
- index[keyPrefix + "FileName"] = fileName;
215279
- index[keyPrefix + "Header"] = (data[1] || "").trim();
215853
+ index2[keyPrefix + "FileName"] = fileName;
215854
+ index2[keyPrefix + "Header"] = (data[1] || "").trim();
215280
215855
  i5++;
215281
215856
  }
215282
215857
  }
@@ -215455,16 +216030,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
215455
216030
  }
215456
216031
  var currentIndex = 0;
215457
216032
  function processIndex() {
215458
- var index = uniDiff[currentIndex++];
215459
- if (!index) {
216033
+ var index2 = uniDiff[currentIndex++];
216034
+ if (!index2) {
215460
216035
  return options2.complete();
215461
216036
  }
215462
- options2.loadFile(index, function(err, data) {
216037
+ options2.loadFile(index2, function(err, data) {
215463
216038
  if (err) {
215464
216039
  return options2.complete(err);
215465
216040
  }
215466
- var updatedContent = applyPatch2(data, index, options2);
215467
- options2.patched(index, updatedContent, function(err2) {
216041
+ var updatedContent = applyPatch2(data, index2, options2);
216042
+ options2.patched(index2, updatedContent, function(err2) {
215468
216043
  if (err2) {
215469
216044
  return options2.complete(err2);
215470
216045
  }
@@ -215703,11 +216278,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
215703
216278
  function fileNameChanged(patch) {
215704
216279
  return patch.newFileName && patch.newFileName !== patch.oldFileName;
215705
216280
  }
215706
- function selectField(index, mine, theirs) {
216281
+ function selectField(index2, mine, theirs) {
215707
216282
  if (mine === theirs) {
215708
216283
  return mine;
215709
216284
  } else {
215710
- index.conflict = true;
216285
+ index2.conflict = true;
215711
216286
  return {
215712
216287
  mine,
215713
216288
  theirs
@@ -216318,8 +216893,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216318
216893
  throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
216319
216894
  }
216320
216895
  var result = [];
216321
- $replace(string5, rePropName, function(match3, number5, quote, subString) {
216322
- result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number5 || match3;
216896
+ $replace(string5, rePropName, function(match3, number6, quote, subString) {
216897
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number6 || match3;
216323
216898
  });
216324
216899
  return result;
216325
216900
  };
@@ -216586,10 +217161,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216586
217161
  var Map2 = getNative(root5, "Map"), nativeCreate = getNative(Object, "create");
216587
217162
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined;
216588
217163
  function Hash(entries2) {
216589
- var index = -1, length2 = entries2 ? entries2.length : 0;
217164
+ var index2 = -1, length2 = entries2 ? entries2.length : 0;
216590
217165
  this.clear();
216591
- while (++index < length2) {
216592
- var entry = entries2[index];
217166
+ while (++index2 < length2) {
217167
+ var entry = entries2[index2];
216593
217168
  this.set(entry[0], entry[1]);
216594
217169
  }
216595
217170
  }
@@ -216622,10 +217197,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216622
217197
  Hash.prototype.has = hashHas;
216623
217198
  Hash.prototype.set = hashSet;
216624
217199
  function ListCache(entries2) {
216625
- var index = -1, length2 = entries2 ? entries2.length : 0;
217200
+ var index2 = -1, length2 = entries2 ? entries2.length : 0;
216626
217201
  this.clear();
216627
- while (++index < length2) {
216628
- var entry = entries2[index];
217202
+ while (++index2 < length2) {
217203
+ var entry = entries2[index2];
216629
217204
  this.set(entry[0], entry[1]);
216630
217205
  }
216631
217206
  }
@@ -216633,31 +217208,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216633
217208
  this.__data__ = [];
216634
217209
  }
216635
217210
  function listCacheDelete(key) {
216636
- var data = this.__data__, index = assocIndexOf(data, key);
216637
- if (index < 0) {
217211
+ var data = this.__data__, index2 = assocIndexOf(data, key);
217212
+ if (index2 < 0) {
216638
217213
  return false;
216639
217214
  }
216640
217215
  var lastIndex = data.length - 1;
216641
- if (index == lastIndex) {
217216
+ if (index2 == lastIndex) {
216642
217217
  data.pop();
216643
217218
  } else {
216644
- splice.call(data, index, 1);
217219
+ splice.call(data, index2, 1);
216645
217220
  }
216646
217221
  return true;
216647
217222
  }
216648
217223
  function listCacheGet(key) {
216649
- var data = this.__data__, index = assocIndexOf(data, key);
216650
- return index < 0 ? undefined : data[index][1];
217224
+ var data = this.__data__, index2 = assocIndexOf(data, key);
217225
+ return index2 < 0 ? undefined : data[index2][1];
216651
217226
  }
216652
217227
  function listCacheHas(key) {
216653
217228
  return assocIndexOf(this.__data__, key) > -1;
216654
217229
  }
216655
217230
  function listCacheSet(key, value) {
216656
- var data = this.__data__, index = assocIndexOf(data, key);
216657
- if (index < 0) {
217231
+ var data = this.__data__, index2 = assocIndexOf(data, key);
217232
+ if (index2 < 0) {
216658
217233
  data.push([key, value]);
216659
217234
  } else {
216660
- data[index][1] = value;
217235
+ data[index2][1] = value;
216661
217236
  }
216662
217237
  return this;
216663
217238
  }
@@ -216667,10 +217242,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216667
217242
  ListCache.prototype.has = listCacheHas;
216668
217243
  ListCache.prototype.set = listCacheSet;
216669
217244
  function MapCache(entries2) {
216670
- var index = -1, length2 = entries2 ? entries2.length : 0;
217245
+ var index2 = -1, length2 = entries2 ? entries2.length : 0;
216671
217246
  this.clear();
216672
- while (++index < length2) {
216673
- var entry = entries2[index];
217247
+ while (++index2 < length2) {
217248
+ var entry = entries2[index2];
216674
217249
  this.set(entry[0], entry[1]);
216675
217250
  }
216676
217251
  }
@@ -216710,11 +217285,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216710
217285
  }
216711
217286
  function baseGet(object3, path6) {
216712
217287
  path6 = isKey(path6, object3) ? [path6] : castPath(path6);
216713
- var index = 0, length2 = path6.length;
216714
- while (object3 != null && index < length2) {
216715
- object3 = object3[toKey(path6[index++])];
217288
+ var index2 = 0, length2 = path6.length;
217289
+ while (object3 != null && index2 < length2) {
217290
+ object3 = object3[toKey(path6[index2++])];
216716
217291
  }
216717
- return index && index == length2 ? object3 : undefined;
217292
+ return index2 && index2 == length2 ? object3 : undefined;
216718
217293
  }
216719
217294
  function baseIsNative(value) {
216720
217295
  if (!isObject2(value) || isMasked(value)) {
@@ -216767,8 +217342,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216767
217342
  if (reLeadingDot.test(string5)) {
216768
217343
  result.push("");
216769
217344
  }
216770
- string5.replace(rePropName, function(match3, number5, quote, string6) {
216771
- result.push(quote ? string6.replace(reEscapeChar, "$1") : number5 || match3);
217345
+ string5.replace(rePropName, function(match3, number6, quote, string6) {
217346
+ result.push(quote ? string6.replace(reEscapeChar, "$1") : number6 || match3);
216772
217347
  });
216773
217348
  return result;
216774
217349
  });
@@ -216795,12 +217370,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216795
217370
  throw new TypeError(FUNC_ERROR_TEXT);
216796
217371
  }
216797
217372
  var memoized = function() {
216798
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache4 = memoized.cache;
216799
- if (cache4.has(key)) {
216800
- return cache4.get(key);
217373
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache5 = memoized.cache;
217374
+ if (cache5.has(key)) {
217375
+ return cache5.get(key);
216801
217376
  }
216802
217377
  var result = func.apply(this, args);
216803
- memoized.cache = cache4.set(key, result);
217378
+ memoized.cache = cache5.set(key, result);
216804
217379
  return result;
216805
217380
  };
216806
217381
  memoized.cache = new (memoize.Cache || MapCache);
@@ -217264,8 +217839,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
217264
217839
  restore: function restore() {
217265
217840
  return this.xhr.restore && this.xhr.restore.apply(this.xhr, arguments);
217266
217841
  },
217267
- getRequest: function getRequest(index) {
217268
- return this.requests[index] || null;
217842
+ getRequest: function getRequest(index2) {
217843
+ return this.requests[index2] || null;
217269
217844
  },
217270
217845
  reset: function reset() {
217271
217846
  this.resetBehavior();
@@ -217860,14 +218435,14 @@ ${inspect2(response)}
217860
218435
  clearResponse(this);
217861
218436
  if (this.async) {
217862
218437
  var chunkSize = this.chunkSize || 10;
217863
- var index = 0;
218438
+ var index2 = 0;
217864
218439
  do {
217865
218440
  this.readyStateChange(FakeXMLHttpRequest.LOADING);
217866
218441
  if (isTextResponse) {
217867
- this.responseText = this.response += body.substring(index, index + chunkSize);
218442
+ this.responseText = this.response += body.substring(index2, index2 + chunkSize);
217868
218443
  }
217869
- index += chunkSize;
217870
- } while (index < body.length);
218444
+ index2 += chunkSize;
218445
+ } while (index2 < body.length);
217871
218446
  }
217872
218447
  this.response = convertResponseBody(this.responseType, contentType2, body);
217873
218448
  if (isTextResponse) {
@@ -218315,8 +218890,8 @@ ${inspect2(response)}
218315
218890
  const value = this.tryConsume(type);
218316
218891
  if (value !== undefined)
218317
218892
  return value;
218318
- const { type: nextType, index } = this.peek();
218319
- throw new TypeError(`Unexpected ${nextType} at ${index}, expected ${type}: ${DEBUG_URL}`);
218893
+ const { type: nextType, index: index2 } = this.peek();
218894
+ throw new TypeError(`Unexpected ${nextType} at ${index2}, expected ${type}: ${DEBUG_URL}`);
218320
218895
  }
218321
218896
  text() {
218322
218897
  let result = "";
@@ -218421,9 +218996,9 @@ ${inspect2(response)}
218421
218996
  throw new TypeError(`Expected "${token.name}" to be a non-empty array`);
218422
218997
  }
218423
218998
  return [
218424
- value.map((value2, index) => {
218999
+ value.map((value2, index2) => {
218425
219000
  if (typeof value2 !== "string") {
218426
- throw new TypeError(`Expected "${token.name}/${index}" to be a string`);
219001
+ throw new TypeError(`Expected "${token.name}/${index2}" to be a string`);
218427
219002
  }
218428
219003
  return encodeValue(value2);
218429
219004
  }).join(delimiter2)
@@ -218486,20 +219061,20 @@ ${inspect2(response)}
218486
219061
  const regexp = new RegExp(pattern, flags);
218487
219062
  return { regexp, keys };
218488
219063
  }
218489
- function* flatten(tokens, index, init) {
218490
- if (index === tokens.length) {
219064
+ function* flatten(tokens, index2, init) {
219065
+ if (index2 === tokens.length) {
218491
219066
  return yield init;
218492
219067
  }
218493
- const token = tokens[index];
219068
+ const token = tokens[index2];
218494
219069
  if (token.type === "group") {
218495
219070
  const fork = init.slice();
218496
219071
  for (const seq of flatten(token.tokens, 0, fork)) {
218497
- yield* flatten(tokens, index + 1, seq);
219072
+ yield* flatten(tokens, index2 + 1, seq);
218498
219073
  }
218499
219074
  } else {
218500
219075
  init.push(token);
218501
219076
  }
218502
- yield* flatten(tokens, index + 1, init);
219077
+ yield* flatten(tokens, index2 + 1, init);
218503
219078
  }
218504
219079
  function sequenceToRegExp(tokens, delimiter2, keys) {
218505
219080
  let result = "";
@@ -218538,13 +219113,13 @@ ${inspect2(response)}
218538
219113
  return `(?:(?!${values.map(escape2).join("|")}).)`;
218539
219114
  }
218540
219115
  function stringify6(data) {
218541
- return data.tokens.map(function stringifyToken(token, index, tokens) {
219116
+ return data.tokens.map(function stringifyToken(token, index2, tokens) {
218542
219117
  if (token.type === "text")
218543
219118
  return escapeText(token.value);
218544
219119
  if (token.type === "group") {
218545
219120
  return `{${token.tokens.map(stringifyToken).join("")}}`;
218546
219121
  }
218547
- const isSafe = isNameSafe(token.name) && isNextNameSafe(tokens[index + 1]);
219122
+ const isSafe = isNameSafe(token.name) && isNextNameSafe(tokens[index2 + 1]);
218548
219123
  const key = isSafe ? token.name : JSON.stringify(token.name);
218549
219124
  if (token.type === "param")
218550
219125
  return `:${key}`;
@@ -219931,10 +220506,10 @@ function requireReactIs() {
219931
220506
  return reactIs.exports;
219932
220507
  }
219933
220508
  var reactIsExports = requireReactIs();
219934
- var index = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports);
220509
+ var index2 = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports);
219935
220510
  var ReactIs18 = /* @__PURE__ */ _mergeNamespaces({
219936
220511
  __proto__: null,
219937
- default: index
220512
+ default: index2
219938
220513
  }, [reactIsExports]);
219939
220514
  var reactIsMethods = [
219940
220515
  "isAsyncMode",
@@ -221253,16 +221828,16 @@ var refresh2 = (program3) => {
221253
221828
  }
221254
221829
  const commitAll = options2.commit === true;
221255
221830
  const commitIndexes = Array.isArray(options2.commit) ? options2.commit.flatMap((value) => value.split(",")).filter((value) => value !== "").map((value) => {
221256
- const index2 = Number(value);
221257
- if (!Number.isInteger(index2) || index2 < 0 || index2 >= result.operations.length) {
221831
+ const index3 = Number(value);
221832
+ if (!Number.isInteger(index3) || index3 < 0 || index3 >= result.operations.length) {
221258
221833
  throw new ExpectedError(`Invalid state change index: ${value}`);
221259
221834
  }
221260
- return index2;
221835
+ return index3;
221261
221836
  }) : [];
221262
221837
  let skipped = 0;
221263
- for (const [index2, entry] of result.operations.entries()) {
221838
+ for (const [index3, entry] of result.operations.entries()) {
221264
221839
  logs_exports.warning([
221265
- `${color2.warning.bold.inverse(` ${capitalCase(entry.operation)} `)} ${color2.dim(`#${index2}`)}`,
221840
+ `${color2.warning.bold.inverse(` ${capitalCase(entry.operation)} `)} ${color2.dim(`#${index3}`)}`,
221266
221841
  entry.urn
221267
221842
  ].join(`
221268
221843
  `));
@@ -221272,7 +221847,7 @@ var refresh2 = (program3) => {
221272
221847
  logs_exports.message(diffResult);
221273
221848
  }
221274
221849
  }
221275
- if (commitAll || commitIndexes.includes(index2)) {
221850
+ if (commitAll || commitIndexes.includes(index3)) {
221276
221851
  entry.commit();
221277
221852
  continue;
221278
221853
  }