@compilot/js-sdk 2.121.0-dev → 2.123.0-dev

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.
@@ -12,47 +12,77 @@ var svix = require('svix');
12
12
 
13
13
  function _regeneratorRuntime() {
14
14
  _regeneratorRuntime = function () {
15
- return e;
15
+ return r;
16
16
  };
17
17
  var t,
18
- e = {},
19
- r = Object.prototype,
20
- n = r.hasOwnProperty,
21
- o = Object.defineProperty || function (t, e, r) {
22
- t[e] = r.value;
23
- },
24
- i = "function" == typeof Symbol ? Symbol : {},
25
- a = i.iterator || "@@iterator",
26
- c = i.asyncIterator || "@@asyncIterator",
27
- u = i.toStringTag || "@@toStringTag";
28
- function define(t, e, r) {
29
- return Object.defineProperty(t, e, {
30
- value: r,
31
- enumerable: !0,
32
- configurable: !0,
33
- writable: !0
34
- }), t[e];
18
+ r = {},
19
+ e = Object.prototype,
20
+ n = e.hasOwnProperty,
21
+ o = "function" == typeof Symbol ? Symbol : {},
22
+ i = o.iterator || "@@iterator",
23
+ a = o.asyncIterator || "@@asyncIterator",
24
+ u = o.toStringTag || "@@toStringTag";
25
+ function c(t, r, e, n) {
26
+ return Object.defineProperty(t, r, {
27
+ value: e,
28
+ enumerable: !n,
29
+ configurable: !n,
30
+ writable: !n
31
+ });
35
32
  }
36
33
  try {
37
- define({}, "");
34
+ c({}, "");
38
35
  } catch (t) {
39
- define = function (t, e, r) {
40
- return t[e] = r;
36
+ c = function (t, r, e) {
37
+ return t[r] = e;
41
38
  };
42
39
  }
43
- function wrap(t, e, r, n) {
40
+ function h(r, e, n, o) {
44
41
  var i = e && e.prototype instanceof Generator ? e : Generator,
45
- a = Object.create(i.prototype),
46
- c = new Context(n || []);
47
- return o(a, "_invoke", {
48
- value: makeInvokeMethod(t, r, c)
49
- }), a;
42
+ a = Object.create(i.prototype);
43
+ return c(a, "_invoke", function (r, e, n) {
44
+ var o = 1;
45
+ return function (i, a) {
46
+ if (3 === o) throw Error("Generator is already running");
47
+ if (4 === o) {
48
+ if ("throw" === i) throw a;
49
+ return {
50
+ value: t,
51
+ done: !0
52
+ };
53
+ }
54
+ for (n.method = i, n.arg = a;;) {
55
+ var u = n.delegate;
56
+ if (u) {
57
+ var c = d(u, n);
58
+ if (c) {
59
+ if (c === f) continue;
60
+ return c;
61
+ }
62
+ }
63
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
64
+ if (1 === o) throw o = 4, n.arg;
65
+ n.dispatchException(n.arg);
66
+ } else "return" === n.method && n.abrupt("return", n.arg);
67
+ o = 3;
68
+ var h = s(r, e, n);
69
+ if ("normal" === h.type) {
70
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
71
+ return {
72
+ value: h.arg,
73
+ done: n.done
74
+ };
75
+ }
76
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
77
+ }
78
+ };
79
+ }(r, n, new Context(o || [])), !0), a;
50
80
  }
51
- function tryCatch(t, e, r) {
81
+ function s(t, r, e) {
52
82
  try {
53
83
  return {
54
84
  type: "normal",
55
- arg: t.call(e, r)
85
+ arg: t.call(r, e)
56
86
  };
57
87
  } catch (t) {
58
88
  return {
@@ -61,255 +91,193 @@ function _regeneratorRuntime() {
61
91
  };
62
92
  }
63
93
  }
64
- e.wrap = wrap;
65
- var h = "suspendedStart",
66
- l = "suspendedYield",
67
- f = "executing",
68
- s = "completed",
69
- y = {};
94
+ r.wrap = h;
95
+ var f = {};
70
96
  function Generator() {}
71
97
  function GeneratorFunction() {}
72
98
  function GeneratorFunctionPrototype() {}
73
- var p = {};
74
- define(p, a, function () {
99
+ var l = {};
100
+ c(l, i, function () {
75
101
  return this;
76
102
  });
77
- var d = Object.getPrototypeOf,
78
- v = d && d(d(values([])));
79
- v && v !== r && n.call(v, a) && (p = v);
80
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
81
- function defineIteratorMethods(t) {
82
- ["next", "throw", "return"].forEach(function (e) {
83
- define(t, e, function (t) {
84
- return this._invoke(e, t);
103
+ var p = Object.getPrototypeOf,
104
+ y = p && p(p(x([])));
105
+ y && y !== e && n.call(y, i) && (l = y);
106
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
107
+ function g(t) {
108
+ ["next", "throw", "return"].forEach(function (r) {
109
+ c(t, r, function (t) {
110
+ return this._invoke(r, t);
85
111
  });
86
112
  });
87
113
  }
88
- function AsyncIterator(t, e) {
89
- function invoke(r, o, i, a) {
90
- var c = tryCatch(t[r], t, o);
114
+ function AsyncIterator(t, r) {
115
+ function e(o, i, a, u) {
116
+ var c = s(t[o], t, i);
91
117
  if ("throw" !== c.type) {
92
- var u = c.arg,
93
- h = u.value;
94
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
95
- invoke("next", t, i, a);
118
+ var h = c.arg,
119
+ f = h.value;
120
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
121
+ e("next", t, a, u);
96
122
  }, function (t) {
97
- invoke("throw", t, i, a);
98
- }) : e.resolve(h).then(function (t) {
99
- u.value = t, i(u);
123
+ e("throw", t, a, u);
124
+ }) : r.resolve(f).then(function (t) {
125
+ h.value = t, a(h);
100
126
  }, function (t) {
101
- return invoke("throw", t, i, a);
127
+ return e("throw", t, a, u);
102
128
  });
103
129
  }
104
- a(c.arg);
130
+ u(c.arg);
105
131
  }
106
- var r;
107
- o(this, "_invoke", {
108
- value: function (t, n) {
109
- function callInvokeWithMethodAndArg() {
110
- return new e(function (e, r) {
111
- invoke(t, n, e, r);
112
- });
113
- }
114
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
115
- }
116
- });
117
- }
118
- function makeInvokeMethod(e, r, n) {
119
- var o = h;
120
- return function (i, a) {
121
- if (o === f) throw Error("Generator is already running");
122
- if (o === s) {
123
- if ("throw" === i) throw a;
124
- return {
125
- value: t,
126
- done: !0
127
- };
128
- }
129
- for (n.method = i, n.arg = a;;) {
130
- var c = n.delegate;
131
- if (c) {
132
- var u = maybeInvokeDelegate(c, n);
133
- if (u) {
134
- if (u === y) continue;
135
- return u;
136
- }
137
- }
138
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
139
- if (o === h) throw o = s, n.arg;
140
- n.dispatchException(n.arg);
141
- } else "return" === n.method && n.abrupt("return", n.arg);
142
- o = f;
143
- var p = tryCatch(e, r, n);
144
- if ("normal" === p.type) {
145
- if (o = n.done ? s : l, p.arg === y) continue;
146
- return {
147
- value: p.arg,
148
- done: n.done
149
- };
150
- }
151
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
132
+ var o;
133
+ c(this, "_invoke", function (t, n) {
134
+ function i() {
135
+ return new r(function (r, o) {
136
+ e(t, n, r, o);
137
+ });
152
138
  }
153
- };
139
+ return o = o ? o.then(i, i) : i();
140
+ }, !0);
154
141
  }
155
- function maybeInvokeDelegate(e, r) {
156
- var n = r.method,
157
- o = e.iterator[n];
158
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
159
- var i = tryCatch(o, e.iterator, r.arg);
160
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
142
+ function d(r, e) {
143
+ var n = e.method,
144
+ o = r.i[n];
145
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
146
+ var i = s(o, r.i, e.arg);
147
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
161
148
  var a = i.arg;
162
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
149
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
163
150
  }
164
- function pushTryEntry(t) {
165
- var e = {
166
- tryLoc: t[0]
167
- };
168
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
151
+ function w(t) {
152
+ this.tryEntries.push(t);
169
153
  }
170
- function resetTryEntry(t) {
171
- var e = t.completion || {};
172
- e.type = "normal", delete e.arg, t.completion = e;
154
+ function m(r) {
155
+ var e = r[4] || {};
156
+ e.type = "normal", e.arg = t, r[4] = e;
173
157
  }
174
158
  function Context(t) {
175
- this.tryEntries = [{
176
- tryLoc: "root"
177
- }], t.forEach(pushTryEntry, this), this.reset(!0);
159
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
178
160
  }
179
- function values(e) {
180
- if (e || "" === e) {
181
- var r = e[a];
182
- if (r) return r.call(e);
183
- if ("function" == typeof e.next) return e;
184
- if (!isNaN(e.length)) {
161
+ function x(r) {
162
+ if (null != r) {
163
+ var e = r[i];
164
+ if (e) return e.call(r);
165
+ if ("function" == typeof r.next) return r;
166
+ if (!isNaN(r.length)) {
185
167
  var o = -1,
186
- i = function next() {
187
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
188
- return next.value = t, next.done = !0, next;
168
+ a = function e() {
169
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
170
+ return e.value = t, e.done = !0, e;
189
171
  };
190
- return i.next = i;
172
+ return a.next = a;
191
173
  }
192
174
  }
193
- throw new TypeError(typeof e + " is not iterable");
175
+ throw new TypeError(typeof r + " is not iterable");
194
176
  }
195
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
196
- value: GeneratorFunctionPrototype,
197
- configurable: !0
198
- }), o(GeneratorFunctionPrototype, "constructor", {
199
- value: GeneratorFunction,
200
- configurable: !0
201
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
202
- var e = "function" == typeof t && t.constructor;
203
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
204
- }, e.mark = function (t) {
205
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
206
- }, e.awrap = function (t) {
177
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
178
+ var r = "function" == typeof t && t.constructor;
179
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
180
+ }, r.mark = function (t) {
181
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
182
+ }, r.awrap = function (t) {
207
183
  return {
208
184
  __await: t
209
185
  };
210
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
186
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
211
187
  return this;
212
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
188
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
213
189
  void 0 === i && (i = Promise);
214
- var a = new AsyncIterator(wrap(t, r, n, o), i);
215
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
190
+ var a = new AsyncIterator(h(t, e, n, o), i);
191
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
216
192
  return t.done ? t.value : a.next();
217
193
  });
218
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
194
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
219
195
  return this;
220
- }), define(g, "toString", function () {
196
+ }), c(v, "toString", function () {
221
197
  return "[object Generator]";
222
- }), e.keys = function (t) {
223
- var e = Object(t),
224
- r = [];
225
- for (var n in e) r.push(n);
226
- return r.reverse(), function next() {
227
- for (; r.length;) {
228
- var t = r.pop();
229
- if (t in e) return next.value = t, next.done = !1, next;
230
- }
231
- return next.done = !0, next;
198
+ }), r.keys = function (t) {
199
+ var r = Object(t),
200
+ e = [];
201
+ for (var n in r) e.unshift(n);
202
+ return function t() {
203
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
204
+ return t.done = !0, t;
232
205
  };
233
- }, e.values = values, Context.prototype = {
206
+ }, r.values = x, Context.prototype = {
234
207
  constructor: Context,
235
- reset: function (e) {
236
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
208
+ reset: function (r) {
209
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
237
210
  },
238
211
  stop: function () {
239
212
  this.done = !0;
240
- var t = this.tryEntries[0].completion;
213
+ var t = this.tryEntries[0][4];
241
214
  if ("throw" === t.type) throw t.arg;
242
215
  return this.rval;
243
216
  },
244
- dispatchException: function (e) {
245
- if (this.done) throw e;
246
- var r = this;
247
- function handle(n, o) {
248
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
217
+ dispatchException: function (r) {
218
+ if (this.done) throw r;
219
+ var e = this;
220
+ function n(t) {
221
+ a.type = "throw", a.arg = r, e.next = t;
249
222
  }
250
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
223
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
251
224
  var i = this.tryEntries[o],
252
- a = i.completion;
253
- if ("root" === i.tryLoc) return handle("end");
254
- if (i.tryLoc <= this.prev) {
255
- var c = n.call(i, "catchLoc"),
256
- u = n.call(i, "finallyLoc");
257
- if (c && u) {
258
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
259
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
260
- } else if (c) {
261
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
262
- } else {
263
- if (!u) throw Error("try statement without catch or finally");
264
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
265
- }
225
+ a = i[4],
226
+ u = this.prev,
227
+ c = i[1],
228
+ h = i[2];
229
+ if (-1 === i[0]) return n("end"), !1;
230
+ if (!c && !h) throw Error("try statement without catch or finally");
231
+ if (null != i[0] && i[0] <= u) {
232
+ if (u < c) return this.method = "next", this.arg = t, n(c), !0;
233
+ if (u < h) return n(h), !1;
266
234
  }
267
235
  }
268
236
  },
269
- abrupt: function (t, e) {
270
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
271
- var o = this.tryEntries[r];
272
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
273
- var i = o;
237
+ abrupt: function (t, r) {
238
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
239
+ var n = this.tryEntries[e];
240
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
241
+ var o = n;
274
242
  break;
275
243
  }
276
244
  }
277
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
278
- var a = i ? i.completion : {};
279
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
245
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
246
+ var i = o ? o[4] : {};
247
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
280
248
  },
281
- complete: function (t, e) {
249
+ complete: function (t, r) {
282
250
  if ("throw" === t.type) throw t.arg;
283
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
251
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
284
252
  },
285
253
  finish: function (t) {
286
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
287
- var r = this.tryEntries[e];
288
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
254
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
255
+ var e = this.tryEntries[r];
256
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
289
257
  }
290
258
  },
291
259
  catch: function (t) {
292
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
293
- var r = this.tryEntries[e];
294
- if (r.tryLoc === t) {
295
- var n = r.completion;
260
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
261
+ var e = this.tryEntries[r];
262
+ if (e[0] === t) {
263
+ var n = e[4];
296
264
  if ("throw" === n.type) {
297
265
  var o = n.arg;
298
- resetTryEntry(r);
266
+ m(e);
299
267
  }
300
268
  return o;
301
269
  }
302
270
  }
303
271
  throw Error("illegal catch attempt");
304
272
  },
305
- delegateYield: function (e, r, n) {
273
+ delegateYield: function (r, e, n) {
306
274
  return this.delegate = {
307
- iterator: values(e),
308
- resultName: r,
309
- nextLoc: n
310
- }, "next" === this.method && (this.arg = t), y;
275
+ i: x(r),
276
+ r: e,
277
+ n: n
278
+ }, "next" === this.method && (this.arg = t), f;
311
279
  }
312
- }, e;
280
+ }, r;
313
281
  }
314
282
 
315
283
  function asyncGeneratorStep(n, t, e, r, o, a, c) {