appwrite-cli 16.0.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.cjs CHANGED
@@ -13575,16 +13575,16 @@ var require_share = __commonJS({
13575
13575
  };
13576
13576
  }
13577
13577
  exports2.share = share;
13578
- function handleReset(reset, on2) {
13578
+ function handleReset(reset, on) {
13579
13579
  var args = [];
13580
13580
  for (var _i2 = 2; _i2 < arguments.length; _i2++) {
13581
13581
  args[_i2 - 2] = arguments[_i2];
13582
13582
  }
13583
- if (on2 === true) {
13583
+ if (on === true) {
13584
13584
  reset();
13585
13585
  return;
13586
13586
  }
13587
- if (on2 === false) {
13587
+ if (on === false) {
13588
13588
  return;
13589
13589
  }
13590
13590
  var onSubscriber = new Subscriber_1.SafeSubscriber({
@@ -13593,7 +13593,7 @@ var require_share = __commonJS({
13593
13593
  reset();
13594
13594
  }
13595
13595
  });
13596
- return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
13596
+ return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
13597
13597
  }
13598
13598
  }
13599
13599
  });
@@ -35557,12 +35557,12 @@ var require_utils3 = __commonJS({
35557
35557
  return str;
35558
35558
  }
35559
35559
  var codeCache = {};
35560
- function addToCodeCache(name, on2, off) {
35561
- on2 = "\x1B[" + on2 + "m";
35560
+ function addToCodeCache(name, on, off) {
35561
+ on = "\x1B[" + on + "m";
35562
35562
  off = "\x1B[" + off + "m";
35563
- codeCache[on2] = { set: name, to: true };
35563
+ codeCache[on] = { set: name, to: true };
35564
35564
  codeCache[off] = { set: name, to: false };
35565
- codeCache[name] = { on: on2, off };
35565
+ codeCache[name] = { on, off };
35566
35566
  }
35567
35567
  addToCodeCache("bold", 1, 22);
35568
35568
  addToCodeCache("italics", 3, 23);
@@ -72249,6 +72249,7 @@ var require_constants6 = __commonJS({
72249
72249
  var path16 = require("path");
72250
72250
  var WIN_SLASH = "\\\\/";
72251
72251
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
72252
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
72252
72253
  var DOT_LITERAL = "\\.";
72253
72254
  var PLUS_LITERAL = "\\+";
72254
72255
  var QMARK_LITERAL = "\\?";
@@ -72296,6 +72297,7 @@ var require_constants6 = __commonJS({
72296
72297
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
72297
72298
  };
72298
72299
  var POSIX_REGEX_SOURCE = {
72300
+ __proto__: null,
72299
72301
  alnum: "a-zA-Z0-9",
72300
72302
  alpha: "a-zA-Z",
72301
72303
  ascii: "\\x00-\\x7F",
@@ -72312,6 +72314,7 @@ var require_constants6 = __commonJS({
72312
72314
  xdigit: "A-Fa-f0-9"
72313
72315
  };
72314
72316
  module2.exports = {
72317
+ DEFAULT_MAX_EXTGLOB_RECURSION,
72315
72318
  MAX_LENGTH: 1024 * 64,
72316
72319
  POSIX_REGEX_SOURCE,
72317
72320
  // regular expressions
@@ -72323,6 +72326,7 @@ var require_constants6 = __commonJS({
72323
72326
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
72324
72327
  // Replace globs with equivalent patterns to reduce parsing time.
72325
72328
  REPLACEMENTS: {
72329
+ __proto__: null,
72326
72330
  "***": "*",
72327
72331
  "**/**": "**",
72328
72332
  "**/**/**": "**"
@@ -72859,6 +72863,213 @@ var require_parse3 = __commonJS({
72859
72863
  var syntaxError = (type, char) => {
72860
72864
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
72861
72865
  };
72866
+ var splitTopLevel = (input) => {
72867
+ const parts = [];
72868
+ let bracket = 0;
72869
+ let paren = 0;
72870
+ let quote = 0;
72871
+ let value = "";
72872
+ let escaped = false;
72873
+ for (const ch of input) {
72874
+ if (escaped === true) {
72875
+ value += ch;
72876
+ escaped = false;
72877
+ continue;
72878
+ }
72879
+ if (ch === "\\") {
72880
+ value += ch;
72881
+ escaped = true;
72882
+ continue;
72883
+ }
72884
+ if (ch === '"') {
72885
+ quote = quote === 1 ? 0 : 1;
72886
+ value += ch;
72887
+ continue;
72888
+ }
72889
+ if (quote === 0) {
72890
+ if (ch === "[") {
72891
+ bracket++;
72892
+ } else if (ch === "]" && bracket > 0) {
72893
+ bracket--;
72894
+ } else if (bracket === 0) {
72895
+ if (ch === "(") {
72896
+ paren++;
72897
+ } else if (ch === ")" && paren > 0) {
72898
+ paren--;
72899
+ } else if (ch === "|" && paren === 0) {
72900
+ parts.push(value);
72901
+ value = "";
72902
+ continue;
72903
+ }
72904
+ }
72905
+ }
72906
+ value += ch;
72907
+ }
72908
+ parts.push(value);
72909
+ return parts;
72910
+ };
72911
+ var isPlainBranch = (branch) => {
72912
+ let escaped = false;
72913
+ for (const ch of branch) {
72914
+ if (escaped === true) {
72915
+ escaped = false;
72916
+ continue;
72917
+ }
72918
+ if (ch === "\\") {
72919
+ escaped = true;
72920
+ continue;
72921
+ }
72922
+ if (/[?*+@!()[\]{}]/.test(ch)) {
72923
+ return false;
72924
+ }
72925
+ }
72926
+ return true;
72927
+ };
72928
+ var normalizeSimpleBranch = (branch) => {
72929
+ let value = branch.trim();
72930
+ let changed = true;
72931
+ while (changed === true) {
72932
+ changed = false;
72933
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
72934
+ value = value.slice(2, -1);
72935
+ changed = true;
72936
+ }
72937
+ }
72938
+ if (!isPlainBranch(value)) {
72939
+ return;
72940
+ }
72941
+ return value.replace(/\\(.)/g, "$1");
72942
+ };
72943
+ var hasRepeatedCharPrefixOverlap = (branches) => {
72944
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
72945
+ for (let i = 0; i < values.length; i++) {
72946
+ for (let j2 = i + 1; j2 < values.length; j2++) {
72947
+ const a = values[i];
72948
+ const b2 = values[j2];
72949
+ const char = a[0];
72950
+ if (!char || a !== char.repeat(a.length) || b2 !== char.repeat(b2.length)) {
72951
+ continue;
72952
+ }
72953
+ if (a === b2 || a.startsWith(b2) || b2.startsWith(a)) {
72954
+ return true;
72955
+ }
72956
+ }
72957
+ }
72958
+ return false;
72959
+ };
72960
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
72961
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
72962
+ return;
72963
+ }
72964
+ let bracket = 0;
72965
+ let paren = 0;
72966
+ let quote = 0;
72967
+ let escaped = false;
72968
+ for (let i = 1; i < pattern.length; i++) {
72969
+ const ch = pattern[i];
72970
+ if (escaped === true) {
72971
+ escaped = false;
72972
+ continue;
72973
+ }
72974
+ if (ch === "\\") {
72975
+ escaped = true;
72976
+ continue;
72977
+ }
72978
+ if (ch === '"') {
72979
+ quote = quote === 1 ? 0 : 1;
72980
+ continue;
72981
+ }
72982
+ if (quote === 1) {
72983
+ continue;
72984
+ }
72985
+ if (ch === "[") {
72986
+ bracket++;
72987
+ continue;
72988
+ }
72989
+ if (ch === "]" && bracket > 0) {
72990
+ bracket--;
72991
+ continue;
72992
+ }
72993
+ if (bracket > 0) {
72994
+ continue;
72995
+ }
72996
+ if (ch === "(") {
72997
+ paren++;
72998
+ continue;
72999
+ }
73000
+ if (ch === ")") {
73001
+ paren--;
73002
+ if (paren === 0) {
73003
+ if (requireEnd === true && i !== pattern.length - 1) {
73004
+ return;
73005
+ }
73006
+ return {
73007
+ type: pattern[0],
73008
+ body: pattern.slice(2, i),
73009
+ end: i
73010
+ };
73011
+ }
73012
+ }
73013
+ }
73014
+ };
73015
+ var getStarExtglobSequenceOutput = (pattern) => {
73016
+ let index = 0;
73017
+ const chars = [];
73018
+ while (index < pattern.length) {
73019
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
73020
+ if (!match || match.type !== "*") {
73021
+ return;
73022
+ }
73023
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
73024
+ if (branches.length !== 1) {
73025
+ return;
73026
+ }
73027
+ const branch = normalizeSimpleBranch(branches[0]);
73028
+ if (!branch || branch.length !== 1) {
73029
+ return;
73030
+ }
73031
+ chars.push(branch);
73032
+ index += match.end + 1;
73033
+ }
73034
+ if (chars.length < 1) {
73035
+ return;
73036
+ }
73037
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
73038
+ return `${source}*`;
73039
+ };
73040
+ var repeatedExtglobRecursion = (pattern) => {
73041
+ let depth = 0;
73042
+ let value = pattern.trim();
73043
+ let match = parseRepeatedExtglob(value);
73044
+ while (match) {
73045
+ depth++;
73046
+ value = match.body.trim();
73047
+ match = parseRepeatedExtglob(value);
73048
+ }
73049
+ return depth;
73050
+ };
73051
+ var analyzeRepeatedExtglob = (body, options) => {
73052
+ if (options.maxExtglobRecursion === false) {
73053
+ return { risky: false };
73054
+ }
73055
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
73056
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
73057
+ if (branches.length > 1) {
73058
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
73059
+ return { risky: true };
73060
+ }
73061
+ }
73062
+ for (const branch of branches) {
73063
+ const safeOutput = getStarExtglobSequenceOutput(branch);
73064
+ if (safeOutput) {
73065
+ return { risky: true, safeOutput };
73066
+ }
73067
+ if (repeatedExtglobRecursion(branch) > max) {
73068
+ return { risky: true };
73069
+ }
73070
+ }
73071
+ return { risky: false };
73072
+ };
72862
73073
  var parse4 = (input, options) => {
72863
73074
  if (typeof input !== "string") {
72864
73075
  throw new TypeError("Expected a string");
@@ -72990,6 +73201,8 @@ var require_parse3 = __commonJS({
72990
73201
  token.prev = prev;
72991
73202
  token.parens = state.parens;
72992
73203
  token.output = state.output;
73204
+ token.startIndex = state.index;
73205
+ token.tokensIndex = tokens2.length;
72993
73206
  const output = (opts.capture ? "(" : "") + token.open;
72994
73207
  increment("parens");
72995
73208
  push2({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -72997,6 +73210,26 @@ var require_parse3 = __commonJS({
72997
73210
  extglobs.push(token);
72998
73211
  };
72999
73212
  const extglobClose = (token) => {
73213
+ const literal2 = input.slice(token.startIndex, state.index + 1);
73214
+ const body = input.slice(token.startIndex + 2, state.index);
73215
+ const analysis = analyzeRepeatedExtglob(body, opts);
73216
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
73217
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
73218
+ const open = tokens2[token.tokensIndex];
73219
+ open.type = "text";
73220
+ open.value = literal2;
73221
+ open.output = safeOutput || utils.escapeRegex(literal2);
73222
+ for (let i = token.tokensIndex + 1; i < tokens2.length; i++) {
73223
+ tokens2[i].value = "";
73224
+ tokens2[i].output = "";
73225
+ delete tokens2[i].suffix;
73226
+ }
73227
+ state.output = token.output + open.output;
73228
+ state.backtrack = true;
73229
+ push2({ type: "paren", extglob: true, value, output: "" });
73230
+ decrement("parens");
73231
+ return;
73232
+ }
73000
73233
  let output = token.close + (opts.capture ? ")" : "");
73001
73234
  let rest;
73002
73235
  if (token.type === "negate") {
@@ -73989,6 +74222,7 @@ var require_constants7 = __commonJS({
73989
74222
  var path16 = require("path");
73990
74223
  var WIN_SLASH = "\\\\/";
73991
74224
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
74225
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
73992
74226
  var DOT_LITERAL = "\\.";
73993
74227
  var PLUS_LITERAL = "\\+";
73994
74228
  var QMARK_LITERAL = "\\?";
@@ -74036,6 +74270,7 @@ var require_constants7 = __commonJS({
74036
74270
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
74037
74271
  };
74038
74272
  var POSIX_REGEX_SOURCE = {
74273
+ __proto__: null,
74039
74274
  alnum: "a-zA-Z0-9",
74040
74275
  alpha: "a-zA-Z",
74041
74276
  ascii: "\\x00-\\x7F",
@@ -74052,6 +74287,7 @@ var require_constants7 = __commonJS({
74052
74287
  xdigit: "A-Fa-f0-9"
74053
74288
  };
74054
74289
  module2.exports = {
74290
+ DEFAULT_MAX_EXTGLOB_RECURSION,
74055
74291
  MAX_LENGTH: 1024 * 64,
74056
74292
  POSIX_REGEX_SOURCE,
74057
74293
  // regular expressions
@@ -74063,6 +74299,7 @@ var require_constants7 = __commonJS({
74063
74299
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
74064
74300
  // Replace globs with equivalent patterns to reduce parsing time.
74065
74301
  REPLACEMENTS: {
74302
+ __proto__: null,
74066
74303
  "***": "*",
74067
74304
  "**/**": "**",
74068
74305
  "**/**/**": "**"
@@ -74599,6 +74836,213 @@ var require_parse4 = __commonJS({
74599
74836
  var syntaxError = (type, char) => {
74600
74837
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
74601
74838
  };
74839
+ var splitTopLevel = (input) => {
74840
+ const parts = [];
74841
+ let bracket = 0;
74842
+ let paren = 0;
74843
+ let quote = 0;
74844
+ let value = "";
74845
+ let escaped = false;
74846
+ for (const ch of input) {
74847
+ if (escaped === true) {
74848
+ value += ch;
74849
+ escaped = false;
74850
+ continue;
74851
+ }
74852
+ if (ch === "\\") {
74853
+ value += ch;
74854
+ escaped = true;
74855
+ continue;
74856
+ }
74857
+ if (ch === '"') {
74858
+ quote = quote === 1 ? 0 : 1;
74859
+ value += ch;
74860
+ continue;
74861
+ }
74862
+ if (quote === 0) {
74863
+ if (ch === "[") {
74864
+ bracket++;
74865
+ } else if (ch === "]" && bracket > 0) {
74866
+ bracket--;
74867
+ } else if (bracket === 0) {
74868
+ if (ch === "(") {
74869
+ paren++;
74870
+ } else if (ch === ")" && paren > 0) {
74871
+ paren--;
74872
+ } else if (ch === "|" && paren === 0) {
74873
+ parts.push(value);
74874
+ value = "";
74875
+ continue;
74876
+ }
74877
+ }
74878
+ }
74879
+ value += ch;
74880
+ }
74881
+ parts.push(value);
74882
+ return parts;
74883
+ };
74884
+ var isPlainBranch = (branch) => {
74885
+ let escaped = false;
74886
+ for (const ch of branch) {
74887
+ if (escaped === true) {
74888
+ escaped = false;
74889
+ continue;
74890
+ }
74891
+ if (ch === "\\") {
74892
+ escaped = true;
74893
+ continue;
74894
+ }
74895
+ if (/[?*+@!()[\]{}]/.test(ch)) {
74896
+ return false;
74897
+ }
74898
+ }
74899
+ return true;
74900
+ };
74901
+ var normalizeSimpleBranch = (branch) => {
74902
+ let value = branch.trim();
74903
+ let changed = true;
74904
+ while (changed === true) {
74905
+ changed = false;
74906
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
74907
+ value = value.slice(2, -1);
74908
+ changed = true;
74909
+ }
74910
+ }
74911
+ if (!isPlainBranch(value)) {
74912
+ return;
74913
+ }
74914
+ return value.replace(/\\(.)/g, "$1");
74915
+ };
74916
+ var hasRepeatedCharPrefixOverlap = (branches) => {
74917
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
74918
+ for (let i = 0; i < values.length; i++) {
74919
+ for (let j2 = i + 1; j2 < values.length; j2++) {
74920
+ const a = values[i];
74921
+ const b2 = values[j2];
74922
+ const char = a[0];
74923
+ if (!char || a !== char.repeat(a.length) || b2 !== char.repeat(b2.length)) {
74924
+ continue;
74925
+ }
74926
+ if (a === b2 || a.startsWith(b2) || b2.startsWith(a)) {
74927
+ return true;
74928
+ }
74929
+ }
74930
+ }
74931
+ return false;
74932
+ };
74933
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
74934
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
74935
+ return;
74936
+ }
74937
+ let bracket = 0;
74938
+ let paren = 0;
74939
+ let quote = 0;
74940
+ let escaped = false;
74941
+ for (let i = 1; i < pattern.length; i++) {
74942
+ const ch = pattern[i];
74943
+ if (escaped === true) {
74944
+ escaped = false;
74945
+ continue;
74946
+ }
74947
+ if (ch === "\\") {
74948
+ escaped = true;
74949
+ continue;
74950
+ }
74951
+ if (ch === '"') {
74952
+ quote = quote === 1 ? 0 : 1;
74953
+ continue;
74954
+ }
74955
+ if (quote === 1) {
74956
+ continue;
74957
+ }
74958
+ if (ch === "[") {
74959
+ bracket++;
74960
+ continue;
74961
+ }
74962
+ if (ch === "]" && bracket > 0) {
74963
+ bracket--;
74964
+ continue;
74965
+ }
74966
+ if (bracket > 0) {
74967
+ continue;
74968
+ }
74969
+ if (ch === "(") {
74970
+ paren++;
74971
+ continue;
74972
+ }
74973
+ if (ch === ")") {
74974
+ paren--;
74975
+ if (paren === 0) {
74976
+ if (requireEnd === true && i !== pattern.length - 1) {
74977
+ return;
74978
+ }
74979
+ return {
74980
+ type: pattern[0],
74981
+ body: pattern.slice(2, i),
74982
+ end: i
74983
+ };
74984
+ }
74985
+ }
74986
+ }
74987
+ };
74988
+ var getStarExtglobSequenceOutput = (pattern) => {
74989
+ let index = 0;
74990
+ const chars = [];
74991
+ while (index < pattern.length) {
74992
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
74993
+ if (!match || match.type !== "*") {
74994
+ return;
74995
+ }
74996
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
74997
+ if (branches.length !== 1) {
74998
+ return;
74999
+ }
75000
+ const branch = normalizeSimpleBranch(branches[0]);
75001
+ if (!branch || branch.length !== 1) {
75002
+ return;
75003
+ }
75004
+ chars.push(branch);
75005
+ index += match.end + 1;
75006
+ }
75007
+ if (chars.length < 1) {
75008
+ return;
75009
+ }
75010
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
75011
+ return `${source}*`;
75012
+ };
75013
+ var repeatedExtglobRecursion = (pattern) => {
75014
+ let depth = 0;
75015
+ let value = pattern.trim();
75016
+ let match = parseRepeatedExtglob(value);
75017
+ while (match) {
75018
+ depth++;
75019
+ value = match.body.trim();
75020
+ match = parseRepeatedExtglob(value);
75021
+ }
75022
+ return depth;
75023
+ };
75024
+ var analyzeRepeatedExtglob = (body, options) => {
75025
+ if (options.maxExtglobRecursion === false) {
75026
+ return { risky: false };
75027
+ }
75028
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
75029
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
75030
+ if (branches.length > 1) {
75031
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
75032
+ return { risky: true };
75033
+ }
75034
+ }
75035
+ for (const branch of branches) {
75036
+ const safeOutput = getStarExtglobSequenceOutput(branch);
75037
+ if (safeOutput) {
75038
+ return { risky: true, safeOutput };
75039
+ }
75040
+ if (repeatedExtglobRecursion(branch) > max) {
75041
+ return { risky: true };
75042
+ }
75043
+ }
75044
+ return { risky: false };
75045
+ };
74602
75046
  var parse4 = (input, options) => {
74603
75047
  if (typeof input !== "string") {
74604
75048
  throw new TypeError("Expected a string");
@@ -74730,6 +75174,8 @@ var require_parse4 = __commonJS({
74730
75174
  token.prev = prev;
74731
75175
  token.parens = state.parens;
74732
75176
  token.output = state.output;
75177
+ token.startIndex = state.index;
75178
+ token.tokensIndex = tokens2.length;
74733
75179
  const output = (opts.capture ? "(" : "") + token.open;
74734
75180
  increment("parens");
74735
75181
  push2({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -74737,6 +75183,26 @@ var require_parse4 = __commonJS({
74737
75183
  extglobs.push(token);
74738
75184
  };
74739
75185
  const extglobClose = (token) => {
75186
+ const literal2 = input.slice(token.startIndex, state.index + 1);
75187
+ const body = input.slice(token.startIndex + 2, state.index);
75188
+ const analysis = analyzeRepeatedExtglob(body, opts);
75189
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
75190
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
75191
+ const open = tokens2[token.tokensIndex];
75192
+ open.type = "text";
75193
+ open.value = literal2;
75194
+ open.output = safeOutput || utils.escapeRegex(literal2);
75195
+ for (let i = token.tokensIndex + 1; i < tokens2.length; i++) {
75196
+ tokens2[i].value = "";
75197
+ tokens2[i].output = "";
75198
+ delete tokens2[i].suffix;
75199
+ }
75200
+ state.output = token.output + open.output;
75201
+ state.backtrack = true;
75202
+ push2({ type: "paren", extglob: true, value, output: "" });
75203
+ decrement("parens");
75204
+ return;
75205
+ }
74740
75206
  let output = token.close + (opts.capture ? ")" : "");
74741
75207
  let rest;
74742
75208
  if (token.type === "negate") {
@@ -85459,7 +85925,7 @@ var package_default = {
85459
85925
  type: "module",
85460
85926
  homepage: "https://appwrite.io/support",
85461
85927
  description: "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
85462
- version: "16.0.0",
85928
+ version: "17.0.0",
85463
85929
  license: "BSD-3-Clause",
85464
85930
  main: "dist/index.cjs",
85465
85931
  module: "dist/index.js",
@@ -99747,7 +100213,7 @@ var import_undici = __toESM(require_undici(), 1);
99747
100213
  // lib/constants.ts
99748
100214
  var SDK_TITLE = "Appwrite";
99749
100215
  var SDK_TITLE_LOWER = "appwrite";
99750
- var SDK_VERSION = "16.0.0";
100216
+ var SDK_VERSION = "17.0.0";
99751
100217
  var SDK_NAME = "Command Line";
99752
100218
  var SDK_PLATFORM = "console";
99753
100219
  var SDK_LANGUAGE = "cli";
@@ -100778,6 +101244,9 @@ var Client = class _Client {
100778
101244
  locale: "",
100779
101245
  mode: "",
100780
101246
  cookie: "",
101247
+ impersonateuserid: "",
101248
+ impersonateuseremail: "",
101249
+ impersonateuserphone: "",
100781
101250
  platform: "",
100782
101251
  selfSigned: false,
100783
101252
  session: void 0
@@ -100786,8 +101255,8 @@ var Client = class _Client {
100786
101255
  "x-sdk-name": "Console",
100787
101256
  "x-sdk-platform": "console",
100788
101257
  "x-sdk-language": "web",
100789
- "x-sdk-version": "6.0.0",
100790
- "X-Appwrite-Response-Format": "1.8.0"
101258
+ "x-sdk-version": "8.0.0",
101259
+ "X-Appwrite-Response-Format": "1.9.0"
100791
101260
  };
100792
101261
  this.realtime = {
100793
101262
  socket: void 0,
@@ -101110,6 +101579,48 @@ var Client = class _Client {
101110
101579
  this.config.cookie = value;
101111
101580
  return this;
101112
101581
  }
101582
+ /**
101583
+ * Set ImpersonateUserId
101584
+ *
101585
+ * Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
101586
+ *
101587
+ * @param value string
101588
+ *
101589
+ * @return {this}
101590
+ */
101591
+ setImpersonateUserId(value) {
101592
+ this.headers["X-Appwrite-Impersonate-User-Id"] = value;
101593
+ this.config.impersonateuserid = value;
101594
+ return this;
101595
+ }
101596
+ /**
101597
+ * Set ImpersonateUserEmail
101598
+ *
101599
+ * Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
101600
+ *
101601
+ * @param value string
101602
+ *
101603
+ * @return {this}
101604
+ */
101605
+ setImpersonateUserEmail(value) {
101606
+ this.headers["X-Appwrite-Impersonate-User-Email"] = value;
101607
+ this.config.impersonateuseremail = value;
101608
+ return this;
101609
+ }
101610
+ /**
101611
+ * Set ImpersonateUserPhone
101612
+ *
101613
+ * Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
101614
+ *
101615
+ * @param value string
101616
+ *
101617
+ * @return {this}
101618
+ */
101619
+ setImpersonateUserPhone(value) {
101620
+ this.headers["X-Appwrite-Impersonate-User-Phone"] = value;
101621
+ this.config.impersonateuserphone = value;
101622
+ return this;
101623
+ }
101113
101624
  /**
101114
101625
  * Set Platform
101115
101626
  *
@@ -101231,9 +101742,9 @@ var Client = class _Client {
101231
101742
  }
101232
101743
  return { uri: url2.toString(), options };
101233
101744
  }
101234
- chunkedUpload(method, url2, headers = {}, originalPayload = {}, onProgress) {
101235
- var _a3;
101236
- return __awaiter(this, void 0, void 0, function* () {
101745
+ chunkedUpload(method_1, url_1) {
101746
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, originalPayload = {}, onProgress) {
101747
+ var _a3;
101237
101748
  const [fileParam, file2] = (_a3 = Object.entries(originalPayload).find(([_2, value]) => value instanceof File)) !== null && _a3 !== void 0 ? _a3 : [];
101238
101749
  if (!file2 || !fileParam) {
101239
101750
  throw new Error("File not found in payload");
@@ -101275,9 +101786,9 @@ var Client = class _Client {
101275
101786
  return this.call("GET", new URL(this.config.endpoint + "/ping"));
101276
101787
  });
101277
101788
  }
101278
- call(method, url2, headers = {}, params = {}, responseType = "json") {
101279
- var _a3, _b;
101280
- return __awaiter(this, void 0, void 0, function* () {
101789
+ call(method_1, url_1) {
101790
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, params = {}, responseType = "json") {
101791
+ var _a3, _b;
101281
101792
  const { uri, options } = this.prepareRequest(method, url2, headers, params);
101282
101793
  let data = null;
101283
101794
  const response = yield fetch(uri, options);
@@ -113764,15 +114275,26 @@ var Project = class {
113764
114275
  const apiHeaders = {};
113765
114276
  return this.client.call("get", uri, apiHeaders, payload);
113766
114277
  }
113767
- /**
113768
- * Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.
113769
- *
113770
- * @throws {AppwriteException}
113771
- * @returns {Promise<Models.VariableList>}
113772
- */
113773
- listVariables() {
114278
+ listVariables(paramsOrFirst, ...rest) {
114279
+ let params;
114280
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
114281
+ params = paramsOrFirst || {};
114282
+ } else {
114283
+ params = {
114284
+ queries: paramsOrFirst,
114285
+ total: rest[0]
114286
+ };
114287
+ }
114288
+ const queries = params.queries;
114289
+ const total = params.total;
113774
114290
  const apiPath = "/project/variables";
113775
114291
  const payload = {};
114292
+ if (typeof queries !== "undefined") {
114293
+ payload["queries"] = queries;
114294
+ }
114295
+ if (typeof total !== "undefined") {
114296
+ payload["total"] = total;
114297
+ }
113776
114298
  const uri = new URL(this.client.config.endpoint + apiPath);
113777
114299
  const apiHeaders = {};
113778
114300
  return this.client.call("get", uri, apiHeaders, payload);
@@ -113783,14 +114305,19 @@ var Project = class {
113783
114305
  params = paramsOrFirst || {};
113784
114306
  } else {
113785
114307
  params = {
113786
- key: paramsOrFirst,
113787
- value: rest[0],
113788
- secret: rest[1]
114308
+ variableId: paramsOrFirst,
114309
+ key: rest[0],
114310
+ value: rest[1],
114311
+ secret: rest[2]
113789
114312
  };
113790
114313
  }
114314
+ const variableId = params.variableId;
113791
114315
  const key = params.key;
113792
114316
  const value = params.value;
113793
114317
  const secret = params.secret;
114318
+ if (typeof variableId === "undefined") {
114319
+ throw new AppwriteException('Missing required parameter: "variableId"');
114320
+ }
113794
114321
  if (typeof key === "undefined") {
113795
114322
  throw new AppwriteException('Missing required parameter: "key"');
113796
114323
  }
@@ -113799,6 +114326,9 @@ var Project = class {
113799
114326
  }
113800
114327
  const apiPath = "/project/variables";
113801
114328
  const payload = {};
114329
+ if (typeof variableId !== "undefined") {
114330
+ payload["variableId"] = variableId;
114331
+ }
113802
114332
  if (typeof key !== "undefined") {
113803
114333
  payload["key"] = key;
113804
114334
  }
@@ -113852,9 +114382,6 @@ var Project = class {
113852
114382
  if (typeof variableId === "undefined") {
113853
114383
  throw new AppwriteException('Missing required parameter: "variableId"');
113854
114384
  }
113855
- if (typeof key === "undefined") {
113856
- throw new AppwriteException('Missing required parameter: "key"');
113857
- }
113858
114385
  const apiPath = "/project/variables/{variableId}".replace("{variableId}", variableId);
113859
114386
  const payload = {};
113860
114387
  if (typeof key !== "undefined") {
@@ -122352,6 +122879,35 @@ var Users = class {
122352
122879
  };
122353
122880
  return this.client.call("patch", uri, apiHeaders, payload);
122354
122881
  }
122882
+ updateImpersonator(paramsOrFirst, ...rest) {
122883
+ let params;
122884
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
122885
+ params = paramsOrFirst || {};
122886
+ } else {
122887
+ params = {
122888
+ userId: paramsOrFirst,
122889
+ impersonator: rest[0]
122890
+ };
122891
+ }
122892
+ const userId = params.userId;
122893
+ const impersonator = params.impersonator;
122894
+ if (typeof userId === "undefined") {
122895
+ throw new AppwriteException('Missing required parameter: "userId"');
122896
+ }
122897
+ if (typeof impersonator === "undefined") {
122898
+ throw new AppwriteException('Missing required parameter: "impersonator"');
122899
+ }
122900
+ const apiPath = "/users/{userId}/impersonator".replace("{userId}", userId);
122901
+ const payload = {};
122902
+ if (typeof impersonator !== "undefined") {
122903
+ payload["impersonator"] = impersonator;
122904
+ }
122905
+ const uri = new URL(this.client.config.endpoint + apiPath);
122906
+ const apiHeaders = {
122907
+ "content-type": "application/json"
122908
+ };
122909
+ return this.client.call("patch", uri, apiHeaders, payload);
122910
+ }
122355
122911
  createJWT(paramsOrFirst, ...rest) {
122356
122912
  let params;
122357
122913
  if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -123820,7 +124376,7 @@ Permission.delete = (role) => {
123820
124376
  };
123821
124377
  var _a2;
123822
124378
  var _ID_hexTimestamp;
123823
- var ID = class _ID {
124379
+ var ID = class {
123824
124380
  /**
123825
124381
  * Uses the provided ID as the ID for the resource.
123826
124382
  *
@@ -123837,7 +124393,7 @@ var ID = class _ID {
123837
124393
  * @returns {string}
123838
124394
  */
123839
124395
  static unique(padding = 7) {
123840
- const baseId = __classPrivateFieldGet(_ID, _a2, "m", _ID_hexTimestamp).call(_ID);
124396
+ const baseId = __classPrivateFieldGet(_a2, _a2, "m", _ID_hexTimestamp).call(_a2);
123841
124397
  let randomPadding = "";
123842
124398
  for (let i = 0; i < padding; i++) {
123843
124399
  const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
@@ -123990,11 +124546,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
123990
124546
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
123991
124547
  var Scopes;
123992
124548
  (function(Scopes3) {
124549
+ Scopes3["Account"] = "account";
124550
+ Scopes3["TeamsRead"] = "teams.read";
124551
+ Scopes3["TeamsWrite"] = "teams.write";
123993
124552
  Scopes3["SessionsWrite"] = "sessions.write";
123994
124553
  Scopes3["UsersRead"] = "users.read";
123995
124554
  Scopes3["UsersWrite"] = "users.write";
123996
- Scopes3["TeamsRead"] = "teams.read";
123997
- Scopes3["TeamsWrite"] = "teams.write";
123998
124555
  Scopes3["DatabasesRead"] = "databases.read";
123999
124556
  Scopes3["DatabasesWrite"] = "databases.write";
124000
124557
  Scopes3["CollectionsRead"] = "collections.read";
@@ -124049,6 +124606,8 @@ var Scopes;
124049
124606
  Scopes3["TokensWrite"] = "tokens.write";
124050
124607
  Scopes3["WebhooksRead"] = "webhooks.read";
124051
124608
  Scopes3["WebhooksWrite"] = "webhooks.write";
124609
+ Scopes3["ProjectRead"] = "project.read";
124610
+ Scopes3["ProjectWrite"] = "project.write";
124052
124611
  Scopes3["PoliciesWrite"] = "policies.write";
124053
124612
  Scopes3["PoliciesRead"] = "policies.read";
124054
124613
  Scopes3["ArchivesRead"] = "archives.read";
@@ -124058,6 +124617,14 @@ var Scopes;
124058
124617
  Scopes3["DomainsRead"] = "domains.read";
124059
124618
  Scopes3["DomainsWrite"] = "domains.write";
124060
124619
  Scopes3["EventsRead"] = "events.read";
124620
+ Scopes3["PlatformsRead"] = "platforms.read";
124621
+ Scopes3["PlatformsWrite"] = "platforms.write";
124622
+ Scopes3["ProjectsRead"] = "projects.read";
124623
+ Scopes3["ProjectsWrite"] = "projects.write";
124624
+ Scopes3["KeysRead"] = "keys.read";
124625
+ Scopes3["KeysWrite"] = "keys.write";
124626
+ Scopes3["DevKeysRead"] = "devKeys.read";
124627
+ Scopes3["DevKeysWrite"] = "devKeys.write";
124061
124628
  })(Scopes || (Scopes = {}));
124062
124629
  var AuthenticatorType;
124063
124630
  (function(AuthenticatorType2) {
@@ -124810,6 +125377,9 @@ var ImageFormat;
124810
125377
  var BackupServices;
124811
125378
  (function(BackupServices2) {
124812
125379
  BackupServices2["Databases"] = "databases";
125380
+ BackupServices2["Tablesdb"] = "tablesdb";
125381
+ BackupServices2["Documentsdb"] = "documentsdb";
125382
+ BackupServices2["Vectorsdb"] = "vectorsdb";
124813
125383
  BackupServices2["Functions"] = "functions";
124814
125384
  BackupServices2["Storage"] = "storage";
124815
125385
  })(BackupServices || (BackupServices = {}));
@@ -124841,13 +125411,13 @@ var RelationMutate;
124841
125411
  RelationMutate2["Restrict"] = "restrict";
124842
125412
  RelationMutate2["SetNull"] = "setNull";
124843
125413
  })(RelationMutate || (RelationMutate = {}));
124844
- var IndexType;
124845
- (function(IndexType2) {
124846
- IndexType2["Key"] = "key";
124847
- IndexType2["Fulltext"] = "fulltext";
124848
- IndexType2["Unique"] = "unique";
124849
- IndexType2["Spatial"] = "spatial";
124850
- })(IndexType || (IndexType = {}));
125414
+ var DatabasesIndexType;
125415
+ (function(DatabasesIndexType2) {
125416
+ DatabasesIndexType2["Key"] = "key";
125417
+ DatabasesIndexType2["Fulltext"] = "fulltext";
125418
+ DatabasesIndexType2["Unique"] = "unique";
125419
+ DatabasesIndexType2["Spatial"] = "spatial";
125420
+ })(DatabasesIndexType || (DatabasesIndexType = {}));
124851
125421
  var OrderBy;
124852
125422
  (function(OrderBy2) {
124853
125423
  OrderBy2["Asc"] = "asc";
@@ -124953,92 +125523,6 @@ var Runtime;
124953
125523
  Runtime2["Flutter332"] = "flutter-3.32";
124954
125524
  Runtime2["Flutter335"] = "flutter-3.35";
124955
125525
  Runtime2["Flutter338"] = "flutter-3.38";
124956
- Runtime2["Node145rc"] = "node-14.5-rc";
124957
- Runtime2["Node160rc"] = "node-16.0-rc";
124958
- Runtime2["Node180rc"] = "node-18.0-rc";
124959
- Runtime2["Node190rc"] = "node-19.0-rc";
124960
- Runtime2["Node200rc"] = "node-20.0-rc";
124961
- Runtime2["Node210rc"] = "node-21.0-rc";
124962
- Runtime2["Node22rc"] = "node-22-rc";
124963
- Runtime2["Node23rc"] = "node-23-rc";
124964
- Runtime2["Node24rc"] = "node-24-rc";
124965
- Runtime2["Node25rc"] = "node-25-rc";
124966
- Runtime2["Php80rc"] = "php-8.0-rc";
124967
- Runtime2["Php81rc"] = "php-8.1-rc";
124968
- Runtime2["Php82rc"] = "php-8.2-rc";
124969
- Runtime2["Php83rc"] = "php-8.3-rc";
124970
- Runtime2["Php84rc"] = "php-8.4-rc";
124971
- Runtime2["Ruby30rc"] = "ruby-3.0-rc";
124972
- Runtime2["Ruby31rc"] = "ruby-3.1-rc";
124973
- Runtime2["Ruby32rc"] = "ruby-3.2-rc";
124974
- Runtime2["Ruby33rc"] = "ruby-3.3-rc";
124975
- Runtime2["Ruby34rc"] = "ruby-3.4-rc";
124976
- Runtime2["Ruby40rc"] = "ruby-4.0-rc";
124977
- Runtime2["Python38rc"] = "python-3.8-rc";
124978
- Runtime2["Python39rc"] = "python-3.9-rc";
124979
- Runtime2["Python310rc"] = "python-3.10-rc";
124980
- Runtime2["Python311rc"] = "python-3.11-rc";
124981
- Runtime2["Python312rc"] = "python-3.12-rc";
124982
- Runtime2["Python313rc"] = "python-3.13-rc";
124983
- Runtime2["Python314rc"] = "python-3.14-rc";
124984
- Runtime2["Pythonml311rc"] = "python-ml-3.11-rc";
124985
- Runtime2["Pythonml312rc"] = "python-ml-3.12-rc";
124986
- Runtime2["Pythonml313rc"] = "python-ml-3.13-rc";
124987
- Runtime2["Deno140rc"] = "deno-1.40-rc";
124988
- Runtime2["Deno146rc"] = "deno-1.46-rc";
124989
- Runtime2["Deno20rc"] = "deno-2.0-rc";
124990
- Runtime2["Deno25rc"] = "deno-2.5-rc";
124991
- Runtime2["Deno26rc"] = "deno-2.6-rc";
124992
- Runtime2["Dart215rc"] = "dart-2.15-rc";
124993
- Runtime2["Dart216rc"] = "dart-2.16-rc";
124994
- Runtime2["Dart217rc"] = "dart-2.17-rc";
124995
- Runtime2["Dart218rc"] = "dart-2.18-rc";
124996
- Runtime2["Dart219rc"] = "dart-2.19-rc";
124997
- Runtime2["Dart30rc"] = "dart-3.0-rc";
124998
- Runtime2["Dart31rc"] = "dart-3.1-rc";
124999
- Runtime2["Dart33rc"] = "dart-3.3-rc";
125000
- Runtime2["Dart35rc"] = "dart-3.5-rc";
125001
- Runtime2["Dart38rc"] = "dart-3.8-rc";
125002
- Runtime2["Dart39rc"] = "dart-3.9-rc";
125003
- Runtime2["Dart310rc"] = "dart-3.10-rc";
125004
- Runtime2["Dotnet60rc"] = "dotnet-6.0-rc";
125005
- Runtime2["Dotnet70rc"] = "dotnet-7.0-rc";
125006
- Runtime2["Dotnet80rc"] = "dotnet-8.0-rc";
125007
- Runtime2["Dotnet10rc"] = "dotnet-10-rc";
125008
- Runtime2["Java80rc"] = "java-8.0-rc";
125009
- Runtime2["Java110rc"] = "java-11.0-rc";
125010
- Runtime2["Java170rc"] = "java-17.0-rc";
125011
- Runtime2["Java180rc"] = "java-18.0-rc";
125012
- Runtime2["Java210rc"] = "java-21.0-rc";
125013
- Runtime2["Java22rc"] = "java-22-rc";
125014
- Runtime2["Java25rc"] = "java-25-rc";
125015
- Runtime2["Swift55rc"] = "swift-5.5-rc";
125016
- Runtime2["Swift58rc"] = "swift-5.8-rc";
125017
- Runtime2["Swift59rc"] = "swift-5.9-rc";
125018
- Runtime2["Swift510rc"] = "swift-5.10-rc";
125019
- Runtime2["Swift62rc"] = "swift-6.2-rc";
125020
- Runtime2["Kotlin16rc"] = "kotlin-1.6-rc";
125021
- Runtime2["Kotlin18rc"] = "kotlin-1.8-rc";
125022
- Runtime2["Kotlin19rc"] = "kotlin-1.9-rc";
125023
- Runtime2["Kotlin20rc"] = "kotlin-2.0-rc";
125024
- Runtime2["Kotlin23rc"] = "kotlin-2.3-rc";
125025
- Runtime2["Cpp17rc"] = "cpp-17-rc";
125026
- Runtime2["Cpp20rc"] = "cpp-20-rc";
125027
- Runtime2["Bun10rc"] = "bun-1.0-rc";
125028
- Runtime2["Bun11rc"] = "bun-1.1-rc";
125029
- Runtime2["Bun12rc"] = "bun-1.2-rc";
125030
- Runtime2["Bun13rc"] = "bun-1.3-rc";
125031
- Runtime2["Go123rc"] = "go-1.23-rc";
125032
- Runtime2["Go124rc"] = "go-1.24-rc";
125033
- Runtime2["Go125rc"] = "go-1.25-rc";
125034
- Runtime2["Go126rc"] = "go-1.26-rc";
125035
- Runtime2["Static1rc"] = "static-1-rc";
125036
- Runtime2["Flutter324rc"] = "flutter-3.24-rc";
125037
- Runtime2["Flutter327rc"] = "flutter-3.27-rc";
125038
- Runtime2["Flutter329rc"] = "flutter-3.29-rc";
125039
- Runtime2["Flutter332rc"] = "flutter-3.32-rc";
125040
- Runtime2["Flutter335rc"] = "flutter-3.35-rc";
125041
- Runtime2["Flutter338rc"] = "flutter-3.38-rc";
125042
125526
  })(Runtime || (Runtime = {}));
125043
125527
  var Runtimes;
125044
125528
  (function(Runtimes2) {
@@ -125128,109 +125612,28 @@ var Runtimes;
125128
125612
  Runtimes2["Flutter332"] = "flutter-3.32";
125129
125613
  Runtimes2["Flutter335"] = "flutter-3.35";
125130
125614
  Runtimes2["Flutter338"] = "flutter-3.38";
125131
- Runtimes2["Node145rc"] = "node-14.5-rc";
125132
- Runtimes2["Node160rc"] = "node-16.0-rc";
125133
- Runtimes2["Node180rc"] = "node-18.0-rc";
125134
- Runtimes2["Node190rc"] = "node-19.0-rc";
125135
- Runtimes2["Node200rc"] = "node-20.0-rc";
125136
- Runtimes2["Node210rc"] = "node-21.0-rc";
125137
- Runtimes2["Node22rc"] = "node-22-rc";
125138
- Runtimes2["Node23rc"] = "node-23-rc";
125139
- Runtimes2["Node24rc"] = "node-24-rc";
125140
- Runtimes2["Node25rc"] = "node-25-rc";
125141
- Runtimes2["Php80rc"] = "php-8.0-rc";
125142
- Runtimes2["Php81rc"] = "php-8.1-rc";
125143
- Runtimes2["Php82rc"] = "php-8.2-rc";
125144
- Runtimes2["Php83rc"] = "php-8.3-rc";
125145
- Runtimes2["Php84rc"] = "php-8.4-rc";
125146
- Runtimes2["Ruby30rc"] = "ruby-3.0-rc";
125147
- Runtimes2["Ruby31rc"] = "ruby-3.1-rc";
125148
- Runtimes2["Ruby32rc"] = "ruby-3.2-rc";
125149
- Runtimes2["Ruby33rc"] = "ruby-3.3-rc";
125150
- Runtimes2["Ruby34rc"] = "ruby-3.4-rc";
125151
- Runtimes2["Ruby40rc"] = "ruby-4.0-rc";
125152
- Runtimes2["Python38rc"] = "python-3.8-rc";
125153
- Runtimes2["Python39rc"] = "python-3.9-rc";
125154
- Runtimes2["Python310rc"] = "python-3.10-rc";
125155
- Runtimes2["Python311rc"] = "python-3.11-rc";
125156
- Runtimes2["Python312rc"] = "python-3.12-rc";
125157
- Runtimes2["Python313rc"] = "python-3.13-rc";
125158
- Runtimes2["Python314rc"] = "python-3.14-rc";
125159
- Runtimes2["Pythonml311rc"] = "python-ml-3.11-rc";
125160
- Runtimes2["Pythonml312rc"] = "python-ml-3.12-rc";
125161
- Runtimes2["Pythonml313rc"] = "python-ml-3.13-rc";
125162
- Runtimes2["Deno140rc"] = "deno-1.40-rc";
125163
- Runtimes2["Deno146rc"] = "deno-1.46-rc";
125164
- Runtimes2["Deno20rc"] = "deno-2.0-rc";
125165
- Runtimes2["Deno25rc"] = "deno-2.5-rc";
125166
- Runtimes2["Deno26rc"] = "deno-2.6-rc";
125167
- Runtimes2["Dart215rc"] = "dart-2.15-rc";
125168
- Runtimes2["Dart216rc"] = "dart-2.16-rc";
125169
- Runtimes2["Dart217rc"] = "dart-2.17-rc";
125170
- Runtimes2["Dart218rc"] = "dart-2.18-rc";
125171
- Runtimes2["Dart219rc"] = "dart-2.19-rc";
125172
- Runtimes2["Dart30rc"] = "dart-3.0-rc";
125173
- Runtimes2["Dart31rc"] = "dart-3.1-rc";
125174
- Runtimes2["Dart33rc"] = "dart-3.3-rc";
125175
- Runtimes2["Dart35rc"] = "dart-3.5-rc";
125176
- Runtimes2["Dart38rc"] = "dart-3.8-rc";
125177
- Runtimes2["Dart39rc"] = "dart-3.9-rc";
125178
- Runtimes2["Dart310rc"] = "dart-3.10-rc";
125179
- Runtimes2["Dotnet60rc"] = "dotnet-6.0-rc";
125180
- Runtimes2["Dotnet70rc"] = "dotnet-7.0-rc";
125181
- Runtimes2["Dotnet80rc"] = "dotnet-8.0-rc";
125182
- Runtimes2["Dotnet10rc"] = "dotnet-10-rc";
125183
- Runtimes2["Java80rc"] = "java-8.0-rc";
125184
- Runtimes2["Java110rc"] = "java-11.0-rc";
125185
- Runtimes2["Java170rc"] = "java-17.0-rc";
125186
- Runtimes2["Java180rc"] = "java-18.0-rc";
125187
- Runtimes2["Java210rc"] = "java-21.0-rc";
125188
- Runtimes2["Java22rc"] = "java-22-rc";
125189
- Runtimes2["Java25rc"] = "java-25-rc";
125190
- Runtimes2["Swift55rc"] = "swift-5.5-rc";
125191
- Runtimes2["Swift58rc"] = "swift-5.8-rc";
125192
- Runtimes2["Swift59rc"] = "swift-5.9-rc";
125193
- Runtimes2["Swift510rc"] = "swift-5.10-rc";
125194
- Runtimes2["Swift62rc"] = "swift-6.2-rc";
125195
- Runtimes2["Kotlin16rc"] = "kotlin-1.6-rc";
125196
- Runtimes2["Kotlin18rc"] = "kotlin-1.8-rc";
125197
- Runtimes2["Kotlin19rc"] = "kotlin-1.9-rc";
125198
- Runtimes2["Kotlin20rc"] = "kotlin-2.0-rc";
125199
- Runtimes2["Kotlin23rc"] = "kotlin-2.3-rc";
125200
- Runtimes2["Cpp17rc"] = "cpp-17-rc";
125201
- Runtimes2["Cpp20rc"] = "cpp-20-rc";
125202
- Runtimes2["Bun10rc"] = "bun-1.0-rc";
125203
- Runtimes2["Bun11rc"] = "bun-1.1-rc";
125204
- Runtimes2["Bun12rc"] = "bun-1.2-rc";
125205
- Runtimes2["Bun13rc"] = "bun-1.3-rc";
125206
- Runtimes2["Go123rc"] = "go-1.23-rc";
125207
- Runtimes2["Go124rc"] = "go-1.24-rc";
125208
- Runtimes2["Go125rc"] = "go-1.25-rc";
125209
- Runtimes2["Go126rc"] = "go-1.26-rc";
125210
- Runtimes2["Static1rc"] = "static-1-rc";
125211
- Runtimes2["Flutter324rc"] = "flutter-3.24-rc";
125212
- Runtimes2["Flutter327rc"] = "flutter-3.27-rc";
125213
- Runtimes2["Flutter329rc"] = "flutter-3.29-rc";
125214
- Runtimes2["Flutter332rc"] = "flutter-3.32-rc";
125215
- Runtimes2["Flutter335rc"] = "flutter-3.35-rc";
125216
- Runtimes2["Flutter338rc"] = "flutter-3.38-rc";
125217
125615
  })(Runtimes || (Runtimes = {}));
125218
125616
  var UseCases;
125219
125617
  (function(UseCases2) {
125220
- UseCases2["Portfolio"] = "portfolio";
125221
125618
  UseCases2["Starter"] = "starter";
125619
+ UseCases2["Databases"] = "databases";
125620
+ UseCases2["Ai"] = "ai";
125621
+ UseCases2["Messaging"] = "messaging";
125622
+ UseCases2["Utilities"] = "utilities";
125623
+ UseCases2["Devtools"] = "dev-tools";
125624
+ UseCases2["Auth"] = "auth";
125625
+ UseCases2["Portfolio"] = "portfolio";
125222
125626
  UseCases2["Events"] = "events";
125223
125627
  UseCases2["Ecommerce"] = "ecommerce";
125224
125628
  UseCases2["Documentation"] = "documentation";
125225
125629
  UseCases2["Blog"] = "blog";
125226
- UseCases2["Ai"] = "ai";
125227
125630
  UseCases2["Forms"] = "forms";
125228
125631
  UseCases2["Dashboard"] = "dashboard";
125229
125632
  })(UseCases || (UseCases = {}));
125230
125633
  var TemplateReferenceType;
125231
125634
  (function(TemplateReferenceType2) {
125232
- TemplateReferenceType2["Branch"] = "branch";
125233
125635
  TemplateReferenceType2["Commit"] = "commit";
125636
+ TemplateReferenceType2["Branch"] = "branch";
125234
125637
  TemplateReferenceType2["Tag"] = "tag";
125235
125638
  })(TemplateReferenceType || (TemplateReferenceType = {}));
125236
125639
  var VCSReferenceType;
@@ -125294,6 +125697,8 @@ var AppwriteMigrationResource;
125294
125697
  AppwriteMigrationResource2["Document"] = "document";
125295
125698
  AppwriteMigrationResource2["Attribute"] = "attribute";
125296
125699
  AppwriteMigrationResource2["Collection"] = "collection";
125700
+ AppwriteMigrationResource2["Documentsdb"] = "documentsdb";
125701
+ AppwriteMigrationResource2["Vectorsdb"] = "vectorsdb";
125297
125702
  AppwriteMigrationResource2["Bucket"] = "bucket";
125298
125703
  AppwriteMigrationResource2["File"] = "file";
125299
125704
  AppwriteMigrationResource2["Function"] = "function";
@@ -125831,92 +126236,6 @@ var BuildRuntime;
125831
126236
  BuildRuntime2["Flutter332"] = "flutter-3.32";
125832
126237
  BuildRuntime2["Flutter335"] = "flutter-3.35";
125833
126238
  BuildRuntime2["Flutter338"] = "flutter-3.38";
125834
- BuildRuntime2["Node145rc"] = "node-14.5-rc";
125835
- BuildRuntime2["Node160rc"] = "node-16.0-rc";
125836
- BuildRuntime2["Node180rc"] = "node-18.0-rc";
125837
- BuildRuntime2["Node190rc"] = "node-19.0-rc";
125838
- BuildRuntime2["Node200rc"] = "node-20.0-rc";
125839
- BuildRuntime2["Node210rc"] = "node-21.0-rc";
125840
- BuildRuntime2["Node22rc"] = "node-22-rc";
125841
- BuildRuntime2["Node23rc"] = "node-23-rc";
125842
- BuildRuntime2["Node24rc"] = "node-24-rc";
125843
- BuildRuntime2["Node25rc"] = "node-25-rc";
125844
- BuildRuntime2["Php80rc"] = "php-8.0-rc";
125845
- BuildRuntime2["Php81rc"] = "php-8.1-rc";
125846
- BuildRuntime2["Php82rc"] = "php-8.2-rc";
125847
- BuildRuntime2["Php83rc"] = "php-8.3-rc";
125848
- BuildRuntime2["Php84rc"] = "php-8.4-rc";
125849
- BuildRuntime2["Ruby30rc"] = "ruby-3.0-rc";
125850
- BuildRuntime2["Ruby31rc"] = "ruby-3.1-rc";
125851
- BuildRuntime2["Ruby32rc"] = "ruby-3.2-rc";
125852
- BuildRuntime2["Ruby33rc"] = "ruby-3.3-rc";
125853
- BuildRuntime2["Ruby34rc"] = "ruby-3.4-rc";
125854
- BuildRuntime2["Ruby40rc"] = "ruby-4.0-rc";
125855
- BuildRuntime2["Python38rc"] = "python-3.8-rc";
125856
- BuildRuntime2["Python39rc"] = "python-3.9-rc";
125857
- BuildRuntime2["Python310rc"] = "python-3.10-rc";
125858
- BuildRuntime2["Python311rc"] = "python-3.11-rc";
125859
- BuildRuntime2["Python312rc"] = "python-3.12-rc";
125860
- BuildRuntime2["Python313rc"] = "python-3.13-rc";
125861
- BuildRuntime2["Python314rc"] = "python-3.14-rc";
125862
- BuildRuntime2["Pythonml311rc"] = "python-ml-3.11-rc";
125863
- BuildRuntime2["Pythonml312rc"] = "python-ml-3.12-rc";
125864
- BuildRuntime2["Pythonml313rc"] = "python-ml-3.13-rc";
125865
- BuildRuntime2["Deno140rc"] = "deno-1.40-rc";
125866
- BuildRuntime2["Deno146rc"] = "deno-1.46-rc";
125867
- BuildRuntime2["Deno20rc"] = "deno-2.0-rc";
125868
- BuildRuntime2["Deno25rc"] = "deno-2.5-rc";
125869
- BuildRuntime2["Deno26rc"] = "deno-2.6-rc";
125870
- BuildRuntime2["Dart215rc"] = "dart-2.15-rc";
125871
- BuildRuntime2["Dart216rc"] = "dart-2.16-rc";
125872
- BuildRuntime2["Dart217rc"] = "dart-2.17-rc";
125873
- BuildRuntime2["Dart218rc"] = "dart-2.18-rc";
125874
- BuildRuntime2["Dart219rc"] = "dart-2.19-rc";
125875
- BuildRuntime2["Dart30rc"] = "dart-3.0-rc";
125876
- BuildRuntime2["Dart31rc"] = "dart-3.1-rc";
125877
- BuildRuntime2["Dart33rc"] = "dart-3.3-rc";
125878
- BuildRuntime2["Dart35rc"] = "dart-3.5-rc";
125879
- BuildRuntime2["Dart38rc"] = "dart-3.8-rc";
125880
- BuildRuntime2["Dart39rc"] = "dart-3.9-rc";
125881
- BuildRuntime2["Dart310rc"] = "dart-3.10-rc";
125882
- BuildRuntime2["Dotnet60rc"] = "dotnet-6.0-rc";
125883
- BuildRuntime2["Dotnet70rc"] = "dotnet-7.0-rc";
125884
- BuildRuntime2["Dotnet80rc"] = "dotnet-8.0-rc";
125885
- BuildRuntime2["Dotnet10rc"] = "dotnet-10-rc";
125886
- BuildRuntime2["Java80rc"] = "java-8.0-rc";
125887
- BuildRuntime2["Java110rc"] = "java-11.0-rc";
125888
- BuildRuntime2["Java170rc"] = "java-17.0-rc";
125889
- BuildRuntime2["Java180rc"] = "java-18.0-rc";
125890
- BuildRuntime2["Java210rc"] = "java-21.0-rc";
125891
- BuildRuntime2["Java22rc"] = "java-22-rc";
125892
- BuildRuntime2["Java25rc"] = "java-25-rc";
125893
- BuildRuntime2["Swift55rc"] = "swift-5.5-rc";
125894
- BuildRuntime2["Swift58rc"] = "swift-5.8-rc";
125895
- BuildRuntime2["Swift59rc"] = "swift-5.9-rc";
125896
- BuildRuntime2["Swift510rc"] = "swift-5.10-rc";
125897
- BuildRuntime2["Swift62rc"] = "swift-6.2-rc";
125898
- BuildRuntime2["Kotlin16rc"] = "kotlin-1.6-rc";
125899
- BuildRuntime2["Kotlin18rc"] = "kotlin-1.8-rc";
125900
- BuildRuntime2["Kotlin19rc"] = "kotlin-1.9-rc";
125901
- BuildRuntime2["Kotlin20rc"] = "kotlin-2.0-rc";
125902
- BuildRuntime2["Kotlin23rc"] = "kotlin-2.3-rc";
125903
- BuildRuntime2["Cpp17rc"] = "cpp-17-rc";
125904
- BuildRuntime2["Cpp20rc"] = "cpp-20-rc";
125905
- BuildRuntime2["Bun10rc"] = "bun-1.0-rc";
125906
- BuildRuntime2["Bun11rc"] = "bun-1.1-rc";
125907
- BuildRuntime2["Bun12rc"] = "bun-1.2-rc";
125908
- BuildRuntime2["Bun13rc"] = "bun-1.3-rc";
125909
- BuildRuntime2["Go123rc"] = "go-1.23-rc";
125910
- BuildRuntime2["Go124rc"] = "go-1.24-rc";
125911
- BuildRuntime2["Go125rc"] = "go-1.25-rc";
125912
- BuildRuntime2["Go126rc"] = "go-1.26-rc";
125913
- BuildRuntime2["Static1rc"] = "static-1-rc";
125914
- BuildRuntime2["Flutter324rc"] = "flutter-3.24-rc";
125915
- BuildRuntime2["Flutter327rc"] = "flutter-3.27-rc";
125916
- BuildRuntime2["Flutter329rc"] = "flutter-3.29-rc";
125917
- BuildRuntime2["Flutter332rc"] = "flutter-3.32-rc";
125918
- BuildRuntime2["Flutter335rc"] = "flutter-3.35-rc";
125919
- BuildRuntime2["Flutter338rc"] = "flutter-3.38-rc";
125920
126239
  })(BuildRuntime || (BuildRuntime = {}));
125921
126240
  var Adapter;
125922
126241
  (function(Adapter2) {
@@ -125959,6 +126278,13 @@ var ImageGravity;
125959
126278
  ImageGravity2["Bottom"] = "bottom";
125960
126279
  ImageGravity2["Bottomright"] = "bottom-right";
125961
126280
  })(ImageGravity || (ImageGravity = {}));
126281
+ var TablesDBIndexType;
126282
+ (function(TablesDBIndexType2) {
126283
+ TablesDBIndexType2["Key"] = "key";
126284
+ TablesDBIndexType2["Fulltext"] = "fulltext";
126285
+ TablesDBIndexType2["Unique"] = "unique";
126286
+ TablesDBIndexType2["Spatial"] = "spatial";
126287
+ })(TablesDBIndexType || (TablesDBIndexType = {}));
125962
126288
  var PasswordHash;
125963
126289
  (function(PasswordHash2) {
125964
126290
  PasswordHash2["Sha1"] = "sha1";
@@ -125988,6 +126314,8 @@ var DatabaseType;
125988
126314
  (function(DatabaseType2) {
125989
126315
  DatabaseType2["Legacy"] = "legacy";
125990
126316
  DatabaseType2["Tablesdb"] = "tablesdb";
126317
+ DatabaseType2["Documentsdb"] = "documentsdb";
126318
+ DatabaseType2["Vectorsdb"] = "vectorsdb";
125991
126319
  })(DatabaseType || (DatabaseType = {}));
125992
126320
  var AttributeStatus;
125993
126321
  (function(AttributeStatus2) {
@@ -126666,12 +126994,16 @@ var questionsInitProject = [
126666
126994
  choices: async () => {
126667
126995
  const client2 = await sdkForConsole(true);
126668
126996
  const { teams: teams2 } = isCloud() ? await paginate(
126669
- async (opts = {}) => (await getOrganizationsService(opts.sdk)).list(),
126997
+ async (args) => (await getOrganizationsService(args.sdk)).list({
126998
+ queries: args.queries
126999
+ }),
126670
127000
  { sdk: client2 },
126671
127001
  100,
126672
127002
  "teams"
126673
127003
  ) : await paginate(
126674
- async (opts = {}) => (await getTeamsService(opts.sdk)).list(),
127004
+ async (args) => (await getTeamsService(args.sdk)).list({
127005
+ queries: args.queries
127006
+ }),
126675
127007
  { parseOutput: false, sdk: client2 },
126676
127008
  100,
126677
127009
  "teams"
@@ -126719,7 +127051,7 @@ var questionsInitProject = [
126719
127051
  JSON.stringify({ method: "orderDesc", attribute: "$id" })
126720
127052
  ];
126721
127053
  const { projects: projects2 } = await paginate(
126722
- async () => (await getProjectsService()).list(queries),
127054
+ async (args) => (await getProjectsService()).list(args.queries),
126723
127055
  { parseOutput: false },
126724
127056
  100,
126725
127057
  "projects",
@@ -126806,7 +127138,7 @@ var questionsPullFunctions = [
126806
127138
  validate: (value) => validateRequired("function", value),
126807
127139
  choices: async () => {
126808
127140
  const { functions: functions2 } = await paginate(
126809
- async () => (await getFunctionsService()).list(),
127141
+ async (args) => (await getFunctionsService()).list(args.queries),
126810
127142
  { parseOutput: false },
126811
127143
  100,
126812
127144
  "functions"
@@ -126845,7 +127177,7 @@ var questionsPullSites = [
126845
127177
  validate: (value) => validateRequired("site", value),
126846
127178
  choices: async () => {
126847
127179
  const { sites: sites2 } = await paginate(
126848
- async () => (await getSitesService()).list(),
127180
+ async (args) => (await getSitesService()).list(args.queries),
126849
127181
  { parseOutput: false },
126850
127182
  100,
126851
127183
  "sites"
@@ -128287,14 +128619,14 @@ var import_node_path7 = __toESM(require("node:path"), 1);
128287
128619
  var import_node_path8 = require("node:path");
128288
128620
  var import_node_fs6 = __toESM(require("node:fs"), 1);
128289
128621
  var import_node_path9 = __toESM(require("node:path"), 1);
128290
- var Nr = Object.defineProperty;
128291
- var Ar = (s3, t) => {
128292
- for (var e in t) Nr(s3, e, { get: t[e], enumerable: true });
128622
+ var kr = Object.defineProperty;
128623
+ var vr = (s3, t) => {
128624
+ for (var e in t) kr(s3, e, { get: t[e], enumerable: true });
128293
128625
  };
128294
128626
  var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
128295
- var Ir = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof import_node_stream.default || Cr(s3) || Fr(s3));
128296
- var Cr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
128297
- var Fr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
128627
+ var Br = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof import_node_stream.default || Pr(s3) || zr(s3));
128628
+ var Pr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
128629
+ var zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
128298
128630
  var q = /* @__PURE__ */ Symbol("EOF");
128299
128631
  var j = /* @__PURE__ */ Symbol("maybeEmitEnd");
128300
128632
  var rt = /* @__PURE__ */ Symbol("emittedEnd");
@@ -128327,10 +128659,10 @@ var Jt = /* @__PURE__ */ Symbol("signal");
128327
128659
  var yt = /* @__PURE__ */ Symbol("dataListeners");
128328
128660
  var C = /* @__PURE__ */ Symbol("discarded");
128329
128661
  var te = (s3) => Promise.resolve().then(s3);
128330
- var kr = (s3) => s3();
128331
- var vr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
128332
- var Mr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
128333
- var Br = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
128662
+ var Ur = (s3) => s3();
128663
+ var Hr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
128664
+ var Wr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
128665
+ var Gr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
128334
128666
  var Ce = class {
128335
128667
  src;
128336
128668
  dest;
@@ -128356,8 +128688,8 @@ var Oi = class extends Ce {
128356
128688
  super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
128357
128689
  }
128358
128690
  };
128359
- var Pr = (s3) => !!s3.objectMode;
128360
- var zr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
128691
+ var Zr = (s3) => !!s3.objectMode;
128692
+ var Yr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
128361
128693
  var D = class extends import_node_events.EventEmitter {
128362
128694
  [b] = false;
128363
128695
  [Qt] = false;
@@ -128383,7 +128715,7 @@ var D = class extends import_node_events.EventEmitter {
128383
128715
  constructor(...t) {
128384
128716
  let e = t[0] || {};
128385
128717
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
128386
- Pr(e) ? (this[L] = true, this[z2] = null) : zr(e) ? (this[z2] = e.encoding, this[L] = false) : (this[L] = false, this[z2] = null), this[Z] = !!e.async, this[Mt] = this[z2] ? new import_node_string_decoder.StringDecoder(this[z2]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
128718
+ Zr(e) ? (this[L] = true, this[z2] = null) : Yr(e) ? (this[z2] = e.encoding, this[L] = false) : (this[L] = false, this[z2] = null), this[Z] = !!e.async, this[Mt] = this[z2] ? new import_node_string_decoder.StringDecoder(this[z2]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
128387
128719
  let { signal: i } = e;
128388
128720
  i && (this[Jt] = i, i.aborted ? this[gi]() : i.addEventListener("abort", () => this[gi]()));
128389
128721
  }
@@ -128424,10 +128756,10 @@ var D = class extends import_node_events.EventEmitter {
128424
128756
  if (this[q]) throw new Error("write after end");
128425
128757
  if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
128426
128758
  typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
128427
- let r = this[Z] ? te : kr;
128759
+ let r = this[Z] ? te : Ur;
128428
128760
  if (!this[L] && !Buffer.isBuffer(t)) {
128429
- if (Br(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
128430
- else if (Mr(t)) t = Buffer.from(t);
128761
+ if (Gr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
128762
+ else if (Wr(t)) t = Buffer.from(t);
128431
128763
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
128432
128764
  }
128433
128765
  return this[L] ? (this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : t.length ? (typeof t == "string" && !(e === this[z2] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z2] && (t = this[Mt].write(t)), this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : (this[g] !== 0 && this.emit("readable"), i && r(i), this[b]);
@@ -128500,7 +128832,7 @@ var D = class extends import_node_events.EventEmitter {
128500
128832
  let i = super.on(t, e);
128501
128833
  if (t === "data") this[C] = false, this[yt]++, !this[A].length && !this[b] && this[Bt]();
128502
128834
  else if (t === "readable" && this[g] !== 0) super.emit("readable");
128503
- else if (vr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
128835
+ else if (Hr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
128504
128836
  else if (t === "error" && this[jt]) {
128505
128837
  let r = e;
128506
128838
  this[Z] ? te(() => r.call(this, this[jt])) : r.call(this, this[jt]);
@@ -128627,10 +128959,10 @@ var D = class extends import_node_events.EventEmitter {
128627
128959
  return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
128628
128960
  }
128629
128961
  static get isStream() {
128630
- return Ir;
128962
+ return Br;
128631
128963
  }
128632
128964
  };
128633
- var Hr = import_fs3.default.writev;
128965
+ var Vr = import_fs3.default.writev;
128634
128966
  var ot = /* @__PURE__ */ Symbol("_autoClose");
128635
128967
  var H = /* @__PURE__ */ Symbol("_close");
128636
128968
  var ee = /* @__PURE__ */ Symbol("_ended");
@@ -128823,7 +129155,7 @@ var tt = class extends import_events.default {
128823
129155
  else if (this[Y].length === 1) this[ke](this[Y].pop());
128824
129156
  else {
128825
129157
  let t = this[Y];
128826
- this[Y] = [], Hr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
129158
+ this[Y] = [], Vr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
128827
129159
  }
128828
129160
  }
128829
129161
  [H]() {
@@ -128863,21 +129195,21 @@ var Wt = class extends tt {
128863
129195
  }
128864
129196
  }
128865
129197
  };
128866
- var Wr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
129198
+ var $r = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
128867
129199
  var As = (s3) => !!s3.sync && !!s3.file;
128868
129200
  var Ds = (s3) => !s3.sync && !!s3.file;
128869
129201
  var Is = (s3) => !!s3.sync && !s3.file;
128870
129202
  var Cs = (s3) => !s3.sync && !s3.file;
128871
129203
  var Fs = (s3) => !!s3.file;
128872
- var Gr = (s3) => {
128873
- let t = Wr.get(s3);
129204
+ var Xr = (s3) => {
129205
+ let t = $r.get(s3);
128874
129206
  return t || s3;
128875
129207
  };
128876
129208
  var re = (s3 = {}) => {
128877
129209
  if (!s3) return {};
128878
129210
  let t = {};
128879
129211
  for (let [e, i] of Object.entries(s3)) {
128880
- let r = Gr(e);
129212
+ let r = Xr(e);
128881
129213
  t[r] = i;
128882
129214
  }
128883
129215
  return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
@@ -128900,13 +129232,13 @@ var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
128900
129232
  }
128901
129233
  throw new Error("impossible options??");
128902
129234
  }, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
128903
- var Yr = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
128904
- var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, Yr));
128905
- var Kr = import_buffer.Buffer.concat;
129235
+ var jr = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
129236
+ var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, jr));
129237
+ var Qr = import_buffer.Buffer.concat;
128906
129238
  var vs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
128907
- var Vr = (s3) => s3;
129239
+ var Jr = (s3) => s3;
128908
129240
  var ki = vs?.writable === true || vs?.set !== void 0 ? (s3) => {
128909
- import_buffer.Buffer.concat = s3 ? Vr : Kr;
129241
+ import_buffer.Buffer.concat = s3 ? Jr : Qr;
128910
129242
  } : (s3) => {
128911
129243
  };
128912
129244
  var Ot = /* @__PURE__ */ Symbol("_superWrite");
@@ -129067,15 +129399,15 @@ var Ye = class extends Ge {
129067
129399
  }
129068
129400
  };
129069
129401
  var Ms = (s3, t) => {
129070
- if (Number.isSafeInteger(s3)) s3 < 0 ? qr(s3, t) : Xr(s3, t);
129402
+ if (Number.isSafeInteger(s3)) s3 < 0 ? sn(s3, t) : en(s3, t);
129071
129403
  else throw Error("cannot encode number outside of javascript safe integer range");
129072
129404
  return t;
129073
129405
  };
129074
- var Xr = (s3, t) => {
129406
+ var en = (s3, t) => {
129075
129407
  t[0] = 128;
129076
129408
  for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
129077
129409
  };
129078
- var qr = (s3, t) => {
129410
+ var sn = (s3, t) => {
129079
129411
  t[0] = 255;
129080
129412
  var e = false;
129081
129413
  s3 = s3 * -1;
@@ -129085,19 +129417,19 @@ var qr = (s3, t) => {
129085
129417
  }
129086
129418
  };
129087
129419
  var Bs = (s3) => {
129088
- let t = s3[0], e = t === 128 ? Qr(s3.subarray(1, s3.length)) : t === 255 ? jr(s3) : null;
129420
+ let t = s3[0], e = t === 128 ? nn(s3.subarray(1, s3.length)) : t === 255 ? rn(s3) : null;
129089
129421
  if (e === null) throw Error("invalid base256 encoding");
129090
129422
  if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
129091
129423
  return e;
129092
129424
  };
129093
- var jr = (s3) => {
129425
+ var rn = (s3) => {
129094
129426
  for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
129095
129427
  var n = Number(s3[r]), o;
129096
129428
  i ? o = Ps(n) : n === 0 ? o = n : (i = true, o = zs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
129097
129429
  }
129098
129430
  return e;
129099
129431
  };
129100
- var Qr = (s3) => {
129432
+ var nn = (s3) => {
129101
129433
  for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
129102
129434
  var r = Number(s3[i]);
129103
129435
  r !== 0 && (e += r * Math.pow(256, t - i - 1));
@@ -129107,9 +129439,9 @@ var Qr = (s3) => {
129107
129439
  var Ps = (s3) => (255 ^ s3) & 255;
129108
129440
  var zs = (s3) => (255 ^ s3) + 1 & 255;
129109
129441
  var Bi = {};
129110
- Ar(Bi, { code: () => Ke, isCode: () => oe, isName: () => tn, name: () => he });
129442
+ vr(Bi, { code: () => Ke, isCode: () => oe, isName: () => hn, name: () => he });
129111
129443
  var oe = (s3) => he.has(s3);
129112
- var tn = (s3) => Ke.has(s3);
129444
+ var hn = (s3) => Ke.has(s3);
129113
129445
  var he = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
129114
129446
  var Ke = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
129115
129447
  var F = class {
@@ -129158,7 +129490,7 @@ var F = class {
129158
129490
  }
129159
129491
  encode(t, e = 0) {
129160
129492
  if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
129161
- let i = this.ctime || this.atime ? 130 : 155, r = en(this.path || "", i), n = r[0], o = r[1];
129493
+ let i = this.ctime || this.atime ? 130 : 155, r = an(this.path || "", i), n = r[0], o = r[1];
129162
129494
  this.needPax = !!r[2], this.needPax = xt(t, e, 100, n) || this.needPax, this.needPax = lt(t, e + 100, 8, this.mode) || this.needPax, this.needPax = lt(t, e + 108, 8, this.uid) || this.needPax, this.needPax = lt(t, e + 116, 8, this.gid) || this.needPax, this.needPax = lt(t, e + 124, 12, this.size) || this.needPax, this.needPax = zi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = xt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = xt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = xt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = lt(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = lt(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = xt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = xt(t, e + 345, 155, o) || this.needPax : (this.needPax = xt(t, e + 345, 130, o) || this.needPax, this.needPax = zi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = zi(t, e + 488, 12, this.ctime) || this.needPax);
129163
129495
  let h = 256;
129164
129496
  for (let a = e; a < e + 148; a++) h += t[a];
@@ -129178,7 +129510,7 @@ var F = class {
129178
129510
  else throw new TypeError("invalid entry type: " + t);
129179
129511
  }
129180
129512
  };
129181
- var en = (s3, t) => {
129513
+ var an = (s3, t) => {
129182
129514
  let i = s3, r = "", n, o = import_node_path2.posix.parse(s3).root || ".";
129183
129515
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
129184
129516
  else {
@@ -129191,19 +129523,19 @@ var en = (s3, t) => {
129191
129523
  return n;
129192
129524
  };
129193
129525
  var Tt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
129194
- var Pi = (s3, t, e) => sn(at(s3, t, e));
129195
- var sn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
129196
- var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : nn(s3, t, e);
129197
- var rn = (s3) => isNaN(s3) ? void 0 : s3;
129198
- var nn = (s3, t, e) => rn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
129199
- var on = { 12: 8589934591, 8: 2097151 };
129200
- var lt = (s3, t, e, i) => i === void 0 ? false : i > on[e] || i < 0 ? (Ms(i, s3.subarray(t, t + e)), true) : (hn(s3, t, e, i), false);
129201
- var hn = (s3, t, e, i) => s3.write(an(i, e), t, e, "ascii");
129202
- var an = (s3, t) => ln(Math.floor(s3).toString(8), t);
129203
- var ln = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
129526
+ var Pi = (s3, t, e) => ln(at(s3, t, e));
129527
+ var ln = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
129528
+ var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : fn(s3, t, e);
129529
+ var cn = (s3) => isNaN(s3) ? void 0 : s3;
129530
+ var fn = (s3, t, e) => cn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
129531
+ var dn = { 12: 8589934591, 8: 2097151 };
129532
+ var lt = (s3, t, e, i) => i === void 0 ? false : i > dn[e] || i < 0 ? (Ms(i, s3.subarray(t, t + e)), true) : (un(s3, t, e, i), false);
129533
+ var un = (s3, t, e, i) => s3.write(mn(i, e), t, e, "ascii");
129534
+ var mn = (s3, t) => pn(Math.floor(s3).toString(8), t);
129535
+ var pn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
129204
129536
  var zi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
129205
- var cn = new Array(156).join("\0");
129206
- var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + cn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
129537
+ var En = new Array(156).join("\0");
129538
+ var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + En, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
129207
129539
  var ct = class s {
129208
129540
  atime;
129209
129541
  mtime;
@@ -129244,13 +129576,13 @@ var ct = class s {
129244
129576
  return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
129245
129577
  }
129246
129578
  static parse(t, e, i = false) {
129247
- return new s(dn(un(t), e), i);
129579
+ return new s(Sn(yn(t), e), i);
129248
129580
  }
129249
129581
  };
129250
- var dn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
129251
- var un = (s3) => s3.replace(/\n$/, "").split(`
129252
- `).reduce(mn, /* @__PURE__ */ Object.create(null));
129253
- var mn = (s3, t) => {
129582
+ var Sn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
129583
+ var yn = (s3) => s3.replace(/\n$/, "").split(`
129584
+ `).reduce(Rn, /* @__PURE__ */ Object.create(null));
129585
+ var Rn = (s3, t) => {
129254
129586
  let e = parseInt(t, 10);
129255
129587
  if (e !== Buffer.byteLength(t) + 1) return s3;
129256
129588
  t = t.slice((e + " ").length);
@@ -129259,8 +129591,8 @@ var mn = (s3, t) => {
129259
129591
  let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
129260
129592
  return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
129261
129593
  };
129262
- var pn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
129263
- var f = pn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
129594
+ var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
129595
+ var f = bn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
129264
129596
  var Yt = class extends D {
129265
129597
  extended;
129266
129598
  globalExtended;
@@ -129328,10 +129660,10 @@ var Yt = class extends D {
129328
129660
  var Lt = (s3, t, e, i = {}) => {
129329
129661
  s3.file && (i.file = s3.file), s3.cwd && (i.cwd = s3.cwd), i.code = e instanceof Error && e.code || t, i.tarCode = t, !s3.strict && i.recoverable !== false ? (e instanceof Error && (i = Object.assign(e, i), e = e.message), s3.emit("warn", t, e, i)) : e instanceof Error ? s3.emit("error", Object.assign(e, i)) : s3.emit("error", Object.assign(new Error(`${t}: ${e}`), i));
129330
129662
  };
129331
- var wn = 1024 * 1024;
129663
+ var gn = 1024 * 1024;
129332
129664
  var Zi = Buffer.from([31, 139]);
129333
129665
  var Yi = Buffer.from([40, 181, 47, 253]);
129334
- var Sn = Math.max(Zi.length, Yi.length);
129666
+ var On = Math.max(Zi.length, Yi.length);
129335
129667
  var B = /* @__PURE__ */ Symbol("state");
129336
129668
  var Nt = /* @__PURE__ */ Symbol("writeEntry");
129337
129669
  var et = /* @__PURE__ */ Symbol("readEntry");
@@ -129362,7 +129694,7 @@ var Dt = /* @__PURE__ */ Symbol("sawValidEntry");
129362
129694
  var je = /* @__PURE__ */ Symbol("sawNullBlock");
129363
129695
  var Qe = /* @__PURE__ */ Symbol("sawEOF");
129364
129696
  var Zs = /* @__PURE__ */ Symbol("closeStream");
129365
- var yn = () => true;
129697
+ var Tn = () => true;
129366
129698
  var st = class extends import_events2.EventEmitter {
129367
129699
  file;
129368
129700
  strict;
@@ -129394,7 +129726,7 @@ var st = class extends import_events2.EventEmitter {
129394
129726
  (this[B] === "begin" || this[Dt] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
129395
129727
  }), t.ondone ? this.on(qe, t.ondone) : this.on(qe, () => {
129396
129728
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
129397
- }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || wn, this.filter = typeof t.filter == "function" ? t.filter : yn;
129729
+ }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || gn, this.filter = typeof t.filter == "function" ? t.filter : Tn;
129398
129730
  let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
129399
129731
  this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
129400
129732
  let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
@@ -129494,7 +129826,7 @@ var st = class extends import_events2.EventEmitter {
129494
129826
  write(t, e, i) {
129495
129827
  if (typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8")), this[ut]) return i?.(), false;
129496
129828
  if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
129497
- if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < Sn) return this[p] = t, i?.(), true;
129829
+ if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < On) return this[p] = t, i?.(), true;
129498
129830
  for (let a = 0; this[y] === void 0 && a < Zi.length; a++) t[a] !== Zi[a] && (this[y] = false);
129499
129831
  let o = false;
129500
129832
  if (this[y] === false && this.zstd !== false) {
@@ -129584,7 +129916,7 @@ var mt = (s3) => {
129584
129916
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
129585
129917
  return e === -1 ? s3 : s3.slice(0, e);
129586
129918
  };
129587
- var _n = (s3) => {
129919
+ var Nn = (s3) => {
129588
129920
  let t = s3.onReadEntry;
129589
129921
  s3.onReadEntry = t ? (e) => {
129590
129922
  t(e), e.resume();
@@ -129602,7 +129934,7 @@ var Ki = (s3, t) => {
129602
129934
  };
129603
129935
  s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
129604
129936
  };
129605
- var gn = (s3) => {
129937
+ var An = (s3) => {
129606
129938
  let t = new st(s3), e = s3.file, i;
129607
129939
  try {
129608
129940
  i = import_node_fs.default.openSync(e, "r");
@@ -129626,7 +129958,7 @@ var gn = (s3) => {
129626
129958
  }
129627
129959
  }
129628
129960
  };
129629
- var On = (s3, t) => {
129961
+ var Dn = (s3, t) => {
129630
129962
  let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
129631
129963
  return new Promise((o, h) => {
129632
129964
  e.on("error", h), e.on("end", o), import_node_fs.default.stat(r, (a, l) => {
@@ -129638,14 +129970,14 @@ var On = (s3, t) => {
129638
129970
  });
129639
129971
  });
129640
129972
  };
129641
- var It = K(gn, On, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
129642
- t?.length && Ki(s3, t), s3.noResume || _n(s3);
129973
+ var It = K(An, Dn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
129974
+ t?.length && Ki(s3, t), s3.noResume || Nn(s3);
129643
129975
  });
129644
129976
  var Vi = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
129645
- var { isAbsolute: xn, parse: Ys } = import_node_path4.win32;
129977
+ var { isAbsolute: Cn, parse: Ys } = import_node_path4.win32;
129646
129978
  var ce = (s3) => {
129647
129979
  let t = "", e = Ys(s3);
129648
- for (; xn(s3) || e.root; ) {
129980
+ for (; Cn(s3) || e.root; ) {
129649
129981
  let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
129650
129982
  s3 = s3.slice(i.length), t += i, e = Ys(s3);
129651
129983
  }
@@ -129653,12 +129985,12 @@ var ce = (s3) => {
129653
129985
  };
129654
129986
  var Je = ["|", "<", ">", "?", ":"];
129655
129987
  var $i = Je.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
129656
- var Ln = new Map(Je.map((s3, t) => [s3, $i[t]]));
129657
- var Nn = new Map($i.map((s3, t) => [s3, Je[t]]));
129658
- var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Ln.get(e)), s3);
129659
- var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(Nn.get(e)), s3);
129988
+ var Fn = new Map(Je.map((s3, t) => [s3, $i[t]]));
129989
+ var kn = new Map($i.map((s3, t) => [s3, Je[t]]));
129990
+ var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Fn.get(e)), s3);
129991
+ var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(kn.get(e)), s3);
129660
129992
  var Js = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
129661
- var An = 16 * 1024 * 1024;
129993
+ var vn = 16 * 1024 * 1024;
129662
129994
  var Xs = /* @__PURE__ */ Symbol("process");
129663
129995
  var qs = /* @__PURE__ */ Symbol("file");
129664
129996
  var js = /* @__PURE__ */ Symbol("directory");
@@ -129710,7 +130042,7 @@ var de = class extends D {
129710
130042
  #t = false;
129711
130043
  constructor(t, e = {}) {
129712
130044
  let i = re(e);
129713
- super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || An, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
130045
+ super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || vn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
129714
130046
  let r = false;
129715
130047
  if (!this.preservePaths) {
129716
130048
  let [o, h] = ce(this.path);
@@ -129733,7 +130065,7 @@ var de = class extends D {
129733
130065
  });
129734
130066
  }
129735
130067
  [ei](t) {
129736
- this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Dn(t), this.emit("stat", t), this[Xs]();
130068
+ this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Mn(t), this.emit("stat", t), this[Xs]();
129737
130069
  }
129738
130070
  [Xs]() {
129739
130071
  switch (this.type) {
@@ -129939,7 +130271,7 @@ var ri = class extends D {
129939
130271
  return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e ?? "utf8")), i && this.once("finish", i), t ? super.end(t, i) : super.end(i), this;
129940
130272
  }
129941
130273
  };
129942
- var Dn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
130274
+ var Mn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
129943
130275
  var ni = class s2 {
129944
130276
  tail;
129945
130277
  head;
@@ -129971,11 +130303,11 @@ var ni = class s2 {
129971
130303
  t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
129972
130304
  }
129973
130305
  push(...t) {
129974
- for (let e = 0, i = t.length; e < i; e++) Cn(this, t[e]);
130306
+ for (let e = 0, i = t.length; e < i; e++) Pn(this, t[e]);
129975
130307
  return this.length;
129976
130308
  }
129977
130309
  unshift(...t) {
129978
- for (var e = 0, i = t.length; e < i; e++) Fn(this, t[e]);
130310
+ for (var e = 0, i = t.length; e < i; e++) zn(this, t[e]);
129979
130311
  return this.length;
129980
130312
  }
129981
130313
  pop() {
@@ -130071,7 +130403,7 @@ var ni = class s2 {
130071
130403
  let n = [];
130072
130404
  for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
130073
130405
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
130074
- for (let o of i) r = In(this, r, o);
130406
+ for (let o of i) r = Bn(this, r, o);
130075
130407
  return n;
130076
130408
  }
130077
130409
  reverse() {
@@ -130083,14 +130415,14 @@ var ni = class s2 {
130083
130415
  return this.head = e, this.tail = t, this;
130084
130416
  }
130085
130417
  };
130086
- function In(s3, t, e) {
130418
+ function Bn(s3, t, e) {
130087
130419
  let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
130088
130420
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
130089
130421
  }
130090
- function Cn(s3, t) {
130422
+ function Pn(s3, t) {
130091
130423
  s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
130092
130424
  }
130093
- function Fn(s3, t) {
130425
+ function zn(s3, t) {
130094
130426
  s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
130095
130427
  }
130096
130428
  var ue = class {
@@ -130319,11 +130651,11 @@ var kt = class extends Et {
130319
130651
  });
130320
130652
  }
130321
130653
  };
130322
- var kn = (s3, t) => {
130654
+ var Un = (s3, t) => {
130323
130655
  let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
130324
130656
  e.pipe(i), or(e, t);
130325
130657
  };
130326
- var vn = (s3, t) => {
130658
+ var Hn = (s3, t) => {
130327
130659
  let e = new Et(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
130328
130660
  e.pipe(i);
130329
130661
  let r = new Promise((n, o) => {
@@ -130342,25 +130674,26 @@ var hr = async (s3, t) => {
130342
130674
  } }) : s3.add(e);
130343
130675
  s3.end();
130344
130676
  };
130345
- var Mn = (s3, t) => {
130677
+ var Wn = (s3, t) => {
130346
130678
  let e = new kt(s3);
130347
130679
  return or(e, t), e;
130348
130680
  };
130349
- var Bn = (s3, t) => {
130681
+ var Gn = (s3, t) => {
130350
130682
  let e = new Et(s3);
130351
130683
  return hr(e, t).catch((i) => e.emit("error", i)), e;
130352
130684
  };
130353
- var Pn = K(kn, vn, Mn, Bn, (s3, t) => {
130685
+ var Zn = K(Un, Hn, Wn, Gn, (s3, t) => {
130354
130686
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
130355
130687
  });
130356
- var zn = process.env.__FAKE_PLATFORM__ || process.platform;
130357
- var Un = zn === "win32";
130358
- var { O_CREAT: Hn, O_TRUNC: Wn, O_WRONLY: Gn } = import_fs6.default.constants;
130359
- var lr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs6.default.constants.UV_FS_O_FILEMAP || 0;
130360
- var Zn = Un && !!lr;
130361
- var Yn = 512 * 1024;
130362
- var Kn = lr | Wn | Hn | Gn;
130363
- var cs = Zn ? (s3) => s3 < Yn ? Kn : "w" : () => "w";
130688
+ var Yn = process.env.__FAKE_PLATFORM__ || process.platform;
130689
+ var fr = Yn === "win32";
130690
+ var { O_CREAT: dr, O_NOFOLLOW: ar, O_TRUNC: ur, O_WRONLY: mr } = import_fs6.default.constants;
130691
+ var pr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs6.default.constants.UV_FS_O_FILEMAP || 0;
130692
+ var Kn = fr && !!pr;
130693
+ var Vn = 512 * 1024;
130694
+ var $n = pr | ur | dr | mr;
130695
+ var lr = !fr && typeof ar == "number" ? ar | ur | dr | mr : null;
130696
+ var cs = lr !== null ? () => lr : Kn ? (s3) => s3 < Vn ? $n : "w" : () => "w";
130364
130697
  var fs3 = (s3, t, e) => {
130365
130698
  try {
130366
130699
  return import_node_fs4.default.lchownSync(s3, t, e);
@@ -130373,7 +130706,7 @@ var ui = (s3, t, e, i) => {
130373
130706
  i(r && r?.code !== "ENOENT" ? r : null);
130374
130707
  });
130375
130708
  };
130376
- var Vn = (s3, t, e, i, r) => {
130709
+ var Xn = (s3, t, e, i, r) => {
130377
130710
  if (t.isDirectory()) ds(import_node_path6.default.resolve(s3, t.name), e, i, (n) => {
130378
130711
  if (n) return r(n);
130379
130712
  let o = import_node_path6.default.resolve(s3, t.name);
@@ -130397,10 +130730,10 @@ var ds = (s3, t, e, i) => {
130397
130730
  if (--o === 0) return ui(s3, t, e, i);
130398
130731
  }
130399
130732
  };
130400
- for (let l of n) Vn(s3, l, t, e, a);
130733
+ for (let l of n) Xn(s3, l, t, e, a);
130401
130734
  });
130402
130735
  };
130403
- var $n = (s3, t, e, i) => {
130736
+ var qn = (s3, t, e, i) => {
130404
130737
  t.isDirectory() && us(import_node_path6.default.resolve(s3, t.name), e, i), fs3(import_node_path6.default.resolve(s3, t.name), e, i);
130405
130738
  };
130406
130739
  var us = (s3, t, e) => {
@@ -130413,7 +130746,7 @@ var us = (s3, t, e) => {
130413
130746
  if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return fs3(s3, t, e);
130414
130747
  throw n;
130415
130748
  }
130416
- for (let r of i) $n(s3, r, t, e);
130749
+ for (let r of i) qn(s3, r, t, e);
130417
130750
  return fs3(s3, t, e);
130418
130751
  };
130419
130752
  var we = class extends Error {
@@ -130439,17 +130772,17 @@ var wt = class extends Error {
130439
130772
  return "SymlinkError";
130440
130773
  }
130441
130774
  };
130442
- var qn = (s3, t) => {
130775
+ var Qn = (s3, t) => {
130443
130776
  import_node_fs5.default.stat(s3, (e, i) => {
130444
130777
  (e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
130445
130778
  });
130446
130779
  };
130447
- var cr = (s3, t, e) => {
130780
+ var Er = (s3, t, e) => {
130448
130781
  s3 = f(s3);
130449
130782
  let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, h = t.gid, a = typeof o == "number" && typeof h == "number" && (o !== t.processUid || h !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
130450
130783
  E ? e(E) : x && a ? ds(x, o, h, (xe) => S(xe)) : n ? import_node_fs5.default.chmod(s3, r, e) : e();
130451
130784
  };
130452
- if (s3 === d) return qn(s3, S);
130785
+ if (s3 === d) return Qn(s3, S);
130453
130786
  if (l) return import_promises.default.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
130454
130787
  let N = f(import_node_path7.default.relative(d, s3)).split("/");
130455
130788
  ms(d, N, r, c, d, void 0, S);
@@ -130457,15 +130790,15 @@ var cr = (s3, t, e) => {
130457
130790
  var ms = (s3, t, e, i, r, n, o) => {
130458
130791
  if (t.length === 0) return o(null, n);
130459
130792
  let h = t.shift(), a = f(import_node_path7.default.resolve(s3 + "/" + h));
130460
- import_node_fs5.default.mkdir(a, e, fr(a, t, e, i, r, n, o));
130793
+ import_node_fs5.default.mkdir(a, e, wr(a, t, e, i, r, n, o));
130461
130794
  };
130462
- var fr = (s3, t, e, i, r, n, o) => (h) => {
130795
+ var wr = (s3, t, e, i, r, n, o) => (h) => {
130463
130796
  h ? import_node_fs5.default.lstat(s3, (a, l) => {
130464
130797
  if (a) a.path = a.path && f(a.path), o(a);
130465
130798
  else if (l.isDirectory()) ms(s3, t, e, i, r, n, o);
130466
130799
  else if (i) import_node_fs5.default.unlink(s3, (c) => {
130467
130800
  if (c) return o(c);
130468
- import_node_fs5.default.mkdir(s3, e, fr(s3, t, e, i, r, n, o));
130801
+ import_node_fs5.default.mkdir(s3, e, wr(s3, t, e, i, r, n, o));
130469
130802
  });
130470
130803
  else {
130471
130804
  if (l.isSymbolicLink()) return o(new wt(s3, s3 + "/" + t.join("/")));
@@ -130473,7 +130806,7 @@ var fr = (s3, t, e, i, r, n, o) => (h) => {
130473
130806
  }
130474
130807
  }) : (n = n || s3, ms(s3, t, e, i, r, n, o));
130475
130808
  };
130476
- var jn = (s3) => {
130809
+ var Jn = (s3) => {
130477
130810
  let t = false, e;
130478
130811
  try {
130479
130812
  t = import_node_fs5.default.statSync(s3).isDirectory();
@@ -130483,12 +130816,12 @@ var jn = (s3) => {
130483
130816
  if (!t) throw new we(s3, e ?? "ENOTDIR");
130484
130817
  }
130485
130818
  };
130486
- var dr = (s3, t) => {
130819
+ var Sr = (s3, t) => {
130487
130820
  s3 = f(s3);
130488
130821
  let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, h = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), a = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
130489
130822
  E && h && us(E, n, o), r && import_node_fs5.default.chmodSync(s3, i);
130490
130823
  };
130491
- if (s3 === c) return jn(c), d();
130824
+ if (s3 === c) return Jn(c), d();
130492
130825
  if (a) return d(import_node_fs5.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
130493
130826
  let T = f(import_node_path7.default.relative(c, s3)).split("/"), N;
130494
130827
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
@@ -130507,19 +130840,19 @@ var dr = (s3, t) => {
130507
130840
  return d(N);
130508
130841
  };
130509
130842
  var ps = /* @__PURE__ */ Object.create(null);
130510
- var ur = 1e4;
130843
+ var yr = 1e4;
130511
130844
  var $t = /* @__PURE__ */ new Set();
130512
- var mr = (s3) => {
130845
+ var Rr = (s3) => {
130513
130846
  $t.has(s3) ? $t.delete(s3) : ps[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
130514
- let t = ps[s3], e = $t.size - ur;
130515
- if (e > ur / 10) {
130847
+ let t = ps[s3], e = $t.size - yr;
130848
+ if (e > yr / 10) {
130516
130849
  for (let i of $t) if ($t.delete(i), delete ps[i], --e <= 0) break;
130517
130850
  }
130518
130851
  return t;
130519
130852
  };
130520
- var Qn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
130521
- var Jn = Qn === "win32";
130522
- var to = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
130853
+ var to = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
130854
+ var eo = to === "win32";
130855
+ var io = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
130523
130856
  let r = e.at(-1);
130524
130857
  return r !== void 0 && (i = (0, import_node_path8.join)(r, i)), e.push(i || "/"), e;
130525
130858
  }, []);
@@ -130528,8 +130861,8 @@ var Ei = class {
130528
130861
  #i = /* @__PURE__ */ new Map();
130529
130862
  #s = /* @__PURE__ */ new Set();
130530
130863
  reserve(t, e) {
130531
- t = Jn ? ["win32 parallelization disabled"] : t.map((r) => mt((0, import_node_path8.join)(mr(r))));
130532
- let i = new Set(t.map((r) => to(r)).reduce((r, n) => r.concat(n)));
130864
+ t = eo ? ["win32 parallelization disabled"] : t.map((r) => mt((0, import_node_path8.join)(Rr(r))));
130865
+ let i = new Set(t.map((r) => io(r)).reduce((r, n) => r.concat(n)));
130533
130866
  this.#i.set(e, { dirs: i, paths: t });
130534
130867
  for (let r of t) {
130535
130868
  let n = this.#t.get(r);
@@ -130587,25 +130920,25 @@ var Ei = class {
130587
130920
  return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
130588
130921
  }
130589
130922
  };
130590
- var Er = () => process.umask();
130591
- var wr = /* @__PURE__ */ Symbol("onEntry");
130923
+ var _r = () => process.umask();
130924
+ var gr = /* @__PURE__ */ Symbol("onEntry");
130592
130925
  var ys = /* @__PURE__ */ Symbol("checkFs");
130593
- var Sr = /* @__PURE__ */ Symbol("checkFs2");
130926
+ var Or = /* @__PURE__ */ Symbol("checkFs2");
130594
130927
  var Rs = /* @__PURE__ */ Symbol("isReusable");
130595
130928
  var P = /* @__PURE__ */ Symbol("makeFs");
130596
130929
  var bs = /* @__PURE__ */ Symbol("file");
130597
130930
  var _s = /* @__PURE__ */ Symbol("directory");
130598
130931
  var Si = /* @__PURE__ */ Symbol("link");
130599
- var yr = /* @__PURE__ */ Symbol("symlink");
130600
- var Rr = /* @__PURE__ */ Symbol("hardlink");
130932
+ var Tr = /* @__PURE__ */ Symbol("symlink");
130933
+ var xr = /* @__PURE__ */ Symbol("hardlink");
130601
130934
  var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
130602
- var br = /* @__PURE__ */ Symbol("unsupported");
130603
- var _r = /* @__PURE__ */ Symbol("checkPath");
130935
+ var Lr = /* @__PURE__ */ Symbol("unsupported");
130936
+ var Nr = /* @__PURE__ */ Symbol("checkPath");
130604
130937
  var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
130605
130938
  var St = /* @__PURE__ */ Symbol("mkdir");
130606
130939
  var O = /* @__PURE__ */ Symbol("onError");
130607
130940
  var wi = /* @__PURE__ */ Symbol("pending");
130608
- var gr = /* @__PURE__ */ Symbol("pend");
130941
+ var Ar = /* @__PURE__ */ Symbol("pend");
130609
130942
  var Xt = /* @__PURE__ */ Symbol("unpend");
130610
130943
  var ws = /* @__PURE__ */ Symbol("ended");
130611
130944
  var Ss = /* @__PURE__ */ Symbol("maybeClose");
@@ -130614,10 +130947,10 @@ var Re = /* @__PURE__ */ Symbol("doChown");
130614
130947
  var be = /* @__PURE__ */ Symbol("uid");
130615
130948
  var _e = /* @__PURE__ */ Symbol("gid");
130616
130949
  var ge = /* @__PURE__ */ Symbol("checkedCwd");
130617
- var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
130618
- var Oe = io === "win32";
130619
- var so = 1024;
130620
- var ro = (s3, t) => {
130950
+ var ro = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
130951
+ var Oe = ro === "win32";
130952
+ var no = 1024;
130953
+ var oo = (s3, t) => {
130621
130954
  if (!Oe) return import_node_fs3.default.unlink(s3, t);
130622
130955
  let e = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
130623
130956
  import_node_fs3.default.rename(s3, e, (i) => {
@@ -130625,12 +130958,12 @@ var ro = (s3, t) => {
130625
130958
  import_node_fs3.default.unlink(e, t);
130626
130959
  });
130627
130960
  };
130628
- var no = (s3) => {
130961
+ var ho = (s3) => {
130629
130962
  if (!Oe) return import_node_fs3.default.unlinkSync(s3);
130630
130963
  let t = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
130631
130964
  import_node_fs3.default.renameSync(s3, t), import_node_fs3.default.unlinkSync(t);
130632
130965
  };
130633
- var Or = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
130966
+ var Dr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
130634
130967
  var qt = class extends st {
130635
130968
  [ws] = false;
130636
130969
  [ge] = false;
@@ -130668,7 +131001,7 @@ var qt = class extends st {
130668
131001
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
130669
131002
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
130670
131003
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
130671
- this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : so, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Oe, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(import_node_path5.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Er() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[wr](e));
131004
+ this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : no, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Oe, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(import_node_path5.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : _r() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[gr](e));
130672
131005
  }
130673
131006
  warn(t, e, i = {}) {
130674
131007
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
@@ -130687,7 +131020,7 @@ var qt = class extends st {
130687
131020
  }
130688
131021
  return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
130689
131022
  }
130690
- [_r](t) {
131023
+ [Nr](t) {
130691
131024
  let e = f(t.path), i = e.split("/");
130692
131025
  if (this.strip) {
130693
131026
  if (i.length < this.strip) return false;
@@ -130710,8 +131043,8 @@ var qt = class extends st {
130710
131043
  }
130711
131044
  return true;
130712
131045
  }
130713
- [wr](t) {
130714
- if (!this[_r](t)) return t.resume();
131046
+ [gr](t) {
131047
+ if (!this[Nr](t)) return t.resume();
130715
131048
  switch (import_node_assert.default.equal(typeof t.absolute, "string"), t.type) {
130716
131049
  case "Directory":
130717
131050
  case "GNUDumpDir":
@@ -130723,23 +131056,23 @@ var qt = class extends st {
130723
131056
  case "SymbolicLink":
130724
131057
  return this[ys](t);
130725
131058
  default:
130726
- return this[br](t);
131059
+ return this[Lr](t);
130727
131060
  }
130728
131061
  }
130729
131062
  [O](t, e) {
130730
131063
  t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
130731
131064
  }
130732
131065
  [St](t, e, i) {
130733
- cr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
131066
+ Er(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
130734
131067
  }
130735
131068
  [Re](t) {
130736
131069
  return this.forceChown || this.preserveOwner && (typeof t.uid == "number" && t.uid !== this.processUid || typeof t.gid == "number" && t.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
130737
131070
  }
130738
131071
  [be](t) {
130739
- return Or(this.uid, t.uid, this.processUid);
131072
+ return Dr(this.uid, t.uid, this.processUid);
130740
131073
  }
130741
131074
  [_e](t) {
130742
- return Or(this.gid, t.gid, this.processGid);
131075
+ return Dr(this.gid, t.gid, this.processGid);
130743
131076
  }
130744
131077
  [bs](t, e) {
130745
131078
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: cs(t.size), mode: i, autoClose: false });
@@ -130789,16 +131122,16 @@ var qt = class extends st {
130789
131122
  t.mtime && !this.noMtime && (n++, import_node_fs3.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, import_node_fs3.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
130790
131123
  });
130791
131124
  }
130792
- [br](t) {
131125
+ [Lr](t) {
130793
131126
  t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
130794
131127
  }
130795
- [yr](t, e) {
131128
+ [Tr](t, e) {
130796
131129
  let i = f(import_node_path5.default.relative(this.cwd, import_node_path5.default.resolve(import_node_path5.default.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
130797
131130
  this[ye](t, this.cwd, i, () => this[Si](t, String(t.linkpath), "symlink", e), (r) => {
130798
131131
  this[O](r, t), e();
130799
131132
  });
130800
131133
  }
130801
- [Rr](t, e) {
131134
+ [xr](t, e) {
130802
131135
  let i = f(import_node_path5.default.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
130803
131136
  this[ye](t, this.cwd, r, () => this[Si](t, i, "link", e), (n) => {
130804
131137
  this[O](n, t), e();
@@ -130814,7 +131147,7 @@ var qt = class extends st {
130814
131147
  this[ye](t, h, i, r, n);
130815
131148
  });
130816
131149
  }
130817
- [gr]() {
131150
+ [Ar]() {
130818
131151
  this[wi]++;
130819
131152
  }
130820
131153
  [Xt]() {
@@ -130827,11 +131160,11 @@ var qt = class extends st {
130827
131160
  return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
130828
131161
  }
130829
131162
  [ys](t) {
130830
- this[gr]();
131163
+ this[Ar]();
130831
131164
  let e = [t.path];
130832
- t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Sr](t, i));
131165
+ t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Or](t, i));
130833
131166
  }
130834
- [Sr](t, e) {
131167
+ [Or](t, e) {
130835
131168
  let i = (h) => {
130836
131169
  e(h);
130837
131170
  }, r = () => {
@@ -130869,7 +131202,7 @@ var qt = class extends st {
130869
131202
  if (t.absolute !== this.cwd) return import_node_fs3.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
130870
131203
  }
130871
131204
  if (t.absolute === this.cwd) return this[P](null, t, i);
130872
- ro(String(t.absolute), (l) => this[P](l ?? null, t, i));
131205
+ oo(String(t.absolute), (l) => this[P](l ?? null, t, i));
130873
131206
  });
130874
131207
  };
130875
131208
  this[ge] ? n() : r();
@@ -130885,9 +131218,9 @@ var qt = class extends st {
130885
131218
  case "ContiguousFile":
130886
131219
  return this[bs](e, i);
130887
131220
  case "Link":
130888
- return this[Rr](e, i);
131221
+ return this[xr](e, i);
130889
131222
  case "SymbolicLink":
130890
- return this[yr](e, i);
131223
+ return this[Tr](e, i);
130891
131224
  case "Directory":
130892
131225
  case "GNUDumpDir":
130893
131226
  return this[_s](e, i);
@@ -130938,7 +131271,7 @@ var Te = class extends qt {
130938
131271
  let [n] = Se(() => import_node_fs3.default.rmdirSync(String(t.absolute)));
130939
131272
  this[P](n, t);
130940
131273
  }
130941
- let [r] = t.absolute === this.cwd ? [] : Se(() => no(String(t.absolute)));
131274
+ let [r] = t.absolute === this.cwd ? [] : Se(() => ho(String(t.absolute)));
130942
131275
  this[P](r, t);
130943
131276
  }
130944
131277
  [bs](t, e) {
@@ -131010,7 +131343,7 @@ var Te = class extends qt {
131010
131343
  }
131011
131344
  [St](t, e) {
131012
131345
  try {
131013
- return dr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
131346
+ return Sr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
131014
131347
  } catch (i) {
131015
131348
  return i;
131016
131349
  }
@@ -131035,11 +131368,11 @@ var Te = class extends qt {
131035
131368
  }
131036
131369
  }
131037
131370
  };
131038
- var oo = (s3) => {
131371
+ var ao = (s3) => {
131039
131372
  let t = new Te(s3), e = s3.file, i = import_node_fs2.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
131040
131373
  new Me(e, { readSize: r, size: i.size }).pipe(t);
131041
131374
  };
131042
- var ho = (s3, t) => {
131375
+ var lo = (s3, t) => {
131043
131376
  let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
131044
131377
  return new Promise((o, h) => {
131045
131378
  e.on("error", h), e.on("close", o), import_node_fs2.default.stat(r, (a, l) => {
@@ -131051,10 +131384,10 @@ var ho = (s3, t) => {
131051
131384
  });
131052
131385
  });
131053
131386
  };
131054
- var ao = K(oo, ho, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
131387
+ var co = K(ao, lo, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
131055
131388
  t?.length && Ki(s3, t);
131056
131389
  });
131057
- var lo = (s3, t) => {
131390
+ var fo = (s3, t) => {
131058
131391
  let e = new kt(s3), i = true, r, n;
131059
131392
  try {
131060
131393
  try {
@@ -131075,7 +131408,7 @@ var lo = (s3, t) => {
131075
131408
  if (n + l + 512 > o.size) break;
131076
131409
  n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
131077
131410
  }
131078
- i = false, co(s3, e, n, r, t);
131411
+ i = false, uo(s3, e, n, r, t);
131079
131412
  } finally {
131080
131413
  if (i) try {
131081
131414
  import_node_fs6.default.closeSync(r);
@@ -131083,11 +131416,11 @@ var lo = (s3, t) => {
131083
131416
  }
131084
131417
  }
131085
131418
  };
131086
- var co = (s3, t, e, i, r) => {
131419
+ var uo = (s3, t, e, i, r) => {
131087
131420
  let n = new Wt(s3.file, { fd: i, start: e });
131088
- t.pipe(n), uo(t, r);
131421
+ t.pipe(n), po(t, r);
131089
131422
  };
131090
- var fo = (s3, t) => {
131423
+ var mo = (s3, t) => {
131091
131424
  t = Array.from(t);
131092
131425
  let e = new Et(s3), i = (n, o, h) => {
131093
131426
  let a = (T, N) => {
@@ -131117,23 +131450,23 @@ var fo = (s3, t) => {
131117
131450
  i(c, S.size, (T, N) => {
131118
131451
  if (T) return o(T);
131119
131452
  let E = new tt(s3.file, { fd: c, start: N });
131120
- e.pipe(E), E.on("error", o), E.on("close", n), mo(e, t);
131453
+ e.pipe(E), E.on("error", o), E.on("close", n), Eo(e, t);
131121
131454
  });
131122
131455
  });
131123
131456
  };
131124
131457
  import_node_fs6.default.open(s3.file, h, a);
131125
131458
  });
131126
131459
  };
131127
- var uo = (s3, t) => {
131460
+ var po = (s3, t) => {
131128
131461
  t.forEach((e) => {
131129
131462
  e.charAt(0) === "@" ? It({ file: import_node_path9.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
131130
131463
  }), s3.end();
131131
131464
  };
131132
- var mo = async (s3, t) => {
131465
+ var Eo = async (s3, t) => {
131133
131466
  for (let e of t) e.charAt(0) === "@" ? await It({ file: import_node_path9.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
131134
131467
  s3.end();
131135
131468
  };
131136
- var vt = K(lo, fo, () => {
131469
+ var vt = K(fo, mo, () => {
131137
131470
  throw new TypeError("file is required");
131138
131471
  }, () => {
131139
131472
  throw new TypeError("file is required");
@@ -131142,10 +131475,10 @@ var vt = K(lo, fo, () => {
131142
131475
  if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
131143
131476
  if (!t?.length) throw new TypeError("no paths specified to add/replace");
131144
131477
  });
131145
- var po = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
131146
- vt.validate?.(s3, t), Eo(s3);
131478
+ var wo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
131479
+ vt.validate?.(s3, t), So(s3);
131147
131480
  });
131148
- var Eo = (s3) => {
131481
+ var So = (s3) => {
131149
131482
  let t = s3.filter;
131150
131483
  s3.mtimeCache || (s3.mtimeCache = /* @__PURE__ */ new Map()), s3.filter = t ? (e, i) => t(e, i) && !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0)) : (e, i) => !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0));
131151
131484
  };
@@ -131157,7 +131490,7 @@ async function packageDirectory(dirPath) {
131157
131490
  import_os5.default.tmpdir(),
131158
131491
  `appwrite-deploy-${Date.now()}.tar.gz`
131159
131492
  );
131160
- await Pn(
131493
+ await Zn(
131161
131494
  {
131162
131495
  gzip: true,
131163
131496
  file: tempFile,
@@ -131238,7 +131571,7 @@ async function downloadDeploymentCode(params) {
131238
131571
  `Failed to write deployment archive to "${compressedFileName}": ${message}`
131239
131572
  );
131240
131573
  }
131241
- ao({
131574
+ co({
131242
131575
  sync: true,
131243
131576
  cwd: resourcePath,
131244
131577
  file: compressedFileName,
@@ -134733,12 +135066,9 @@ var runFunction = async ({
134733
135066
  const allVariables = {};
134734
135067
  if (withVariables) {
134735
135068
  try {
134736
- const { variables: remoteVariables } = await paginate(
134737
- async () => (await getFunctionsService()).listVariables(func["$id"]),
134738
- {},
134739
- 100,
134740
- "variables"
134741
- );
135069
+ const { variables: remoteVariables } = await (await getFunctionsService()).listVariables({
135070
+ functionId: func["$id"]
135071
+ });
134742
135072
  remoteVariables.forEach((v2) => {
134743
135073
  allVariables[v2.key] = v2.value;
134744
135074
  userVariables[v2.key] = v2.value;
@@ -134848,7 +135178,7 @@ var runFunction = async ({
134848
135178
  import_fs15.default.rmSync(hotSwapPath, { recursive: true, force: true });
134849
135179
  import_fs15.default.mkdirSync(hotSwapPath, { recursive: true });
134850
135180
  }
134851
- await ao({
135181
+ await co({
134852
135182
  keep: true,
134853
135183
  sync: true,
134854
135184
  cwd: hotSwapPath,
@@ -134876,7 +135206,7 @@ var runFunction = async ({
134876
135206
  const sourcePath = import_path14.default.join(functionPath, f2);
134877
135207
  import_fs15.default.copyFileSync(sourcePath, filePath);
134878
135208
  }
134879
- await Pn(
135209
+ await Zn(
134880
135210
  {
134881
135211
  gzip: true,
134882
135212
  sync: true,
@@ -136918,18 +137248,9 @@ var Push = class {
136918
137248
  const functionsServiceForVars = await getFunctionsService(
136919
137249
  this.projectClient
136920
137250
  );
136921
- const { variables } = await paginate(
136922
- async (args) => {
136923
- return await functionsServiceForVars.listVariables({
136924
- functionId: args.functionId
136925
- });
136926
- },
136927
- {
136928
- functionId: func["$id"]
136929
- },
136930
- 100,
136931
- "variables"
136932
- );
137251
+ const { variables } = await functionsServiceForVars.listVariables({
137252
+ functionId: func["$id"]
137253
+ });
136933
137254
  await Promise.all(
136934
137255
  variables.map(async (variable) => {
136935
137256
  const functionsServiceDel = await getFunctionsService(
@@ -137223,18 +137544,9 @@ var Push = class {
137223
137544
  if (withVariables) {
137224
137545
  updaterRow.update({ status: "Creating variables" }).replaceSpinner(SPINNER_DOTS);
137225
137546
  const sitesServiceForVars = await getSitesService(this.projectClient);
137226
- const { variables } = await paginate(
137227
- async (args) => {
137228
- return await sitesServiceForVars.listVariables({
137229
- siteId: args.siteId
137230
- });
137231
- },
137232
- {
137233
- siteId: site["$id"]
137234
- },
137235
- 100,
137236
- "variables"
137237
- );
137547
+ const { variables } = await sitesServiceForVars.listVariables({
137548
+ siteId: site["$id"]
137549
+ });
137238
137550
  await Promise.all(
137239
137551
  variables.map(async (variable) => {
137240
137552
  const sitesServiceDel = await getSitesService(this.projectClient);
@@ -139331,36 +139643,6 @@ account.command(`delete`).description(`Delete the currently logged in user.`).ac
139331
139643
  async () => parse3(await (await getAccountClient()).delete())
139332
139644
  )
139333
139645
  );
139334
- account.command(`list-billing-addresses`).description(`List all billing addresses for a user.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, expired, failed`).action(
139335
- actionRunner(
139336
- async ({ queries }) => parse3(await (await getAccountClient()).listBillingAddresses(queries))
139337
- )
139338
- );
139339
- account.command(`create-billing-address`).description(`Add a new billing address to a user's account.`).requiredOption(`--country <country>`, `Country`).requiredOption(`--city <city>`, `City`).requiredOption(`--street-address <street-address>`, `Street address`).option(`--address-line-2 <address-line-2>`, `Address line 2`).option(`--state <state>`, `State or province`).option(`--postal-code <postal-code>`, `Postal code`).action(
139340
- actionRunner(
139341
- async ({ country, city, streetAddress, addressLine2, state, postalCode }) => parse3(await (await getAccountClient()).createBillingAddress(country, city, streetAddress, addressLine2, state, postalCode))
139342
- )
139343
- );
139344
- account.command(`get-billing-address`).description(`Get a specific billing address for a user using it's ID.`).requiredOption(`--billing-address-id <billing-address-id>`, `Unique ID of billing address`).action(
139345
- actionRunner(
139346
- async ({ billingAddressId }) => parse3(await (await getAccountClient()).getBillingAddress(billingAddressId))
139347
- )
139348
- );
139349
- account.command(`update-billing-address`).description(`Update a specific billing address using it's ID.`).requiredOption(`--billing-address-id <billing-address-id>`, `Unique ID of billing address`).requiredOption(`--country <country>`, `Country`).requiredOption(`--city <city>`, `City`).requiredOption(`--street-address <street-address>`, `Street address`).option(`--address-line-2 <address-line-2>`, `Address line 2`).option(`--state <state>`, `State or province`).option(`--postal-code <postal-code>`, `Postal code`).action(
139350
- actionRunner(
139351
- async ({ billingAddressId, country, city, streetAddress, addressLine2, state, postalCode }) => parse3(await (await getAccountClient()).updateBillingAddress(billingAddressId, country, city, streetAddress, addressLine2, state, postalCode))
139352
- )
139353
- );
139354
- account.command(`delete-billing-address`).description(`Delete a specific billing address using it's ID.`).requiredOption(`--billing-address-id <billing-address-id>`, `Billing address unique ID`).action(
139355
- actionRunner(
139356
- async ({ billingAddressId }) => parse3(await (await getAccountClient()).deleteBillingAddress(billingAddressId))
139357
- )
139358
- );
139359
- account.command(`get-coupon`).description(`Get coupon details for an account.`).requiredOption(`--coupon-id <coupon-id>`, `ID of the coupon`).action(
139360
- actionRunner(
139361
- async ({ couponId }) => parse3(await (await getAccountClient()).getCoupon(couponId))
139362
- )
139363
- );
139364
139646
  account.command(`update-email`).description(`Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.
139365
139647
  This endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.
139366
139648
  `).requiredOption(`--email <email>`, `User email.`).requiredOption(`--password <password>`, `User password. Must be at least 8 chars.`).action(
@@ -139382,11 +139664,6 @@ account.command(`delete-identity`).description(`Delete an identity by its unique
139382
139664
  async ({ identityId }) => parse3(await (await getAccountClient()).deleteIdentity(identityId))
139383
139665
  )
139384
139666
  );
139385
- account.command(`list-invoices`).description(`List all invoices tied to an account.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount`).action(
139386
- actionRunner(
139387
- async ({ queries }) => parse3(await (await getAccountClient()).listInvoices(queries))
139388
- )
139389
- );
139390
139667
  account.command(`create-jwt`).description(`Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.`).option(`--duration <duration>`, `Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.`, parseInteger).action(
139391
139668
  actionRunner(
139392
139669
  async ({ duration: duration3 }) => parse3(await (await getAccountClient()).createJWT(duration3))
@@ -139490,41 +139767,6 @@ account.command(`update-password`).description(`Update currently logged in user
139490
139767
  async ({ password, oldPassword }) => parse3(await (await getAccountClient()).updatePassword(password, oldPassword))
139491
139768
  )
139492
139769
  );
139493
- account.command(`list-payment-methods`).description(`List payment methods for this account.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, expired, failed`).action(
139494
- actionRunner(
139495
- async ({ queries }) => parse3(await (await getAccountClient()).listPaymentMethods(queries))
139496
- )
139497
- );
139498
- account.command(`create-payment-method`).description(`Create a new payment method for the current user account.`).action(
139499
- actionRunner(
139500
- async () => parse3(await (await getAccountClient()).createPaymentMethod())
139501
- )
139502
- );
139503
- account.command(`get-payment-method`).description(`Get a specific payment method for the user.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).action(
139504
- actionRunner(
139505
- async ({ paymentMethodId }) => parse3(await (await getAccountClient()).getPaymentMethod(paymentMethodId))
139506
- )
139507
- );
139508
- account.command(`update-payment-method`).description(`Update a new payment method for the current user account.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).requiredOption(`--expiry-month <expiry-month>`, `Payment expiry month`, parseInteger).requiredOption(`--expiry-year <expiry-year>`, `Expiry year`, parseInteger).option(`--state <state>`, `State of the payment method country`).action(
139509
- actionRunner(
139510
- async ({ paymentMethodId, expiryMonth, expiryYear, state }) => parse3(await (await getAccountClient()).updatePaymentMethod(paymentMethodId, expiryMonth, expiryYear, state))
139511
- )
139512
- );
139513
- account.command(`delete-payment-method`).description(`Delete a specific payment method from a user's account.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).action(
139514
- actionRunner(
139515
- async ({ paymentMethodId }) => parse3(await (await getAccountClient()).deletePaymentMethod(paymentMethodId))
139516
- )
139517
- );
139518
- account.command(`update-payment-method-provider`).description(`Update payment method provider.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).requiredOption(`--provider-method-id <provider-method-id>`, `Payment method ID from the payment provider`).requiredOption(`--name <name>`, `Name in the payment method`).option(`--state <state>`, `State of the payment method country`).action(
139519
- actionRunner(
139520
- async ({ paymentMethodId, providerMethodId, name, state }) => parse3(await (await getAccountClient()).updatePaymentMethodProvider(paymentMethodId, providerMethodId, name, state))
139521
- )
139522
- );
139523
- account.command(`update-payment-method-mandate-options`).description(`Update payment method mandate options.`).requiredOption(`--payment-method-id <payment-method-id>`, `Unique ID of payment method`).action(
139524
- actionRunner(
139525
- async ({ paymentMethodId }) => parse3(await (await getAccountClient()).updatePaymentMethodMandateOptions(paymentMethodId))
139526
- )
139527
- );
139528
139770
  account.command(`update-phone`).description(`Update the currently logged in user's phone number. After updating the phone number, the phone verification status will be reset. A confirmation SMS is not sent automatically, however you can use the [POST /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) endpoint to send a confirmation SMS.`).requiredOption(`--phone <phone>`, `Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`).requiredOption(`--password <password>`, `User password. Must be at least 8 chars.`).action(
139529
139771
  actionRunner(
139530
139772
  async ({ phone, password }) => parse3(await (await getAccountClient()).updatePhone(phone, password))
@@ -140663,12 +140905,6 @@ health.command(`get-certificate`).description(`Get the SSL certificate for a dom
140663
140905
  async ({ domain: domain2 }) => parse3(await (await getHealthClient()).getCertificate(domain2))
140664
140906
  )
140665
140907
  );
140666
- health.command(`get-console-pausing`).description(`Get console pausing health status. Monitors projects approaching the pause threshold to detect potential issues with console access tracking.
140667
- `).option(`--threshold <threshold>`, `Percentage threshold of projects approaching pause. When hit (equal or higher), endpoint returns server error. Default value is 10.`, parseInteger).option(`--inactivity-days <inactivity-days>`, `Number of days of inactivity before a project is paused. Should match the plan's projectInactivityDays setting. Default value is 7.`, parseInteger).action(
140668
- actionRunner(
140669
- async ({ threshold, inactivityDays }) => parse3(await (await getHealthClient()).getConsolePausing(threshold, inactivityDays))
140670
- )
140671
- );
140672
140908
  health.command(`get-db`).description(`Check the Appwrite database servers are up and connection is successful.`).action(
140673
140909
  actionRunner(
140674
140910
  async () => parse3(await (await getHealthClient()).getDB())
@@ -140684,26 +140920,11 @@ health.command(`get-queue-audits`).description(`Get the number of audit logs tha
140684
140920
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueAudits(threshold))
140685
140921
  )
140686
140922
  );
140687
- health.command(`get-queue-billing-project-aggregation`).description(`Get billing project aggregation queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140688
- actionRunner(
140689
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueueBillingProjectAggregation(threshold))
140690
- )
140691
- );
140692
- health.command(`get-queue-billing-team-aggregation`).description(`Get billing team aggregation queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140693
- actionRunner(
140694
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueueBillingTeamAggregation(threshold))
140695
- )
140696
- );
140697
140923
  health.command(`get-queue-builds`).description(`Get the number of builds that are waiting to be processed in the Appwrite internal queue server.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140698
140924
  actionRunner(
140699
140925
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueBuilds(threshold))
140700
140926
  )
140701
140927
  );
140702
- health.command(`get-queue-priority-builds`).description(`Get the priority builds queue size.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.`, parseInteger).action(
140703
- actionRunner(
140704
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueuePriorityBuilds(threshold))
140705
- )
140706
- );
140707
140928
  health.command(`get-queue-certificates`).description(`Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140708
140929
  actionRunner(
140709
140930
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueCertificates(threshold))
@@ -140750,11 +140971,6 @@ health.command(`get-queue-migrations`).description(`Get the number of migrations
140750
140971
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueMigrations(threshold))
140751
140972
  )
140752
140973
  );
140753
- health.command(`get-queue-region-manager`).description(`Get region manager queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.`, parseInteger).action(
140754
- actionRunner(
140755
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueueRegionManager(threshold))
140756
- )
140757
- );
140758
140974
  health.command(`get-queue-stats-resources`).description(`Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140759
140975
  actionRunner(
140760
140976
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueStatsResources(threshold))
@@ -140765,11 +140981,6 @@ health.command(`get-queue-usage`).description(`Get the number of metrics that ar
140765
140981
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueUsage(threshold))
140766
140982
  )
140767
140983
  );
140768
- health.command(`get-queue-threats`).description(`Get threats queue.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.`, parseInteger).action(
140769
- actionRunner(
140770
- async ({ threshold }) => parse3(await (await getHealthClient()).getQueueThreats(threshold))
140771
- )
140772
- );
140773
140984
  health.command(`get-queue-webhooks`).description(`Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.`).option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger).action(
140774
140985
  actionRunner(
140775
140986
  async ({ threshold }) => parse3(await (await getHealthClient()).getQueueWebhooks(threshold))
@@ -141419,26 +141630,30 @@ project.command(`get-usage`).description(`Get comprehensive usage statistics for
141419
141630
  async ({ startDate, endDate, period }) => parse3(await (await getProjectClient()).getUsage(startDate, endDate, period))
141420
141631
  )
141421
141632
  );
141422
- project.command(`list-variables`).description(`Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.`).action(
141633
+ project.command(`list-variables`).description(`Get a list of all project environment variables.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, resourceType, resourceId, secret`).option(
141634
+ `--total [value]`,
141635
+ `When set to false, the total count returned will be 0 and will not be calculated.`,
141636
+ (value) => value === void 0 ? true : parseBool(value)
141637
+ ).action(
141423
141638
  actionRunner(
141424
- async () => parse3(await (await getProjectClient()).listVariables())
141639
+ async ({ queries, total }) => parse3(await (await getProjectClient()).listVariables(queries, total))
141425
141640
  )
141426
141641
  );
141427
- project.command(`create-variable`).description(`Create a new project variable. This variable will be accessible in all Appwrite Functions at runtime.`).requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`).requiredOption(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
141642
+ project.command(`create-variable`).description(`Create a new project environment variable. These variables can be accessed by all functions and sites in the project.`).requiredOption(`--variable-id <variable-id>`, `Variable ID. Choose a custom ID or generate a random ID with \`ID.unique()\`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`).requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`).requiredOption(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
141428
141643
  `--secret [value]`,
141429
141644
  `Secret variables can be updated or deleted, but only projects can read them during build and runtime.`,
141430
141645
  (value) => value === void 0 ? true : parseBool(value)
141431
141646
  ).action(
141432
141647
  actionRunner(
141433
- async ({ key, value, secret }) => parse3(await (await getProjectClient()).createVariable(key, value, secret))
141648
+ async ({ variableId, key, value, secret }) => parse3(await (await getProjectClient()).createVariable(variableId, key, value, secret))
141434
141649
  )
141435
141650
  );
141436
- project.command(`get-variable`).description(`Get a project variable by its unique ID.`).requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`).action(
141651
+ project.command(`get-variable`).description(`Get a variable by its unique ID. `).requiredOption(`--variable-id <variable-id>`, `Variable ID.`).action(
141437
141652
  actionRunner(
141438
141653
  async ({ variableId }) => parse3(await (await getProjectClient()).getVariable(variableId))
141439
141654
  )
141440
141655
  );
141441
- project.command(`update-variable`).description(`Update project variable by its unique ID. This variable will be accessible in all Appwrite Functions at runtime.`).requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`).requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`).option(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
141656
+ project.command(`update-variable`).description(`Update variable by its unique ID.`).requiredOption(`--variable-id <variable-id>`, `Variable ID.`).option(`--key <key>`, `Variable key. Max length: 255 chars.`).option(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
141442
141657
  `--secret [value]`,
141443
141658
  `Secret variables can be updated or deleted, but only projects can read them during build and runtime.`,
141444
141659
  (value) => value === void 0 ? true : parseBool(value)
@@ -141447,7 +141662,7 @@ project.command(`update-variable`).description(`Update project variable by its u
141447
141662
  async ({ variableId, key, value, secret }) => parse3(await (await getProjectClient()).updateVariable(variableId, key, value, secret))
141448
141663
  )
141449
141664
  );
141450
- project.command(`delete-variable`).description(`Delete a project variable by its unique ID. `).requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`).action(
141665
+ project.command(`delete-variable`).description(`Delete a variable by its unique ID. `).requiredOption(`--variable-id <variable-id>`, `Variable ID.`).action(
141451
141666
  actionRunner(
141452
141667
  async ({ variableId }) => parse3(await (await getProjectClient()).deleteVariable(variableId))
141453
141668
  )
@@ -141559,12 +141774,6 @@ projects.command(`update-auth-status`).description(`Update the status of a speci
141559
141774
  async ({ projectId, method, status }) => parse3(await (await getProjectsClient()).updateAuthStatus(projectId, method, status))
141560
141775
  )
141561
141776
  );
141562
- projects.command(`update-console-access`).description(`Record console access to a project. This endpoint updates the last accessed timestamp for the project to track console activity.
141563
- `).requiredOption(`--project-id <project-id>`, `Project ID`).action(
141564
- actionRunner(
141565
- async ({ projectId }) => parse3(await (await getProjectsClient()).updateConsoleAccess(projectId))
141566
- )
141567
- );
141568
141777
  projects.command(`list-dev-keys`).description(`List all the project's dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.'`).requiredOption(`--project-id <project-id>`, `Project unique ID.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: accessedAt, expire`).action(
141569
141778
  actionRunner(
141570
141779
  async ({ projectId, queries }) => parse3(await (await getProjectsClient()).listDevKeys(projectId, queries))
@@ -142900,7 +143109,7 @@ var getUsersClient = async () => {
142900
143109
  var users = new Command("users").description(commandDescriptions["users"] ?? "").configureHelp({
142901
143110
  helpWidth: process.stdout.columns || 80
142902
143111
  });
142903
- users.command(`list`).description(`Get a list of all the project's users. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
143112
+ users.command(`list`).description(`Get a list of all the project's users. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels, impersonator`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
142904
143113
  `--total [value]`,
142905
143114
  `When set to false, the total count returned will be 0 and will not be calculated.`,
142906
143115
  (value) => value === void 0 ? true : parseBool(value)
@@ -142984,6 +143193,12 @@ users.command(`update-email`).description(`Update the user email by its unique I
142984
143193
  async ({ userId, email: email3 }) => parse3(await (await getUsersClient()).updateEmail(userId, email3))
142985
143194
  )
142986
143195
  );
143196
+ users.command(`update-impersonator`).description(`Enable or disable whether a user can impersonate other users. When impersonation headers are used, the request runs as the target user for API behavior, while internal audit logs still attribute the action to the original impersonator and store the impersonated target details only in internal audit payload data.
143197
+ `).requiredOption(`--user-id <user-id>`, `User ID.`).requiredOption(`--impersonator <impersonator>`, `Whether the user can impersonate other users. When true, the user can browse project users to choose a target and can pass impersonation headers to act as that user. Internal audit logs still attribute impersonated actions to the original impersonator and store the target user details only in internal audit payload data.`, parseBool).action(
143198
+ actionRunner(
143199
+ async ({ userId, impersonator }) => parse3(await (await getUsersClient()).updateImpersonator(userId, impersonator))
143200
+ )
143201
+ );
142987
143202
  users.command(`create-jwt`).description(`Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.`).requiredOption(`--user-id <user-id>`, `User ID.`).option(`--session-id <session-id>`, `Session ID. Use the string 'recent' to use the most recent session. Defaults to the most recent session.`).option(`--duration <duration>`, `Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.`, parseInteger).action(
142988
143203
  actionRunner(
142989
143204
  async ({ userId, sessionId, duration: duration3 }) => parse3(await (await getUsersClient()).createJWT(userId, sessionId, duration3))