inngest 0.7.1-beta.1 → 0.8.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.
@@ -1,5 +1,5 @@
1
1
  import type { ObjectPaths } from "../helpers/types";
2
- import { EventPayload, HashedOp, OpStack, TimeStr } from "../types";
2
+ import { EventPayload, HashedOp, OpStack } from "../types";
3
3
  /**
4
4
  * A unique class used to interrupt the flow of a step. It is intended to be
5
5
  * thrown and caught using `instanceof StepFlowInterrupt`.
@@ -32,11 +32,11 @@ export declare const createStepTools: <Events extends Record<string, EventPayloa
32
32
  * events, or to only wait a maximum amount of time before giving up and
33
33
  * returning `null` instead of any event data.
34
34
  */
35
- waitForEvent: <IncomingEvent extends keyof Events, Opts extends (WaitForEventOpts<Events[TriggeringEvent], Events[IncomingEvent]> & {
35
+ waitForEvent: <IncomingEvent extends EventPayload | keyof Events>(event: IncomingEvent extends keyof Events ? IncomingEvent : IncomingEvent extends EventPayload ? IncomingEvent["name"] : never, opts: ((IncomingEvent extends keyof Events ? WaitForEventOpts<Events[TriggeringEvent], Events[IncomingEvent]> : IncomingEvent extends EventPayload ? WaitForEventOpts<Events[TriggeringEvent], IncomingEvent> : never) & {
36
36
  if?: undefined;
37
- }) | (WaitForEventOpts<Events[TriggeringEvent], Events[IncomingEvent]> & {
37
+ }) | ((IncomingEvent extends keyof Events ? WaitForEventOpts<Events[TriggeringEvent], Events[IncomingEvent]> : IncomingEvent extends EventPayload ? WaitForEventOpts<Events[TriggeringEvent], IncomingEvent> : never) & {
38
38
  match?: undefined;
39
- })>(event: IncomingEvent, opts?: Opts | undefined) => Opts["timeout"] extends string ? Opts["timeout"] extends "" ? Events[IncomingEvent] : Events[IncomingEvent] | null : Events[IncomingEvent];
39
+ })) => IncomingEvent extends keyof Events ? Events[IncomingEvent] | null : IncomingEvent | null;
40
40
  /**
41
41
  * Use this tool to run business logic. Each call to `run` will be retried
42
42
  * individually, meaning you can compose complex workflows that safely
@@ -51,12 +51,16 @@ export declare const createStepTools: <Events extends Record<string, EventPayloa
51
51
  */
52
52
  run: <T extends (...args: any[]) => any>(name: string, fn: T) => T extends (...args: any[]) => Promise<infer U> ? Awaited<U extends void ? null : U> : ReturnType<T> extends void ? null : ReturnType<T>;
53
53
  /**
54
- * Wait a specified amount of time before continuing, in the format of a
55
- * time string like `"1h30m"` or `"1d"`.
54
+ * Wait a specified amount of time before continuing.
55
+ *
56
+ * The time to wait can be specified using a `number` of milliseconds or an
57
+ * `ms`-compatible time string like `"1 hour"`, `"30 mins"`, or `"2.5d"`.
58
+ *
59
+ * {@link https://npm.im/ms}
56
60
  *
57
61
  * To wait until a particular date, use `sleepUntil` instead.
58
62
  */
59
- sleep: (time: Exclude<TimeStr, "">) => void;
63
+ sleep: (time: number | string) => void;
60
64
  /**
61
65
  * Wait until a particular date before continuing by passing a `Date`.
62
66
  *
@@ -72,22 +76,16 @@ export declare const createStepTools: <Events extends Record<string, EventPayloa
72
76
  */
73
77
  interface WaitForEventOpts<TriggeringEvent extends EventPayload, IncomingEvent extends EventPayload> {
74
78
  /**
75
- * If provided, the step function will wait for the event for a maximum of
76
- * this time, at which point the event will be returned as `null` instead of
77
- * any event data.
78
- *
79
- * The time to wait can be specified using a string in the format of
80
- * `[number][unit]`, e.g. `50ms` for 50 milliseconds, `1s` for 1 second, `2m`
81
- * for 2 minutes, `3h` for 3 hours, `4d` for 4 days, and `5w` for 5 weeks.
82
- * These can also be combined, e.g. `1h30m` for 1 hour and 30 minutes.
79
+ * The step function will wait for the event for a maximum of this time, at
80
+ * which point the event will be returned as `null` instead of any event data.
83
81
  *
84
- * Alternatively, the timeout can be provided as a `Date`, in which case the
85
- * SDK will calculate the time to wait for you.
82
+ * The time to wait can be specified using a `number` of milliseconds, an
83
+ * `ms`-compatible time string like `"1 hour"`, `"30 mins"`, or `"2.5d"`, or
84
+ * a `Date` object.
86
85
  *
87
- * If this is not specified or is blank (an empty string `""`), the step will
88
- * wait for the event indefinitely.
86
+ * {@link https://npm.im/ms}
89
87
  */
90
- timeout?: TimeStr | Date;
88
+ timeout: number | string | Date;
91
89
  /**
92
90
  * If provided, the step function will wait for the incoming event to match
93
91
  * particular criteria. If the event does not match, it will be ignored and
@@ -1 +1 @@
1
- {"version":3,"file":"InngestStepTools.d.ts","sourceRoot":"","sources":["../../src/components/InngestStepTools.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,YAAY,EACZ,QAAQ,EAER,OAAO,EAEP,OAAO,EACR,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,qBAAa,iBAAiB;CAAG;AAEjC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,gGAIhB,OAAO;IA8Lf;;;;;;;;OAQG;;;;;;IAwDH;;;;;;;;;;;OAWG;8BAEoB,GAAG,EAAE,KAAK,GAAG,QAM1B,MAAM,gCAWW,GAAG,EAAE;IAiBhC;;;;;OAKG;kBAMO,QAAQ,OAAO,EAAE,EAAE,CAAC,KACvB,IAAI;IAYX;;;;OAIG;uBAMO,IAAI,KACP,IAAI;;YA9JH,QAAQ,QAAQ,CAAC,GAAG,SAAS;EA4KxC,CAAC;AAEF;;;GAGG;AACH,UAAU,gBAAgB,CACxB,eAAe,SAAS,YAAY,EACpC,aAAa,SAAS,YAAY;IAElC;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC;IAElE;;;;;;;;;;;OAWG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"InngestStepTools.d.ts","sourceRoot":"","sources":["../../src/components/InngestStepTools.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAM,OAAO,EAAc,MAAM,UAAU,CAAC;AAE3E;;;GAGG;AACH,qBAAa,iBAAiB;CAAG;AAEjC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,gGAIhB,OAAO;IA8Lf;;;;;;;;OAQG;;;;;;IAwDH;;;;;;;;;;;OAWG;8BAEoB,GAAG,EAAE,KAAK,GAAG,QAM1B,MAAM,gCAWW,GAAG,EAAE;IAiBhC;;;;;;;;;OASG;kBAMO,MAAM,GAAG,MAAM,KAClB,IAAI;IAYX;;;;OAIG;uBAMO,IAAI,KACP,IAAI;;YAlKH,QAAQ,QAAQ,CAAC,GAAG,SAAS;EAgLxC,CAAC;AAEF;;;GAGG;AACH,UAAU,gBAAgB,CACxB,eAAe,SAAS,YAAY,EACpC,aAAa,SAAS,YAAY;IAElC;;;;;;;;;OASG;IACH,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC;IAElE;;;;;;;;;;;OAWG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -188,13 +188,9 @@ const createStepTools = (_opStack) => {
188
188
  * Options to control the event we're waiting for.
189
189
  */
190
190
  opts) => {
191
- const matchOpts = {};
192
- if (opts === null || opts === void 0 ? void 0 : opts.timeout) {
193
- matchOpts.ttl =
194
- typeof opts.timeout === "string"
195
- ? opts.timeout
196
- : (0, strings_1.dateToTimeStr)(opts.timeout);
197
- }
191
+ const matchOpts = {
192
+ ttl: (0, strings_1.timeStr)(opts.timeout),
193
+ };
198
194
  if (opts === null || opts === void 0 ? void 0 : opts.match) {
199
195
  matchOpts.match = `event.${opts.match} == async.${opts.match}`;
200
196
  }
@@ -228,8 +224,12 @@ const createStepTools = (_opStack) => {
228
224
  submitOp(fn());
229
225
  }),
230
226
  /**
231
- * Wait a specified amount of time before continuing, in the format of a
232
- * time string like `"1h30m"` or `"1d"`.
227
+ * Wait a specified amount of time before continuing.
228
+ *
229
+ * The time to wait can be specified using a `number` of milliseconds or an
230
+ * `ms`-compatible time string like `"1 hour"`, `"30 mins"`, or `"2.5d"`.
231
+ *
232
+ * {@link https://npm.im/ms}
233
233
  *
234
234
  * To wait until a particular date, use `sleepUntil` instead.
235
235
  */
@@ -240,7 +240,7 @@ const createStepTools = (_opStack) => {
240
240
  */
241
241
  return {
242
242
  op: types_1.StepOpCode.Sleep,
243
- name: time,
243
+ name: (0, strings_1.timeStr)(time),
244
244
  };
245
245
  }),
246
246
  /**
@@ -255,7 +255,7 @@ const createStepTools = (_opStack) => {
255
255
  */
256
256
  return {
257
257
  op: types_1.StepOpCode.Sleep,
258
- name: (0, strings_1.dateToTimeStr)(time),
258
+ name: (0, strings_1.timeStr)(time),
259
259
  };
260
260
  }),
261
261
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InngestStepTools.js","sourceRoot":"","sources":["../../src/components/InngestStepTools.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA+B;AAC/B,sDAA8B;AAC9B,gDAAmD;AAEnD,oCAOkB;AAElB;;;GAGG;AACH,MAAa,iBAAiB;CAAG;AAAjC,8CAAiC;AAEjC;;;;;;;;;;;;;;;GAeG;AACI,MAAM,eAAe,GAAG,CAI7B,QAAiB,EACjB,EAAE;IACF;;;;;;;;;;;OAWG;IACH,IAAI,gBAAgB,GAAG,IAAI,CAAC;IAE5B;;;;;;OAMG;IACH,IAAI,GAAG,GAAG,CAAC,CAAC;IAEZ;;;OAGG;IACH,MAAM,OAAO,qBAAQ,QAAQ,CAAE,CAAC;IAEhC;;;;;OAKG;IACH,MAAM,iBAAiB,GAAG,CACxB,EAAY,EACgD,EAAE;QAC9D,MAAM,IAAI,GAAY,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACrC,iEAAiE;QACjE,kEAAkE;QAClE,uBAAuB;QACvB,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,IAAW,CAAC,CAAC;IAC3C,CAAC,CAAC;IAEF;;;;;;;;OAQG;IACH,MAAM,UAAU,GAAG;IACjB;;;;;;;;OAQG;IACH,OAKO;IAEP;;;;;;;;;;OAUG;IACH,EAeQ,EACL,EAAE;QACL,OAAO,CAAC,CAAC,GAAG,IAAmB,EAAE,EAAE;YACjC;;;eAGG;YACH,IAAI,CAAC,gBAAgB,EAAE;gBACrB,MAAM,IAAI,iBAAiB,EAAE,CAAC;aAC/B;YAED;;eAEG;YACH,MAAM,YAAY,GAAO,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;YAE1C;;eAEG;YACH,MAAM,IAAI,mCACL,YAAY,KACf,EAAE,EAAE,MAAM,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,GAChC,CAAC;YAEF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAE9C,IAAI,KAAK,EAAE;gBACT,+DAA+D;gBAC/D,OAAO,IAAI,CAAC;aACb;YAED;;;eAGG;YACH,gBAAgB,GAAG,KAAK,CAAC;YAEzB,MAAM,QAAQ,GAEK,CAAC,GAAG,IAAI,EAAE,EAAE;gBAC7B,KAAK,CAAC,MAAM,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAC5D,CAAC,IAAI,EAAE,EAAE,CAAC,iCACL,IAAI,GACJ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAChC,CACH,CAAC;YACJ,CAAC,CAAC;YAEF;;;;;;eAMG;YACH,IAAI,EAAE,EAAE;gBACN,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;aAC3B;iBAAM;gBACL,QAAQ,EAAE,CAAC;aACZ;YAED;;;;eAIG;YACH,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBACjB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aACzD;YAED;;;eAGG;YACH,MAAM,IAAI,iBAAiB,EAAE,CAAC;QAChC,CAAC,CAAM,CAAC;IACV,CAAC,CAAC;IAEF,MAAM,KAAK,GAEP;QACF,MAAM,EAAE,SAAS;KAClB,CAAC;IAEF;;;;;OAKG;IACH,MAAM,KAAK,GAAG;QACZ;;;;;;;;WAQG;QACH,YAAY,EAAE,UAAU,CAqBtB;QACE;;WAEG;QACH,KAAK;QAEL;;WAEG;QACH,IAA4C,EAC5C,EAAE;YACF,MAAM,SAAS,GAAqC,EAAE,CAAC;YAEvD,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE;gBACjB,SAAS,CAAC,GAAG;oBACX,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;wBAC9B,CAAC,CAAC,IAAI,CAAC,OAAO;wBACd,CAAC,CAAC,IAAA,uBAAa,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACnC;YAED,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAE;gBACf,SAAS,CAAC,KAAK,GAAG,SAAS,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,KAAK,EAAE,CAAC;aAChE;iBAAM,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,EAAE;gBACnB,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC;aAC3B;YAED,OAAO;gBACL,EAAE,EAAE,kBAAU,CAAC,YAAY;gBAC3B,IAAI,EAAE,KAAe;gBACrB,IAAI,EAAE,SAAS;aAChB,CAAC;QACJ,CAAC,CACF;QAED;;;;;;;;;;;WAWG;QACH,GAAG,EAAE,UAAU,CAwBb,CAAC,IAAI,EAAE,EAAE;YACP,OAAO;gBACL,EAAE,EAAE,kBAAU,CAAC,OAAO;gBACtB,IAAI;aACL,CAAC;QACJ,CAAC,EACD,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAC1B,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;QACjB,CAAC,CACF;QAED;;;;;WAKG;QACH,KAAK,EAAE,UAAU,CAOf,CAAC,IAAI,EAAE,EAAE;YACT;;;eAGG;YACH,OAAO;gBACL,EAAE,EAAE,kBAAU,CAAC,KAAK;gBACpB,IAAI,EAAE,IAAI;aACX,CAAC;QACJ,CAAC,CAAC;QAEF;;;;WAIG;QACH,UAAU,EAAE,UAAU,CAOpB,CAAC,IAAI,EAAE,EAAE;YACT;;;eAGG;YACH,OAAO;gBACL,EAAE,EAAE,kBAAU,CAAC,KAAK;gBACpB,IAAI,EAAE,IAAA,uBAAa,EAAC,IAAI,CAAC;aAC1B,CAAC;QACJ,CAAC,CAAC;KACH,CAAC;IAEF,OAAO,CAAC,KAAK,EAAE,KAAK,CAAiC,CAAC;AACxD,CAAC,CAAC;AAlWW,QAAA,eAAe,mBAkW1B;AAkEF;;;;GAIG;AACH,MAAM,MAAM,GAAG;AACb;;;GAGG;AACH,EAAM;AAEN;;;;GAIG;AACH,GAAW,EACH,EAAE;IACV,OAAO,CACL,IAAA,cAAI,GAAE;QACJ,mEAAmE;SAClE,MAAM,CAAC,IAAA,iBAAO,EAAC,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;SACjE,MAAM,CAAC,KAAK,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"InngestStepTools.js","sourceRoot":"","sources":["../../src/components/InngestStepTools.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA+B;AAC/B,sDAA8B;AAC9B,gDAA6C;AAE7C,oCAA2E;AAE3E;;;GAGG;AACH,MAAa,iBAAiB;CAAG;AAAjC,8CAAiC;AAEjC;;;;;;;;;;;;;;;GAeG;AACI,MAAM,eAAe,GAAG,CAI7B,QAAiB,EACjB,EAAE;IACF;;;;;;;;;;;OAWG;IACH,IAAI,gBAAgB,GAAG,IAAI,CAAC;IAE5B;;;;;;OAMG;IACH,IAAI,GAAG,GAAG,CAAC,CAAC;IAEZ;;;OAGG;IACH,MAAM,OAAO,qBAAQ,QAAQ,CAAE,CAAC;IAEhC;;;;;OAKG;IACH,MAAM,iBAAiB,GAAG,CACxB,EAAY,EACgD,EAAE;QAC9D,MAAM,IAAI,GAAY,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACrC,iEAAiE;QACjE,kEAAkE;QAClE,uBAAuB;QACvB,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,IAAW,CAAC,CAAC;IAC3C,CAAC,CAAC;IAEF;;;;;;;;OAQG;IACH,MAAM,UAAU,GAAG;IACjB;;;;;;;;OAQG;IACH,OAKO;IAEP;;;;;;;;;;OAUG;IACH,EAeQ,EACL,EAAE;QACL,OAAO,CAAC,CAAC,GAAG,IAAmB,EAAE,EAAE;YACjC;;;eAGG;YACH,IAAI,CAAC,gBAAgB,EAAE;gBACrB,MAAM,IAAI,iBAAiB,EAAE,CAAC;aAC/B;YAED;;eAEG;YACH,MAAM,YAAY,GAAO,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;YAE1C;;eAEG;YACH,MAAM,IAAI,mCACL,YAAY,KACf,EAAE,EAAE,MAAM,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,GAChC,CAAC;YAEF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAE9C,IAAI,KAAK,EAAE;gBACT,+DAA+D;gBAC/D,OAAO,IAAI,CAAC;aACb;YAED;;;eAGG;YACH,gBAAgB,GAAG,KAAK,CAAC;YAEzB,MAAM,QAAQ,GAEK,CAAC,GAAG,IAAI,EAAE,EAAE;gBAC7B,KAAK,CAAC,MAAM,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAC5D,CAAC,IAAI,EAAE,EAAE,CAAC,iCACL,IAAI,GACJ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAChC,CACH,CAAC;YACJ,CAAC,CAAC;YAEF;;;;;;eAMG;YACH,IAAI,EAAE,EAAE;gBACN,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;aAC3B;iBAAM;gBACL,QAAQ,EAAE,CAAC;aACZ;YAED;;;;eAIG;YACH,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBACjB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aACzD;YAED;;;eAGG;YACH,MAAM,IAAI,iBAAiB,EAAE,CAAC;QAChC,CAAC,CAAM,CAAC;IACV,CAAC,CAAC;IAEF,MAAM,KAAK,GAEP;QACF,MAAM,EAAE,SAAS;KAClB,CAAC;IAEF;;;;;OAKG;IACH,MAAM,KAAK,GAAG;QACZ;;;;;;;;WAQG;QACH,YAAY,EAAE,UAAU,CA0BtB;QACE;;WAEG;QACH,KAAK;QAEL;;WAEG;QACH,IAAgC,EAChC,EAAE;YACF,MAAM,SAAS,GAAoC;gBACjD,GAAG,EAAE,IAAA,iBAAO,EAAC,IAAI,CAAC,OAAO,CAAC;aAC3B,CAAC;YAEF,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAE;gBACf,SAAS,CAAC,KAAK,GAAG,SAAS,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,KAAK,EAAE,CAAC;aAChE;iBAAM,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,EAAE;gBACnB,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC;aAC3B;YAED,OAAO;gBACL,EAAE,EAAE,kBAAU,CAAC,YAAY;gBAC3B,IAAI,EAAE,KAAe;gBACrB,IAAI,EAAE,SAAS;aAChB,CAAC;QACJ,CAAC,CACF;QAED;;;;;;;;;;;WAWG;QACH,GAAG,EAAE,UAAU,CAwBb,CAAC,IAAI,EAAE,EAAE;YACP,OAAO;gBACL,EAAE,EAAE,kBAAU,CAAC,OAAO;gBACtB,IAAI;aACL,CAAC;QACJ,CAAC,EACD,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAC1B,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;QACjB,CAAC,CACF;QAED;;;;;;;;;WASG;QACH,KAAK,EAAE,UAAU,CAOf,CAAC,IAAI,EAAE,EAAE;YACT;;;eAGG;YACH,OAAO;gBACL,EAAE,EAAE,kBAAU,CAAC,KAAK;gBACpB,IAAI,EAAE,IAAA,iBAAO,EAAC,IAAI,CAAC;aACpB,CAAC;QACJ,CAAC,CAAC;QAEF;;;;WAIG;QACH,UAAU,EAAE,UAAU,CAOpB,CAAC,IAAI,EAAE,EAAE;YACT;;;eAGG;YACH,OAAO;gBACL,EAAE,EAAE,kBAAU,CAAC,KAAK;gBACpB,IAAI,EAAE,IAAA,iBAAO,EAAC,IAAI,CAAC;aACpB,CAAC;QACJ,CAAC,CAAC;KACH,CAAC;IAEF,OAAO,CAAC,KAAK,EAAE,KAAK,CAAiC,CAAC;AACxD,CAAC,CAAC;AAtWW,QAAA,eAAe,mBAsW1B;AA4DF;;;;GAIG;AACH,MAAM,MAAM,GAAG;AACb;;;GAGG;AACH,EAAM;AAEN;;;;GAIG;AACH,GAAW,EACH,EAAE;IACV,OAAO,CACL,IAAA,cAAI,GAAE;QACJ,mEAAmE;SAClE,MAAM,CAAC,IAAA,iBAAO,EAAC,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;SACjE,MAAM,CAAC,KAAK,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC"}
package/helpers/func.d.ts CHANGED
@@ -23,5 +23,5 @@ export declare const createScheduledFunction: (nameOrOpts: string | FunctionOpti
23
23
  *
24
24
  * @public
25
25
  */
26
- export declare const createStepFunction: <Events extends Record<string, EventPayload>, Event_1 extends keyof Events>(nameOrOpts: string | FunctionOptions, event: EventName<Events[Event_1]>, fn: MultiStepFn<Events, Event_1, string, "step">) => InngestFunction<any>;
26
+ export declare const createStepFunction: <T extends EventPayload>(nameOrOpts: string | FunctionOptions, event: EventName<T>, fn: MultiStepFn<Record<T["name"], T>, T["name"], string, "step">) => InngestFunction<any>;
27
27
  //# sourceMappingURL=func.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../src/helpers/func.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,6CAKb,MAAM,GAAG,eAAe,2EAWnC,gBAAgB,GAAG,CAMrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,eAKtB,MAAM,GAAG,eAAe,QAY9B,MAAM,MAKR,aAAa,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,KACrC,gBAAgB,GAAG,CAMrB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,0FAQjB,MAAM,GAAG,eAAe,0FAWnC,gBAAgB,GAAG,CAMrB,CAAC"}
1
+ {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../src/helpers/func.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,6CAKb,MAAM,GAAG,eAAe,2EAWnC,gBAAgB,GAAG,CAMrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,eAKtB,MAAM,GAAG,eAAe,QAY9B,MAAM,MAKR,aAAa,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,KACrC,gBAAgB,GAAG,CAMrB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,uCAKjB,MAAM,GAAG,eAAe,4FAWnC,gBAAgB,GAAG,CAMrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"func.js","sourceRoot":"","sources":["../../src/helpers/func.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAShE;;;;;GAKG;AACI,MAAM,cAAc,GAAG;AAC5B;;;GAGG;AACH,UAAoC;AAEpC;;GAEG;AACH,KAAuB;AAEvB;;GAEG;AACH,EAAuC,EACjB,EAAE;IACxB,OAAO,IAAI,iCAAe,CACxB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,EAClE,EAAE,KAAK,EAAE,KAAe,EAAE,EAC1B,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,cAAc,kBAsBzB;AAEF;;;;GAIG;AACI,MAAM,uBAAuB,GAAG;AACrC;;;GAGG;AACH,UAAoC;AAEpC;;;;;;;;;GASG;AACH,IAAY;AAEZ;;GAEG;AACH,EAAsC,EAChB,EAAE;IACxB,OAAO,IAAI,iCAAe,CACxB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,EAClE,EAAE,IAAI,EAAE,EACR,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,uBAAuB,2BA6BlC;AAEF;;;;;;;;GAQG;AACI,MAAM,kBAAkB,GAAG;AAIhC;;;GAGG;AACH,UAAoC;AAEpC;;GAEG;AACH,KAA+B;AAE/B;;GAEG;AACH,EAA8C,EACxB,EAAE;IACxB,OAAO,IAAI,iCAAe,CACxB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,EAClE,EAAE,KAAK,EAAE,KAAe,EAAE,EAC1B,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,kBAAkB,sBAyB7B"}
1
+ {"version":3,"file":"func.js","sourceRoot":"","sources":["../../src/helpers/func.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAShE;;;;;GAKG;AACI,MAAM,cAAc,GAAG;AAC5B;;;GAGG;AACH,UAAoC;AAEpC;;GAEG;AACH,KAAuB;AAEvB;;GAEG;AACH,EAAuC,EACjB,EAAE;IACxB,OAAO,IAAI,iCAAe,CACxB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,EAClE,EAAE,KAAK,EAAE,KAAe,EAAE,EAC1B,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,cAAc,kBAsBzB;AAEF;;;;GAIG;AACI,MAAM,uBAAuB,GAAG;AACrC;;;GAGG;AACH,UAAoC;AAEpC;;;;;;;;;GASG;AACH,IAAY;AAEZ;;GAEG;AACH,EAAsC,EAChB,EAAE;IACxB,OAAO,IAAI,iCAAe,CACxB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,EAClE,EAAE,IAAI,EAAE,EACR,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,uBAAuB,2BA6BlC;AAEF;;;;;;;;GAQG;AACI,MAAM,kBAAkB,GAAG;AAChC;;;GAGG;AACH,UAAoC;AAEpC;;GAEG;AACH,KAAmB;AAEnB;;GAEG;AACH,EAAgE,EAC1C,EAAE;IACxB,OAAO,IAAI,iCAAe,CACxB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,EAClE,EAAE,KAAK,EAAE,KAAe,EAAE,EAC1B,EAAE,CACH,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,kBAAkB,sBAsB7B"}
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export declare const slugify: (str: string) => string;
5
5
  /**
6
- * Convert a given `date` to a sleep-compatible time string (e.g. `"1d"` or
7
- * `"2h3010s"`).
6
+ * Convert a given `Date`, `number`, or `ms`-compatible `string` to a
7
+ * Inngest sleep-compatible time string (e.g. `"1d"` or `"2h3010s"`).
8
8
  *
9
9
  * Can optionally provide a `now` date to use as the base for the calculation,
10
10
  * otherwise a new date will be created on invocation.
11
11
  */
12
- export declare const dateToTimeStr: (date: Date, now?: Date) => string;
12
+ export declare const timeStr: (input: string | number | Date, now?: Date) => string;
13
13
  //# sourceMappingURL=strings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/helpers/strings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,QAAS,MAAM,KAAG,MASrC,CAAC;AAsBF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,SAIlB,IAAI,iBAMT,MAiCF,CAAC"}
1
+ {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/helpers/strings.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,OAAO,QAAS,MAAM,KAAG,MASrC,CAAC;AAqBF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,UAIX,MAAM,GAAG,MAAM,GAAG,IAAI,iBAM5B,MAiCF,CAAC"}
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dateToTimeStr = exports.slugify = void 0;
6
+ exports.timeStr = exports.slugify = void 0;
7
+ const ms_1 = __importDefault(require("ms"));
4
8
  /**
5
9
  * Returns a slugified string used ot generate consistent IDs.
6
10
  */
@@ -31,37 +35,34 @@ const periods = [
31
35
  ["h", hour],
32
36
  ["m", minute],
33
37
  ["s", second],
34
- ["ms", millisecond],
35
38
  ];
36
39
  /**
37
- * Convert a given `date` to a sleep-compatible time string (e.g. `"1d"` or
38
- * `"2h3010s"`).
40
+ * Convert a given `Date`, `number`, or `ms`-compatible `string` to a
41
+ * Inngest sleep-compatible time string (e.g. `"1d"` or `"2h3010s"`).
39
42
  *
40
43
  * Can optionally provide a `now` date to use as the base for the calculation,
41
44
  * otherwise a new date will be created on invocation.
42
45
  */
43
- const dateToTimeStr = (
46
+ const timeStr = (
44
47
  /**
45
48
  * The future date to use to convert to a time string.
46
49
  */
47
- date,
50
+ input,
48
51
  /**
49
52
  * Optionally provide a date to use as the base for the calculation.
50
53
  */
51
54
  now = new Date()) => {
55
+ let date = input;
56
+ if (typeof date === "string" || typeof date === "number") {
57
+ const numTimeout = typeof date === "string" ? (0, ms_1.default)(date) : date;
58
+ date = new Date(Date.now() + numTimeout);
59
+ }
60
+ now.setMilliseconds(0);
61
+ date.setMilliseconds(0);
52
62
  const isValidDate = !isNaN(date.getTime());
53
63
  if (!isValidDate) {
54
64
  throw new Error("Invalid date given to convert to time string");
55
65
  }
56
- /**
57
- * TODO In this eventuality, should we smartly skip the sleep?
58
- *
59
- * We'd have to return two ops to Inngest, this being skipped and the
60
- * next.
61
- */
62
- if (date <= now) {
63
- throw new Error("Cannot sleep until a time in the past");
64
- }
65
66
  const timeNum = date.getTime() - now.getTime();
66
67
  const [, timeStr] = periods.reduce(([num, str], [suffix, period]) => {
67
68
  const numPeriods = Math.floor(num / period);
@@ -72,5 +73,5 @@ now = new Date()) => {
72
73
  }, [timeNum, ""]);
73
74
  return timeStr;
74
75
  };
75
- exports.dateToTimeStr = dateToTimeStr;
76
+ exports.timeStr = timeStr;
76
77
  //# sourceMappingURL=strings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/helpers/strings.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAU,EAAE;IAC7C,MAAM,IAAI,GAAG,GAAG,CAAC;IACjB,OAAO,GAAG;SACP,WAAW,EAAE;SACb,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;SAC7B,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC;SACpB,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC,CAAC;AATW,QAAA,OAAO,WASlB;AAEF,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;AAClC,MAAM,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC;AAC3B,MAAM,IAAI,GAAG,MAAM,GAAG,EAAE,CAAC;AACzB,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;AACtB,MAAM,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC;AAErB;;;GAGG;AACH,MAAM,OAAO,GAAG;IACd,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,CAAC;IACb,CAAC,IAAI,EAAE,WAAW,CAAC;CACX,CAAC;AAEX;;;;;;GAMG;AACI,MAAM,aAAa,GAAG;AAC3B;;GAEG;AACH,IAAU;AAEV;;GAEG;AACH,GAAG,GAAG,IAAI,IAAI,EAAE,EACR,EAAE;IACV,MAAM,WAAW,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAE3C,IAAI,CAAC,WAAW,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;KACjE;IAED;;;;;OAKG;IACH,IAAI,IAAI,IAAI,GAAG,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;KAC1D;IAED,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAE/C,MAAM,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAChC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;QAE5C,IAAI,UAAU,GAAG,CAAC,EAAE;YAClB,OAAO,CAAC,GAAG,GAAG,MAAM,EAAE,GAAG,GAAG,GAAG,UAAU,GAAG,MAAM,EAAE,CAAC,CAAC;SACvD;QAED,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,EACD,CAAC,OAAO,EAAE,EAAE,CAAC,CACd,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AA3CW,QAAA,aAAa,iBA2CxB"}
1
+ {"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/helpers/strings.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AAEpB;;GAEG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAU,EAAE;IAC7C,MAAM,IAAI,GAAG,GAAG,CAAC;IACjB,OAAO,GAAG;SACP,WAAW,EAAE;SACb,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;SAC7B,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC;SACpB,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC,CAAC;AATW,QAAA,OAAO,WASlB;AAEF,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;AAClC,MAAM,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC;AAC3B,MAAM,IAAI,GAAG,MAAM,GAAG,EAAE,CAAC;AACzB,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;AACtB,MAAM,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC;AAErB;;;GAGG;AACH,MAAM,OAAO,GAAG;IACd,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,CAAC;CACL,CAAC;AAEX;;;;;;GAMG;AACI,MAAM,OAAO,GAAG;AACrB;;GAEG;AACH,KAA6B;AAE7B;;GAEG;AACH,GAAG,GAAG,IAAI,IAAI,EAAE,EACR,EAAE;IACV,IAAI,IAAI,GAAG,KAAK,CAAC;IAEjB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QACxD,MAAM,UAAU,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,YAAE,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC9D,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,UAAU,CAAC,CAAC;KAC1C;IAED,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IACvB,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAExB,MAAM,WAAW,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAE3C,IAAI,CAAC,WAAW,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;KACjE;IAED,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAE/C,MAAM,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAChC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;QAE5C,IAAI,UAAU,GAAG,CAAC,EAAE;YAClB,OAAO,CAAC,GAAG,GAAG,MAAM,EAAE,GAAG,GAAG,GAAG,UAAU,GAAG,MAAM,EAAE,CAAC,CAAC;SACvD;QAED,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,EACD,CAAC,OAAO,EAAE,EAAE,CAAC,CACd,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AA3CW,QAAA,OAAO,WA2ClB"}
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Inngest } from "./components/Inngest";
2
- export { createFunction, createScheduledFunction } from "./helpers/func";
2
+ export { createFunction, createScheduledFunction, createStepFunction, } from "./helpers/func";
3
3
  export type { ClientOptions, EventPayload, FunctionOptions, MultiStepFn, MultiStepFnArgs, RegisterOptions, SingleStepFn, SingleStepFnArgs, TimeStr, } from "./types";
4
4
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzE,YAAY,EACV,aAAa,EACb,YAAY,EACZ,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,OAAO,GACR,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,aAAa,EACb,YAAY,EACZ,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,OAAO,GACR,MAAM,SAAS,CAAC"}
package/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createScheduledFunction = exports.createFunction = exports.Inngest = void 0;
3
+ exports.createStepFunction = exports.createScheduledFunction = exports.createFunction = exports.Inngest = void 0;
4
4
  var Inngest_1 = require("./components/Inngest");
5
5
  Object.defineProperty(exports, "Inngest", { enumerable: true, get: function () { return Inngest_1.Inngest; } });
6
6
  var func_1 = require("./helpers/func");
7
7
  Object.defineProperty(exports, "createFunction", { enumerable: true, get: function () { return func_1.createFunction; } });
8
8
  Object.defineProperty(exports, "createScheduledFunction", { enumerable: true, get: function () { return func_1.createScheduledFunction; } });
9
+ Object.defineProperty(exports, "createStepFunction", { enumerable: true, get: function () { return func_1.createStepFunction; } });
9
10
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAAtC,kGAAA,OAAO,OAAA;AAChB,uCAAyE;AAAhE,sGAAA,cAAc,OAAA;AAAE,+GAAA,uBAAuB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAAtC,kGAAA,OAAO,OAAA;AAChB,uCAIwB;AAHtB,sGAAA,cAAc,OAAA;AACd,+GAAA,uBAAuB,OAAA;AACvB,0GAAA,kBAAkB,OAAA"}
package/landing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const landing = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Inngest SDK - Your functions</title>\n <script type=\"module\" crossorigin>\nvar Fr=Object.defineProperty;var Or=(e,t,r)=>t in e?Fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>(Or(e,typeof t!=\"symbol\"?t+\"\":t,r),r),De=(e,t,r)=>{if(!t.has(e))throw TypeError(\"Cannot \"+r)};var O=(e,t,r)=>(De(e,t,\"read from private field\"),r?r.call(e):t.get(e)),Y=(e,t,r)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,r)},Se=(e,t,r,n)=>(De(e,t,\"write to private field\"),n?n.call(e,r):t.set(e,r),r);var ze=(e,t,r)=>(De(e,t,\"access private method\"),r);(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const i of document.querySelectorAll('link[rel=\"modulepreload\"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type===\"childList\")for(const s of o.addedNodes)s.tagName===\"LINK\"&&s.rel===\"modulepreload\"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin===\"use-credentials\"?o.credentials=\"include\":i.crossorigin===\"anonymous\"?o.credentials=\"omit\":o.credentials=\"same-origin\",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Pe,v,Ot,_e,dt,Wt,Ce={},Vt=[],Wr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function j(e,t){for(var r in t)e[r]=t[r];return e}function Mt(e){var t=e.parentNode;t&&t.removeChild(e)}function Ge(e,t,r){var n,i,o,s={};for(o in t)o==\"key\"?n=t[o]:o==\"ref\"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Pe.call(arguments,2):r),typeof e==\"function\"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Ee(e,s,n,i,null)}function Ee(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Ot:i};return i==null&&v.vnode!=null&&v.vnode(o),o}function k(e){return e.children}function W(e,t){this.props=e,this.context=t}function Q(e,t){if(t==null)return e.__?Q(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type==\"function\"?Q(e):null}function Gt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Gt(e)}}function Ke(e){(!e.__d&&(e.__d=!0)&&_e.push(e)&&!He.__r++||dt!==v.debounceRendering)&&((dt=v.debounceRendering)||setTimeout)(He)}function He(){for(var e;He.__r=_e.length;)e=_e.sort(function(t,r){return t.__v.__b-r.__v.__b}),_e=[],e.some(function(t){var r,n,i,o,s,c;t.__d&&(s=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(i=j({},o)).__v=o.__v+1,Qe(c,o,i,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[s]:null,n,s==null?Q(o):s,o.__h),qt(n,o),o.__e!=s&&Gt(o)))})}function Kt(e,t,r,n,i,o,s,c,f,u){var a,_,h,d,p,w,g,b=n&&n.__k||Vt,S=b.length;for(r.__k=[],a=0;a<t.length;a++)if((d=r.__k[a]=(d=t[a])==null||typeof d==\"boolean\"?null:typeof d==\"string\"||typeof d==\"number\"||typeof d==\"bigint\"?Ee(null,d,null,null,d):Array.isArray(d)?Ee(k,{children:d},null,null,null):d.__b>0?Ee(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(h=b[a])===null||h&&d.key==h.key&&d.type===h.type)b[a]=void 0;else for(_=0;_<S;_++){if((h=b[_])&&d.key==h.key&&d.type===h.type){b[_]=void 0;break}h=null}Qe(e,d,h=h||Ce,i,o,s,c,f,u),p=d.__e,(_=d.ref)&&h.ref!=_&&(g||(g=[]),h.ref&&g.push(h.ref,null,d),g.push(_,d.__c||p,d)),p!=null?(w==null&&(w=p),typeof d.type==\"function\"&&d.__k===h.__k?d.__d=f=jt(d,f,e):f=Jt(e,d,h,b,p,f),typeof r.type==\"function\"&&(r.__d=f)):f&&h.__e==f&&f.parentNode!=e&&(f=Q(h))}for(r.__e=w,a=S;a--;)b[a]!=null&&(typeof r.type==\"function\"&&b[a].__e!=null&&b[a].__e==r.__d&&(r.__d=Q(n,a+1)),Xt(b[a],b[a]));if(g)for(a=0;a<g.length;a++)Yt(g[a],g[++a],g[++a])}function jt(e,t,r){for(var n,i=e.__k,o=0;i&&o<i.length;o++)(n=i[o])&&(n.__=e,t=typeof n.type==\"function\"?jt(n,t,r):Jt(r,n,n,i,n.__e,t));return t}function Ie(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(Array.isArray(e)?e.some(function(r){Ie(r,t)}):t.push(e)),t}function Jt(e,t,r,n,i,o){var s,c,f;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(r==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),s=null;else{for(c=o,f=0;(c=c.nextSibling)&&f<n.length;f+=2)if(c==i)break e;e.insertBefore(i,o),s=o}return s!==void 0?s:i.nextSibling}function Vr(e,t,r,n,i){var o;for(o in r)o===\"children\"||o===\"key\"||o in t||Le(e,o,null,r[o],n);for(o in t)i&&typeof t[o]!=\"function\"||o===\"children\"||o===\"key\"||o===\"value\"||o===\"checked\"||r[o]===t[o]||Le(e,o,t[o],r[o],n)}function vt(e,t,r){t[0]===\"-\"?e.setProperty(t,r):e[t]=r==null?\"\":typeof r!=\"number\"||Wr.test(t)?r:r+\"px\"}function Le(e,t,r,n,i){var o;e:if(t===\"style\")if(typeof r==\"string\")e.style.cssText=r;else{if(typeof n==\"string\"&&(e.style.cssText=n=\"\"),n)for(t in n)r&&t in r||vt(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||vt(e.style,t,r[t])}else if(t[0]===\"o\"&&t[1]===\"n\")o=t!==(t=t.replace(/Capture$/,\"\")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?xt:pt,o):e.removeEventListener(t,o?xt:pt,o);else if(t!==\"dangerouslySetInnerHTML\"){if(i)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!==\"href\"&&t!==\"list\"&&t!==\"form\"&&t!==\"tabIndex\"&&t!==\"download\"&&t in e)try{e[t]=r==null?\"\":r;break e}catch{}typeof r==\"function\"||(r!=null&&(r!==!1||t[0]===\"a\"&&t[1]===\"r\")?e.setAttribute(t,r):e.removeAttribute(t))}}function pt(e){this.l[e.type+!1](v.event?v.event(e):e)}function xt(e){this.l[e.type+!0](v.event?v.event(e):e)}function Qe(e,t,r,n,i,o,s,c,f){var u,a,_,h,d,p,w,g,b,S,z,F,A,y=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(f=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(u=v.__b)&&u(t);try{e:if(typeof y==\"function\"){if(g=t.props,b=(u=y.contextType)&&n[u.__c],S=u?b?b.props.value:u.__:n,r.__c?w=(a=t.__c=r.__c).__=a.__E:(\"prototype\"in y&&y.prototype.render?t.__c=a=new y(g,S):(t.__c=a=new W(g,S),a.constructor=y,a.render=Gr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=S,a.__n=n,_=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),y.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=j({},a.__s)),j(a.__s,y.getDerivedStateFromProps(g,a.__s))),h=a.props,d=a.state,_)y.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(y.getDerivedStateFromProps==null&&g!==h&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,S),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,S)===!1||t.__v===r.__v){a.props=g,a.state=a.__s,t.__v!==r.__v&&(a.__d=!1),a.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(C){C&&(C.__=t)}),a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,S),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(h,d,p)})}if(a.context=S,a.props=g,a.__v=t,a.__P=e,z=v.__r,F=0,\"prototype\"in y&&y.prototype.render)a.state=a.__s,a.__d=!1,z&&z(t),u=a.render(a.props,a.state,a.context);else do a.__d=!1,z&&z(t),u=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++F<25);a.state=a.__s,a.getChildContext!=null&&(n=j(j({},n),a.getChildContext())),_||a.getSnapshotBeforeUpdate==null||(p=a.getSnapshotBeforeUpdate(h,d)),A=u!=null&&u.type===k&&u.key==null?u.props.children:u,Kt(e,Array.isArray(A)?A:[A],t,r,n,i,o,s,c,f),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),w&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Mr(r.__e,t,r,n,i,o,s,f);(u=v.diffed)&&u(t)}catch(C){t.__v=null,(f||o!=null)&&(t.__e=c,t.__h=!!f,o[o.indexOf(c)]=null),v.__e(C,t,r)}}function qt(e,t){v.__c&&v.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){v.__e(n,r.__v)}})}function Mr(e,t,r,n,i,o,s,c){var f,u,a,_=r.props,h=t.props,d=t.type,p=0;if(d===\"svg\"&&(i=!0),o!=null){for(;p<o.length;p++)if((f=o[p])&&\"setAttribute\"in f==!!d&&(d?f.localName===d:f.nodeType===3)){e=f,o[p]=null;break}}if(e==null){if(d===null)return document.createTextNode(h);e=i?document.createElementNS(\"http://www.w3.org/2000/svg\",d):document.createElement(d,h.is&&h),o=null,c=!1}if(d===null)_===h||c&&e.data===h||(e.data=h);else{if(o=o&&Pe.call(e.childNodes),u=(_=r.props||Ce).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!c){if(o!=null)for(_={},p=0;p<e.attributes.length;p++)_[e.attributes[p].name]=e.attributes[p].value;(a||u)&&(a&&(u&&a.__html==u.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||\"\"))}if(Vr(e,h,_,i,c),a)t.__k=[];else if(p=t.props.children,Kt(e,Array.isArray(p)?p:[p],t,r,n,i&&d!==\"foreignObject\",o,s,o?o[0]:r.__k&&Q(r,0),c),o!=null)for(p=o.length;p--;)o[p]!=null&&Mt(o[p]);c||(\"value\"in h&&(p=h.value)!==void 0&&(p!==e.value||d===\"progress\"&&!p||d===\"option\"&&p!==_.value)&&Le(e,\"value\",p,_.value,!1),\"checked\"in h&&(p=h.checked)!==void 0&&p!==e.checked&&Le(e,\"checked\",p,_.checked,!1))}return e}function Yt(e,t,r){try{typeof e==\"function\"?e(t):e.current=t}catch(n){v.__e(n,r)}}function Xt(e,t,r){var n,i;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Yt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){v.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Xt(n[i],t,typeof e.type!=\"function\");r||e.__e==null||Mt(e.__e),e.__=e.__e=e.__d=void 0}function Gr(e,t,r){return this.constructor(e,r)}function Kr(e,t,r){var n,i,o;v.__&&v.__(e,t),i=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,o=[],Qe(t,e=(!n&&r||t).__k=Ge(k,null,[e]),i||Ce,Ce,t.ownerSVGElement!==void 0,!n&&r?[r]:i?null:t.firstChild?Pe.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n),qt(o,e)}function Zt(e,t){var r={__c:t=\"__cC\"+Wt++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(Ke)},this.sub=function(s){i.push(s);var c=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),c&&c.call(s)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Pe=Vt.slice,v={__e:function(e,t,r,n){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),s=i.__d),s)return i.__E=i}catch(c){e=c}throw e}},Ot=0,W.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=j({},this.state),typeof e==\"function\"&&(e=e(j({},r),this.props)),e&&j(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),Ke(this))},W.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ke(this))},W.prototype.render=k,_e=[],He.__r=0,Wt=0;var jr=0;function l(e,t,r,n,i){var o,s,c={};for(s in t)s==\"ref\"?o=t[s]:c[s]=t[s];var f={type:e,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--jr,__source:i,__self:n};if(typeof e==\"function\"&&(o=e.defaultProps))for(s in o)c[s]===void 0&&(c[s]=o[s]);return v.vnode&&v.vnode(f),f}const Jr=({children:e})=>l(\"div\",{class:\"w-full h-full\",children:e}),ue=({children:e})=>l(\"div\",{class:\"w-full flex justify-center\",children:l(\"div\",{class:\"w-[70rem] max-w-full px-8\",children:e})});var ge,m,Fe,gt,he=0,Qt=[],Ne=[],bt=v.__b,mt=v.__r,yt=v.diffed,wt=v.__c,St=v.unmount;function Re(e,t){v.__h&&v.__h(m,e,he||t),he=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Ne}),r.__[e]}function be(e){return he=1,er(rr,e)}function er(e,t,r){var n=Re(ge++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):rr(void 0,t),function(o){var s=n.__N?n.__N[0]:n.__[0],c=n.t(s,o);s!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.u)){m.u=!0;var i=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,s,c){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(a){return a.__c});if(f.every(function(a){return!a.__N}))return!i||i.call(this,o,s,c);var u=!1;return f.forEach(function(a){if(a.__N){var _=a.__[0];a.__=a.__N,a.__N=void 0,_!==a.__[0]&&(u=!0)}}),!!u&&(!i||i.call(this,o,s,c))}}return n.__N||n.__}function de(e,t){var r=Re(ge++,3);!v.__s&&tr(r.__H,t)&&(r.__=e,r.i=t,m.__H.__h.push(r))}function et(e){return he=5,I(function(){return{current:e}},[])}function I(e,t){var r=Re(ge++,7);return tr(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function tt(e,t){return he=8,I(function(){return e},t)}function qr(e){var t=m.context[e.__c],r=Re(ge++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(m)),t.props.value):e.__}function Yr(){for(var e;e=Qt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ae),e.__H.__h.forEach(je),e.__H.__h=[]}catch(t){e.__H.__h=[],v.__e(t,e.__v)}}v.__b=function(e){typeof e.type!=\"function\"||e.o||e.type===k?e.o||(e.o=e.__&&e.__.o?e.__.o:\"\"):e.o=(e.__&&e.__.o?e.__.o:\"\")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,bt&&bt(e)},v.__r=function(e){mt&&mt(e),ge=0;var t=(m=e.__c).__H;t&&(Fe===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Ne,r.__N=r.i=void 0})):(t.__h.forEach(Ae),t.__h.forEach(je),t.__h=[])),Fe=m},v.diffed=function(e){yt&&yt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qt.push(t)!==1&&gt===v.requestAnimationFrame||((gt=v.requestAnimationFrame)||Xr)(Yr)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Ne&&(r.__=r.__V),r.i=void 0,r.__V=Ne})),Fe=m=null},v.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ae),r.__h=r.__h.filter(function(n){return!n.__||je(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],v.__e(n,r.__v)}}),wt&&wt(e,t)},v.unmount=function(e){St&&St(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ae(n)}catch(i){t=i}}),r.__H=void 0,t&&v.__e(t,r.__v))};var kt=typeof requestAnimationFrame==\"function\";function Xr(e){var t,r=function(){clearTimeout(n),kt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);kt&&(t=requestAnimationFrame(r))}function Ae(e){var t=m,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),m=t}function je(e){var t=m;e.__c=e.__(),m=t}function tr(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function rr(e,t){return typeof t==\"function\"?t(e):t}function Zr(e,t){for(var r in t)e[r]=t[r];return e}function $t(e,t){for(var r in e)if(r!==\"__source\"&&!(r in t))return!0;for(var n in t)if(n!==\"__source\"&&e[n]!==t[n])return!0;return!1}function Et(e){this.props=e}(Et.prototype=new W).isPureReactComponent=!0,Et.prototype.shouldComponentUpdate=function(e,t){return $t(this.props,e)||$t(this.state,t)};var Nt=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Nt&&Nt(e)};var Qr=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}Qr(e,t,r,n)};var At=v.unmount;function nr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c==\"function\"&&n.__c()}),e.__c.__H=null),(e=Zr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return nr(n,t,r)})),e}function or(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return or(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Oe(){this.__u=0,this.t=null,this.__b=null}function ir(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ke(){this.u=null,this.o=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),At&&At(e)},(Oe.prototype=new W).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=ir(n.__v),o=!1,s=function(){o||(o=!0,r.__R=null,i?i(c):c())};r.__R=s;var c=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=or(u,u.__c.__P,u.__c.__O)}var a;for(n.setState({__a:n.__b=null});a=n.t.pop();)a.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},Oe.prototype.componentWillUnmount=function(){this.t=[]},Oe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement(\"div\"),n=this.__v.__k[0].__c;this.__v.__k[0]=nr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ge(k,null,e.fallback);return i&&(i.__h=null),[Ge(k,null,t.__a?null:e.children),i]};var Ct=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==\"t\"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(ke.prototype=new W).__a=function(e){var t=this,r=ir(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Ct(t,e,n)):i()};r?r(o):o()}},ke.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ie(e.children);e.revealOrder&&e.revealOrder[0]===\"b\"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},ke.prototype.componentDidUpdate=ke.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Ct(e,r,t)})};var en=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,tn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,rn=typeof document<\"u\",nn=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/i:/fil|che|ra/i).test(e)};W.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(W.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ht=v.event;function on(){}function sn(){return this.cancelBubble}function an(){return this.defaultPrevented}v.event=function(e){return Ht&&(e=Ht(e)),e.persist=on,e.isPropagationStopped=sn,e.isDefaultPrevented=an,e.nativeEvent=e};var It={configurable:!0,get:function(){return this.class}},Lt=v.vnode;v.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t==\"string\"){var i=t.indexOf(\"-\")===-1;for(var o in n={},r){var s=r[o];rn&&o===\"children\"&&t===\"noscript\"||o===\"value\"&&\"defaultValue\"in r&&s==null||(o===\"defaultValue\"&&\"value\"in r&&r.value==null?o=\"value\":o===\"download\"&&s===!0?s=\"\":/ondoubleclick/i.test(o)?o=\"ondblclick\":/^onchange(textarea|input)/i.test(o+t)&&!nn(r.type)?o=\"oninput\":/^onfocus$/i.test(o)?o=\"onfocusin\":/^onblur$/i.test(o)?o=\"onfocusout\":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&tn.test(o)?o=o.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():s===null&&(s=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o=\"oninputCapture\")),n[o]=s)}t==\"select\"&&n.multiple&&Array.isArray(n.value)&&(n.value=Ie(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t==\"select\"&&n.defaultValue!=null&&(n.value=Ie(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,r.class!=r.className&&(It.enumerable=\"className\"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,\"className\",It))}e.$$typeof=en,Lt&&Lt(e)};var Ut=v.__r;v.__r=function(e){Ut&&Ut(e),e.__c};var ee=function(){return ee=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ee.apply(this,arguments)};function Tt(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,i++)n[i]=o[s];return n}function cn(){var e=et(!1),t=tt(function(){return e.current},[]);return de(function(){return e.current=!0,function(){e.current=!1}},[]),t}function ln(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=et(0),i=cn(),o=be(r),s=o[0],c=o[1],f=tt(function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var _=++n.current;return s.loading||c(function(h){return ee(ee({},h),{loading:!0})}),e.apply(void 0,u).then(function(h){return i()&&_===n.current&&c({value:h,loading:!1}),h},function(h){return i()&&_===n.current&&c({error:h,loading:!1}),h})},t);return[s,f]}function un(e,t){t===void 0&&(t=[]);var r=ln(e,t,{loading:!0}),n=r[0],i=r[1];return de(function(){i()},[i]),n}var fn=function(e,t){t===void 0&&(t=[]);var r=be(0),n=r[0],i=r[1],o=un(e,Tt(t,[n])),s=o.loading,c=tt(function(){s||i(function(f){return f+1})},Tt(t,[s]));return ee(ee({},o),{retry:c})};const sr=fn;var _n=function(e,t){var r=et(function(){});de(function(){r.current=e}),de(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const ar=_n;var rt=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(rt||{}),ve=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(ve||{});const hn={[ve.EmptyTrigger]:l(k,{children:\"One or more triggers seems invalid; it has no event or cron definition. Make sure you've correctly used the function creation methods.\"}),[ve.NoTriggers]:l(k,{children:\"Can't find any triggers for this function, such as an event or a cron definition. Make sure you've correctly used the function creation methods.\"})},dn={[rt.NoSigningKey]:l(\"div\",{class:\"flex flex-col space-y-2\",children:[l(\"div\",{class:\"font-semibold\",children:\"Could not find signing key\"}),l(\"div\",{children:[\"A signing key is required to communicate with Inngest securely. We weren't passed one when calling \",l(\"code\",{children:\"serve()\"}),\" and couldn't find it in the recommended \",l(\"code\",{children:\"INNGEST_SIGNING_KEY\"}),\" environment variable.\"]}),l(\"div\",{children:[\"You can find your signing key in the\",\" \",l(\"a\",{href:\"https://app.inngest.com/secrets\",target:\"_blank\",children:\"Inngest Dashboard - Secrets section.\"})]})]})};var Je=(e=>(e.FnId=\"fnId\",e.StepId=\"stepId\",e.Introspect=\"introspect\",e))(Je||{}),cr=(e=>(e.SigningKey=\"INNGEST_SIGNING_KEY\",e.EventKey=\"INNGEST_EVENT_KEY\",e.LandingPage=\"INNGEST_LANDING_PAGE\",e.DevServerUrl=\"INNGEST_DEVSERVER_URL\",e))(cr||{});const lr=\"http://127.0.0.1:8288/\",vn=async(e=lr,t)=>{try{const r=ur(e,\"/dev\");return await(await t(r.toString())).json(),!0}catch{return!1}},ur=(e=lr,t=\"\")=>new URL(t,e.includes(\"://\")?e:`http://${e}`),pn=()=>(nt()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),xn=()=>(nt()?[\"production\",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes(\"production\"),nt=()=>typeof process<\"u\"&&\"env\"in process,gn=\"0.7.1-beta.1\",bn=e=>{const t=\"-\";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)},fr=1,_r=fr*1e3,hr=_r*60,dr=hr*60,vr=dr*24,mn=vr*7,yn=[[\"w\",mn],[\"d\",vr],[\"h\",dr],[\"m\",hr],[\"s\",_r],[\"ms\",fr]],Pt=(e,t=new Date)=>{if(!!isNaN(e.getTime()))throw new Error(\"Invalid date given to convert to time string\");if(e<=t)throw new Error(\"Cannot sleep until a time in the past\");const n=e.getTime()-t.getTime(),[,i]=yn.reduce(([o,s],[c,f])=>{const u=Math.floor(o/f);return u>0?[o%f,`${s}${u}${c}`]:[o,s]},[n,\"\"]);return i};var pr={},x={},me=xr;function xr(e,t){if(!e)throw new Error(t||\"Assertion failed\")}xr.equal=function(t,r,n){if(t!=r)throw new Error(n||\"Assertion failed: \"+t+\" != \"+r)};var qe={exports:{}};typeof Object.create==\"function\"?qe.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:qe.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var wn=me,Sn=qe.exports;x.inherits=Sn;function kn(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function $n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e==\"string\")if(t){if(t===\"hex\")for(e=e.replace(/[^a-z0-9]+/ig,\"\"),e.length%2!==0&&(e=\"0\"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):kn(e,i)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++i)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(i=0;i<e.length;i++)r[i]=e[i]|0;return r}x.toArray=$n;function En(e){for(var t=\"\",r=0;r<e.length;r++)t+=br(e[r].toString(16));return t}x.toHex=En;function gr(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}x.htonl=gr;function Nn(e,t){for(var r=\"\",n=0;n<e.length;n++){var i=e[n];t===\"little\"&&(i=gr(i)),r+=mr(i.toString(16))}return r}x.toHex32=Nn;function br(e){return e.length===1?\"0\"+e:e}x.zero2=br;function mr(e){return e.length===7?\"0\"+e:e.length===6?\"00\"+e:e.length===5?\"000\"+e:e.length===4?\"0000\"+e:e.length===3?\"00000\"+e:e.length===2?\"000000\"+e:e.length===1?\"0000000\"+e:e}x.zero8=mr;function An(e,t,r,n){var i=r-t;wn(i%4===0);for(var o=new Array(i/4),s=0,c=t;s<o.length;s++,c+=4){var f;n===\"big\"?f=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:f=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[s]=f>>>0}return o}x.join32=An;function Cn(e,t){for(var r=new Array(e.length*4),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];t===\"big\"?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=o&255)}return r}x.split32=Cn;function Hn(e,t){return e>>>t|e<<32-t}x.rotr32=Hn;function In(e,t){return e<<t|e>>>32-t}x.rotl32=In;function Ln(e,t){return e+t>>>0}x.sum32=Ln;function Un(e,t,r){return e+t+r>>>0}x.sum32_3=Un;function Tn(e,t,r,n){return e+t+r+n>>>0}x.sum32_4=Tn;function Pn(e,t,r,n,i){return e+t+r+n+i>>>0}x.sum32_5=Pn;function Rn(e,t,r,n){var i=e[t],o=e[t+1],s=n+o>>>0,c=(s<n?1:0)+r+i;e[t]=c>>>0,e[t+1]=s}x.sum64=Rn;function Bn(e,t,r,n){var i=t+n>>>0,o=(i<t?1:0)+e+r;return o>>>0}x.sum64_hi=Bn;function Dn(e,t,r,n){var i=t+n;return i>>>0}x.sum64_lo=Dn;function zn(e,t,r,n,i,o,s,c){var f=0,u=t;u=u+n>>>0,f+=u<t?1:0,u=u+o>>>0,f+=u<o?1:0,u=u+c>>>0,f+=u<c?1:0;var a=e+r+i+s+f;return a>>>0}x.sum64_4_hi=zn;function Fn(e,t,r,n,i,o,s,c){var f=t+n+o+c;return f>>>0}x.sum64_4_lo=Fn;function On(e,t,r,n,i,o,s,c,f,u){var a=0,_=t;_=_+n>>>0,a+=_<t?1:0,_=_+o>>>0,a+=_<o?1:0,_=_+c>>>0,a+=_<c?1:0,_=_+u>>>0,a+=_<u?1:0;var h=e+r+i+s+f+a;return h>>>0}x.sum64_5_hi=On;function Wn(e,t,r,n,i,o,s,c,f,u){var a=t+n+o+c+u;return a>>>0}x.sum64_5_lo=Wn;function Vn(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}x.rotr64_hi=Vn;function Mn(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.rotr64_lo=Mn;function Gn(e,t,r){return e>>>r}x.shr64_hi=Gn;function Kn(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.shr64_lo=Kn;var oe={},Rt=x,jn=me;function Be(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}oe.BlockHash=Be;Be.prototype.update=function(t,r){if(t=Rt.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Rt.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this};Be.prototype.digest=function(t){return this.update(this._pad()),jn(this.pending===null),this._digest(t)};Be.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,i=new Array(n+this.padLength);i[0]=128;for(var o=1;o<n;o++)i[o]=0;if(t<<=3,this.endian===\"big\"){for(var s=8;s<this.padLength;s++)i[o++]=0;i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=t>>>24&255,i[o++]=t>>>16&255,i[o++]=t>>>8&255,i[o++]=t&255}else for(i[o++]=t&255,i[o++]=t>>>8&255,i[o++]=t>>>16&255,i[o++]=t>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,s=8;s<this.padLength;s++)i[o++]=0;return i};var ie={},D={},Jn=x,L=Jn.rotr32;function qn(e,t,r,n){if(e===0)return yr(t,r,n);if(e===1||e===3)return Sr(t,r,n);if(e===2)return wr(t,r,n)}D.ft_1=qn;function yr(e,t,r){return e&t^~e&r}D.ch32=yr;function wr(e,t,r){return e&t^e&r^t&r}D.maj32=wr;function Sr(e,t,r){return e^t^r}D.p32=Sr;function Yn(e){return L(e,2)^L(e,13)^L(e,22)}D.s0_256=Yn;function Xn(e){return L(e,6)^L(e,11)^L(e,25)}D.s1_256=Xn;function Zn(e){return L(e,7)^L(e,18)^e>>>3}D.g0_256=Zn;function Qn(e){return L(e,17)^L(e,19)^e>>>10}D.g1_256=Qn;var te=x,eo=oe,to=D,We=te.rotl32,ce=te.sum32,ro=te.sum32_5,no=to.ft_1,kr=eo.BlockHash,oo=[1518500249,1859775393,2400959708,3395469782];function P(){if(!(this instanceof P))return new P;kr.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}te.inherits(P,kr);var io=P;P.blockSize=512;P.outSize=160;P.hmacStrength=80;P.padLength=64;P.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;i<n.length;i++)n[i]=We(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var o=this.h[0],s=this.h[1],c=this.h[2],f=this.h[3],u=this.h[4];for(i=0;i<n.length;i++){var a=~~(i/20),_=ro(We(o,5),no(a,s,c,f),u,n[i],oo[a]);u=f,f=c,c=We(s,30),s=o,o=_}this.h[0]=ce(this.h[0],o),this.h[1]=ce(this.h[1],s),this.h[2]=ce(this.h[2],c),this.h[3]=ce(this.h[3],f),this.h[4]=ce(this.h[4],u)};P.prototype._digest=function(t){return t===\"hex\"?te.toHex32(this.h,\"big\"):te.split32(this.h,\"big\")};var re=x,so=oe,se=D,ao=me,E=re.sum32,co=re.sum32_4,lo=re.sum32_5,uo=se.ch32,fo=se.maj32,_o=se.s0_256,ho=se.s1_256,vo=se.g0_256,po=se.g1_256,$r=so.BlockHash,xo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function R(){if(!(this instanceof R))return new R;$r.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=xo,this.W=new Array(64)}re.inherits(R,$r);var Er=R;R.blockSize=512;R.outSize=256;R.hmacStrength=192;R.padLength=64;R.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;i<n.length;i++)n[i]=co(po(n[i-2]),n[i-7],vo(n[i-15]),n[i-16]);var o=this.h[0],s=this.h[1],c=this.h[2],f=this.h[3],u=this.h[4],a=this.h[5],_=this.h[6],h=this.h[7];for(ao(this.k.length===n.length),i=0;i<n.length;i++){var d=lo(h,ho(u),uo(u,a,_),this.k[i],n[i]),p=E(_o(o),fo(o,s,c));h=_,_=a,a=u,u=E(f,d),f=c,c=s,s=o,o=E(d,p)}this.h[0]=E(this.h[0],o),this.h[1]=E(this.h[1],s),this.h[2]=E(this.h[2],c),this.h[3]=E(this.h[3],f),this.h[4]=E(this.h[4],u),this.h[5]=E(this.h[5],a),this.h[6]=E(this.h[6],_),this.h[7]=E(this.h[7],h)};R.prototype._digest=function(t){return t===\"hex\"?re.toHex32(this.h,\"big\"):re.split32(this.h,\"big\")};var Ye=x,Nr=Er;function M(){if(!(this instanceof M))return new M;Nr.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Ye.inherits(M,Nr);var go=M;M.blockSize=512;M.outSize=224;M.hmacStrength=192;M.padLength=64;M.prototype._digest=function(t){return t===\"hex\"?Ye.toHex32(this.h.slice(0,7),\"big\"):Ye.split32(this.h.slice(0,7),\"big\")};var $=x,bo=oe,mo=me,U=$.rotr64_hi,T=$.rotr64_lo,Ar=$.shr64_hi,Cr=$.shr64_lo,K=$.sum64,Ve=$.sum64_hi,Me=$.sum64_lo,yo=$.sum64_4_hi,wo=$.sum64_4_lo,So=$.sum64_5_hi,ko=$.sum64_5_lo,Hr=bo.BlockHash,$o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;Hr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=$o,this.W=new Array(160)}$.inherits(N,Hr);var Ir=N;N.blockSize=1024;N.outSize=512;N.hmacStrength=192;N.padLength=128;N.prototype._prepareBlock=function(t,r){for(var n=this.W,i=0;i<32;i++)n[i]=t[r+i];for(;i<n.length;i+=2){var o=Ro(n[i-4],n[i-3]),s=Bo(n[i-4],n[i-3]),c=n[i-14],f=n[i-13],u=To(n[i-30],n[i-29]),a=Po(n[i-30],n[i-29]),_=n[i-32],h=n[i-31];n[i]=yo(o,s,c,f,u,a,_,h),n[i+1]=wo(o,s,c,f,u,a,_,h)}};N.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,i=this.h[0],o=this.h[1],s=this.h[2],c=this.h[3],f=this.h[4],u=this.h[5],a=this.h[6],_=this.h[7],h=this.h[8],d=this.h[9],p=this.h[10],w=this.h[11],g=this.h[12],b=this.h[13],S=this.h[14],z=this.h[15];mo(this.k.length===n.length);for(var F=0;F<n.length;F+=2){var A=S,y=z,C=Lo(h,d),ae=Uo(h,d),st=Eo(h,d,p,w,g),at=No(h,d,p,w,g,b),ct=this.k[F],lt=this.k[F+1],ut=n[F],ft=n[F+1],ye=So(A,y,C,ae,st,at,ct,lt,ut,ft),we=ko(A,y,C,ae,st,at,ct,lt,ut,ft);A=Ho(i,o),y=Io(i,o),C=Ao(i,o,s,c,f),ae=Co(i,o,s,c,f,u);var _t=Ve(A,y,C,ae),ht=Me(A,y,C,ae);S=g,z=b,g=p,b=w,p=h,w=d,h=Ve(a,_,ye,we),d=Me(_,_,ye,we),a=f,_=u,f=s,u=c,s=i,c=o,i=Ve(ye,we,_t,ht),o=Me(ye,we,_t,ht)}K(this.h,0,i,o),K(this.h,2,s,c),K(this.h,4,f,u),K(this.h,6,a,_),K(this.h,8,h,d),K(this.h,10,p,w),K(this.h,12,g,b),K(this.h,14,S,z)};N.prototype._digest=function(t){return t===\"hex\"?$.toHex32(this.h,\"big\"):$.split32(this.h,\"big\")};function Eo(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function No(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=4294967296),s}function Ao(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function Co(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=4294967296),s}function Ho(e,t){var r=U(e,t,28),n=U(t,e,2),i=U(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Io(e,t){var r=T(e,t,28),n=T(t,e,2),i=T(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Lo(e,t){var r=U(e,t,14),n=U(e,t,18),i=U(t,e,9),o=r^n^i;return o<0&&(o+=4294967296),o}function Uo(e,t){var r=T(e,t,14),n=T(e,t,18),i=T(t,e,9),o=r^n^i;return o<0&&(o+=4294967296),o}function To(e,t){var r=U(e,t,1),n=U(e,t,8),i=Ar(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Po(e,t){var r=T(e,t,1),n=T(e,t,8),i=Cr(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Ro(e,t){var r=U(e,t,19),n=U(t,e,29),i=Ar(e,t,6),o=r^n^i;return o<0&&(o+=4294967296),o}function Bo(e,t){var r=T(e,t,19),n=T(t,e,29),i=Cr(e,t,6),o=r^n^i;return o<0&&(o+=4294967296),o}var Xe=x,Lr=Ir;function G(){if(!(this instanceof G))return new G;Lr.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Xe.inherits(G,Lr);var Do=G;G.blockSize=1024;G.outSize=384;G.hmacStrength=192;G.padLength=128;G.prototype._digest=function(t){return t===\"hex\"?Xe.toHex32(this.h.slice(0,12),\"big\"):Xe.split32(this.h.slice(0,12),\"big\")};ie.sha1=io;ie.sha224=go;ie.sha256=Er;ie.sha384=Do;ie.sha512=Ir;var Ur={},q=x,zo=oe,$e=q.rotl32,Bt=q.sum32,le=q.sum32_3,Dt=q.sum32_4,Tr=zo.BlockHash;function B(){if(!(this instanceof B))return new B;Tr.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}q.inherits(B,Tr);Ur.ripemd160=B;B.blockSize=512;B.outSize=160;B.hmacStrength=192;B.padLength=64;B.prototype._update=function(t,r){for(var n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],f=n,u=i,a=o,_=s,h=c,d=0;d<80;d++){var p=Bt($e(Dt(n,zt(d,i,o,s),t[Wo[d]+r],Fo(d)),Mo[d]),c);n=c,c=s,s=$e(o,10),o=i,i=p,p=Bt($e(Dt(f,zt(79-d,u,a,_),t[Vo[d]+r],Oo(d)),Go[d]),h),f=h,h=_,_=$e(a,10),a=u,u=p}p=le(this.h[1],o,_),this.h[1]=le(this.h[2],s,h),this.h[2]=le(this.h[3],c,f),this.h[3]=le(this.h[4],n,u),this.h[4]=le(this.h[0],i,a),this.h[0]=p};B.prototype._digest=function(t){return t===\"hex\"?q.toHex32(this.h,\"little\"):q.split32(this.h,\"little\")};function zt(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function Fo(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Oo(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var Wo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Vo=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Mo=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Go=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Ko=x,jo=me;function ne(e,t,r){if(!(this instanceof ne))return new ne(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(Ko.toArray(t,r))}var Jo=ne;ne.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),jo(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};ne.prototype.update=function(t,r){return this.inner.update(t,r),this};ne.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=x,t.common=oe,t.sha=ie,t.ripemd=Ur,t.hmac=Jo,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(pr);var qo=Yo;function Yo(e,t){t=t||10;var r=[],n=\"\",i=RegExp;function o(s,c){if(!(c>t)&&!(typeof s==\"function\"||typeof s>\"u\")){if(typeof s!=\"object\"||!s||s instanceof i){n+=s;return}r.indexOf(s)!==-1||c===t||(r.push(s),n+=\"{\",Object.keys(s).forEach(function(f,u,a){if(f.charAt(0)!==\"_\"){var _=typeof s[f];_===\"function\"||_===\"undefined\"||(n+=f,o(s[f],c+1))}}))}}return o(e,0),n}var fe=(e=>(e.WaitForEvent=\"WaitForEvent\",e.RunStep=\"Step\",e.Sleep=\"Sleep\",e))(fe||{});class Ze{}const Xo=e=>{let t=!0,r=0;const n={...e},i=f=>{const u=n[f.id];return[u!==void 0,u]},o=(f,u)=>(...a)=>{if(!t)throw new Ze;const _=f(...a),h={..._,id:Zo(_,r++)},[d,p]=i(h);if(d)return p;t=!1;const w=(...g)=>{s.nextOp=new Promise(b=>b(g[0])).then(b=>({...h,...g.length?{data:b}:{}}))};throw u?u({submitOp:w},...a):w(),s.nextOp?new Ze:new Error(\"No operation was submitted by a tool\")},s={nextOp:void 0};return[{waitForEvent:o((f,u)=>{const a={};return u!=null&&u.timeout&&(a.ttl=typeof u.timeout==\"string\"?u.timeout:Pt(u.timeout)),u!=null&&u.match?a.match=`event.${u.match} == async.${u.match}`:u!=null&&u.if&&(a.match=u.if),{op:fe.WaitForEvent,name:f,opts:a}}),run:o(f=>({op:fe.RunStep,name:f}),({submitOp:f},u,a)=>{f(a())}),sleep:o(f=>({op:fe.Sleep,name:f})),sleepUntil:o(f=>({op:fe.Sleep,name:Pt(f)}))},s]},Zo=(e,t)=>pr.sha1().update(qo({pos:t,op:e.op,name:e.name,opts:e.opts})).digest(\"hex\");var H,pe,xe,Ue,Pr;const X=class{constructor(t,r,n){Y(this,Ue);Y(this,H,void 0);Y(this,pe,void 0);Y(this,xe,void 0);Se(this,H,t),Se(this,pe,r),Se(this,xe,n)}id(t){return O(this,H).id||(O(this,H).id=ze(this,Ue,Pr).call(this,t)),O(this,H).id}get name(){return O(this,H).name}getConfig(t,r){const n=this.id(r),i=new URL(t.href);return i.searchParams.set(Je.FnId,n),i.searchParams.set(Je.StepId,X.stepId),{...O(this,H),id:n,name:this.name,triggers:[O(this,pe)],steps:{[X.stepId]:{id:X.stepId,name:X.stepId,runtime:{type:\"http\",url:i.href}}}}}async runFn(t,r){const[n,i]=Xo(r),o={...t,tools:n};let s;try{s=await O(this,xe).call(this,o)}catch(c){if(!(c instanceof Ze)){if(!i.nextOp)throw c;console.warn(\"An error occurred after submitting a new op. Continuing on.\",c)}}return i.nextOp?[!0,await i.nextOp]:[!1,s]}};let Z=X;H=new WeakMap,pe=new WeakMap,xe=new WeakMap,Ue=new WeakSet,Pr=function(t){return bn([t||\"\",O(this,H).name].join(\"-\"))},J(Z,\"stepId\",\"step\");var Te,Rr;class Qo{constructor({name:t,eventKey:r,inngestBaseUrl:n=\"https://inn.gs/\"}){Y(this,Te);J(this,\"name\");J(this,\"eventKey\");J(this,\"inngestBaseUrl\");J(this,\"inngestApiUrl\");J(this,\"headers\");if(!t)throw new Error(\"A name must be passed to create an Inngest instance.\");if(!r)throw new Error(\"An event key must be passed to create an Inngest instance.\");this.name=t,this.eventKey=r||nt()&&process.env[cr.EventKey]||\"\",this.inngestBaseUrl=new URL(n),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),this.headers={\"Content-Type\":\"application/json\",\"User-Agent\":`InngestJS v${gn}`}}async send(t,r){let n;if(typeof t==\"string\"?n=(Array.isArray(r)?r:r?[r]:[]).map(s=>({...s,name:t})):n=Array.isArray(t)?t:t?[t]:[],!n.length)throw new Error(\"Provided a name but no events to send; make sure to send an event payload too\");let i=this.inngestApiUrl.href;if(!xn()){const s=pn();(s!==void 0||await vn(s,fetch))&&(i=ur(s,`e/${this.eventKey}`).href)}const o=await fetch(i,{method:\"POST\",body:JSON.stringify(n),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await ze(this,Te,Rr).call(this,o)}createStepFunction(t,r,n){return new Z(typeof t==\"string\"?{name:t}:t,{event:r},n)}createFunction(t,r,n){return new Z(typeof t==\"string\"?{name:t}:t,{event:r},n)}createScheduledFunction(t,r,n){return new Z(typeof t==\"string\"?{name:t}:t,{cron:r},n)}}Te=new WeakSet,Rr=async function(t){let r=\"Unknown error\";switch(t.status){case 401:r=\"Event key Not Found\";break;case 400:r=\"Cannot process event payload\";break;case 403:r=\"Forbidden\";break;case 404:r=\"Event key not found\";break;case 406:r=`${JSON.stringify(await t.json())}`;break;case 409:case 412:r=\"Event transformation failed\";break;case 413:r=\"Event payload too large\";break;case 500:r=\"Internal server error\";break}return new Error(`Inngest API Error: ${t.status} ${r}`)};const V=e=>Object.entries(e).reduce((r,[n,i])=>i?[...r,n]:r,[]).filter(Boolean).join(\" \").trim(),Br=({children:e,onClick:t,type:r,disabled:n,className:i=\"\"})=>l(\"button\",{className:`${n?\"bg-slate-400\":\"bg-blue-500\"} text-white px-5 py-1 font-semibold rounded ${i}`,onClick:t,type:r,disabled:n,children:e}),ei=()=>sr(async()=>{const t=new URL(window.location.href);t.searchParams.set(\"introspect\",\"true\");const n=await(await fetch(t)).json();return n.functions=n.functions.map(i=>{var s;const o=new Set;return((s=i.triggers)==null?void 0:s.length)<1?o.add(ve.NoTriggers):i.triggers.some(f=>!(f!=null&&f.event)&&!(f!=null&&f.cron))&&o.add(ve.EmptyTrigger),o.size&&(i.errors=o),i}).sort((i,o)=>{var f,u;const s=Boolean((f=i.errors)==null?void 0:f.size),c=Boolean((u=o.errors)==null?void 0:u.size);return s!==c?s?-1:1:i.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(rt.NoSigningKey),n}),ti=\"http://localhost:8288\",Dr=Zt({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ot=Dr.Consumer,ri=({children:e})=>{const{value:t,retry:r,loading:n,error:i}=ei(),o=new URL((t==null?void 0:t.devServerURL)||ti);o.pathname=\"dev\";const{value:s,retry:c}=sr(async()=>await(await fetch(o)).json());ar(c,1e3);const f=I(()=>Boolean(s),[s]);return l(Dr.Provider,{value:{value:t,retry:r,loading:n,error:i,dev:s,devConnected:f},children:e})},ni=({value:e,label:t,onChange:r,className:n=\"\",disabled:i})=>l(k,{children:[t?l(oi,{children:t}):null,l(\"textarea\",{disabled:i,class:V({\"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500\":!0,[n]:!0}),value:e,onChange:o=>r==null?void 0:r(o.currentTarget.value)})]}),oi=({children:e})=>l(\"label\",{class:\"font-semibold text-sm\",children:e}),zr=Zt({push:e=>()=>{},remove:e=>{}}),ii=(e,t)=>{switch(t.type){case\"add\":return e.find(r=>r.id===t.toast.id)?e:e.concat([{...t.toast}]);case\"remove\":return e.filter(r=>r.id!==t.id)}},si=({children:e})=>{const[t,r]=er(ii,[]),n=o=>r({type:\"remove\",id:o}),i=o=>{const s=Math.random().toString(16);return r({type:\"add\",toast:{...o,id:o.id||s}}),()=>n(s)};return l(zr.Provider,{value:{push:i,remove:n},children:[l(\"div\",{className:\"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8\",children:t.map(o=>l(ai,{toast:o},o.id))}),e]})},it=()=>qr(zr),Ft=5e3,ai=({toast:e})=>{const{remove:t}=it(),[r,n]=be(!1),i=e.icon;de(()=>{setTimeout(()=>{n(!0)},25),setTimeout(()=>{!e.sticky&&n(!1)},e.duration||Ft-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||Ft)},[e.id]);const o=e.message||(e.type===\"error\"?\"Something went wrong\":\"\");let s=\"text-slate-200 bg-gray-800\";switch(e.type){case\"success\":s=\"text-slate-200 bg-green-600\";break;case\"error\":s=\"text-slate-200 bg-red-800\"}return r?l(\"div\",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${s} text-center mb-2`,onClick:()=>t(e.id),children:[i&&l(i,{size:22,style:{marginRight:10}}),l(\"span\",{children:o.replace(\"[GraphQL] \",\"\").replace(\"[Network] \",\"\")})]}):null},ci=e=>l(ot,{children:t=>l(li,{...e,introspect:t})}),li=({introspect:e,eventData:t})=>{const{push:r}=it(),{value:n,devConnected:i}=e,[o,s]=be(t||JSON.stringify({name:\"\",data:{}},void 0,\" \")),c=I(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),f=async u=>{if(u.preventDefault(),!n||!i){r({type:\"error\",message:\"You must run the dev server to send test events\"});return}await new Qo({name:n.appName,inngestBaseUrl:n.devServerURL,eventKey:\"dev-server\"}).send(JSON.parse(o)),r({type:\"success\",message:\"Event sent. Check your terminal for logs.\"})};return l(ue,{children:l(\"details\",{class:\"border border-gray-200 p-4 flex flex-col cursor-pointer rounded-lg bg-white shadow-lg my-4\",children:[l(\"summary\",{class:\"select-none\",children:\"Send a test event to trigger functions\"}),l(\"div\",{className:\"pt-1 pb-2 text-gray-500 text-sm\",children:\"Send a test event as JSON to the Inngest dev server. This will trigger any functions that run from this event.\"}),l(\"form\",{class:\"flex-1\",onSubmit:f,children:[l(\"div\",{class:\"my-4\",children:l(ni,{label:\"Event data (JSON)\",className:V({\"font-mono overflow-y-scroll h-48 resize-none\":!0,\"bg-red-100\":!c}),value:o,onChange:s})}),l(\"div\",{class:\"flex flex-row justify-end space-x-4 items-center italic\",children:[i?l(\"div\",{class:\"text-gray-500 text-sm\",children:\"Ctrl + Enter to send\"}):l(\"div\",{class:\"text-red-600 text-sm\",children:\"Run the dev server to send test events\"}),l(Br,{type:\"submit\",disabled:!i,children:\"Send event\"})]})]})]})})},ui=({config:e,altBg:t})=>{var c,f;const{push:r}=it(),n=I(()=>e.triggers[0].cron?\"cron\":\"event\",[e.triggers]),i=I(()=>{const u=e.triggers[0];return u.cron||u.event||\"\"},[e.triggers]),o=I(()=>{var u;return Boolean((u=e.errors)==null?void 0:u.size)},[e.errors]),s=async()=>{const u=new URL(window.location.href);u.searchParams.set(\"fnId\",e.id),u.searchParams.set(\"stepId\",e.steps.step.id),r({type:\"default\",message:\"Scheduled function triggered\"});const a=await fetch(u,{method:\"POST\"}),_=await a.json(),h=typeof _==\"object\"&&_.status?_.status:a.status;r({type:h===200?\"success\":\"error\",message:`Function complete: ${JSON.stringify(_)}`})};return l(k,{children:[l(\"div\",{class:V({\"w-full grid grid-cols-[1fr_1fr_1fr_100px] p-2 items-center\":!0,\"bg-slate-200/30\":Boolean(t),\"bg-red-400/30\":o}),children:[l(\"div\",{class:\"flex flex-col\",children:l(\"div\",{class:\"font-semibold text-sm\",children:[e.name,\" \",l(\"span\",{class:V({\"uppercase text-xs px-1 py-0.5 rounded\":!0,\"bg-blue-300/30\":n===\"event\",\"bg-green-300/30\":n===\"cron\"}),children:n})]})}),l(\"div\",{children:l(\"code\",{class:V({\"text-xs text-gray-500\":!0,\"bg-white\":o,\"bg-gray-500/10\":!o}),children:e.id})}),l(\"span\",{children:i?l(\"code\",{children:i}):l(\"code\",{class:\"bg-white\",children:\"Invalid or no expression\"})}),l(\"div\",{children:n===\"cron\"&&l(Br,{className:\"text-sm\",onClick:s,children:\"Trigger\"})})]}),o?l(\"div\",{class:\"w-full p-2 bg-red-400/30\",children:(f=Array.from((c=e.errors)!=null?c:[]))==null?void 0:f.map(u=>l(\"div\",{class:\"bg-red-100 border border-red-400 rounded p-2\",children:hn[u]}))}):null]})},fi=({class:e=\"\"})=>l(\"svg\",{class:V({\"animate-spin h-5 w-5 text-slate-800\":!0,[e]:!0}),xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",children:[l(\"circle\",{class:\"opacity-25\",cx:\"12\",cy:\"12\",r:\"10\",stroke:\"currentColor\",\"stroke-width\":\"4\"}),l(\"path\",{class:\"opacity-75\",fill:\"currentColor\",d:\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"})]}),_i=()=>l(ot,{children:e=>l(hi,{introspect:e})}),hi=({introspect:e})=>{var a;const{loading:t,value:r,retry:n,error:i}=e,[o,s]=be(!1);ar(n,5e3);const c=I(()=>(r==null?void 0:r.functions.some(_=>{var h;return(h=_.errors)==null?void 0:h.size}))||!1,[r==null?void 0:r.functions]),f=I(()=>Boolean(r==null?void 0:r.globalErrors.size),[r==null?void 0:r.globalErrors]),u=I(()=>[{title:\"\\u{1F9D1}\\u200D\\u{1F4BB} Writing functions\",description:\"Get started writing your serverless background functions and scheduled tasks.\",href:\"https://www.inngest.com/docs/functions\"},{title:\"\\u{1F4E2} Sending events\",description:\"Learn how to trigger your functions by sending events from your code.\",href:\"https://www.inngest.com/docs/events\"},{title:\"\\u{1F6A2} Deploying\",description:\"Deploy functions to your platform of choice.\",href:\"https://www.inngest.com/docs/deploy\"}],[]);return t&&!r&&!i?l(\"div\",{class:\"flex-1 w-full h-full flex items-center justify-center\",children:l(fi,{class:\"h-8 w-8\"})}):l(k,{children:[l(\"div\",{class:\"flex flex-col gap-4 py-20 bg-gray-100\",children:l(ue,{children:[l(\"div\",{class:\"text-3xl\",children:c?\"\\u274C Your functions are not set up correctly\":r!=null&&r.functions.length?\"\\u2705 Your functions are set up correctly\":\"\\u274E No functions detected\"}),l(\"div\",{class:\"ml-12 opacity-75\",children:l(\"code\",{children:[\"inngest-\",r==null?void 0:r.sdk]})})]})}),l(\"div\",{children:l(ue,{children:l(\"div\",{class:\"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4\",children:u.map(_=>l(\"a\",{href:_.href,target:\"_blank\",class:\"bg-white rounded border-1 border-black shadow-xl p-4 flex flex-col space-y-2 transition-all hover:scale-105 hover:shadow-2xl no-underline\",children:[l(\"div\",{class:\"font-semibold text-lg\",children:_.title}),l(\"div\",{class:\"text-sm\",children:_.description}),l(\"div\",{class:\"flex-1\"}),l(\"div\",{class:\"text-right font-semibold text-purple-500\",children:\"Explore \\u2192\"})]}))})})}),f?l(\"div\",{class:\"mt-8\",children:l(ue,{children:l(\"div\",{class:\"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2\",children:[l(\"div\",{class:\"font-semibold text-yellow-700 text-lg\",children:\"Your handler configuration might be missing some options\"}),Array.from((a=r==null?void 0:r.globalErrors)!=null?a:[]).map(_=>l(\"div\",{class:\"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800\",children:dn[_]}))]})})}):null,l(ci,{expanded:o,onToggle:()=>s(_=>!_)}),l(\"div\",{class:\"w-full flex items-center justify-center mt-8 p-4\",children:l(ue,{children:[l(\"div\",{class:\"flex flex-row justify-between\",children:[l(\"div\",{class:\"flex flex-row space-x-2 items-center justify-center\",children:[l(\"div\",{class:\"font-semibold\",children:[\"Found \",(r==null?void 0:r.functions.length)||0,\" functions\"]}),l(\"div\",{children:l(\"div\",{class:\"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase\",onClick:()=>n(),children:\"Refresh\"})})]}),l(\"a\",{class:\"mb-8\",href:\"#\",children:\"Don't see your function?\"})]}),r!=null&&r.functions.length?l(\"div\",{class:\"flex flex-col\",children:[l(\"div\",{class:\"w-full grid grid-cols-[1fr_1fr_1fr_100px] font-semibold border-b-2 border-slate-300 pb-1\",children:[l(\"div\",{children:\"Name\"}),l(\"div\",{children:\"ID\"}),l(\"div\",{children:\"Event / Cron\"})]}),r==null?void 0:r.functions.map((_,h)=>l(ui,{config:_,altBg:h%2===0}))]}):l(\"div\",{class:\"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20\",children:[l(\"div\",{class:\"font-semibold\",children:\"No functions found\"}),l(\"div\",{class:\"opacity-75 text-center\",children:[\"We found your handler, but couldn't see any exported functions.\",l(\"br\",{}),\"Check out the\",\" \",l(\"a\",{href:\"https://www.inngest.com/docs/functions\",children:\"Writing functions\"}),\" \",\"guide to get started.\"]})]})]})})]})},di=({copiable:e,value:t})=>l(\"code\",{class:V({\"flex flex-row space-x-2 items-center justify-center\":!0,\"cursor-pointer\":Boolean(e)}),onClick:e?()=>{navigator.clipboard.writeText(t)}:void 0,children:[l(\"span\",{children:t}),e?l(vi,{}):null]}),vi=()=>l(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[l(\"path\",{d:\"M15 15H20C20.5523 15 21 14.5523 21 14V4C21 3.44772 20.5523 3 20 3L10 3C9.44772 3 9 3.44771 9 4L9 9\",stroke:\"#1e293b\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),l(\"path\",{d:\"M4 21L14 21C14.5523 21 15 20.5523 15 20L15 10C15 9.44772 14.5523 9 14 9L4 9C3.44771 9 3 9.44771 3 10L3 20C3 20.5523 3.44771 21 4 21Z\",stroke:\"#1e293b\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})]}),pi=\"http://localhost:8288\",xi=()=>l(ot,{children:e=>l(\"div\",{class:\"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5\",children:[l(\"div\",{class:\"font-medium text-gray-900 text-xl\",children:\"Inngest SDK\"}),l(\"div\",{class:\"h-6 w-1 bg-gray-300\"}),l(gi,{introspect:e})]})}),gi=({introspect:e})=>{const{value:t,devConnected:r}=e,n=new URL((t==null?void 0:t.devServerURL)||pi);return n.pathname=\"dev\",l(k,{children:[l(\"div\",{class:\"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none\",children:[l(\"div\",{class:\"flex h-4 w-4 relative\",children:[l(\"span\",{class:V({\"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75\":!0,\"bg-green-400\":r,\"bg-red-400\":!r})}),l(\"span\",{class:V({\"relative inline-flex rounded-full h-4 w-4\":!0,\"bg-green-500\":r,\"bg-red-500\":!r})})]}),r?l(\"div\",{children:[\"Connected to \",l(\"code\",{children:\"inngest dev\"}),\" on\",\" \",l(\"code\",{children:[n.hostname,\":\",n.port]})]}):l(\"div\",{children:[\"Not connected to \",l(\"code\",{children:\"inngest dev\"})]})]}),r?null:l(k,{children:[l(\"div\",{className:\"text-sm\",children:\"Run the dev server: \"}),l(di,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function bi(){return l(si,{children:l(ri,{children:[l(xi,{}),l(Jr,{children:l(_i,{})})]})})}Kr(l(bi,{}),document.getElementById(\"app\"));\n\n</script>\n <style>\n*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0px}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-full{height:100%}.h-8{height:2rem}.h-6{height:1.5rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-1{width:.25rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr_100px\\]{grid-template-columns:1fr 1fr 1fr 100px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400\\/30{background-color:#facc154d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-200\\/30{background-color:#e2e8f04d}.bg-red-400\\/30{background-color:#f871714d}.bg-blue-300\\/30{background-color:#93c5fd4d}.bg-green-300\\/30{background-color:#86efac4d}.bg-gray-500\\/10{background-color:#6b72801a}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pt-1{padding-top:.25rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.opacity-25{opacity:.25}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}html,body,#app{height:100%;width:100%;--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem}.dark code{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}a{text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n</style>\n </head>\n <body>\n <div id=\"app\"></div>\n \n </body>\n</html>\n";
1
+ export declare const landing = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Inngest SDK - Your functions</title>\n <script type=\"module\" crossorigin>\nvar Vr=Object.defineProperty;var Gr=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>(Gr(e,typeof t!=\"symbol\"?t+\"\":t,r),r),We=(e,t,r)=>{if(!t.has(e))throw TypeError(\"Cannot \"+r)};var O=(e,t,r)=>(We(e,t,\"read from private field\"),r?r.call(e):t.get(e)),X=(e,t,r)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,r)},Ne=(e,t,r,n)=>(We(e,t,\"write to private field\"),n?n.call(e,r):t.set(e,r),r);var Ve=(e,t,r)=>(We(e,t,\"access private method\"),r);(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const s of document.querySelectorAll('link[rel=\"modulepreload\"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type===\"childList\")for(const i of o.addedNodes)i.tagName===\"LINK\"&&i.rel===\"modulepreload\"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin===\"use-credentials\"?o.credentials=\"include\":s.crossorigin===\"anonymous\"?o.credentials=\"omit\":o.credentials=\"same-origin\",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Fe,v,Kt,pe,mt,jt,Pe={},Jt=[],Kr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function j(e,t){for(var r in t)e[r]=t[r];return e}function qt(e){var t=e.parentNode;t&&t.removeChild(e)}function Xe(e,t,r){var n,s,o,i={};for(o in t)o==\"key\"?n=t[o]:o==\"ref\"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Fe.call(arguments,2):r),typeof e==\"function\"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return Ie(e,i,n,s,null)}function Ie(e,t,r,n,s){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++Kt:s};return s==null&&v.vnode!=null&&v.vnode(o),o}function k(e){return e.children}function M(e,t){this.props=e,this.context=t}function ee(e,t){if(t==null)return e.__?ee(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type==\"function\"?ee(e):null}function Yt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Yt(e)}}function Ze(e){(!e.__d&&(e.__d=!0)&&pe.push(e)&&!Te.__r++||mt!==v.debounceRendering)&&((mt=v.debounceRendering)||setTimeout)(Te)}function Te(){for(var e;Te.__r=pe.length;)e=pe.sort(function(t,r){return t.__v.__b-r.__v.__b}),pe=[],e.some(function(t){var r,n,s,o,i,c;t.__d&&(i=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(s=j({},o)).__v=o.__v+1,st(c,o,s,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[i]:null,n,i==null?ee(o):i,o.__h),er(n,o),o.__e!=i&&Yt(o)))})}function Xt(e,t,r,n,s,o,i,c,u,f){var a,h,_,d,p,w,g,b=n&&n.__k||Jt,S=b.length;for(r.__k=[],a=0;a<t.length;a++)if((d=r.__k[a]=(d=t[a])==null||typeof d==\"boolean\"?null:typeof d==\"string\"||typeof d==\"number\"||typeof d==\"bigint\"?Ie(null,d,null,null,d):Array.isArray(d)?Ie(k,{children:d},null,null,null):d.__b>0?Ie(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(_=b[a])===null||_&&d.key==_.key&&d.type===_.type)b[a]=void 0;else for(h=0;h<S;h++){if((_=b[h])&&d.key==_.key&&d.type===_.type){b[h]=void 0;break}_=null}st(e,d,_=_||Pe,s,o,i,c,u,f),p=d.__e,(h=d.ref)&&_.ref!=h&&(g||(g=[]),_.ref&&g.push(_.ref,null,d),g.push(h,d.__c||p,d)),p!=null?(w==null&&(w=p),typeof d.type==\"function\"&&d.__k===_.__k?d.__d=u=Zt(d,u,e):u=Qt(e,d,_,b,p,u),typeof r.type==\"function\"&&(r.__d=u)):u&&_.__e==u&&u.parentNode!=e&&(u=ee(_))}for(r.__e=w,a=S;a--;)b[a]!=null&&(typeof r.type==\"function\"&&b[a].__e!=null&&b[a].__e==r.__d&&(r.__d=ee(n,a+1)),rr(b[a],b[a]));if(g)for(a=0;a<g.length;a++)tr(g[a],g[++a],g[++a])}function Zt(e,t,r){for(var n,s=e.__k,o=0;s&&o<s.length;o++)(n=s[o])&&(n.__=e,t=typeof n.type==\"function\"?Zt(n,t,r):Qt(r,n,n,s,n.__e,t));return t}function De(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(Array.isArray(e)?e.some(function(r){De(r,t)}):t.push(e)),t}function Qt(e,t,r,n,s,o){var i,c,u;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(r==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),i=null;else{for(c=o,u=0;(c=c.nextSibling)&&u<n.length;u+=2)if(c==s)break e;e.insertBefore(s,o),i=o}return i!==void 0?i:s.nextSibling}function jr(e,t,r,n,s){var o;for(o in r)o===\"children\"||o===\"key\"||o in t||Re(e,o,null,r[o],n);for(o in t)s&&typeof t[o]!=\"function\"||o===\"children\"||o===\"key\"||o===\"value\"||o===\"checked\"||r[o]===t[o]||Re(e,o,t[o],r[o],n)}function yt(e,t,r){t[0]===\"-\"?e.setProperty(t,r):e[t]=r==null?\"\":typeof r!=\"number\"||Kr.test(t)?r:r+\"px\"}function Re(e,t,r,n,s){var o;e:if(t===\"style\")if(typeof r==\"string\")e.style.cssText=r;else{if(typeof n==\"string\"&&(e.style.cssText=n=\"\"),n)for(t in n)r&&t in r||yt(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||yt(e.style,t,r[t])}else if(t[0]===\"o\"&&t[1]===\"n\")o=t!==(t=t.replace(/Capture$/,\"\")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?St:wt,o):e.removeEventListener(t,o?St:wt,o);else if(t!==\"dangerouslySetInnerHTML\"){if(s)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!==\"href\"&&t!==\"list\"&&t!==\"form\"&&t!==\"tabIndex\"&&t!==\"download\"&&t in e)try{e[t]=r==null?\"\":r;break e}catch{}typeof r==\"function\"||(r!=null&&(r!==!1||t[0]===\"a\"&&t[1]===\"r\")?e.setAttribute(t,r):e.removeAttribute(t))}}function wt(e){this.l[e.type+!1](v.event?v.event(e):e)}function St(e){this.l[e.type+!0](v.event?v.event(e):e)}function st(e,t,r,n,s,o,i,c,u){var f,a,h,_,d,p,w,g,b,S,z,F,A,y=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(f=v.__b)&&f(t);try{e:if(typeof y==\"function\"){if(g=t.props,b=(f=y.contextType)&&n[f.__c],S=f?b?b.props.value:f.__:n,r.__c?w=(a=t.__c=r.__c).__=a.__E:(\"prototype\"in y&&y.prototype.render?t.__c=a=new y(g,S):(t.__c=a=new M(g,S),a.constructor=y,a.render=qr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=S,a.__n=n,h=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),y.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=j({},a.__s)),j(a.__s,y.getDerivedStateFromProps(g,a.__s))),_=a.props,d=a.state,h)y.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(y.getDerivedStateFromProps==null&&g!==_&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,S),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,S)===!1||t.__v===r.__v){a.props=g,a.state=a.__s,t.__v!==r.__v&&(a.__d=!1),a.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(C){C&&(C.__=t)}),a.__h.length&&i.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,S),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(_,d,p)})}if(a.context=S,a.props=g,a.__v=t,a.__P=e,z=v.__r,F=0,\"prototype\"in y&&y.prototype.render)a.state=a.__s,a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context);else do a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++F<25);a.state=a.__s,a.getChildContext!=null&&(n=j(j({},n),a.getChildContext())),h||a.getSnapshotBeforeUpdate==null||(p=a.getSnapshotBeforeUpdate(_,d)),A=f!=null&&f.type===k&&f.key==null?f.props.children:f,Xt(e,Array.isArray(A)?A:[A],t,r,n,s,o,i,c,u),a.base=t.__e,t.__h=null,a.__h.length&&i.push(a),w&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Jr(r.__e,t,r,n,s,o,i,u);(f=v.diffed)&&f(t)}catch(C){t.__v=null,(u||o!=null)&&(t.__e=c,t.__h=!!u,o[o.indexOf(c)]=null),v.__e(C,t,r)}}function er(e,t){v.__c&&v.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){v.__e(n,r.__v)}})}function Jr(e,t,r,n,s,o,i,c){var u,f,a,h=r.props,_=t.props,d=t.type,p=0;if(d===\"svg\"&&(s=!0),o!=null){for(;p<o.length;p++)if((u=o[p])&&\"setAttribute\"in u==!!d&&(d?u.localName===d:u.nodeType===3)){e=u,o[p]=null;break}}if(e==null){if(d===null)return document.createTextNode(_);e=s?document.createElementNS(\"http://www.w3.org/2000/svg\",d):document.createElement(d,_.is&&_),o=null,c=!1}if(d===null)h===_||c&&e.data===_||(e.data=_);else{if(o=o&&Fe.call(e.childNodes),f=(h=r.props||Pe).dangerouslySetInnerHTML,a=_.dangerouslySetInnerHTML,!c){if(o!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(a||f)&&(a&&(f&&a.__html==f.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||\"\"))}if(jr(e,_,h,s,c),a)t.__k=[];else if(p=t.props.children,Xt(e,Array.isArray(p)?p:[p],t,r,n,s&&d!==\"foreignObject\",o,i,o?o[0]:r.__k&&ee(r,0),c),o!=null)for(p=o.length;p--;)o[p]!=null&&qt(o[p]);c||(\"value\"in _&&(p=_.value)!==void 0&&(p!==e.value||d===\"progress\"&&!p||d===\"option\"&&p!==h.value)&&Re(e,\"value\",p,h.value,!1),\"checked\"in _&&(p=_.checked)!==void 0&&p!==e.checked&&Re(e,\"checked\",p,h.checked,!1))}return e}function tr(e,t,r){try{typeof e==\"function\"?e(t):e.current=t}catch(n){v.__e(n,r)}}function rr(e,t,r){var n,s;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||tr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){v.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&rr(n[s],t,typeof e.type!=\"function\");r||e.__e==null||qt(e.__e),e.__=e.__e=e.__d=void 0}function qr(e,t,r){return this.constructor(e,r)}function Yr(e,t,r){var n,s,o;v.__&&v.__(e,t),s=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,o=[],st(t,e=(!n&&r||t).__k=Xe(k,null,[e]),s||Pe,Pe,t.ownerSVGElement!==void 0,!n&&r?[r]:s?null:t.firstChild?Fe.call(t.childNodes):null,o,!n&&r?r:s?s.__e:t.firstChild,n),er(o,e)}function nr(e,t){var r={__c:t=\"__cC\"+jt++,__:e,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(Ze)},this.sub=function(i){s.push(i);var c=i.componentWillUnmount;i.componentWillUnmount=function(){s.splice(s.indexOf(i),1),c&&c.call(i)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Fe=Jt.slice,v={__e:function(e,t,r,n){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,n||{}),i=s.__d),i)return s.__E=s}catch(c){e=c}throw e}},Kt=0,M.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=j({},this.state),typeof e==\"function\"&&(e=e(j({},r),this.props)),e&&j(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),Ze(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ze(this))},M.prototype.render=k,pe=[],Te.__r=0,jt=0;var Xr=0;function l(e,t,r,n,s){var o,i,c={};for(i in t)i==\"ref\"?o=t[i]:c[i]=t[i];var u={type:e,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Xr,__source:s,__self:n};if(typeof e==\"function\"&&(o=e.defaultProps))for(i in o)c[i]===void 0&&(c[i]=o[i]);return v.vnode&&v.vnode(u),u}const Zr=({children:e})=>l(\"div\",{class:\"w-full h-full\",children:e}),de=({children:e})=>l(\"div\",{class:\"w-full flex justify-center\",children:l(\"div\",{class:\"w-[70rem] max-w-full px-8\",children:e})});var we,m,Ge,kt,xe=0,or=[],Le=[],$t=v.__b,Et=v.__r,Nt=v.diffed,At=v.__c,Ct=v.unmount;function Oe(e,t){v.__h&&v.__h(m,e,xe||t),xe=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Le}),r.__[e]}function Se(e){return xe=1,sr(ar,e)}function sr(e,t,r){var n=Oe(we++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ar(void 0,t),function(o){var i=n.__N?n.__N[0]:n.__[0],c=n.t(i,o);i!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,i,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(a){return a.__c});if(u.every(function(a){return!a.__N}))return!s||s.call(this,o,i,c);var f=!1;return u.forEach(function(a){if(a.__N){var h=a.__[0];a.__=a.__N,a.__N=void 0,h!==a.__[0]&&(f=!0)}}),!!f&&(!s||s.call(this,o,i,c))}}return n.__N||n.__}function ge(e,t){var r=Oe(we++,3);!v.__s&&ir(r.__H,t)&&(r.__=e,r.i=t,m.__H.__h.push(r))}function it(e){return xe=5,I(function(){return{current:e}},[])}function I(e,t){var r=Oe(we++,7);return ir(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function at(e,t){return xe=8,I(function(){return e},t)}function Qr(e){var t=m.context[e.__c],r=Oe(we++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(m)),t.props.value):e.__}function en(){for(var e;e=or.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ue),e.__H.__h.forEach(Qe),e.__H.__h=[]}catch(t){e.__H.__h=[],v.__e(t,e.__v)}}v.__b=function(e){typeof e.type!=\"function\"||e.o||e.type===k?e.o||(e.o=e.__&&e.__.o?e.__.o:\"\"):e.o=(e.__&&e.__.o?e.__.o:\"\")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,$t&&$t(e)},v.__r=function(e){Et&&Et(e),we=0;var t=(m=e.__c).__H;t&&(Ge===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Le,r.__N=r.i=void 0})):(t.__h.forEach(Ue),t.__h.forEach(Qe),t.__h=[])),Ge=m},v.diffed=function(e){Nt&&Nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(or.push(t)!==1&&kt===v.requestAnimationFrame||((kt=v.requestAnimationFrame)||tn)(en)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Le&&(r.__=r.__V),r.i=void 0,r.__V=Le})),Ge=m=null},v.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ue),r.__h=r.__h.filter(function(n){return!n.__||Qe(n)})}catch(n){t.some(function(s){s.__h&&(s.__h=[])}),t=[],v.__e(n,r.__v)}}),At&&At(e,t)},v.unmount=function(e){Ct&&Ct(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ue(n)}catch(s){t=s}}),r.__H=void 0,t&&v.__e(t,r.__v))};var Ht=typeof requestAnimationFrame==\"function\";function tn(e){var t,r=function(){clearTimeout(n),Ht&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ht&&(t=requestAnimationFrame(r))}function Ue(e){var t=m,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),m=t}function Qe(e){var t=m;e.__c=e.__(),m=t}function ir(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ar(e,t){return typeof t==\"function\"?t(e):t}function rn(e,t){for(var r in t)e[r]=t[r];return e}function It(e,t){for(var r in e)if(r!==\"__source\"&&!(r in t))return!0;for(var n in t)if(n!==\"__source\"&&e[n]!==t[n])return!0;return!1}function Lt(e){this.props=e}(Lt.prototype=new M).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Ut=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ut&&Ut(e)};var nn=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),s.__c(e,t)}nn(e,t,r,n)};var Pt=v.unmount;function cr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c==\"function\"&&n.__c()}),e.__c.__H=null),(e=rn({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return cr(n,t,r)})),e}function lr(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return lr(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Ke(){this.__u=0,this.t=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ae(){this.u=null,this.o=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Pt&&Pt(e)},(Ke.prototype=new M).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var s=ur(n.__v),o=!1,i=function(){o||(o=!0,r.__R=null,s?s(c):c())};r.__R=i;var c=function(){if(!--n.__u){if(n.state.__a){var f=n.state.__a;n.__v.__k[0]=lr(f,f.__c.__P,f.__c.__O)}var a;for(n.setState({__a:n.__b=null});a=n.t.pop();)a.forceUpdate()}},u=t.__h===!0;n.__u++||u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Ke.prototype.componentWillUnmount=function(){this.t=[]},Ke.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement(\"div\"),n=this.__v.__k[0].__c;this.__v.__k[0]=cr(this.__b,r,n.__O=n.__P)}this.__b=null}var s=t.__a&&Xe(k,null,e.fallback);return s&&(s.__h=null),[Xe(k,null,t.__a?null:e.children),s]};var Tt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==\"t\"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(Ae.prototype=new M).__a=function(e){var t=this,r=ur(t.__v),n=t.o.get(e);return n[0]++,function(s){var o=function(){t.props.revealOrder?(n.push(s),Tt(t,e,n)):s()};r?r(o):o()}},Ae.prototype.render=function(e){this.u=null,this.o=new Map;var t=De(e.children);e.revealOrder&&e.revealOrder[0]===\"b\"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Tt(e,r,t)})};var on=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,sn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=typeof document<\"u\",cn=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Dt=v.event;function ln(){}function un(){return this.cancelBubble}function fn(){return this.defaultPrevented}v.event=function(e){return Dt&&(e=Dt(e)),e.persist=ln,e.isPropagationStopped=un,e.isDefaultPrevented=fn,e.nativeEvent=e};var Rt={configurable:!0,get:function(){return this.class}},Bt=v.vnode;v.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t==\"string\"){var s=t.indexOf(\"-\")===-1;for(var o in n={},r){var i=r[o];an&&o===\"children\"&&t===\"noscript\"||o===\"value\"&&\"defaultValue\"in r&&i==null||(o===\"defaultValue\"&&\"value\"in r&&r.value==null?o=\"value\":o===\"download\"&&i===!0?i=\"\":/ondoubleclick/i.test(o)?o=\"ondblclick\":/^onchange(textarea|input)/i.test(o+t)&&!cn(r.type)?o=\"oninput\":/^onfocus$/i.test(o)?o=\"onfocusin\":/^onblur$/i.test(o)?o=\"onfocusout\":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():s&&sn.test(o)?o=o.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o=\"oninputCapture\")),n[o]=i)}t==\"select\"&&n.multiple&&Array.isArray(n.value)&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t==\"select\"&&n.defaultValue!=null&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,r.class!=r.className&&(Rt.enumerable=\"className\"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,\"className\",Rt))}e.$$typeof=on,Bt&&Bt(e)};var zt=v.__r;v.__r=function(e){zt&&zt(e),e.__c};var te=function(){return te=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},te.apply(this,arguments)};function Ft(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var o=arguments[t],i=0,c=o.length;i<c;i++,s++)n[s]=o[i];return n}function hn(){var e=it(!1),t=at(function(){return e.current},[]);return ge(function(){return e.current=!0,function(){e.current=!1}},[]),t}function _n(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=it(0),s=hn(),o=Se(r),i=o[0],c=o[1],u=at(function(){for(var f=[],a=0;a<arguments.length;a++)f[a]=arguments[a];var h=++n.current;return i.loading||c(function(_){return te(te({},_),{loading:!0})}),e.apply(void 0,f).then(function(_){return s()&&h===n.current&&c({value:_,loading:!1}),_},function(_){return s()&&h===n.current&&c({error:_,loading:!1}),_})},t);return[i,u]}function dn(e,t){t===void 0&&(t=[]);var r=_n(e,t,{loading:!0}),n=r[0],s=r[1];return ge(function(){s()},[s]),n}var vn=function(e,t){t===void 0&&(t=[]);var r=Se(0),n=r[0],s=r[1],o=dn(e,Ft(t,[n])),i=o.loading,c=at(function(){i||s(function(u){return u+1})},Ft(t,[i]));return te(te({},o),{retry:c})};const fr=vn;var pn=function(e,t){var r=it(function(){});ge(function(){r.current=e}),ge(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const hr=pn;var ct=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(ct||{}),be=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(be||{});const xn={[be.EmptyTrigger]:l(k,{children:\"One or more triggers seems invalid; it has no event or cron definition. Make sure you've correctly used the function creation methods.\"}),[be.NoTriggers]:l(k,{children:\"Can't find any triggers for this function, such as an event or a cron definition. Make sure you've correctly used the function creation methods.\"})},gn={[ct.NoSigningKey]:l(\"div\",{class:\"flex flex-col space-y-2\",children:[l(\"div\",{class:\"font-semibold\",children:\"Could not find signing key\"}),l(\"div\",{children:[\"A signing key is required to communicate with Inngest securely. We weren't passed one when calling \",l(\"code\",{children:\"serve()\"}),\" and couldn't find it in the recommended \",l(\"code\",{children:\"INNGEST_SIGNING_KEY\"}),\" environment variable.\"]}),l(\"div\",{children:[\"You can find your signing key in the\",\" \",l(\"a\",{href:\"https://app.inngest.com/secrets\",target:\"_blank\",children:\"Inngest Dashboard - Secrets section.\"})]})]})};var et=(e=>(e.FnId=\"fnId\",e.StepId=\"stepId\",e.Introspect=\"introspect\",e))(et||{}),_r=(e=>(e.SigningKey=\"INNGEST_SIGNING_KEY\",e.EventKey=\"INNGEST_EVENT_KEY\",e.LandingPage=\"INNGEST_LANDING_PAGE\",e.DevServerUrl=\"INNGEST_DEVSERVER_URL\",e))(_r||{});const dr=\"http://127.0.0.1:8288/\",bn=async(e=dr,t)=>{try{const r=vr(e,\"/dev\");return await(await t(r.toString())).json(),!0}catch{return!1}},vr=(e=dr,t=\"\")=>new URL(t,e.includes(\"://\")?e:`http://${e}`),mn=()=>(lt()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),yn=()=>(lt()?[\"production\",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes(\"production\"),lt=()=>typeof process<\"u\"&&\"env\"in process,wn=\"0.8.0\";var re=1e3,ne=re*60,oe=ne*60,q=oe*24,Sn=q*7,kn=q*365.25,$n=function(e,t){t=t||{};var r=typeof e;if(r===\"string\"&&e.length>0)return En(e);if(r===\"number\"&&isFinite(e))return t.long?An(e):Nn(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function En(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||\"ms\").toLowerCase();switch(n){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*kn;case\"weeks\":case\"week\":case\"w\":return r*Sn;case\"days\":case\"day\":case\"d\":return r*q;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*oe;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*ne;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*re;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function Nn(e){var t=Math.abs(e);return t>=q?Math.round(e/q)+\"d\":t>=oe?Math.round(e/oe)+\"h\":t>=ne?Math.round(e/ne)+\"m\":t>=re?Math.round(e/re)+\"s\":e+\"ms\"}function An(e){var t=Math.abs(e);return t>=q?Ce(e,t,q,\"day\"):t>=oe?Ce(e,t,oe,\"hour\"):t>=ne?Ce(e,t,ne,\"minute\"):t>=re?Ce(e,t,re,\"second\"):e+\" ms\"}function Ce(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+\" \"+n+(s?\"s\":\"\")}const Cn=e=>{const t=\"-\";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)},Hn=1,pr=Hn*1e3,xr=pr*60,gr=xr*60,br=gr*24,In=br*7,Ln=[[\"w\",In],[\"d\",br],[\"h\",gr],[\"m\",xr],[\"s\",pr]],je=(e,t=new Date)=>{let r=e;if(typeof r==\"string\"||typeof r==\"number\"){const i=typeof r==\"string\"?$n(r):r;r=new Date(Date.now()+i)}if(t.setMilliseconds(0),r.setMilliseconds(0),!!isNaN(r.getTime()))throw new Error(\"Invalid date given to convert to time string\");const s=r.getTime()-t.getTime(),[,o]=Ln.reduce(([i,c],[u,f])=>{const a=Math.floor(i/f);return a>0?[i%f,`${c}${a}${u}`]:[i,c]},[s,\"\"]);return o};var mr={},x={},ke=yr;function yr(e,t){if(!e)throw new Error(t||\"Assertion failed\")}yr.equal=function(t,r,n){if(t!=r)throw new Error(n||\"Assertion failed: \"+t+\" != \"+r)};var tt={exports:{}};typeof Object.create==\"function\"?tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var Un=ke,Pn=tt.exports;x.inherits=Pn;function Tn(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function Dn(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e==\"string\")if(t){if(t===\"hex\")for(e=e.replace(/[^a-z0-9]+/ig,\"\"),e.length%2!==0&&(e=\"0\"+e),s=0;s<e.length;s+=2)r.push(parseInt(e[s]+e[s+1],16))}else for(var n=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):Tn(e,s)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(s=0;s<e.length;s++)r[s]=e[s]|0;return r}x.toArray=Dn;function Rn(e){for(var t=\"\",r=0;r<e.length;r++)t+=Sr(e[r].toString(16));return t}x.toHex=Rn;function wr(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}x.htonl=wr;function Bn(e,t){for(var r=\"\",n=0;n<e.length;n++){var s=e[n];t===\"little\"&&(s=wr(s)),r+=kr(s.toString(16))}return r}x.toHex32=Bn;function Sr(e){return e.length===1?\"0\"+e:e}x.zero2=Sr;function kr(e){return e.length===7?\"0\"+e:e.length===6?\"00\"+e:e.length===5?\"000\"+e:e.length===4?\"0000\"+e:e.length===3?\"00000\"+e:e.length===2?\"000000\"+e:e.length===1?\"0000000\"+e:e}x.zero8=kr;function zn(e,t,r,n){var s=r-t;Un(s%4===0);for(var o=new Array(s/4),i=0,c=t;i<o.length;i++,c+=4){var u;n===\"big\"?u=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:u=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[i]=u>>>0}return o}x.join32=zn;function Fn(e,t){for(var r=new Array(e.length*4),n=0,s=0;n<e.length;n++,s+=4){var o=e[n];t===\"big\"?(r[s]=o>>>24,r[s+1]=o>>>16&255,r[s+2]=o>>>8&255,r[s+3]=o&255):(r[s+3]=o>>>24,r[s+2]=o>>>16&255,r[s+1]=o>>>8&255,r[s]=o&255)}return r}x.split32=Fn;function On(e,t){return e>>>t|e<<32-t}x.rotr32=On;function Mn(e,t){return e<<t|e>>>32-t}x.rotl32=Mn;function Wn(e,t){return e+t>>>0}x.sum32=Wn;function Vn(e,t,r){return e+t+r>>>0}x.sum32_3=Vn;function Gn(e,t,r,n){return e+t+r+n>>>0}x.sum32_4=Gn;function Kn(e,t,r,n,s){return e+t+r+n+s>>>0}x.sum32_5=Kn;function jn(e,t,r,n){var s=e[t],o=e[t+1],i=n+o>>>0,c=(i<n?1:0)+r+s;e[t]=c>>>0,e[t+1]=i}x.sum64=jn;function Jn(e,t,r,n){var s=t+n>>>0,o=(s<t?1:0)+e+r;return o>>>0}x.sum64_hi=Jn;function qn(e,t,r,n){var s=t+n;return s>>>0}x.sum64_lo=qn;function Yn(e,t,r,n,s,o,i,c){var u=0,f=t;f=f+n>>>0,u+=f<t?1:0,f=f+o>>>0,u+=f<o?1:0,f=f+c>>>0,u+=f<c?1:0;var a=e+r+s+i+u;return a>>>0}x.sum64_4_hi=Yn;function Xn(e,t,r,n,s,o,i,c){var u=t+n+o+c;return u>>>0}x.sum64_4_lo=Xn;function Zn(e,t,r,n,s,o,i,c,u,f){var a=0,h=t;h=h+n>>>0,a+=h<t?1:0,h=h+o>>>0,a+=h<o?1:0,h=h+c>>>0,a+=h<c?1:0,h=h+f>>>0,a+=h<f?1:0;var _=e+r+s+i+u+a;return _>>>0}x.sum64_5_hi=Zn;function Qn(e,t,r,n,s,o,i,c,u,f){var a=t+n+o+c+f;return a>>>0}x.sum64_5_lo=Qn;function eo(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}x.rotr64_hi=eo;function to(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.rotr64_lo=to;function ro(e,t,r){return e>>>r}x.shr64_hi=ro;function no(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.shr64_lo=no;var ce={},Ot=x,oo=ke;function Me(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ce.BlockHash=Me;Me.prototype.update=function(t,r){if(t=Ot.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Ot.join32(t,0,t.length-n,this.endian);for(var s=0;s<t.length;s+=this._delta32)this._update(t,s,s+this._delta32)}return this};Me.prototype.digest=function(t){return this.update(this._pad()),oo(this.pending===null),this._digest(t)};Me.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,s=new Array(n+this.padLength);s[0]=128;for(var o=1;o<n;o++)s[o]=0;if(t<<=3,this.endian===\"big\"){for(var i=8;i<this.padLength;i++)s[o++]=0;s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=t>>>24&255,s[o++]=t>>>16&255,s[o++]=t>>>8&255,s[o++]=t&255}else for(s[o++]=t&255,s[o++]=t>>>8&255,s[o++]=t>>>16&255,s[o++]=t>>>24&255,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,i=8;i<this.padLength;i++)s[o++]=0;return s};var le={},B={},so=x,L=so.rotr32;function io(e,t,r,n){if(e===0)return $r(t,r,n);if(e===1||e===3)return Nr(t,r,n);if(e===2)return Er(t,r,n)}B.ft_1=io;function $r(e,t,r){return e&t^~e&r}B.ch32=$r;function Er(e,t,r){return e&t^e&r^t&r}B.maj32=Er;function Nr(e,t,r){return e^t^r}B.p32=Nr;function ao(e){return L(e,2)^L(e,13)^L(e,22)}B.s0_256=ao;function co(e){return L(e,6)^L(e,11)^L(e,25)}B.s1_256=co;function lo(e){return L(e,7)^L(e,18)^e>>>3}B.g0_256=lo;function uo(e){return L(e,17)^L(e,19)^e>>>10}B.g1_256=uo;var se=x,fo=ce,ho=B,Je=se.rotl32,he=se.sum32,_o=se.sum32_5,vo=ho.ft_1,Ar=fo.BlockHash,po=[1518500249,1859775393,2400959708,3395469782];function T(){if(!(this instanceof T))return new T;Ar.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}se.inherits(T,Ar);var xo=T;T.blockSize=512;T.outSize=160;T.hmacStrength=80;T.padLength=64;T.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=Je(n[s-3]^n[s-8]^n[s-14]^n[s-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4];for(s=0;s<n.length;s++){var a=~~(s/20),h=_o(Je(o,5),vo(a,i,c,u),f,n[s],po[a]);f=u,u=c,c=Je(i,30),i=o,o=h}this.h[0]=he(this.h[0],o),this.h[1]=he(this.h[1],i),this.h[2]=he(this.h[2],c),this.h[3]=he(this.h[3],u),this.h[4]=he(this.h[4],f)};T.prototype._digest=function(t){return t===\"hex\"?se.toHex32(this.h,\"big\"):se.split32(this.h,\"big\")};var ie=x,go=ce,ue=B,bo=ke,E=ie.sum32,mo=ie.sum32_4,yo=ie.sum32_5,wo=ue.ch32,So=ue.maj32,ko=ue.s0_256,$o=ue.s1_256,Eo=ue.g0_256,No=ue.g1_256,Cr=go.BlockHash,Ao=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function D(){if(!(this instanceof D))return new D;Cr.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Ao,this.W=new Array(64)}ie.inherits(D,Cr);var Hr=D;D.blockSize=512;D.outSize=256;D.hmacStrength=192;D.padLength=64;D.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=mo(No(n[s-2]),n[s-7],Eo(n[s-15]),n[s-16]);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4],a=this.h[5],h=this.h[6],_=this.h[7];for(bo(this.k.length===n.length),s=0;s<n.length;s++){var d=yo(_,$o(f),wo(f,a,h),this.k[s],n[s]),p=E(ko(o),So(o,i,c));_=h,h=a,a=f,f=E(u,d),u=c,c=i,i=o,o=E(d,p)}this.h[0]=E(this.h[0],o),this.h[1]=E(this.h[1],i),this.h[2]=E(this.h[2],c),this.h[3]=E(this.h[3],u),this.h[4]=E(this.h[4],f),this.h[5]=E(this.h[5],a),this.h[6]=E(this.h[6],h),this.h[7]=E(this.h[7],_)};D.prototype._digest=function(t){return t===\"hex\"?ie.toHex32(this.h,\"big\"):ie.split32(this.h,\"big\")};var rt=x,Ir=Hr;function V(){if(!(this instanceof V))return new V;Ir.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}rt.inherits(V,Ir);var Co=V;V.blockSize=512;V.outSize=224;V.hmacStrength=192;V.padLength=64;V.prototype._digest=function(t){return t===\"hex\"?rt.toHex32(this.h.slice(0,7),\"big\"):rt.split32(this.h.slice(0,7),\"big\")};var $=x,Ho=ce,Io=ke,U=$.rotr64_hi,P=$.rotr64_lo,Lr=$.shr64_hi,Ur=$.shr64_lo,K=$.sum64,qe=$.sum64_hi,Ye=$.sum64_lo,Lo=$.sum64_4_hi,Uo=$.sum64_4_lo,Po=$.sum64_5_hi,To=$.sum64_5_lo,Pr=Ho.BlockHash,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;Pr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Do,this.W=new Array(160)}$.inherits(N,Pr);var Tr=N;N.blockSize=1024;N.outSize=512;N.hmacStrength=192;N.padLength=128;N.prototype._prepareBlock=function(t,r){for(var n=this.W,s=0;s<32;s++)n[s]=t[r+s];for(;s<n.length;s+=2){var o=jo(n[s-4],n[s-3]),i=Jo(n[s-4],n[s-3]),c=n[s-14],u=n[s-13],f=Go(n[s-30],n[s-29]),a=Ko(n[s-30],n[s-29]),h=n[s-32],_=n[s-31];n[s]=Lo(o,i,c,u,f,a,h,_),n[s+1]=Uo(o,i,c,u,f,a,h,_)}};N.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,s=this.h[0],o=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],f=this.h[5],a=this.h[6],h=this.h[7],_=this.h[8],d=this.h[9],p=this.h[10],w=this.h[11],g=this.h[12],b=this.h[13],S=this.h[14],z=this.h[15];Io(this.k.length===n.length);for(var F=0;F<n.length;F+=2){var A=S,y=z,C=Wo(_,d),fe=Vo(_,d),ht=Ro(_,d,p,w,g),_t=Bo(_,d,p,w,g,b),dt=this.k[F],vt=this.k[F+1],pt=n[F],xt=n[F+1],$e=Po(A,y,C,fe,ht,_t,dt,vt,pt,xt),Ee=To(A,y,C,fe,ht,_t,dt,vt,pt,xt);A=Oo(s,o),y=Mo(s,o),C=zo(s,o,i,c,u),fe=Fo(s,o,i,c,u,f);var gt=qe(A,y,C,fe),bt=Ye(A,y,C,fe);S=g,z=b,g=p,b=w,p=_,w=d,_=qe(a,h,$e,Ee),d=Ye(h,h,$e,Ee),a=u,h=f,u=i,f=c,i=s,c=o,s=qe($e,Ee,gt,bt),o=Ye($e,Ee,gt,bt)}K(this.h,0,s,o),K(this.h,2,i,c),K(this.h,4,u,f),K(this.h,6,a,h),K(this.h,8,_,d),K(this.h,10,p,w),K(this.h,12,g,b),K(this.h,14,S,z)};N.prototype._digest=function(t){return t===\"hex\"?$.toHex32(this.h,\"big\"):$.split32(this.h,\"big\")};function Ro(e,t,r,n,s){var o=e&r^~e&s;return o<0&&(o+=4294967296),o}function Bo(e,t,r,n,s,o){var i=t&n^~t&o;return i<0&&(i+=4294967296),i}function zo(e,t,r,n,s){var o=e&r^e&s^r&s;return o<0&&(o+=4294967296),o}function Fo(e,t,r,n,s,o){var i=t&n^t&o^n&o;return i<0&&(i+=4294967296),i}function Oo(e,t){var r=U(e,t,28),n=U(t,e,2),s=U(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Mo(e,t){var r=P(e,t,28),n=P(t,e,2),s=P(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Wo(e,t){var r=U(e,t,14),n=U(e,t,18),s=U(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Vo(e,t){var r=P(e,t,14),n=P(e,t,18),s=P(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Go(e,t){var r=U(e,t,1),n=U(e,t,8),s=Lr(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Ko(e,t){var r=P(e,t,1),n=P(e,t,8),s=Ur(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function jo(e,t){var r=U(e,t,19),n=U(t,e,29),s=Lr(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}function Jo(e,t){var r=P(e,t,19),n=P(t,e,29),s=Ur(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}var nt=x,Dr=Tr;function G(){if(!(this instanceof G))return new G;Dr.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}nt.inherits(G,Dr);var qo=G;G.blockSize=1024;G.outSize=384;G.hmacStrength=192;G.padLength=128;G.prototype._digest=function(t){return t===\"hex\"?nt.toHex32(this.h.slice(0,12),\"big\"):nt.split32(this.h.slice(0,12),\"big\")};le.sha1=xo;le.sha224=Co;le.sha256=Hr;le.sha384=qo;le.sha512=Tr;var Rr={},Y=x,Yo=ce,He=Y.rotl32,Mt=Y.sum32,_e=Y.sum32_3,Wt=Y.sum32_4,Br=Yo.BlockHash;function R(){if(!(this instanceof R))return new R;Br.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}Y.inherits(R,Br);Rr.ripemd160=R;R.blockSize=512;R.outSize=160;R.hmacStrength=192;R.padLength=64;R.prototype._update=function(t,r){for(var n=this.h[0],s=this.h[1],o=this.h[2],i=this.h[3],c=this.h[4],u=n,f=s,a=o,h=i,_=c,d=0;d<80;d++){var p=Mt(He(Wt(n,Vt(d,s,o,i),t[Qo[d]+r],Xo(d)),ts[d]),c);n=c,c=i,i=He(o,10),o=s,s=p,p=Mt(He(Wt(u,Vt(79-d,f,a,h),t[es[d]+r],Zo(d)),rs[d]),_),u=_,_=h,h=He(a,10),a=f,f=p}p=_e(this.h[1],o,h),this.h[1]=_e(this.h[2],i,_),this.h[2]=_e(this.h[3],c,u),this.h[3]=_e(this.h[4],n,f),this.h[4]=_e(this.h[0],s,a),this.h[0]=p};R.prototype._digest=function(t){return t===\"hex\"?Y.toHex32(this.h,\"little\"):Y.split32(this.h,\"little\")};function Vt(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function Xo(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Zo(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var Qo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],es=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ts=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],rs=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ns=x,os=ke;function ae(e,t,r){if(!(this instanceof ae))return new ae(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(ns.toArray(t,r))}var ss=ae;ae.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),os(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};ae.prototype.update=function(t,r){return this.inner.update(t,r),this};ae.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=x,t.common=ce,t.sha=le,t.ripemd=Rr,t.hmac=ss,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(mr);var is=as;function as(e,t){t=t||10;var r=[],n=\"\",s=RegExp;function o(i,c){if(!(c>t)&&!(typeof i==\"function\"||typeof i>\"u\")){if(typeof i!=\"object\"||!i||i instanceof s){n+=i;return}r.indexOf(i)!==-1||c===t||(r.push(i),n+=\"{\",Object.keys(i).forEach(function(u,f,a){if(u.charAt(0)!==\"_\"){var h=typeof i[u];h===\"function\"||h===\"undefined\"||(n+=u,o(i[u],c+1))}}))}}return o(e,0),n}var ve=(e=>(e.WaitForEvent=\"WaitForEvent\",e.RunStep=\"Step\",e.Sleep=\"Sleep\",e))(ve||{});class ot{}const cs=e=>{let t=!0,r=0;const n={...e},s=u=>{const f=n[u.id];return[f!==void 0,f]},o=(u,f)=>(...a)=>{if(!t)throw new ot;const h=u(...a),_={...h,id:ls(h,r++)},[d,p]=s(_);if(d)return p;t=!1;const w=(...g)=>{i.nextOp=new Promise(b=>b(g[0])).then(b=>({..._,...g.length?{data:b}:{}}))};throw f?f({submitOp:w},...a):w(),i.nextOp?new ot:new Error(\"No operation was submitted by a tool\")},i={nextOp:void 0};return[{waitForEvent:o((u,f)=>{const a={ttl:je(f.timeout)};return f!=null&&f.match?a.match=`event.${f.match} == async.${f.match}`:f!=null&&f.if&&(a.match=f.if),{op:ve.WaitForEvent,name:u,opts:a}}),run:o(u=>({op:ve.RunStep,name:u}),({submitOp:u},f,a)=>{u(a())}),sleep:o(u=>({op:ve.Sleep,name:je(u)})),sleepUntil:o(u=>({op:ve.Sleep,name:je(u)}))},i]},ls=(e,t)=>mr.sha1().update(is({pos:t,op:e.op,name:e.name,opts:e.opts})).digest(\"hex\");var H,me,ye,Be,zr;const Z=class{constructor(t,r,n){X(this,Be);X(this,H,void 0);X(this,me,void 0);X(this,ye,void 0);Ne(this,H,t),Ne(this,me,r),Ne(this,ye,n)}id(t){return O(this,H).id||(O(this,H).id=Ve(this,Be,zr).call(this,t)),O(this,H).id}get name(){return O(this,H).name}getConfig(t,r){const n=this.id(r),s=new URL(t.href);return s.searchParams.set(et.FnId,n),s.searchParams.set(et.StepId,Z.stepId),{...O(this,H),id:n,name:this.name,triggers:[O(this,me)],steps:{[Z.stepId]:{id:Z.stepId,name:Z.stepId,runtime:{type:\"http\",url:s.href}}}}}async runFn(t,r){const[n,s]=cs(r),o={...t,tools:n};let i;try{i=await O(this,ye).call(this,o)}catch(c){if(!(c instanceof ot)){if(!s.nextOp)throw c;console.warn(\"An error occurred after submitting a new op. Continuing on.\",c)}}return s.nextOp?[!0,await s.nextOp]:[!1,i]}};let Q=Z;H=new WeakMap,me=new WeakMap,ye=new WeakMap,Be=new WeakSet,zr=function(t){return Cn([t||\"\",O(this,H).name].join(\"-\"))},J(Q,\"stepId\",\"step\");var ze,Fr;class us{constructor({name:t,eventKey:r,inngestBaseUrl:n=\"https://inn.gs/\"}){X(this,ze);J(this,\"name\");J(this,\"eventKey\");J(this,\"inngestBaseUrl\");J(this,\"inngestApiUrl\");J(this,\"headers\");if(!t)throw new Error(\"A name must be passed to create an Inngest instance.\");if(!r)throw new Error(\"An event key must be passed to create an Inngest instance.\");this.name=t,this.eventKey=r||lt()&&process.env[_r.EventKey]||\"\",this.inngestBaseUrl=new URL(n),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),this.headers={\"Content-Type\":\"application/json\",\"User-Agent\":`InngestJS v${wn}`}}async send(t,r){let n;if(typeof t==\"string\"?n=(Array.isArray(r)?r:r?[r]:[]).map(i=>({...i,name:t})):n=Array.isArray(t)?t:t?[t]:[],!n.length)throw new Error(\"Provided a name but no events to send; make sure to send an event payload too\");let s=this.inngestApiUrl.href;if(!yn()){const i=mn();(i!==void 0||await bn(i,fetch))&&(s=vr(i,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:\"POST\",body:JSON.stringify(n),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await Ve(this,ze,Fr).call(this,o)}createStepFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{event:r},n)}createFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{event:r},n)}createScheduledFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{cron:r},n)}}ze=new WeakSet,Fr=async function(t){let r=\"Unknown error\";switch(t.status){case 401:r=\"Event key Not Found\";break;case 400:r=\"Cannot process event payload\";break;case 403:r=\"Forbidden\";break;case 404:r=\"Event key not found\";break;case 406:r=`${JSON.stringify(await t.json())}`;break;case 409:case 412:r=\"Event transformation failed\";break;case 413:r=\"Event payload too large\";break;case 500:r=\"Internal server error\";break}return new Error(`Inngest API Error: ${t.status} ${r}`)};const W=e=>Object.entries(e).reduce((r,[n,s])=>s?[...r,n]:r,[]).filter(Boolean).join(\" \").trim(),Or=({children:e,onClick:t,type:r,disabled:n,className:s=\"\"})=>l(\"button\",{className:`${n?\"bg-slate-400\":\"bg-blue-500\"} text-white px-5 py-1 font-semibold rounded ${s}`,onClick:t,type:r,disabled:n,children:e}),fs=()=>fr(async()=>{const t=new URL(window.location.href);t.searchParams.set(\"introspect\",\"true\");const n=await(await fetch(t)).json();return n.functions=n.functions.map(s=>{var i;const o=new Set;return((i=s.triggers)==null?void 0:i.length)<1?o.add(be.NoTriggers):s.triggers.some(u=>!(u!=null&&u.event)&&!(u!=null&&u.cron))&&o.add(be.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var u,f;const i=Boolean((u=s.errors)==null?void 0:u.size),c=Boolean((f=o.errors)==null?void 0:f.size);return i!==c?i?-1:1:s.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(ct.NoSigningKey),n}),hs=\"http://localhost:8288\",Mr=nr({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ut=Mr.Consumer,_s=({children:e})=>{const{value:t,retry:r,loading:n,error:s}=fs(),o=new URL((t==null?void 0:t.devServerURL)||hs);o.pathname=\"dev\";const{value:i,retry:c}=fr(async()=>await(await fetch(o)).json());hr(c,1e3);const u=I(()=>Boolean(i),[i]);return l(Mr.Provider,{value:{value:t,retry:r,loading:n,error:s,dev:i,devConnected:u},children:e})},ds=({value:e,label:t,onChange:r,className:n=\"\",disabled:s})=>l(k,{children:[t?l(vs,{children:t}):null,l(\"textarea\",{disabled:s,class:W({\"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500\":!0,[n]:!0}),value:e,onChange:o=>r==null?void 0:r(o.currentTarget.value)})]}),vs=({children:e})=>l(\"label\",{class:\"font-semibold text-sm\",children:e}),Wr=nr({push:e=>()=>{},remove:e=>{}}),ps=(e,t)=>{switch(t.type){case\"add\":return e.find(r=>r.id===t.toast.id)?e:e.concat([{...t.toast}]);case\"remove\":return e.filter(r=>r.id!==t.id)}},xs=({children:e})=>{const[t,r]=sr(ps,[]),n=o=>r({type:\"remove\",id:o}),s=o=>{const i=Math.random().toString(16);return r({type:\"add\",toast:{...o,id:o.id||i}}),()=>n(i)};return l(Wr.Provider,{value:{push:s,remove:n},children:[l(\"div\",{className:\"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8\",children:t.map(o=>l(gs,{toast:o},o.id))}),e]})},ft=()=>Qr(Wr),Gt=5e3,gs=({toast:e})=>{const{remove:t}=ft(),[r,n]=Se(!1),s=e.icon;ge(()=>{setTimeout(()=>{n(!0)},25),setTimeout(()=>{!e.sticky&&n(!1)},e.duration||Gt-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||Gt)},[e.id]);const o=e.message||(e.type===\"error\"?\"Something went wrong\":\"\");let i=\"text-slate-200 bg-gray-800\";switch(e.type){case\"success\":i=\"text-slate-200 bg-green-600\";break;case\"error\":i=\"text-slate-200 bg-red-800\"}return r?l(\"div\",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${i} text-center mb-2`,onClick:()=>t(e.id),children:[s&&l(s,{size:22,style:{marginRight:10}}),l(\"span\",{children:o.replace(\"[GraphQL] \",\"\").replace(\"[Network] \",\"\")})]}):null},bs=e=>l(ut,{children:t=>l(ms,{...e,introspect:t})}),ms=({introspect:e,eventData:t})=>{const{push:r}=ft(),{value:n,devConnected:s}=e,[o,i]=Se(t||JSON.stringify({name:\"\",data:{}},void 0,\" \")),c=I(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),u=async f=>{if(f.preventDefault(),!n||!s){r({type:\"error\",message:\"You must run the dev server to send test events\"});return}await new us({name:n.appName,inngestBaseUrl:n.devServerURL,eventKey:\"dev-server\"}).send(JSON.parse(o)),r({type:\"success\",message:\"Event sent. Check your terminal for logs.\"})};return l(de,{children:l(\"details\",{class:\"border border-gray-200 p-4 flex flex-col cursor-pointer rounded-lg bg-white shadow-lg my-4\",children:[l(\"summary\",{class:\"select-none\",children:\"Send a test event to trigger functions\"}),l(\"div\",{className:\"pt-1 pb-2 text-gray-500 text-sm\",children:\"Send a test event as JSON to the Inngest dev server. This will trigger any functions that run from this event.\"}),l(\"form\",{class:\"flex-1\",onSubmit:u,children:[l(\"div\",{class:\"my-4\",children:l(ds,{label:\"Event data (JSON)\",className:W({\"font-mono overflow-y-scroll h-48 resize-none\":!0,\"bg-red-100\":!c}),value:o,onChange:i})}),l(\"div\",{class:\"flex flex-row justify-end space-x-4 items-center italic\",children:[s?l(\"div\",{class:\"text-gray-500 text-sm\",children:\"Ctrl + Enter to send\"}):l(\"div\",{class:\"text-red-600 text-sm\",children:\"Run the dev server to send test events\"}),l(Or,{type:\"submit\",disabled:!s,children:\"Send event\"})]})]})]})})},ys=({config:e,altBg:t})=>{var c,u;const{push:r}=ft(),n=I(()=>e.triggers[0].cron?\"cron\":\"event\",[e.triggers]),s=I(()=>{const f=e.triggers[0];return f.cron||f.event||\"\"},[e.triggers]),o=I(()=>{var f;return Boolean((f=e.errors)==null?void 0:f.size)},[e.errors]),i=async()=>{const f=new URL(window.location.href);f.searchParams.set(\"fnId\",e.id),f.searchParams.set(\"stepId\",e.steps.step.id),r({type:\"default\",message:\"Scheduled function triggered\"});const a=await fetch(f,{method:\"POST\"}),h=await a.json(),_=typeof h==\"object\"&&h.status?h.status:a.status;r({type:_===200?\"success\":\"error\",message:`Function complete: ${JSON.stringify(h)}`})};return l(k,{children:[l(\"div\",{class:W({\"w-full grid grid-cols-[1fr_1fr_1fr_100px] p-2 items-center\":!0,\"bg-slate-200/30\":Boolean(t),\"bg-red-400/30\":o}),children:[l(\"div\",{class:\"flex flex-col\",children:l(\"div\",{class:\"font-semibold text-sm\",children:[e.name,\" \",l(\"span\",{class:W({\"uppercase text-xs px-1 py-0.5 rounded\":!0,\"bg-blue-300/30\":n===\"event\",\"bg-green-300/30\":n===\"cron\"}),children:n})]})}),l(\"div\",{children:l(\"code\",{class:W({\"text-xs text-gray-500\":!0,\"bg-white\":o,\"bg-gray-500/10\":!o}),children:e.id})}),l(\"span\",{children:s?l(\"code\",{children:s}):l(\"code\",{class:\"bg-white\",children:\"Invalid or no expression\"})}),l(\"div\",{children:n===\"cron\"&&l(Or,{className:\"text-sm\",onClick:i,children:\"Trigger\"})})]}),o?l(\"div\",{class:\"w-full p-2 bg-red-400/30\",children:(u=Array.from((c=e.errors)!=null?c:[]))==null?void 0:u.map(f=>l(\"div\",{class:\"bg-red-100 border border-red-400 rounded p-2\",children:xn[f]}))}):null]})},ws=({class:e=\"\"})=>l(\"svg\",{class:W({\"animate-spin h-5 w-5 text-slate-800\":!0,[e]:!0}),xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",children:[l(\"circle\",{class:\"opacity-25\",cx:\"12\",cy:\"12\",r:\"10\",stroke:\"currentColor\",\"stroke-width\":\"4\"}),l(\"path\",{class:\"opacity-75\",fill:\"currentColor\",d:\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"})]}),Ss=()=>l(ut,{children:e=>l(ks,{introspect:e})}),ks=({introspect:e})=>{var a;const{loading:t,value:r,retry:n,error:s}=e,[o,i]=Se(!1);hr(n,5e3);const c=I(()=>(r==null?void 0:r.functions.some(h=>{var _;return(_=h.errors)==null?void 0:_.size}))||!1,[r==null?void 0:r.functions]),u=I(()=>Boolean(r==null?void 0:r.globalErrors.size),[r==null?void 0:r.globalErrors]),f=I(()=>[{title:\"\\u{1F9D1}\\u200D\\u{1F4BB} Writing functions\",description:\"Get started writing your serverless background functions and scheduled tasks.\",href:\"https://www.inngest.com/docs/functions\"},{title:\"\\u{1F4E2} Sending events\",description:\"Learn how to trigger your functions by sending events from your code.\",href:\"https://www.inngest.com/docs/events\"},{title:\"\\u{1F6A2} Deploying\",description:\"Deploy functions to your platform of choice.\",href:\"https://www.inngest.com/docs/deploy\"}],[]);return t&&!r&&!s?l(\"div\",{class:\"flex-1 w-full h-full flex items-center justify-center\",children:l(ws,{class:\"h-8 w-8\"})}):l(k,{children:[l(\"div\",{class:\"flex flex-col gap-4 py-20 bg-gray-100\",children:l(de,{children:[l(\"div\",{class:\"text-3xl\",children:c?\"\\u274C Your functions are not set up correctly\":r!=null&&r.functions.length?\"\\u2705 Your functions are set up correctly\":\"\\u274E No functions detected\"}),l(\"div\",{class:\"ml-12 opacity-75\",children:l(\"code\",{children:[\"inngest-\",r==null?void 0:r.sdk]})})]})}),l(\"div\",{children:l(de,{children:l(\"div\",{class:\"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4\",children:f.map(h=>l(\"a\",{href:h.href,target:\"_blank\",class:\"bg-white rounded border-1 border-black shadow-xl p-4 flex flex-col space-y-2 transition-all hover:scale-105 hover:shadow-2xl no-underline\",children:[l(\"div\",{class:\"font-semibold text-lg\",children:h.title}),l(\"div\",{class:\"text-sm\",children:h.description}),l(\"div\",{class:\"flex-1\"}),l(\"div\",{class:\"text-right font-semibold text-purple-500\",children:\"Explore \\u2192\"})]}))})})}),u?l(\"div\",{class:\"mt-8\",children:l(de,{children:l(\"div\",{class:\"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2\",children:[l(\"div\",{class:\"font-semibold text-yellow-700 text-lg\",children:\"Your handler configuration might be missing some options\"}),Array.from((a=r==null?void 0:r.globalErrors)!=null?a:[]).map(h=>l(\"div\",{class:\"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800\",children:gn[h]}))]})})}):null,l(bs,{expanded:o,onToggle:()=>i(h=>!h)}),l(\"div\",{class:\"w-full flex items-center justify-center mt-8 p-4\",children:l(de,{children:[l(\"div\",{class:\"flex flex-row justify-between\",children:[l(\"div\",{class:\"flex flex-row space-x-2 items-center justify-center\",children:[l(\"div\",{class:\"font-semibold\",children:[\"Found \",(r==null?void 0:r.functions.length)||0,\" functions\"]}),l(\"div\",{children:l(\"div\",{class:\"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase\",onClick:()=>n(),children:\"Refresh\"})})]}),l(\"a\",{class:\"mb-8\",href:\"#\",children:\"Don't see your function?\"})]}),r!=null&&r.functions.length?l(\"div\",{class:\"flex flex-col\",children:[l(\"div\",{class:\"w-full grid grid-cols-[1fr_1fr_1fr_100px] font-semibold border-b-2 border-slate-300 pb-1\",children:[l(\"div\",{children:\"Name\"}),l(\"div\",{children:\"ID\"}),l(\"div\",{children:\"Event / Cron\"})]}),r==null?void 0:r.functions.map((h,_)=>l(ys,{config:h,altBg:_%2===0}))]}):l(\"div\",{class:\"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20\",children:[l(\"div\",{class:\"font-semibold\",children:\"No functions found\"}),l(\"div\",{class:\"opacity-75 text-center\",children:[\"We found your handler, but couldn't see any exported functions.\",l(\"br\",{}),\"Check out the\",\" \",l(\"a\",{href:\"https://www.inngest.com/docs/functions\",children:\"Writing functions\"}),\" \",\"guide to get started.\"]})]})]})})]})},$s=({copiable:e,value:t})=>l(\"code\",{class:W({\"flex flex-row space-x-2 items-center justify-center\":!0,\"cursor-pointer\":Boolean(e)}),onClick:e?()=>{navigator.clipboard.writeText(t)}:void 0,children:[l(\"span\",{children:t}),e?l(Es,{}):null]}),Es=()=>l(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[l(\"path\",{d:\"M15 15H20C20.5523 15 21 14.5523 21 14V4C21 3.44772 20.5523 3 20 3L10 3C9.44772 3 9 3.44771 9 4L9 9\",stroke:\"#1e293b\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),l(\"path\",{d:\"M4 21L14 21C14.5523 21 15 20.5523 15 20L15 10C15 9.44772 14.5523 9 14 9L4 9C3.44771 9 3 9.44771 3 10L3 20C3 20.5523 3.44771 21 4 21Z\",stroke:\"#1e293b\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})]}),Ns=\"http://localhost:8288\",As=()=>l(ut,{children:e=>l(\"div\",{class:\"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5\",children:[l(\"div\",{class:\"font-medium text-gray-900 text-xl\",children:\"Inngest SDK\"}),l(\"div\",{class:\"h-6 w-1 bg-gray-300\"}),l(Cs,{introspect:e})]})}),Cs=({introspect:e})=>{const{value:t,devConnected:r}=e,n=new URL((t==null?void 0:t.devServerURL)||Ns);return n.pathname=\"dev\",l(k,{children:[l(\"div\",{class:\"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none\",children:[l(\"div\",{class:\"flex h-4 w-4 relative\",children:[l(\"span\",{class:W({\"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75\":!0,\"bg-green-400\":r,\"bg-red-400\":!r})}),l(\"span\",{class:W({\"relative inline-flex rounded-full h-4 w-4\":!0,\"bg-green-500\":r,\"bg-red-500\":!r})})]}),r?l(\"div\",{children:[\"Connected to \",l(\"code\",{children:\"inngest dev\"}),\" on\",\" \",l(\"code\",{children:[n.hostname,\":\",n.port]})]}):l(\"div\",{children:[\"Not connected to \",l(\"code\",{children:\"inngest dev\"})]})]}),r?null:l(k,{children:[l(\"div\",{className:\"text-sm\",children:\"Run the dev server: \"}),l($s,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function Hs(){return l(xs,{children:l(_s,{children:[l(As,{}),l(Zr,{children:l(Ss,{})})]})})}Yr(l(Hs,{}),document.getElementById(\"app\"));\n\n</script>\n <style>\n*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0px}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-full{height:100%}.h-8{height:2rem}.h-6{height:1.5rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-1{width:.25rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr_100px\\]{grid-template-columns:1fr 1fr 1fr 100px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400\\/30{background-color:#facc154d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-200\\/30{background-color:#e2e8f04d}.bg-red-400\\/30{background-color:#f871714d}.bg-blue-300\\/30{background-color:#93c5fd4d}.bg-green-300\\/30{background-color:#86efac4d}.bg-gray-500\\/10{background-color:#6b72801a}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pt-1{padding-top:.25rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.opacity-25{opacity:.25}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}html,body,#app{height:100%;width:100%;--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem}.dark code{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}a{text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n</style>\n </head>\n <body>\n <div id=\"app\"></div>\n \n </body>\n</html>\n";
2
2
  //# sourceMappingURL=landing.d.ts.map
package/landing.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"landing.d.ts","sourceRoot":"","sources":["../src/landing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,wgsEACo5pE,CAAC"}
1
+ {"version":3,"file":"landing.d.ts","sourceRoot":"","sources":["../src/landing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,o9uEACgwsE,CAAC"}
package/landing.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.landing = void 0;
4
- exports.landing = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <title>Inngest SDK - Your functions</title>\n <script type="module" crossorigin>\nvar Fr=Object.defineProperty;var Or=(e,t,r)=>t in e?Fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>(Or(e,typeof t!="symbol"?t+"":t,r),r),De=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var O=(e,t,r)=>(De(e,t,"read from private field"),r?r.call(e):t.get(e)),Y=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Se=(e,t,r,n)=>(De(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var ze=(e,t,r)=>(De(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll(\'link[rel="modulepreload"]\'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Pe,v,Ot,_e,dt,Wt,Ce={},Vt=[],Wr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function j(e,t){for(var r in t)e[r]=t[r];return e}function Mt(e){var t=e.parentNode;t&&t.removeChild(e)}function Ge(e,t,r){var n,i,o,s={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Pe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Ee(e,s,n,i,null)}function Ee(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Ot:i};return i==null&&v.vnode!=null&&v.vnode(o),o}function k(e){return e.children}function W(e,t){this.props=e,this.context=t}function Q(e,t){if(t==null)return e.__?Q(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Q(e):null}function Gt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Gt(e)}}function Ke(e){(!e.__d&&(e.__d=!0)&&_e.push(e)&&!He.__r++||dt!==v.debounceRendering)&&((dt=v.debounceRendering)||setTimeout)(He)}function He(){for(var e;He.__r=_e.length;)e=_e.sort(function(t,r){return t.__v.__b-r.__v.__b}),_e=[],e.some(function(t){var r,n,i,o,s,c;t.__d&&(s=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(i=j({},o)).__v=o.__v+1,Qe(c,o,i,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[s]:null,n,s==null?Q(o):s,o.__h),qt(n,o),o.__e!=s&&Gt(o)))})}function Kt(e,t,r,n,i,o,s,c,f,u){var a,_,h,d,p,w,g,b=n&&n.__k||Vt,S=b.length;for(r.__k=[],a=0;a<t.length;a++)if((d=r.__k[a]=(d=t[a])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Ee(null,d,null,null,d):Array.isArray(d)?Ee(k,{children:d},null,null,null):d.__b>0?Ee(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(h=b[a])===null||h&&d.key==h.key&&d.type===h.type)b[a]=void 0;else for(_=0;_<S;_++){if((h=b[_])&&d.key==h.key&&d.type===h.type){b[_]=void 0;break}h=null}Qe(e,d,h=h||Ce,i,o,s,c,f,u),p=d.__e,(_=d.ref)&&h.ref!=_&&(g||(g=[]),h.ref&&g.push(h.ref,null,d),g.push(_,d.__c||p,d)),p!=null?(w==null&&(w=p),typeof d.type=="function"&&d.__k===h.__k?d.__d=f=jt(d,f,e):f=Jt(e,d,h,b,p,f),typeof r.type=="function"&&(r.__d=f)):f&&h.__e==f&&f.parentNode!=e&&(f=Q(h))}for(r.__e=w,a=S;a--;)b[a]!=null&&(typeof r.type=="function"&&b[a].__e!=null&&b[a].__e==r.__d&&(r.__d=Q(n,a+1)),Xt(b[a],b[a]));if(g)for(a=0;a<g.length;a++)Yt(g[a],g[++a],g[++a])}function jt(e,t,r){for(var n,i=e.__k,o=0;i&&o<i.length;o++)(n=i[o])&&(n.__=e,t=typeof n.type=="function"?jt(n,t,r):Jt(r,n,n,i,n.__e,t));return t}function Ie(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){Ie(r,t)}):t.push(e)),t}function Jt(e,t,r,n,i,o){var s,c,f;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(r==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),s=null;else{for(c=o,f=0;(c=c.nextSibling)&&f<n.length;f+=2)if(c==i)break e;e.insertBefore(i,o),s=o}return s!==void 0?s:i.nextSibling}function Vr(e,t,r,n,i){var o;for(o in r)o==="children"||o==="key"||o in t||Le(e,o,null,r[o],n);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||Le(e,o,t[o],r[o],n)}function vt(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||Wr.test(t)?r:r+"px"}function Le(e,t,r,n,i){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||vt(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||vt(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?xt:pt,o):e.removeEventListener(t,o?xt:pt,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r!=null&&(r!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,r):e.removeAttribute(t))}}function pt(e){this.l[e.type+!1](v.event?v.event(e):e)}function xt(e){this.l[e.type+!0](v.event?v.event(e):e)}function Qe(e,t,r,n,i,o,s,c,f){var u,a,_,h,d,p,w,g,b,S,z,F,A,y=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(f=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(u=v.__b)&&u(t);try{e:if(typeof y=="function"){if(g=t.props,b=(u=y.contextType)&&n[u.__c],S=u?b?b.props.value:u.__:n,r.__c?w=(a=t.__c=r.__c).__=a.__E:("prototype"in y&&y.prototype.render?t.__c=a=new y(g,S):(t.__c=a=new W(g,S),a.constructor=y,a.render=Gr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=S,a.__n=n,_=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),y.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=j({},a.__s)),j(a.__s,y.getDerivedStateFromProps(g,a.__s))),h=a.props,d=a.state,_)y.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(y.getDerivedStateFromProps==null&&g!==h&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,S),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,S)===!1||t.__v===r.__v){a.props=g,a.state=a.__s,t.__v!==r.__v&&(a.__d=!1),a.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(C){C&&(C.__=t)}),a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,S),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(h,d,p)})}if(a.context=S,a.props=g,a.__v=t,a.__P=e,z=v.__r,F=0,"prototype"in y&&y.prototype.render)a.state=a.__s,a.__d=!1,z&&z(t),u=a.render(a.props,a.state,a.context);else do a.__d=!1,z&&z(t),u=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++F<25);a.state=a.__s,a.getChildContext!=null&&(n=j(j({},n),a.getChildContext())),_||a.getSnapshotBeforeUpdate==null||(p=a.getSnapshotBeforeUpdate(h,d)),A=u!=null&&u.type===k&&u.key==null?u.props.children:u,Kt(e,Array.isArray(A)?A:[A],t,r,n,i,o,s,c,f),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),w&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Mr(r.__e,t,r,n,i,o,s,f);(u=v.diffed)&&u(t)}catch(C){t.__v=null,(f||o!=null)&&(t.__e=c,t.__h=!!f,o[o.indexOf(c)]=null),v.__e(C,t,r)}}function qt(e,t){v.__c&&v.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){v.__e(n,r.__v)}})}function Mr(e,t,r,n,i,o,s,c){var f,u,a,_=r.props,h=t.props,d=t.type,p=0;if(d==="svg"&&(i=!0),o!=null){for(;p<o.length;p++)if((f=o[p])&&"setAttribute"in f==!!d&&(d?f.localName===d:f.nodeType===3)){e=f,o[p]=null;break}}if(e==null){if(d===null)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),o=null,c=!1}if(d===null)_===h||c&&e.data===h||(e.data=h);else{if(o=o&&Pe.call(e.childNodes),u=(_=r.props||Ce).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!c){if(o!=null)for(_={},p=0;p<e.attributes.length;p++)_[e.attributes[p].name]=e.attributes[p].value;(a||u)&&(a&&(u&&a.__html==u.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(Vr(e,h,_,i,c),a)t.__k=[];else if(p=t.props.children,Kt(e,Array.isArray(p)?p:[p],t,r,n,i&&d!=="foreignObject",o,s,o?o[0]:r.__k&&Q(r,0),c),o!=null)for(p=o.length;p--;)o[p]!=null&&Mt(o[p]);c||("value"in h&&(p=h.value)!==void 0&&(p!==e.value||d==="progress"&&!p||d==="option"&&p!==_.value)&&Le(e,"value",p,_.value,!1),"checked"in h&&(p=h.checked)!==void 0&&p!==e.checked&&Le(e,"checked",p,_.checked,!1))}return e}function Yt(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){v.__e(n,r)}}function Xt(e,t,r){var n,i;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Yt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){v.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Xt(n[i],t,typeof e.type!="function");r||e.__e==null||Mt(e.__e),e.__=e.__e=e.__d=void 0}function Gr(e,t,r){return this.constructor(e,r)}function Kr(e,t,r){var n,i,o;v.__&&v.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],Qe(t,e=(!n&&r||t).__k=Ge(k,null,[e]),i||Ce,Ce,t.ownerSVGElement!==void 0,!n&&r?[r]:i?null:t.firstChild?Pe.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n),qt(o,e)}function Zt(e,t){var r={__c:t="__cC"+Wt++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(Ke)},this.sub=function(s){i.push(s);var c=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),c&&c.call(s)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Pe=Vt.slice,v={__e:function(e,t,r,n){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),s=i.__d),s)return i.__E=i}catch(c){e=c}throw e}},Ot=0,W.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=j({},this.state),typeof e=="function"&&(e=e(j({},r),this.props)),e&&j(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),Ke(this))},W.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ke(this))},W.prototype.render=k,_e=[],He.__r=0,Wt=0;var jr=0;function l(e,t,r,n,i){var o,s,c={};for(s in t)s=="ref"?o=t[s]:c[s]=t[s];var f={type:e,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--jr,__source:i,__self:n};if(typeof e=="function"&&(o=e.defaultProps))for(s in o)c[s]===void 0&&(c[s]=o[s]);return v.vnode&&v.vnode(f),f}const Jr=({children:e})=>l("div",{class:"w-full h-full",children:e}),ue=({children:e})=>l("div",{class:"w-full flex justify-center",children:l("div",{class:"w-[70rem] max-w-full px-8",children:e})});var ge,m,Fe,gt,he=0,Qt=[],Ne=[],bt=v.__b,mt=v.__r,yt=v.diffed,wt=v.__c,St=v.unmount;function Re(e,t){v.__h&&v.__h(m,e,he||t),he=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Ne}),r.__[e]}function be(e){return he=1,er(rr,e)}function er(e,t,r){var n=Re(ge++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):rr(void 0,t),function(o){var s=n.__N?n.__N[0]:n.__[0],c=n.t(s,o);s!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.u)){m.u=!0;var i=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,s,c){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(a){return a.__c});if(f.every(function(a){return!a.__N}))return!i||i.call(this,o,s,c);var u=!1;return f.forEach(function(a){if(a.__N){var _=a.__[0];a.__=a.__N,a.__N=void 0,_!==a.__[0]&&(u=!0)}}),!!u&&(!i||i.call(this,o,s,c))}}return n.__N||n.__}function de(e,t){var r=Re(ge++,3);!v.__s&&tr(r.__H,t)&&(r.__=e,r.i=t,m.__H.__h.push(r))}function et(e){return he=5,I(function(){return{current:e}},[])}function I(e,t){var r=Re(ge++,7);return tr(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function tt(e,t){return he=8,I(function(){return e},t)}function qr(e){var t=m.context[e.__c],r=Re(ge++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(m)),t.props.value):e.__}function Yr(){for(var e;e=Qt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ae),e.__H.__h.forEach(je),e.__H.__h=[]}catch(t){e.__H.__h=[],v.__e(t,e.__v)}}v.__b=function(e){typeof e.type!="function"||e.o||e.type===k?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,bt&&bt(e)},v.__r=function(e){mt&&mt(e),ge=0;var t=(m=e.__c).__H;t&&(Fe===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Ne,r.__N=r.i=void 0})):(t.__h.forEach(Ae),t.__h.forEach(je),t.__h=[])),Fe=m},v.diffed=function(e){yt&&yt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qt.push(t)!==1&&gt===v.requestAnimationFrame||((gt=v.requestAnimationFrame)||Xr)(Yr)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Ne&&(r.__=r.__V),r.i=void 0,r.__V=Ne})),Fe=m=null},v.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ae),r.__h=r.__h.filter(function(n){return!n.__||je(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],v.__e(n,r.__v)}}),wt&&wt(e,t)},v.unmount=function(e){St&&St(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ae(n)}catch(i){t=i}}),r.__H=void 0,t&&v.__e(t,r.__v))};var kt=typeof requestAnimationFrame=="function";function Xr(e){var t,r=function(){clearTimeout(n),kt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);kt&&(t=requestAnimationFrame(r))}function Ae(e){var t=m,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),m=t}function je(e){var t=m;e.__c=e.__(),m=t}function tr(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function rr(e,t){return typeof t=="function"?t(e):t}function Zr(e,t){for(var r in t)e[r]=t[r];return e}function $t(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Et(e){this.props=e}(Et.prototype=new W).isPureReactComponent=!0,Et.prototype.shouldComponentUpdate=function(e,t){return $t(this.props,e)||$t(this.state,t)};var Nt=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Nt&&Nt(e)};var Qr=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}Qr(e,t,r,n)};var At=v.unmount;function nr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Zr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return nr(n,t,r)})),e}function or(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return or(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Oe(){this.__u=0,this.t=null,this.__b=null}function ir(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ke(){this.u=null,this.o=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),At&&At(e)},(Oe.prototype=new W).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=ir(n.__v),o=!1,s=function(){o||(o=!0,r.__R=null,i?i(c):c())};r.__R=s;var c=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=or(u,u.__c.__P,u.__c.__O)}var a;for(n.setState({__a:n.__b=null});a=n.t.pop();)a.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},Oe.prototype.componentWillUnmount=function(){this.t=[]},Oe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=nr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ge(k,null,e.fallback);return i&&(i.__h=null),[Ge(k,null,t.__a?null:e.children),i]};var Ct=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(ke.prototype=new W).__a=function(e){var t=this,r=ir(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Ct(t,e,n)):i()};r?r(o):o()}},ke.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ie(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},ke.prototype.componentDidUpdate=ke.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Ct(e,r,t)})};var en=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,tn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,rn=typeof document<"u",nn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};W.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(W.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ht=v.event;function on(){}function sn(){return this.cancelBubble}function an(){return this.defaultPrevented}v.event=function(e){return Ht&&(e=Ht(e)),e.persist=on,e.isPropagationStopped=sn,e.isDefaultPrevented=an,e.nativeEvent=e};var It={configurable:!0,get:function(){return this.class}},Lt=v.vnode;v.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var o in n={},r){var s=r[o];rn&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in r&&s==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&s===!0?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!nn(r.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&tn.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():s===null&&(s=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=s)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=Ie(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=Ie(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,r.class!=r.className&&(It.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",It))}e.$$typeof=en,Lt&&Lt(e)};var Ut=v.__r;v.__r=function(e){Ut&&Ut(e),e.__c};var ee=function(){return ee=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ee.apply(this,arguments)};function Tt(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,i++)n[i]=o[s];return n}function cn(){var e=et(!1),t=tt(function(){return e.current},[]);return de(function(){return e.current=!0,function(){e.current=!1}},[]),t}function ln(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=et(0),i=cn(),o=be(r),s=o[0],c=o[1],f=tt(function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var _=++n.current;return s.loading||c(function(h){return ee(ee({},h),{loading:!0})}),e.apply(void 0,u).then(function(h){return i()&&_===n.current&&c({value:h,loading:!1}),h},function(h){return i()&&_===n.current&&c({error:h,loading:!1}),h})},t);return[s,f]}function un(e,t){t===void 0&&(t=[]);var r=ln(e,t,{loading:!0}),n=r[0],i=r[1];return de(function(){i()},[i]),n}var fn=function(e,t){t===void 0&&(t=[]);var r=be(0),n=r[0],i=r[1],o=un(e,Tt(t,[n])),s=o.loading,c=tt(function(){s||i(function(f){return f+1})},Tt(t,[s]));return ee(ee({},o),{retry:c})};const sr=fn;var _n=function(e,t){var r=et(function(){});de(function(){r.current=e}),de(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const ar=_n;var rt=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(rt||{}),ve=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(ve||{});const hn={[ve.EmptyTrigger]:l(k,{children:"One or more triggers seems invalid; it has no event or cron definition. Make sure you\'ve correctly used the function creation methods."}),[ve.NoTriggers]:l(k,{children:"Can\'t find any triggers for this function, such as an event or a cron definition. Make sure you\'ve correctly used the function creation methods."})},dn={[rt.NoSigningKey]:l("div",{class:"flex flex-col space-y-2",children:[l("div",{class:"font-semibold",children:"Could not find signing key"}),l("div",{children:["A signing key is required to communicate with Inngest securely. We weren\'t passed one when calling ",l("code",{children:"serve()"})," and couldn\'t find it in the recommended ",l("code",{children:"INNGEST_SIGNING_KEY"})," environment variable."]}),l("div",{children:["You can find your signing key in the"," ",l("a",{href:"https://app.inngest.com/secrets",target:"_blank",children:"Inngest Dashboard - Secrets section."})]})]})};var Je=(e=>(e.FnId="fnId",e.StepId="stepId",e.Introspect="introspect",e))(Je||{}),cr=(e=>(e.SigningKey="INNGEST_SIGNING_KEY",e.EventKey="INNGEST_EVENT_KEY",e.LandingPage="INNGEST_LANDING_PAGE",e.DevServerUrl="INNGEST_DEVSERVER_URL",e))(cr||{});const lr="http://127.0.0.1:8288/",vn=async(e=lr,t)=>{try{const r=ur(e,"/dev");return await(await t(r.toString())).json(),!0}catch{return!1}},ur=(e=lr,t="")=>new URL(t,e.includes("://")?e:`http://${e}`),pn=()=>(nt()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),xn=()=>(nt()?["production",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes("production"),nt=()=>typeof process<"u"&&"env"in process,gn="0.7.1-beta.1",bn=e=>{const t="-";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)},fr=1,_r=fr*1e3,hr=_r*60,dr=hr*60,vr=dr*24,mn=vr*7,yn=[["w",mn],["d",vr],["h",dr],["m",hr],["s",_r],["ms",fr]],Pt=(e,t=new Date)=>{if(!!isNaN(e.getTime()))throw new Error("Invalid date given to convert to time string");if(e<=t)throw new Error("Cannot sleep until a time in the past");const n=e.getTime()-t.getTime(),[,i]=yn.reduce(([o,s],[c,f])=>{const u=Math.floor(o/f);return u>0?[o%f,`${s}${u}${c}`]:[o,s]},[n,""]);return i};var pr={},x={},me=xr;function xr(e,t){if(!e)throw new Error(t||"Assertion failed")}xr.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var qe={exports:{}};typeof Object.create=="function"?qe.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:qe.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var wn=me,Sn=qe.exports;x.inherits=Sn;function kn(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function $n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):kn(e,i)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++i)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(i=0;i<e.length;i++)r[i]=e[i]|0;return r}x.toArray=$n;function En(e){for(var t="",r=0;r<e.length;r++)t+=br(e[r].toString(16));return t}x.toHex=En;function gr(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}x.htonl=gr;function Nn(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];t==="little"&&(i=gr(i)),r+=mr(i.toString(16))}return r}x.toHex32=Nn;function br(e){return e.length===1?"0"+e:e}x.zero2=br;function mr(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}x.zero8=mr;function An(e,t,r,n){var i=r-t;wn(i%4===0);for(var o=new Array(i/4),s=0,c=t;s<o.length;s++,c+=4){var f;n==="big"?f=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:f=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[s]=f>>>0}return o}x.join32=An;function Cn(e,t){for(var r=new Array(e.length*4),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];t==="big"?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=o&255)}return r}x.split32=Cn;function Hn(e,t){return e>>>t|e<<32-t}x.rotr32=Hn;function In(e,t){return e<<t|e>>>32-t}x.rotl32=In;function Ln(e,t){return e+t>>>0}x.sum32=Ln;function Un(e,t,r){return e+t+r>>>0}x.sum32_3=Un;function Tn(e,t,r,n){return e+t+r+n>>>0}x.sum32_4=Tn;function Pn(e,t,r,n,i){return e+t+r+n+i>>>0}x.sum32_5=Pn;function Rn(e,t,r,n){var i=e[t],o=e[t+1],s=n+o>>>0,c=(s<n?1:0)+r+i;e[t]=c>>>0,e[t+1]=s}x.sum64=Rn;function Bn(e,t,r,n){var i=t+n>>>0,o=(i<t?1:0)+e+r;return o>>>0}x.sum64_hi=Bn;function Dn(e,t,r,n){var i=t+n;return i>>>0}x.sum64_lo=Dn;function zn(e,t,r,n,i,o,s,c){var f=0,u=t;u=u+n>>>0,f+=u<t?1:0,u=u+o>>>0,f+=u<o?1:0,u=u+c>>>0,f+=u<c?1:0;var a=e+r+i+s+f;return a>>>0}x.sum64_4_hi=zn;function Fn(e,t,r,n,i,o,s,c){var f=t+n+o+c;return f>>>0}x.sum64_4_lo=Fn;function On(e,t,r,n,i,o,s,c,f,u){var a=0,_=t;_=_+n>>>0,a+=_<t?1:0,_=_+o>>>0,a+=_<o?1:0,_=_+c>>>0,a+=_<c?1:0,_=_+u>>>0,a+=_<u?1:0;var h=e+r+i+s+f+a;return h>>>0}x.sum64_5_hi=On;function Wn(e,t,r,n,i,o,s,c,f,u){var a=t+n+o+c+u;return a>>>0}x.sum64_5_lo=Wn;function Vn(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}x.rotr64_hi=Vn;function Mn(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.rotr64_lo=Mn;function Gn(e,t,r){return e>>>r}x.shr64_hi=Gn;function Kn(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.shr64_lo=Kn;var oe={},Rt=x,jn=me;function Be(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}oe.BlockHash=Be;Be.prototype.update=function(t,r){if(t=Rt.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Rt.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this};Be.prototype.digest=function(t){return this.update(this._pad()),jn(this.pending===null),this._digest(t)};Be.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,i=new Array(n+this.padLength);i[0]=128;for(var o=1;o<n;o++)i[o]=0;if(t<<=3,this.endian==="big"){for(var s=8;s<this.padLength;s++)i[o++]=0;i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=t>>>24&255,i[o++]=t>>>16&255,i[o++]=t>>>8&255,i[o++]=t&255}else for(i[o++]=t&255,i[o++]=t>>>8&255,i[o++]=t>>>16&255,i[o++]=t>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,s=8;s<this.padLength;s++)i[o++]=0;return i};var ie={},D={},Jn=x,L=Jn.rotr32;function qn(e,t,r,n){if(e===0)return yr(t,r,n);if(e===1||e===3)return Sr(t,r,n);if(e===2)return wr(t,r,n)}D.ft_1=qn;function yr(e,t,r){return e&t^~e&r}D.ch32=yr;function wr(e,t,r){return e&t^e&r^t&r}D.maj32=wr;function Sr(e,t,r){return e^t^r}D.p32=Sr;function Yn(e){return L(e,2)^L(e,13)^L(e,22)}D.s0_256=Yn;function Xn(e){return L(e,6)^L(e,11)^L(e,25)}D.s1_256=Xn;function Zn(e){return L(e,7)^L(e,18)^e>>>3}D.g0_256=Zn;function Qn(e){return L(e,17)^L(e,19)^e>>>10}D.g1_256=Qn;var te=x,eo=oe,to=D,We=te.rotl32,ce=te.sum32,ro=te.sum32_5,no=to.ft_1,kr=eo.BlockHash,oo=[1518500249,1859775393,2400959708,3395469782];function P(){if(!(this instanceof P))return new P;kr.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}te.inherits(P,kr);var io=P;P.blockSize=512;P.outSize=160;P.hmacStrength=80;P.padLength=64;P.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;i<n.length;i++)n[i]=We(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var o=this.h[0],s=this.h[1],c=this.h[2],f=this.h[3],u=this.h[4];for(i=0;i<n.length;i++){var a=~~(i/20),_=ro(We(o,5),no(a,s,c,f),u,n[i],oo[a]);u=f,f=c,c=We(s,30),s=o,o=_}this.h[0]=ce(this.h[0],o),this.h[1]=ce(this.h[1],s),this.h[2]=ce(this.h[2],c),this.h[3]=ce(this.h[3],f),this.h[4]=ce(this.h[4],u)};P.prototype._digest=function(t){return t==="hex"?te.toHex32(this.h,"big"):te.split32(this.h,"big")};var re=x,so=oe,se=D,ao=me,E=re.sum32,co=re.sum32_4,lo=re.sum32_5,uo=se.ch32,fo=se.maj32,_o=se.s0_256,ho=se.s1_256,vo=se.g0_256,po=se.g1_256,$r=so.BlockHash,xo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function R(){if(!(this instanceof R))return new R;$r.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=xo,this.W=new Array(64)}re.inherits(R,$r);var Er=R;R.blockSize=512;R.outSize=256;R.hmacStrength=192;R.padLength=64;R.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;i<n.length;i++)n[i]=co(po(n[i-2]),n[i-7],vo(n[i-15]),n[i-16]);var o=this.h[0],s=this.h[1],c=this.h[2],f=this.h[3],u=this.h[4],a=this.h[5],_=this.h[6],h=this.h[7];for(ao(this.k.length===n.length),i=0;i<n.length;i++){var d=lo(h,ho(u),uo(u,a,_),this.k[i],n[i]),p=E(_o(o),fo(o,s,c));h=_,_=a,a=u,u=E(f,d),f=c,c=s,s=o,o=E(d,p)}this.h[0]=E(this.h[0],o),this.h[1]=E(this.h[1],s),this.h[2]=E(this.h[2],c),this.h[3]=E(this.h[3],f),this.h[4]=E(this.h[4],u),this.h[5]=E(this.h[5],a),this.h[6]=E(this.h[6],_),this.h[7]=E(this.h[7],h)};R.prototype._digest=function(t){return t==="hex"?re.toHex32(this.h,"big"):re.split32(this.h,"big")};var Ye=x,Nr=Er;function M(){if(!(this instanceof M))return new M;Nr.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Ye.inherits(M,Nr);var go=M;M.blockSize=512;M.outSize=224;M.hmacStrength=192;M.padLength=64;M.prototype._digest=function(t){return t==="hex"?Ye.toHex32(this.h.slice(0,7),"big"):Ye.split32(this.h.slice(0,7),"big")};var $=x,bo=oe,mo=me,U=$.rotr64_hi,T=$.rotr64_lo,Ar=$.shr64_hi,Cr=$.shr64_lo,K=$.sum64,Ve=$.sum64_hi,Me=$.sum64_lo,yo=$.sum64_4_hi,wo=$.sum64_4_lo,So=$.sum64_5_hi,ko=$.sum64_5_lo,Hr=bo.BlockHash,$o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;Hr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=$o,this.W=new Array(160)}$.inherits(N,Hr);var Ir=N;N.blockSize=1024;N.outSize=512;N.hmacStrength=192;N.padLength=128;N.prototype._prepareBlock=function(t,r){for(var n=this.W,i=0;i<32;i++)n[i]=t[r+i];for(;i<n.length;i+=2){var o=Ro(n[i-4],n[i-3]),s=Bo(n[i-4],n[i-3]),c=n[i-14],f=n[i-13],u=To(n[i-30],n[i-29]),a=Po(n[i-30],n[i-29]),_=n[i-32],h=n[i-31];n[i]=yo(o,s,c,f,u,a,_,h),n[i+1]=wo(o,s,c,f,u,a,_,h)}};N.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,i=this.h[0],o=this.h[1],s=this.h[2],c=this.h[3],f=this.h[4],u=this.h[5],a=this.h[6],_=this.h[7],h=this.h[8],d=this.h[9],p=this.h[10],w=this.h[11],g=this.h[12],b=this.h[13],S=this.h[14],z=this.h[15];mo(this.k.length===n.length);for(var F=0;F<n.length;F+=2){var A=S,y=z,C=Lo(h,d),ae=Uo(h,d),st=Eo(h,d,p,w,g),at=No(h,d,p,w,g,b),ct=this.k[F],lt=this.k[F+1],ut=n[F],ft=n[F+1],ye=So(A,y,C,ae,st,at,ct,lt,ut,ft),we=ko(A,y,C,ae,st,at,ct,lt,ut,ft);A=Ho(i,o),y=Io(i,o),C=Ao(i,o,s,c,f),ae=Co(i,o,s,c,f,u);var _t=Ve(A,y,C,ae),ht=Me(A,y,C,ae);S=g,z=b,g=p,b=w,p=h,w=d,h=Ve(a,_,ye,we),d=Me(_,_,ye,we),a=f,_=u,f=s,u=c,s=i,c=o,i=Ve(ye,we,_t,ht),o=Me(ye,we,_t,ht)}K(this.h,0,i,o),K(this.h,2,s,c),K(this.h,4,f,u),K(this.h,6,a,_),K(this.h,8,h,d),K(this.h,10,p,w),K(this.h,12,g,b),K(this.h,14,S,z)};N.prototype._digest=function(t){return t==="hex"?$.toHex32(this.h,"big"):$.split32(this.h,"big")};function Eo(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function No(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=4294967296),s}function Ao(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function Co(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=4294967296),s}function Ho(e,t){var r=U(e,t,28),n=U(t,e,2),i=U(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Io(e,t){var r=T(e,t,28),n=T(t,e,2),i=T(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Lo(e,t){var r=U(e,t,14),n=U(e,t,18),i=U(t,e,9),o=r^n^i;return o<0&&(o+=4294967296),o}function Uo(e,t){var r=T(e,t,14),n=T(e,t,18),i=T(t,e,9),o=r^n^i;return o<0&&(o+=4294967296),o}function To(e,t){var r=U(e,t,1),n=U(e,t,8),i=Ar(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Po(e,t){var r=T(e,t,1),n=T(e,t,8),i=Cr(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function Ro(e,t){var r=U(e,t,19),n=U(t,e,29),i=Ar(e,t,6),o=r^n^i;return o<0&&(o+=4294967296),o}function Bo(e,t){var r=T(e,t,19),n=T(t,e,29),i=Cr(e,t,6),o=r^n^i;return o<0&&(o+=4294967296),o}var Xe=x,Lr=Ir;function G(){if(!(this instanceof G))return new G;Lr.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Xe.inherits(G,Lr);var Do=G;G.blockSize=1024;G.outSize=384;G.hmacStrength=192;G.padLength=128;G.prototype._digest=function(t){return t==="hex"?Xe.toHex32(this.h.slice(0,12),"big"):Xe.split32(this.h.slice(0,12),"big")};ie.sha1=io;ie.sha224=go;ie.sha256=Er;ie.sha384=Do;ie.sha512=Ir;var Ur={},q=x,zo=oe,$e=q.rotl32,Bt=q.sum32,le=q.sum32_3,Dt=q.sum32_4,Tr=zo.BlockHash;function B(){if(!(this instanceof B))return new B;Tr.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}q.inherits(B,Tr);Ur.ripemd160=B;B.blockSize=512;B.outSize=160;B.hmacStrength=192;B.padLength=64;B.prototype._update=function(t,r){for(var n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],f=n,u=i,a=o,_=s,h=c,d=0;d<80;d++){var p=Bt($e(Dt(n,zt(d,i,o,s),t[Wo[d]+r],Fo(d)),Mo[d]),c);n=c,c=s,s=$e(o,10),o=i,i=p,p=Bt($e(Dt(f,zt(79-d,u,a,_),t[Vo[d]+r],Oo(d)),Go[d]),h),f=h,h=_,_=$e(a,10),a=u,u=p}p=le(this.h[1],o,_),this.h[1]=le(this.h[2],s,h),this.h[2]=le(this.h[3],c,f),this.h[3]=le(this.h[4],n,u),this.h[4]=le(this.h[0],i,a),this.h[0]=p};B.prototype._digest=function(t){return t==="hex"?q.toHex32(this.h,"little"):q.split32(this.h,"little")};function zt(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function Fo(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Oo(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var Wo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Vo=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Mo=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Go=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Ko=x,jo=me;function ne(e,t,r){if(!(this instanceof ne))return new ne(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(Ko.toArray(t,r))}var Jo=ne;ne.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),jo(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};ne.prototype.update=function(t,r){return this.inner.update(t,r),this};ne.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=x,t.common=oe,t.sha=ie,t.ripemd=Ur,t.hmac=Jo,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(pr);var qo=Yo;function Yo(e,t){t=t||10;var r=[],n="",i=RegExp;function o(s,c){if(!(c>t)&&!(typeof s=="function"||typeof s>"u")){if(typeof s!="object"||!s||s instanceof i){n+=s;return}r.indexOf(s)!==-1||c===t||(r.push(s),n+="{",Object.keys(s).forEach(function(f,u,a){if(f.charAt(0)!=="_"){var _=typeof s[f];_==="function"||_==="undefined"||(n+=f,o(s[f],c+1))}}))}}return o(e,0),n}var fe=(e=>(e.WaitForEvent="WaitForEvent",e.RunStep="Step",e.Sleep="Sleep",e))(fe||{});class Ze{}const Xo=e=>{let t=!0,r=0;const n={...e},i=f=>{const u=n[f.id];return[u!==void 0,u]},o=(f,u)=>(...a)=>{if(!t)throw new Ze;const _=f(...a),h={..._,id:Zo(_,r++)},[d,p]=i(h);if(d)return p;t=!1;const w=(...g)=>{s.nextOp=new Promise(b=>b(g[0])).then(b=>({...h,...g.length?{data:b}:{}}))};throw u?u({submitOp:w},...a):w(),s.nextOp?new Ze:new Error("No operation was submitted by a tool")},s={nextOp:void 0};return[{waitForEvent:o((f,u)=>{const a={};return u!=null&&u.timeout&&(a.ttl=typeof u.timeout=="string"?u.timeout:Pt(u.timeout)),u!=null&&u.match?a.match=`event.${u.match} == async.${u.match}`:u!=null&&u.if&&(a.match=u.if),{op:fe.WaitForEvent,name:f,opts:a}}),run:o(f=>({op:fe.RunStep,name:f}),({submitOp:f},u,a)=>{f(a())}),sleep:o(f=>({op:fe.Sleep,name:f})),sleepUntil:o(f=>({op:fe.Sleep,name:Pt(f)}))},s]},Zo=(e,t)=>pr.sha1().update(qo({pos:t,op:e.op,name:e.name,opts:e.opts})).digest("hex");var H,pe,xe,Ue,Pr;const X=class{constructor(t,r,n){Y(this,Ue);Y(this,H,void 0);Y(this,pe,void 0);Y(this,xe,void 0);Se(this,H,t),Se(this,pe,r),Se(this,xe,n)}id(t){return O(this,H).id||(O(this,H).id=ze(this,Ue,Pr).call(this,t)),O(this,H).id}get name(){return O(this,H).name}getConfig(t,r){const n=this.id(r),i=new URL(t.href);return i.searchParams.set(Je.FnId,n),i.searchParams.set(Je.StepId,X.stepId),{...O(this,H),id:n,name:this.name,triggers:[O(this,pe)],steps:{[X.stepId]:{id:X.stepId,name:X.stepId,runtime:{type:"http",url:i.href}}}}}async runFn(t,r){const[n,i]=Xo(r),o={...t,tools:n};let s;try{s=await O(this,xe).call(this,o)}catch(c){if(!(c instanceof Ze)){if(!i.nextOp)throw c;console.warn("An error occurred after submitting a new op. Continuing on.",c)}}return i.nextOp?[!0,await i.nextOp]:[!1,s]}};let Z=X;H=new WeakMap,pe=new WeakMap,xe=new WeakMap,Ue=new WeakSet,Pr=function(t){return bn([t||"",O(this,H).name].join("-"))},J(Z,"stepId","step");var Te,Rr;class Qo{constructor({name:t,eventKey:r,inngestBaseUrl:n="https://inn.gs/"}){Y(this,Te);J(this,"name");J(this,"eventKey");J(this,"inngestBaseUrl");J(this,"inngestApiUrl");J(this,"headers");if(!t)throw new Error("A name must be passed to create an Inngest instance.");if(!r)throw new Error("An event key must be passed to create an Inngest instance.");this.name=t,this.eventKey=r||nt()&&process.env[cr.EventKey]||"",this.inngestBaseUrl=new URL(n),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),this.headers={"Content-Type":"application/json","User-Agent":`InngestJS v${gn}`}}async send(t,r){let n;if(typeof t=="string"?n=(Array.isArray(r)?r:r?[r]:[]).map(s=>({...s,name:t})):n=Array.isArray(t)?t:t?[t]:[],!n.length)throw new Error("Provided a name but no events to send; make sure to send an event payload too");let i=this.inngestApiUrl.href;if(!xn()){const s=pn();(s!==void 0||await vn(s,fetch))&&(i=ur(s,`e/${this.eventKey}`).href)}const o=await fetch(i,{method:"POST",body:JSON.stringify(n),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await ze(this,Te,Rr).call(this,o)}createStepFunction(t,r,n){return new Z(typeof t=="string"?{name:t}:t,{event:r},n)}createFunction(t,r,n){return new Z(typeof t=="string"?{name:t}:t,{event:r},n)}createScheduledFunction(t,r,n){return new Z(typeof t=="string"?{name:t}:t,{cron:r},n)}}Te=new WeakSet,Rr=async function(t){let r="Unknown error";switch(t.status){case 401:r="Event key Not Found";break;case 400:r="Cannot process event payload";break;case 403:r="Forbidden";break;case 404:r="Event key not found";break;case 406:r=`${JSON.stringify(await t.json())}`;break;case 409:case 412:r="Event transformation failed";break;case 413:r="Event payload too large";break;case 500:r="Internal server error";break}return new Error(`Inngest API Error: ${t.status} ${r}`)};const V=e=>Object.entries(e).reduce((r,[n,i])=>i?[...r,n]:r,[]).filter(Boolean).join(" ").trim(),Br=({children:e,onClick:t,type:r,disabled:n,className:i=""})=>l("button",{className:`${n?"bg-slate-400":"bg-blue-500"} text-white px-5 py-1 font-semibold rounded ${i}`,onClick:t,type:r,disabled:n,children:e}),ei=()=>sr(async()=>{const t=new URL(window.location.href);t.searchParams.set("introspect","true");const n=await(await fetch(t)).json();return n.functions=n.functions.map(i=>{var s;const o=new Set;return((s=i.triggers)==null?void 0:s.length)<1?o.add(ve.NoTriggers):i.triggers.some(f=>!(f!=null&&f.event)&&!(f!=null&&f.cron))&&o.add(ve.EmptyTrigger),o.size&&(i.errors=o),i}).sort((i,o)=>{var f,u;const s=Boolean((f=i.errors)==null?void 0:f.size),c=Boolean((u=o.errors)==null?void 0:u.size);return s!==c?s?-1:1:i.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(rt.NoSigningKey),n}),ti="http://localhost:8288",Dr=Zt({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ot=Dr.Consumer,ri=({children:e})=>{const{value:t,retry:r,loading:n,error:i}=ei(),o=new URL((t==null?void 0:t.devServerURL)||ti);o.pathname="dev";const{value:s,retry:c}=sr(async()=>await(await fetch(o)).json());ar(c,1e3);const f=I(()=>Boolean(s),[s]);return l(Dr.Provider,{value:{value:t,retry:r,loading:n,error:i,dev:s,devConnected:f},children:e})},ni=({value:e,label:t,onChange:r,className:n="",disabled:i})=>l(k,{children:[t?l(oi,{children:t}):null,l("textarea",{disabled:i,class:V({"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500":!0,[n]:!0}),value:e,onChange:o=>r==null?void 0:r(o.currentTarget.value)})]}),oi=({children:e})=>l("label",{class:"font-semibold text-sm",children:e}),zr=Zt({push:e=>()=>{},remove:e=>{}}),ii=(e,t)=>{switch(t.type){case"add":return e.find(r=>r.id===t.toast.id)?e:e.concat([{...t.toast}]);case"remove":return e.filter(r=>r.id!==t.id)}},si=({children:e})=>{const[t,r]=er(ii,[]),n=o=>r({type:"remove",id:o}),i=o=>{const s=Math.random().toString(16);return r({type:"add",toast:{...o,id:o.id||s}}),()=>n(s)};return l(zr.Provider,{value:{push:i,remove:n},children:[l("div",{className:"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8",children:t.map(o=>l(ai,{toast:o},o.id))}),e]})},it=()=>qr(zr),Ft=5e3,ai=({toast:e})=>{const{remove:t}=it(),[r,n]=be(!1),i=e.icon;de(()=>{setTimeout(()=>{n(!0)},25),setTimeout(()=>{!e.sticky&&n(!1)},e.duration||Ft-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||Ft)},[e.id]);const o=e.message||(e.type==="error"?"Something went wrong":"");let s="text-slate-200 bg-gray-800";switch(e.type){case"success":s="text-slate-200 bg-green-600";break;case"error":s="text-slate-200 bg-red-800"}return r?l("div",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${s} text-center mb-2`,onClick:()=>t(e.id),children:[i&&l(i,{size:22,style:{marginRight:10}}),l("span",{children:o.replace("[GraphQL] ","").replace("[Network] ","")})]}):null},ci=e=>l(ot,{children:t=>l(li,{...e,introspect:t})}),li=({introspect:e,eventData:t})=>{const{push:r}=it(),{value:n,devConnected:i}=e,[o,s]=be(t||JSON.stringify({name:"",data:{}},void 0," ")),c=I(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),f=async u=>{if(u.preventDefault(),!n||!i){r({type:"error",message:"You must run the dev server to send test events"});return}await new Qo({name:n.appName,inngestBaseUrl:n.devServerURL,eventKey:"dev-server"}).send(JSON.parse(o)),r({type:"success",message:"Event sent. Check your terminal for logs."})};return l(ue,{children:l("details",{class:"border border-gray-200 p-4 flex flex-col cursor-pointer rounded-lg bg-white shadow-lg my-4",children:[l("summary",{class:"select-none",children:"Send a test event to trigger functions"}),l("div",{className:"pt-1 pb-2 text-gray-500 text-sm",children:"Send a test event as JSON to the Inngest dev server. This will trigger any functions that run from this event."}),l("form",{class:"flex-1",onSubmit:f,children:[l("div",{class:"my-4",children:l(ni,{label:"Event data (JSON)",className:V({"font-mono overflow-y-scroll h-48 resize-none":!0,"bg-red-100":!c}),value:o,onChange:s})}),l("div",{class:"flex flex-row justify-end space-x-4 items-center italic",children:[i?l("div",{class:"text-gray-500 text-sm",children:"Ctrl + Enter to send"}):l("div",{class:"text-red-600 text-sm",children:"Run the dev server to send test events"}),l(Br,{type:"submit",disabled:!i,children:"Send event"})]})]})]})})},ui=({config:e,altBg:t})=>{var c,f;const{push:r}=it(),n=I(()=>e.triggers[0].cron?"cron":"event",[e.triggers]),i=I(()=>{const u=e.triggers[0];return u.cron||u.event||""},[e.triggers]),o=I(()=>{var u;return Boolean((u=e.errors)==null?void 0:u.size)},[e.errors]),s=async()=>{const u=new URL(window.location.href);u.searchParams.set("fnId",e.id),u.searchParams.set("stepId",e.steps.step.id),r({type:"default",message:"Scheduled function triggered"});const a=await fetch(u,{method:"POST"}),_=await a.json(),h=typeof _=="object"&&_.status?_.status:a.status;r({type:h===200?"success":"error",message:`Function complete: ${JSON.stringify(_)}`})};return l(k,{children:[l("div",{class:V({"w-full grid grid-cols-[1fr_1fr_1fr_100px] p-2 items-center":!0,"bg-slate-200/30":Boolean(t),"bg-red-400/30":o}),children:[l("div",{class:"flex flex-col",children:l("div",{class:"font-semibold text-sm",children:[e.name," ",l("span",{class:V({"uppercase text-xs px-1 py-0.5 rounded":!0,"bg-blue-300/30":n==="event","bg-green-300/30":n==="cron"}),children:n})]})}),l("div",{children:l("code",{class:V({"text-xs text-gray-500":!0,"bg-white":o,"bg-gray-500/10":!o}),children:e.id})}),l("span",{children:i?l("code",{children:i}):l("code",{class:"bg-white",children:"Invalid or no expression"})}),l("div",{children:n==="cron"&&l(Br,{className:"text-sm",onClick:s,children:"Trigger"})})]}),o?l("div",{class:"w-full p-2 bg-red-400/30",children:(f=Array.from((c=e.errors)!=null?c:[]))==null?void 0:f.map(u=>l("div",{class:"bg-red-100 border border-red-400 rounded p-2",children:hn[u]}))}):null]})},fi=({class:e=""})=>l("svg",{class:V({"animate-spin h-5 w-5 text-slate-800":!0,[e]:!0}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),_i=()=>l(ot,{children:e=>l(hi,{introspect:e})}),hi=({introspect:e})=>{var a;const{loading:t,value:r,retry:n,error:i}=e,[o,s]=be(!1);ar(n,5e3);const c=I(()=>(r==null?void 0:r.functions.some(_=>{var h;return(h=_.errors)==null?void 0:h.size}))||!1,[r==null?void 0:r.functions]),f=I(()=>Boolean(r==null?void 0:r.globalErrors.size),[r==null?void 0:r.globalErrors]),u=I(()=>[{title:"\\u{1F9D1}\\u200D\\u{1F4BB} Writing functions",description:"Get started writing your serverless background functions and scheduled tasks.",href:"https://www.inngest.com/docs/functions"},{title:"\\u{1F4E2} Sending events",description:"Learn how to trigger your functions by sending events from your code.",href:"https://www.inngest.com/docs/events"},{title:"\\u{1F6A2} Deploying",description:"Deploy functions to your platform of choice.",href:"https://www.inngest.com/docs/deploy"}],[]);return t&&!r&&!i?l("div",{class:"flex-1 w-full h-full flex items-center justify-center",children:l(fi,{class:"h-8 w-8"})}):l(k,{children:[l("div",{class:"flex flex-col gap-4 py-20 bg-gray-100",children:l(ue,{children:[l("div",{class:"text-3xl",children:c?"\\u274C Your functions are not set up correctly":r!=null&&r.functions.length?"\\u2705 Your functions are set up correctly":"\\u274E No functions detected"}),l("div",{class:"ml-12 opacity-75",children:l("code",{children:["inngest-",r==null?void 0:r.sdk]})})]})}),l("div",{children:l(ue,{children:l("div",{class:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4",children:u.map(_=>l("a",{href:_.href,target:"_blank",class:"bg-white rounded border-1 border-black shadow-xl p-4 flex flex-col space-y-2 transition-all hover:scale-105 hover:shadow-2xl no-underline",children:[l("div",{class:"font-semibold text-lg",children:_.title}),l("div",{class:"text-sm",children:_.description}),l("div",{class:"flex-1"}),l("div",{class:"text-right font-semibold text-purple-500",children:"Explore \\u2192"})]}))})})}),f?l("div",{class:"mt-8",children:l(ue,{children:l("div",{class:"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2",children:[l("div",{class:"font-semibold text-yellow-700 text-lg",children:"Your handler configuration might be missing some options"}),Array.from((a=r==null?void 0:r.globalErrors)!=null?a:[]).map(_=>l("div",{class:"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800",children:dn[_]}))]})})}):null,l(ci,{expanded:o,onToggle:()=>s(_=>!_)}),l("div",{class:"w-full flex items-center justify-center mt-8 p-4",children:l(ue,{children:[l("div",{class:"flex flex-row justify-between",children:[l("div",{class:"flex flex-row space-x-2 items-center justify-center",children:[l("div",{class:"font-semibold",children:["Found ",(r==null?void 0:r.functions.length)||0," functions"]}),l("div",{children:l("div",{class:"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase",onClick:()=>n(),children:"Refresh"})})]}),l("a",{class:"mb-8",href:"#",children:"Don\'t see your function?"})]}),r!=null&&r.functions.length?l("div",{class:"flex flex-col",children:[l("div",{class:"w-full grid grid-cols-[1fr_1fr_1fr_100px] font-semibold border-b-2 border-slate-300 pb-1",children:[l("div",{children:"Name"}),l("div",{children:"ID"}),l("div",{children:"Event / Cron"})]}),r==null?void 0:r.functions.map((_,h)=>l(ui,{config:_,altBg:h%2===0}))]}):l("div",{class:"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20",children:[l("div",{class:"font-semibold",children:"No functions found"}),l("div",{class:"opacity-75 text-center",children:["We found your handler, but couldn\'t see any exported functions.",l("br",{}),"Check out the"," ",l("a",{href:"https://www.inngest.com/docs/functions",children:"Writing functions"})," ","guide to get started."]})]})]})})]})},di=({copiable:e,value:t})=>l("code",{class:V({"flex flex-row space-x-2 items-center justify-center":!0,"cursor-pointer":Boolean(e)}),onClick:e?()=>{navigator.clipboard.writeText(t)}:void 0,children:[l("span",{children:t}),e?l(vi,{}):null]}),vi=()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15 15H20C20.5523 15 21 14.5523 21 14V4C21 3.44772 20.5523 3 20 3L10 3C9.44772 3 9 3.44771 9 4L9 9",stroke:"#1e293b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M4 21L14 21C14.5523 21 15 20.5523 15 20L15 10C15 9.44772 14.5523 9 14 9L4 9C3.44771 9 3 9.44771 3 10L3 20C3 20.5523 3.44771 21 4 21Z",stroke:"#1e293b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),pi="http://localhost:8288",xi=()=>l(ot,{children:e=>l("div",{class:"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5",children:[l("div",{class:"font-medium text-gray-900 text-xl",children:"Inngest SDK"}),l("div",{class:"h-6 w-1 bg-gray-300"}),l(gi,{introspect:e})]})}),gi=({introspect:e})=>{const{value:t,devConnected:r}=e,n=new URL((t==null?void 0:t.devServerURL)||pi);return n.pathname="dev",l(k,{children:[l("div",{class:"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none",children:[l("div",{class:"flex h-4 w-4 relative",children:[l("span",{class:V({"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75":!0,"bg-green-400":r,"bg-red-400":!r})}),l("span",{class:V({"relative inline-flex rounded-full h-4 w-4":!0,"bg-green-500":r,"bg-red-500":!r})})]}),r?l("div",{children:["Connected to ",l("code",{children:"inngest dev"})," on"," ",l("code",{children:[n.hostname,":",n.port]})]}):l("div",{children:["Not connected to ",l("code",{children:"inngest dev"})]})]}),r?null:l(k,{children:[l("div",{className:"text-sm",children:"Run the dev server: "}),l(di,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function bi(){return l(si,{children:l(ri,{children:[l(xi,{}),l(Jr,{children:l(_i,{})})]})})}Kr(l(bi,{}),document.getElementById("app"));\n\n</script>\n <style>\n*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0px}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-full{height:100%}.h-8{height:2rem}.h-6{height:1.5rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-1{width:.25rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr_100px\\]{grid-template-columns:1fr 1fr 1fr 100px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400\\/30{background-color:#facc154d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-200\\/30{background-color:#e2e8f04d}.bg-red-400\\/30{background-color:#f871714d}.bg-blue-300\\/30{background-color:#93c5fd4d}.bg-green-300\\/30{background-color:#86efac4d}.bg-gray-500\\/10{background-color:#6b72801a}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pt-1{padding-top:.25rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.opacity-25{opacity:.25}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}html,body,#app{height:100%;width:100%;--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem}.dark code{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}a{text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n</style>\n </head>\n <body>\n <div id="app"></div>\n \n </body>\n</html>\n';
4
+ exports.landing = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <title>Inngest SDK - Your functions</title>\n <script type="module" crossorigin>\nvar Vr=Object.defineProperty;var Gr=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>(Gr(e,typeof t!="symbol"?t+"":t,r),r),We=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var O=(e,t,r)=>(We(e,t,"read from private field"),r?r.call(e):t.get(e)),X=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ne=(e,t,r,n)=>(We(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Ve=(e,t,r)=>(We(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll(\'link[rel="modulepreload"]\'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Fe,v,Kt,pe,mt,jt,Pe={},Jt=[],Kr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function j(e,t){for(var r in t)e[r]=t[r];return e}function qt(e){var t=e.parentNode;t&&t.removeChild(e)}function Xe(e,t,r){var n,s,o,i={};for(o in t)o=="key"?n=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Fe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return Ie(e,i,n,s,null)}function Ie(e,t,r,n,s){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++Kt:s};return s==null&&v.vnode!=null&&v.vnode(o),o}function k(e){return e.children}function M(e,t){this.props=e,this.context=t}function ee(e,t){if(t==null)return e.__?ee(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ee(e):null}function Yt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Yt(e)}}function Ze(e){(!e.__d&&(e.__d=!0)&&pe.push(e)&&!Te.__r++||mt!==v.debounceRendering)&&((mt=v.debounceRendering)||setTimeout)(Te)}function Te(){for(var e;Te.__r=pe.length;)e=pe.sort(function(t,r){return t.__v.__b-r.__v.__b}),pe=[],e.some(function(t){var r,n,s,o,i,c;t.__d&&(i=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(s=j({},o)).__v=o.__v+1,st(c,o,s,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[i]:null,n,i==null?ee(o):i,o.__h),er(n,o),o.__e!=i&&Yt(o)))})}function Xt(e,t,r,n,s,o,i,c,u,f){var a,h,_,d,p,w,g,b=n&&n.__k||Jt,S=b.length;for(r.__k=[],a=0;a<t.length;a++)if((d=r.__k[a]=(d=t[a])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Ie(null,d,null,null,d):Array.isArray(d)?Ie(k,{children:d},null,null,null):d.__b>0?Ie(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(_=b[a])===null||_&&d.key==_.key&&d.type===_.type)b[a]=void 0;else for(h=0;h<S;h++){if((_=b[h])&&d.key==_.key&&d.type===_.type){b[h]=void 0;break}_=null}st(e,d,_=_||Pe,s,o,i,c,u,f),p=d.__e,(h=d.ref)&&_.ref!=h&&(g||(g=[]),_.ref&&g.push(_.ref,null,d),g.push(h,d.__c||p,d)),p!=null?(w==null&&(w=p),typeof d.type=="function"&&d.__k===_.__k?d.__d=u=Zt(d,u,e):u=Qt(e,d,_,b,p,u),typeof r.type=="function"&&(r.__d=u)):u&&_.__e==u&&u.parentNode!=e&&(u=ee(_))}for(r.__e=w,a=S;a--;)b[a]!=null&&(typeof r.type=="function"&&b[a].__e!=null&&b[a].__e==r.__d&&(r.__d=ee(n,a+1)),rr(b[a],b[a]));if(g)for(a=0;a<g.length;a++)tr(g[a],g[++a],g[++a])}function Zt(e,t,r){for(var n,s=e.__k,o=0;s&&o<s.length;o++)(n=s[o])&&(n.__=e,t=typeof n.type=="function"?Zt(n,t,r):Qt(r,n,n,s,n.__e,t));return t}function De(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){De(r,t)}):t.push(e)),t}function Qt(e,t,r,n,s,o){var i,c,u;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(r==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),i=null;else{for(c=o,u=0;(c=c.nextSibling)&&u<n.length;u+=2)if(c==s)break e;e.insertBefore(s,o),i=o}return i!==void 0?i:s.nextSibling}function jr(e,t,r,n,s){var o;for(o in r)o==="children"||o==="key"||o in t||Re(e,o,null,r[o],n);for(o in t)s&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||Re(e,o,t[o],r[o],n)}function yt(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||Kr.test(t)?r:r+"px"}function Re(e,t,r,n,s){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||yt(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||yt(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?St:wt,o):e.removeEventListener(t,o?St:wt,o);else if(t!=="dangerouslySetInnerHTML"){if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r!=null&&(r!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,r):e.removeAttribute(t))}}function wt(e){this.l[e.type+!1](v.event?v.event(e):e)}function St(e){this.l[e.type+!0](v.event?v.event(e):e)}function st(e,t,r,n,s,o,i,c,u){var f,a,h,_,d,p,w,g,b,S,z,F,A,y=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(f=v.__b)&&f(t);try{e:if(typeof y=="function"){if(g=t.props,b=(f=y.contextType)&&n[f.__c],S=f?b?b.props.value:f.__:n,r.__c?w=(a=t.__c=r.__c).__=a.__E:("prototype"in y&&y.prototype.render?t.__c=a=new y(g,S):(t.__c=a=new M(g,S),a.constructor=y,a.render=qr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=S,a.__n=n,h=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),y.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=j({},a.__s)),j(a.__s,y.getDerivedStateFromProps(g,a.__s))),_=a.props,d=a.state,h)y.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(y.getDerivedStateFromProps==null&&g!==_&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,S),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,S)===!1||t.__v===r.__v){a.props=g,a.state=a.__s,t.__v!==r.__v&&(a.__d=!1),a.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(C){C&&(C.__=t)}),a.__h.length&&i.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,S),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(_,d,p)})}if(a.context=S,a.props=g,a.__v=t,a.__P=e,z=v.__r,F=0,"prototype"in y&&y.prototype.render)a.state=a.__s,a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context);else do a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++F<25);a.state=a.__s,a.getChildContext!=null&&(n=j(j({},n),a.getChildContext())),h||a.getSnapshotBeforeUpdate==null||(p=a.getSnapshotBeforeUpdate(_,d)),A=f!=null&&f.type===k&&f.key==null?f.props.children:f,Xt(e,Array.isArray(A)?A:[A],t,r,n,s,o,i,c,u),a.base=t.__e,t.__h=null,a.__h.length&&i.push(a),w&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Jr(r.__e,t,r,n,s,o,i,u);(f=v.diffed)&&f(t)}catch(C){t.__v=null,(u||o!=null)&&(t.__e=c,t.__h=!!u,o[o.indexOf(c)]=null),v.__e(C,t,r)}}function er(e,t){v.__c&&v.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){v.__e(n,r.__v)}})}function Jr(e,t,r,n,s,o,i,c){var u,f,a,h=r.props,_=t.props,d=t.type,p=0;if(d==="svg"&&(s=!0),o!=null){for(;p<o.length;p++)if((u=o[p])&&"setAttribute"in u==!!d&&(d?u.localName===d:u.nodeType===3)){e=u,o[p]=null;break}}if(e==null){if(d===null)return document.createTextNode(_);e=s?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,_.is&&_),o=null,c=!1}if(d===null)h===_||c&&e.data===_||(e.data=_);else{if(o=o&&Fe.call(e.childNodes),f=(h=r.props||Pe).dangerouslySetInnerHTML,a=_.dangerouslySetInnerHTML,!c){if(o!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(a||f)&&(a&&(f&&a.__html==f.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(jr(e,_,h,s,c),a)t.__k=[];else if(p=t.props.children,Xt(e,Array.isArray(p)?p:[p],t,r,n,s&&d!=="foreignObject",o,i,o?o[0]:r.__k&&ee(r,0),c),o!=null)for(p=o.length;p--;)o[p]!=null&&qt(o[p]);c||("value"in _&&(p=_.value)!==void 0&&(p!==e.value||d==="progress"&&!p||d==="option"&&p!==h.value)&&Re(e,"value",p,h.value,!1),"checked"in _&&(p=_.checked)!==void 0&&p!==e.checked&&Re(e,"checked",p,h.checked,!1))}return e}function tr(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){v.__e(n,r)}}function rr(e,t,r){var n,s;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||tr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){v.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&rr(n[s],t,typeof e.type!="function");r||e.__e==null||qt(e.__e),e.__=e.__e=e.__d=void 0}function qr(e,t,r){return this.constructor(e,r)}function Yr(e,t,r){var n,s,o;v.__&&v.__(e,t),s=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],st(t,e=(!n&&r||t).__k=Xe(k,null,[e]),s||Pe,Pe,t.ownerSVGElement!==void 0,!n&&r?[r]:s?null:t.firstChild?Fe.call(t.childNodes):null,o,!n&&r?r:s?s.__e:t.firstChild,n),er(o,e)}function nr(e,t){var r={__c:t="__cC"+jt++,__:e,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(Ze)},this.sub=function(i){s.push(i);var c=i.componentWillUnmount;i.componentWillUnmount=function(){s.splice(s.indexOf(i),1),c&&c.call(i)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Fe=Jt.slice,v={__e:function(e,t,r,n){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,n||{}),i=s.__d),i)return s.__E=s}catch(c){e=c}throw e}},Kt=0,M.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=j({},this.state),typeof e=="function"&&(e=e(j({},r),this.props)),e&&j(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),Ze(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ze(this))},M.prototype.render=k,pe=[],Te.__r=0,jt=0;var Xr=0;function l(e,t,r,n,s){var o,i,c={};for(i in t)i=="ref"?o=t[i]:c[i]=t[i];var u={type:e,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Xr,__source:s,__self:n};if(typeof e=="function"&&(o=e.defaultProps))for(i in o)c[i]===void 0&&(c[i]=o[i]);return v.vnode&&v.vnode(u),u}const Zr=({children:e})=>l("div",{class:"w-full h-full",children:e}),de=({children:e})=>l("div",{class:"w-full flex justify-center",children:l("div",{class:"w-[70rem] max-w-full px-8",children:e})});var we,m,Ge,kt,xe=0,or=[],Le=[],$t=v.__b,Et=v.__r,Nt=v.diffed,At=v.__c,Ct=v.unmount;function Oe(e,t){v.__h&&v.__h(m,e,xe||t),xe=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Le}),r.__[e]}function Se(e){return xe=1,sr(ar,e)}function sr(e,t,r){var n=Oe(we++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ar(void 0,t),function(o){var i=n.__N?n.__N[0]:n.__[0],c=n.t(i,o);i!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,i,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(a){return a.__c});if(u.every(function(a){return!a.__N}))return!s||s.call(this,o,i,c);var f=!1;return u.forEach(function(a){if(a.__N){var h=a.__[0];a.__=a.__N,a.__N=void 0,h!==a.__[0]&&(f=!0)}}),!!f&&(!s||s.call(this,o,i,c))}}return n.__N||n.__}function ge(e,t){var r=Oe(we++,3);!v.__s&&ir(r.__H,t)&&(r.__=e,r.i=t,m.__H.__h.push(r))}function it(e){return xe=5,I(function(){return{current:e}},[])}function I(e,t){var r=Oe(we++,7);return ir(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function at(e,t){return xe=8,I(function(){return e},t)}function Qr(e){var t=m.context[e.__c],r=Oe(we++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(m)),t.props.value):e.__}function en(){for(var e;e=or.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ue),e.__H.__h.forEach(Qe),e.__H.__h=[]}catch(t){e.__H.__h=[],v.__e(t,e.__v)}}v.__b=function(e){typeof e.type!="function"||e.o||e.type===k?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,$t&&$t(e)},v.__r=function(e){Et&&Et(e),we=0;var t=(m=e.__c).__H;t&&(Ge===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Le,r.__N=r.i=void 0})):(t.__h.forEach(Ue),t.__h.forEach(Qe),t.__h=[])),Ge=m},v.diffed=function(e){Nt&&Nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(or.push(t)!==1&&kt===v.requestAnimationFrame||((kt=v.requestAnimationFrame)||tn)(en)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Le&&(r.__=r.__V),r.i=void 0,r.__V=Le})),Ge=m=null},v.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ue),r.__h=r.__h.filter(function(n){return!n.__||Qe(n)})}catch(n){t.some(function(s){s.__h&&(s.__h=[])}),t=[],v.__e(n,r.__v)}}),At&&At(e,t)},v.unmount=function(e){Ct&&Ct(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ue(n)}catch(s){t=s}}),r.__H=void 0,t&&v.__e(t,r.__v))};var Ht=typeof requestAnimationFrame=="function";function tn(e){var t,r=function(){clearTimeout(n),Ht&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ht&&(t=requestAnimationFrame(r))}function Ue(e){var t=m,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),m=t}function Qe(e){var t=m;e.__c=e.__(),m=t}function ir(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ar(e,t){return typeof t=="function"?t(e):t}function rn(e,t){for(var r in t)e[r]=t[r];return e}function It(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Lt(e){this.props=e}(Lt.prototype=new M).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Ut=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ut&&Ut(e)};var nn=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),s.__c(e,t)}nn(e,t,r,n)};var Pt=v.unmount;function cr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=rn({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return cr(n,t,r)})),e}function lr(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return lr(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Ke(){this.__u=0,this.t=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ae(){this.u=null,this.o=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Pt&&Pt(e)},(Ke.prototype=new M).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var s=ur(n.__v),o=!1,i=function(){o||(o=!0,r.__R=null,s?s(c):c())};r.__R=i;var c=function(){if(!--n.__u){if(n.state.__a){var f=n.state.__a;n.__v.__k[0]=lr(f,f.__c.__P,f.__c.__O)}var a;for(n.setState({__a:n.__b=null});a=n.t.pop();)a.forceUpdate()}},u=t.__h===!0;n.__u++||u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Ke.prototype.componentWillUnmount=function(){this.t=[]},Ke.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=cr(this.__b,r,n.__O=n.__P)}this.__b=null}var s=t.__a&&Xe(k,null,e.fallback);return s&&(s.__h=null),[Xe(k,null,t.__a?null:e.children),s]};var Tt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(Ae.prototype=new M).__a=function(e){var t=this,r=ur(t.__v),n=t.o.get(e);return n[0]++,function(s){var o=function(){t.props.revealOrder?(n.push(s),Tt(t,e,n)):s()};r?r(o):o()}},Ae.prototype.render=function(e){this.u=null,this.o=new Map;var t=De(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Tt(e,r,t)})};var on=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,sn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=typeof document<"u",cn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Dt=v.event;function ln(){}function un(){return this.cancelBubble}function fn(){return this.defaultPrevented}v.event=function(e){return Dt&&(e=Dt(e)),e.persist=ln,e.isPropagationStopped=un,e.isDefaultPrevented=fn,e.nativeEvent=e};var Rt={configurable:!0,get:function(){return this.class}},Bt=v.vnode;v.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var s=t.indexOf("-")===-1;for(var o in n={},r){var i=r[o];an&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in r&&i==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!cn(r.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():s&&sn.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=i)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,r.class!=r.className&&(Rt.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",Rt))}e.$$typeof=on,Bt&&Bt(e)};var zt=v.__r;v.__r=function(e){zt&&zt(e),e.__c};var te=function(){return te=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},te.apply(this,arguments)};function Ft(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var o=arguments[t],i=0,c=o.length;i<c;i++,s++)n[s]=o[i];return n}function hn(){var e=it(!1),t=at(function(){return e.current},[]);return ge(function(){return e.current=!0,function(){e.current=!1}},[]),t}function _n(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=it(0),s=hn(),o=Se(r),i=o[0],c=o[1],u=at(function(){for(var f=[],a=0;a<arguments.length;a++)f[a]=arguments[a];var h=++n.current;return i.loading||c(function(_){return te(te({},_),{loading:!0})}),e.apply(void 0,f).then(function(_){return s()&&h===n.current&&c({value:_,loading:!1}),_},function(_){return s()&&h===n.current&&c({error:_,loading:!1}),_})},t);return[i,u]}function dn(e,t){t===void 0&&(t=[]);var r=_n(e,t,{loading:!0}),n=r[0],s=r[1];return ge(function(){s()},[s]),n}var vn=function(e,t){t===void 0&&(t=[]);var r=Se(0),n=r[0],s=r[1],o=dn(e,Ft(t,[n])),i=o.loading,c=at(function(){i||s(function(u){return u+1})},Ft(t,[i]));return te(te({},o),{retry:c})};const fr=vn;var pn=function(e,t){var r=it(function(){});ge(function(){r.current=e}),ge(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const hr=pn;var ct=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(ct||{}),be=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(be||{});const xn={[be.EmptyTrigger]:l(k,{children:"One or more triggers seems invalid; it has no event or cron definition. Make sure you\'ve correctly used the function creation methods."}),[be.NoTriggers]:l(k,{children:"Can\'t find any triggers for this function, such as an event or a cron definition. Make sure you\'ve correctly used the function creation methods."})},gn={[ct.NoSigningKey]:l("div",{class:"flex flex-col space-y-2",children:[l("div",{class:"font-semibold",children:"Could not find signing key"}),l("div",{children:["A signing key is required to communicate with Inngest securely. We weren\'t passed one when calling ",l("code",{children:"serve()"})," and couldn\'t find it in the recommended ",l("code",{children:"INNGEST_SIGNING_KEY"})," environment variable."]}),l("div",{children:["You can find your signing key in the"," ",l("a",{href:"https://app.inngest.com/secrets",target:"_blank",children:"Inngest Dashboard - Secrets section."})]})]})};var et=(e=>(e.FnId="fnId",e.StepId="stepId",e.Introspect="introspect",e))(et||{}),_r=(e=>(e.SigningKey="INNGEST_SIGNING_KEY",e.EventKey="INNGEST_EVENT_KEY",e.LandingPage="INNGEST_LANDING_PAGE",e.DevServerUrl="INNGEST_DEVSERVER_URL",e))(_r||{});const dr="http://127.0.0.1:8288/",bn=async(e=dr,t)=>{try{const r=vr(e,"/dev");return await(await t(r.toString())).json(),!0}catch{return!1}},vr=(e=dr,t="")=>new URL(t,e.includes("://")?e:`http://${e}`),mn=()=>(lt()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),yn=()=>(lt()?["production",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes("production"),lt=()=>typeof process<"u"&&"env"in process,wn="0.8.0";var re=1e3,ne=re*60,oe=ne*60,q=oe*24,Sn=q*7,kn=q*365.25,$n=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return En(e);if(r==="number"&&isFinite(e))return t.long?An(e):Nn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function En(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*kn;case"weeks":case"week":case"w":return r*Sn;case"days":case"day":case"d":return r*q;case"hours":case"hour":case"hrs":case"hr":case"h":return r*oe;case"minutes":case"minute":case"mins":case"min":case"m":return r*ne;case"seconds":case"second":case"secs":case"sec":case"s":return r*re;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Nn(e){var t=Math.abs(e);return t>=q?Math.round(e/q)+"d":t>=oe?Math.round(e/oe)+"h":t>=ne?Math.round(e/ne)+"m":t>=re?Math.round(e/re)+"s":e+"ms"}function An(e){var t=Math.abs(e);return t>=q?Ce(e,t,q,"day"):t>=oe?Ce(e,t,oe,"hour"):t>=ne?Ce(e,t,ne,"minute"):t>=re?Ce(e,t,re,"second"):e+" ms"}function Ce(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}const Cn=e=>{const t="-";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)},Hn=1,pr=Hn*1e3,xr=pr*60,gr=xr*60,br=gr*24,In=br*7,Ln=[["w",In],["d",br],["h",gr],["m",xr],["s",pr]],je=(e,t=new Date)=>{let r=e;if(typeof r=="string"||typeof r=="number"){const i=typeof r=="string"?$n(r):r;r=new Date(Date.now()+i)}if(t.setMilliseconds(0),r.setMilliseconds(0),!!isNaN(r.getTime()))throw new Error("Invalid date given to convert to time string");const s=r.getTime()-t.getTime(),[,o]=Ln.reduce(([i,c],[u,f])=>{const a=Math.floor(i/f);return a>0?[i%f,`${c}${a}${u}`]:[i,c]},[s,""]);return o};var mr={},x={},ke=yr;function yr(e,t){if(!e)throw new Error(t||"Assertion failed")}yr.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var tt={exports:{}};typeof Object.create=="function"?tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var Un=ke,Pn=tt.exports;x.inherits=Pn;function Tn(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function Dn(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),s=0;s<e.length;s+=2)r.push(parseInt(e[s]+e[s+1],16))}else for(var n=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):Tn(e,s)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(s=0;s<e.length;s++)r[s]=e[s]|0;return r}x.toArray=Dn;function Rn(e){for(var t="",r=0;r<e.length;r++)t+=Sr(e[r].toString(16));return t}x.toHex=Rn;function wr(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}x.htonl=wr;function Bn(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];t==="little"&&(s=wr(s)),r+=kr(s.toString(16))}return r}x.toHex32=Bn;function Sr(e){return e.length===1?"0"+e:e}x.zero2=Sr;function kr(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}x.zero8=kr;function zn(e,t,r,n){var s=r-t;Un(s%4===0);for(var o=new Array(s/4),i=0,c=t;i<o.length;i++,c+=4){var u;n==="big"?u=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:u=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[i]=u>>>0}return o}x.join32=zn;function Fn(e,t){for(var r=new Array(e.length*4),n=0,s=0;n<e.length;n++,s+=4){var o=e[n];t==="big"?(r[s]=o>>>24,r[s+1]=o>>>16&255,r[s+2]=o>>>8&255,r[s+3]=o&255):(r[s+3]=o>>>24,r[s+2]=o>>>16&255,r[s+1]=o>>>8&255,r[s]=o&255)}return r}x.split32=Fn;function On(e,t){return e>>>t|e<<32-t}x.rotr32=On;function Mn(e,t){return e<<t|e>>>32-t}x.rotl32=Mn;function Wn(e,t){return e+t>>>0}x.sum32=Wn;function Vn(e,t,r){return e+t+r>>>0}x.sum32_3=Vn;function Gn(e,t,r,n){return e+t+r+n>>>0}x.sum32_4=Gn;function Kn(e,t,r,n,s){return e+t+r+n+s>>>0}x.sum32_5=Kn;function jn(e,t,r,n){var s=e[t],o=e[t+1],i=n+o>>>0,c=(i<n?1:0)+r+s;e[t]=c>>>0,e[t+1]=i}x.sum64=jn;function Jn(e,t,r,n){var s=t+n>>>0,o=(s<t?1:0)+e+r;return o>>>0}x.sum64_hi=Jn;function qn(e,t,r,n){var s=t+n;return s>>>0}x.sum64_lo=qn;function Yn(e,t,r,n,s,o,i,c){var u=0,f=t;f=f+n>>>0,u+=f<t?1:0,f=f+o>>>0,u+=f<o?1:0,f=f+c>>>0,u+=f<c?1:0;var a=e+r+s+i+u;return a>>>0}x.sum64_4_hi=Yn;function Xn(e,t,r,n,s,o,i,c){var u=t+n+o+c;return u>>>0}x.sum64_4_lo=Xn;function Zn(e,t,r,n,s,o,i,c,u,f){var a=0,h=t;h=h+n>>>0,a+=h<t?1:0,h=h+o>>>0,a+=h<o?1:0,h=h+c>>>0,a+=h<c?1:0,h=h+f>>>0,a+=h<f?1:0;var _=e+r+s+i+u+a;return _>>>0}x.sum64_5_hi=Zn;function Qn(e,t,r,n,s,o,i,c,u,f){var a=t+n+o+c+f;return a>>>0}x.sum64_5_lo=Qn;function eo(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}x.rotr64_hi=eo;function to(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.rotr64_lo=to;function ro(e,t,r){return e>>>r}x.shr64_hi=ro;function no(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.shr64_lo=no;var ce={},Ot=x,oo=ke;function Me(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ce.BlockHash=Me;Me.prototype.update=function(t,r){if(t=Ot.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Ot.join32(t,0,t.length-n,this.endian);for(var s=0;s<t.length;s+=this._delta32)this._update(t,s,s+this._delta32)}return this};Me.prototype.digest=function(t){return this.update(this._pad()),oo(this.pending===null),this._digest(t)};Me.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,s=new Array(n+this.padLength);s[0]=128;for(var o=1;o<n;o++)s[o]=0;if(t<<=3,this.endian==="big"){for(var i=8;i<this.padLength;i++)s[o++]=0;s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=t>>>24&255,s[o++]=t>>>16&255,s[o++]=t>>>8&255,s[o++]=t&255}else for(s[o++]=t&255,s[o++]=t>>>8&255,s[o++]=t>>>16&255,s[o++]=t>>>24&255,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,i=8;i<this.padLength;i++)s[o++]=0;return s};var le={},B={},so=x,L=so.rotr32;function io(e,t,r,n){if(e===0)return $r(t,r,n);if(e===1||e===3)return Nr(t,r,n);if(e===2)return Er(t,r,n)}B.ft_1=io;function $r(e,t,r){return e&t^~e&r}B.ch32=$r;function Er(e,t,r){return e&t^e&r^t&r}B.maj32=Er;function Nr(e,t,r){return e^t^r}B.p32=Nr;function ao(e){return L(e,2)^L(e,13)^L(e,22)}B.s0_256=ao;function co(e){return L(e,6)^L(e,11)^L(e,25)}B.s1_256=co;function lo(e){return L(e,7)^L(e,18)^e>>>3}B.g0_256=lo;function uo(e){return L(e,17)^L(e,19)^e>>>10}B.g1_256=uo;var se=x,fo=ce,ho=B,Je=se.rotl32,he=se.sum32,_o=se.sum32_5,vo=ho.ft_1,Ar=fo.BlockHash,po=[1518500249,1859775393,2400959708,3395469782];function T(){if(!(this instanceof T))return new T;Ar.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}se.inherits(T,Ar);var xo=T;T.blockSize=512;T.outSize=160;T.hmacStrength=80;T.padLength=64;T.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=Je(n[s-3]^n[s-8]^n[s-14]^n[s-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4];for(s=0;s<n.length;s++){var a=~~(s/20),h=_o(Je(o,5),vo(a,i,c,u),f,n[s],po[a]);f=u,u=c,c=Je(i,30),i=o,o=h}this.h[0]=he(this.h[0],o),this.h[1]=he(this.h[1],i),this.h[2]=he(this.h[2],c),this.h[3]=he(this.h[3],u),this.h[4]=he(this.h[4],f)};T.prototype._digest=function(t){return t==="hex"?se.toHex32(this.h,"big"):se.split32(this.h,"big")};var ie=x,go=ce,ue=B,bo=ke,E=ie.sum32,mo=ie.sum32_4,yo=ie.sum32_5,wo=ue.ch32,So=ue.maj32,ko=ue.s0_256,$o=ue.s1_256,Eo=ue.g0_256,No=ue.g1_256,Cr=go.BlockHash,Ao=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function D(){if(!(this instanceof D))return new D;Cr.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Ao,this.W=new Array(64)}ie.inherits(D,Cr);var Hr=D;D.blockSize=512;D.outSize=256;D.hmacStrength=192;D.padLength=64;D.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=mo(No(n[s-2]),n[s-7],Eo(n[s-15]),n[s-16]);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4],a=this.h[5],h=this.h[6],_=this.h[7];for(bo(this.k.length===n.length),s=0;s<n.length;s++){var d=yo(_,$o(f),wo(f,a,h),this.k[s],n[s]),p=E(ko(o),So(o,i,c));_=h,h=a,a=f,f=E(u,d),u=c,c=i,i=o,o=E(d,p)}this.h[0]=E(this.h[0],o),this.h[1]=E(this.h[1],i),this.h[2]=E(this.h[2],c),this.h[3]=E(this.h[3],u),this.h[4]=E(this.h[4],f),this.h[5]=E(this.h[5],a),this.h[6]=E(this.h[6],h),this.h[7]=E(this.h[7],_)};D.prototype._digest=function(t){return t==="hex"?ie.toHex32(this.h,"big"):ie.split32(this.h,"big")};var rt=x,Ir=Hr;function V(){if(!(this instanceof V))return new V;Ir.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}rt.inherits(V,Ir);var Co=V;V.blockSize=512;V.outSize=224;V.hmacStrength=192;V.padLength=64;V.prototype._digest=function(t){return t==="hex"?rt.toHex32(this.h.slice(0,7),"big"):rt.split32(this.h.slice(0,7),"big")};var $=x,Ho=ce,Io=ke,U=$.rotr64_hi,P=$.rotr64_lo,Lr=$.shr64_hi,Ur=$.shr64_lo,K=$.sum64,qe=$.sum64_hi,Ye=$.sum64_lo,Lo=$.sum64_4_hi,Uo=$.sum64_4_lo,Po=$.sum64_5_hi,To=$.sum64_5_lo,Pr=Ho.BlockHash,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;Pr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Do,this.W=new Array(160)}$.inherits(N,Pr);var Tr=N;N.blockSize=1024;N.outSize=512;N.hmacStrength=192;N.padLength=128;N.prototype._prepareBlock=function(t,r){for(var n=this.W,s=0;s<32;s++)n[s]=t[r+s];for(;s<n.length;s+=2){var o=jo(n[s-4],n[s-3]),i=Jo(n[s-4],n[s-3]),c=n[s-14],u=n[s-13],f=Go(n[s-30],n[s-29]),a=Ko(n[s-30],n[s-29]),h=n[s-32],_=n[s-31];n[s]=Lo(o,i,c,u,f,a,h,_),n[s+1]=Uo(o,i,c,u,f,a,h,_)}};N.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,s=this.h[0],o=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],f=this.h[5],a=this.h[6],h=this.h[7],_=this.h[8],d=this.h[9],p=this.h[10],w=this.h[11],g=this.h[12],b=this.h[13],S=this.h[14],z=this.h[15];Io(this.k.length===n.length);for(var F=0;F<n.length;F+=2){var A=S,y=z,C=Wo(_,d),fe=Vo(_,d),ht=Ro(_,d,p,w,g),_t=Bo(_,d,p,w,g,b),dt=this.k[F],vt=this.k[F+1],pt=n[F],xt=n[F+1],$e=Po(A,y,C,fe,ht,_t,dt,vt,pt,xt),Ee=To(A,y,C,fe,ht,_t,dt,vt,pt,xt);A=Oo(s,o),y=Mo(s,o),C=zo(s,o,i,c,u),fe=Fo(s,o,i,c,u,f);var gt=qe(A,y,C,fe),bt=Ye(A,y,C,fe);S=g,z=b,g=p,b=w,p=_,w=d,_=qe(a,h,$e,Ee),d=Ye(h,h,$e,Ee),a=u,h=f,u=i,f=c,i=s,c=o,s=qe($e,Ee,gt,bt),o=Ye($e,Ee,gt,bt)}K(this.h,0,s,o),K(this.h,2,i,c),K(this.h,4,u,f),K(this.h,6,a,h),K(this.h,8,_,d),K(this.h,10,p,w),K(this.h,12,g,b),K(this.h,14,S,z)};N.prototype._digest=function(t){return t==="hex"?$.toHex32(this.h,"big"):$.split32(this.h,"big")};function Ro(e,t,r,n,s){var o=e&r^~e&s;return o<0&&(o+=4294967296),o}function Bo(e,t,r,n,s,o){var i=t&n^~t&o;return i<0&&(i+=4294967296),i}function zo(e,t,r,n,s){var o=e&r^e&s^r&s;return o<0&&(o+=4294967296),o}function Fo(e,t,r,n,s,o){var i=t&n^t&o^n&o;return i<0&&(i+=4294967296),i}function Oo(e,t){var r=U(e,t,28),n=U(t,e,2),s=U(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Mo(e,t){var r=P(e,t,28),n=P(t,e,2),s=P(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Wo(e,t){var r=U(e,t,14),n=U(e,t,18),s=U(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Vo(e,t){var r=P(e,t,14),n=P(e,t,18),s=P(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Go(e,t){var r=U(e,t,1),n=U(e,t,8),s=Lr(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Ko(e,t){var r=P(e,t,1),n=P(e,t,8),s=Ur(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function jo(e,t){var r=U(e,t,19),n=U(t,e,29),s=Lr(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}function Jo(e,t){var r=P(e,t,19),n=P(t,e,29),s=Ur(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}var nt=x,Dr=Tr;function G(){if(!(this instanceof G))return new G;Dr.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}nt.inherits(G,Dr);var qo=G;G.blockSize=1024;G.outSize=384;G.hmacStrength=192;G.padLength=128;G.prototype._digest=function(t){return t==="hex"?nt.toHex32(this.h.slice(0,12),"big"):nt.split32(this.h.slice(0,12),"big")};le.sha1=xo;le.sha224=Co;le.sha256=Hr;le.sha384=qo;le.sha512=Tr;var Rr={},Y=x,Yo=ce,He=Y.rotl32,Mt=Y.sum32,_e=Y.sum32_3,Wt=Y.sum32_4,Br=Yo.BlockHash;function R(){if(!(this instanceof R))return new R;Br.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Y.inherits(R,Br);Rr.ripemd160=R;R.blockSize=512;R.outSize=160;R.hmacStrength=192;R.padLength=64;R.prototype._update=function(t,r){for(var n=this.h[0],s=this.h[1],o=this.h[2],i=this.h[3],c=this.h[4],u=n,f=s,a=o,h=i,_=c,d=0;d<80;d++){var p=Mt(He(Wt(n,Vt(d,s,o,i),t[Qo[d]+r],Xo(d)),ts[d]),c);n=c,c=i,i=He(o,10),o=s,s=p,p=Mt(He(Wt(u,Vt(79-d,f,a,h),t[es[d]+r],Zo(d)),rs[d]),_),u=_,_=h,h=He(a,10),a=f,f=p}p=_e(this.h[1],o,h),this.h[1]=_e(this.h[2],i,_),this.h[2]=_e(this.h[3],c,u),this.h[3]=_e(this.h[4],n,f),this.h[4]=_e(this.h[0],s,a),this.h[0]=p};R.prototype._digest=function(t){return t==="hex"?Y.toHex32(this.h,"little"):Y.split32(this.h,"little")};function Vt(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function Xo(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Zo(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var Qo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],es=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ts=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],rs=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ns=x,os=ke;function ae(e,t,r){if(!(this instanceof ae))return new ae(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(ns.toArray(t,r))}var ss=ae;ae.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),os(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};ae.prototype.update=function(t,r){return this.inner.update(t,r),this};ae.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=x,t.common=ce,t.sha=le,t.ripemd=Rr,t.hmac=ss,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(mr);var is=as;function as(e,t){t=t||10;var r=[],n="",s=RegExp;function o(i,c){if(!(c>t)&&!(typeof i=="function"||typeof i>"u")){if(typeof i!="object"||!i||i instanceof s){n+=i;return}r.indexOf(i)!==-1||c===t||(r.push(i),n+="{",Object.keys(i).forEach(function(u,f,a){if(u.charAt(0)!=="_"){var h=typeof i[u];h==="function"||h==="undefined"||(n+=u,o(i[u],c+1))}}))}}return o(e,0),n}var ve=(e=>(e.WaitForEvent="WaitForEvent",e.RunStep="Step",e.Sleep="Sleep",e))(ve||{});class ot{}const cs=e=>{let t=!0,r=0;const n={...e},s=u=>{const f=n[u.id];return[f!==void 0,f]},o=(u,f)=>(...a)=>{if(!t)throw new ot;const h=u(...a),_={...h,id:ls(h,r++)},[d,p]=s(_);if(d)return p;t=!1;const w=(...g)=>{i.nextOp=new Promise(b=>b(g[0])).then(b=>({..._,...g.length?{data:b}:{}}))};throw f?f({submitOp:w},...a):w(),i.nextOp?new ot:new Error("No operation was submitted by a tool")},i={nextOp:void 0};return[{waitForEvent:o((u,f)=>{const a={ttl:je(f.timeout)};return f!=null&&f.match?a.match=`event.${f.match} == async.${f.match}`:f!=null&&f.if&&(a.match=f.if),{op:ve.WaitForEvent,name:u,opts:a}}),run:o(u=>({op:ve.RunStep,name:u}),({submitOp:u},f,a)=>{u(a())}),sleep:o(u=>({op:ve.Sleep,name:je(u)})),sleepUntil:o(u=>({op:ve.Sleep,name:je(u)}))},i]},ls=(e,t)=>mr.sha1().update(is({pos:t,op:e.op,name:e.name,opts:e.opts})).digest("hex");var H,me,ye,Be,zr;const Z=class{constructor(t,r,n){X(this,Be);X(this,H,void 0);X(this,me,void 0);X(this,ye,void 0);Ne(this,H,t),Ne(this,me,r),Ne(this,ye,n)}id(t){return O(this,H).id||(O(this,H).id=Ve(this,Be,zr).call(this,t)),O(this,H).id}get name(){return O(this,H).name}getConfig(t,r){const n=this.id(r),s=new URL(t.href);return s.searchParams.set(et.FnId,n),s.searchParams.set(et.StepId,Z.stepId),{...O(this,H),id:n,name:this.name,triggers:[O(this,me)],steps:{[Z.stepId]:{id:Z.stepId,name:Z.stepId,runtime:{type:"http",url:s.href}}}}}async runFn(t,r){const[n,s]=cs(r),o={...t,tools:n};let i;try{i=await O(this,ye).call(this,o)}catch(c){if(!(c instanceof ot)){if(!s.nextOp)throw c;console.warn("An error occurred after submitting a new op. Continuing on.",c)}}return s.nextOp?[!0,await s.nextOp]:[!1,i]}};let Q=Z;H=new WeakMap,me=new WeakMap,ye=new WeakMap,Be=new WeakSet,zr=function(t){return Cn([t||"",O(this,H).name].join("-"))},J(Q,"stepId","step");var ze,Fr;class us{constructor({name:t,eventKey:r,inngestBaseUrl:n="https://inn.gs/"}){X(this,ze);J(this,"name");J(this,"eventKey");J(this,"inngestBaseUrl");J(this,"inngestApiUrl");J(this,"headers");if(!t)throw new Error("A name must be passed to create an Inngest instance.");if(!r)throw new Error("An event key must be passed to create an Inngest instance.");this.name=t,this.eventKey=r||lt()&&process.env[_r.EventKey]||"",this.inngestBaseUrl=new URL(n),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),this.headers={"Content-Type":"application/json","User-Agent":`InngestJS v${wn}`}}async send(t,r){let n;if(typeof t=="string"?n=(Array.isArray(r)?r:r?[r]:[]).map(i=>({...i,name:t})):n=Array.isArray(t)?t:t?[t]:[],!n.length)throw new Error("Provided a name but no events to send; make sure to send an event payload too");let s=this.inngestApiUrl.href;if(!yn()){const i=mn();(i!==void 0||await bn(i,fetch))&&(s=vr(i,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:"POST",body:JSON.stringify(n),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await Ve(this,ze,Fr).call(this,o)}createStepFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{event:r},n)}createFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{event:r},n)}createScheduledFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{cron:r},n)}}ze=new WeakSet,Fr=async function(t){let r="Unknown error";switch(t.status){case 401:r="Event key Not Found";break;case 400:r="Cannot process event payload";break;case 403:r="Forbidden";break;case 404:r="Event key not found";break;case 406:r=`${JSON.stringify(await t.json())}`;break;case 409:case 412:r="Event transformation failed";break;case 413:r="Event payload too large";break;case 500:r="Internal server error";break}return new Error(`Inngest API Error: ${t.status} ${r}`)};const W=e=>Object.entries(e).reduce((r,[n,s])=>s?[...r,n]:r,[]).filter(Boolean).join(" ").trim(),Or=({children:e,onClick:t,type:r,disabled:n,className:s=""})=>l("button",{className:`${n?"bg-slate-400":"bg-blue-500"} text-white px-5 py-1 font-semibold rounded ${s}`,onClick:t,type:r,disabled:n,children:e}),fs=()=>fr(async()=>{const t=new URL(window.location.href);t.searchParams.set("introspect","true");const n=await(await fetch(t)).json();return n.functions=n.functions.map(s=>{var i;const o=new Set;return((i=s.triggers)==null?void 0:i.length)<1?o.add(be.NoTriggers):s.triggers.some(u=>!(u!=null&&u.event)&&!(u!=null&&u.cron))&&o.add(be.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var u,f;const i=Boolean((u=s.errors)==null?void 0:u.size),c=Boolean((f=o.errors)==null?void 0:f.size);return i!==c?i?-1:1:s.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(ct.NoSigningKey),n}),hs="http://localhost:8288",Mr=nr({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ut=Mr.Consumer,_s=({children:e})=>{const{value:t,retry:r,loading:n,error:s}=fs(),o=new URL((t==null?void 0:t.devServerURL)||hs);o.pathname="dev";const{value:i,retry:c}=fr(async()=>await(await fetch(o)).json());hr(c,1e3);const u=I(()=>Boolean(i),[i]);return l(Mr.Provider,{value:{value:t,retry:r,loading:n,error:s,dev:i,devConnected:u},children:e})},ds=({value:e,label:t,onChange:r,className:n="",disabled:s})=>l(k,{children:[t?l(vs,{children:t}):null,l("textarea",{disabled:s,class:W({"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500":!0,[n]:!0}),value:e,onChange:o=>r==null?void 0:r(o.currentTarget.value)})]}),vs=({children:e})=>l("label",{class:"font-semibold text-sm",children:e}),Wr=nr({push:e=>()=>{},remove:e=>{}}),ps=(e,t)=>{switch(t.type){case"add":return e.find(r=>r.id===t.toast.id)?e:e.concat([{...t.toast}]);case"remove":return e.filter(r=>r.id!==t.id)}},xs=({children:e})=>{const[t,r]=sr(ps,[]),n=o=>r({type:"remove",id:o}),s=o=>{const i=Math.random().toString(16);return r({type:"add",toast:{...o,id:o.id||i}}),()=>n(i)};return l(Wr.Provider,{value:{push:s,remove:n},children:[l("div",{className:"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8",children:t.map(o=>l(gs,{toast:o},o.id))}),e]})},ft=()=>Qr(Wr),Gt=5e3,gs=({toast:e})=>{const{remove:t}=ft(),[r,n]=Se(!1),s=e.icon;ge(()=>{setTimeout(()=>{n(!0)},25),setTimeout(()=>{!e.sticky&&n(!1)},e.duration||Gt-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||Gt)},[e.id]);const o=e.message||(e.type==="error"?"Something went wrong":"");let i="text-slate-200 bg-gray-800";switch(e.type){case"success":i="text-slate-200 bg-green-600";break;case"error":i="text-slate-200 bg-red-800"}return r?l("div",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${i} text-center mb-2`,onClick:()=>t(e.id),children:[s&&l(s,{size:22,style:{marginRight:10}}),l("span",{children:o.replace("[GraphQL] ","").replace("[Network] ","")})]}):null},bs=e=>l(ut,{children:t=>l(ms,{...e,introspect:t})}),ms=({introspect:e,eventData:t})=>{const{push:r}=ft(),{value:n,devConnected:s}=e,[o,i]=Se(t||JSON.stringify({name:"",data:{}},void 0," ")),c=I(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),u=async f=>{if(f.preventDefault(),!n||!s){r({type:"error",message:"You must run the dev server to send test events"});return}await new us({name:n.appName,inngestBaseUrl:n.devServerURL,eventKey:"dev-server"}).send(JSON.parse(o)),r({type:"success",message:"Event sent. Check your terminal for logs."})};return l(de,{children:l("details",{class:"border border-gray-200 p-4 flex flex-col cursor-pointer rounded-lg bg-white shadow-lg my-4",children:[l("summary",{class:"select-none",children:"Send a test event to trigger functions"}),l("div",{className:"pt-1 pb-2 text-gray-500 text-sm",children:"Send a test event as JSON to the Inngest dev server. This will trigger any functions that run from this event."}),l("form",{class:"flex-1",onSubmit:u,children:[l("div",{class:"my-4",children:l(ds,{label:"Event data (JSON)",className:W({"font-mono overflow-y-scroll h-48 resize-none":!0,"bg-red-100":!c}),value:o,onChange:i})}),l("div",{class:"flex flex-row justify-end space-x-4 items-center italic",children:[s?l("div",{class:"text-gray-500 text-sm",children:"Ctrl + Enter to send"}):l("div",{class:"text-red-600 text-sm",children:"Run the dev server to send test events"}),l(Or,{type:"submit",disabled:!s,children:"Send event"})]})]})]})})},ys=({config:e,altBg:t})=>{var c,u;const{push:r}=ft(),n=I(()=>e.triggers[0].cron?"cron":"event",[e.triggers]),s=I(()=>{const f=e.triggers[0];return f.cron||f.event||""},[e.triggers]),o=I(()=>{var f;return Boolean((f=e.errors)==null?void 0:f.size)},[e.errors]),i=async()=>{const f=new URL(window.location.href);f.searchParams.set("fnId",e.id),f.searchParams.set("stepId",e.steps.step.id),r({type:"default",message:"Scheduled function triggered"});const a=await fetch(f,{method:"POST"}),h=await a.json(),_=typeof h=="object"&&h.status?h.status:a.status;r({type:_===200?"success":"error",message:`Function complete: ${JSON.stringify(h)}`})};return l(k,{children:[l("div",{class:W({"w-full grid grid-cols-[1fr_1fr_1fr_100px] p-2 items-center":!0,"bg-slate-200/30":Boolean(t),"bg-red-400/30":o}),children:[l("div",{class:"flex flex-col",children:l("div",{class:"font-semibold text-sm",children:[e.name," ",l("span",{class:W({"uppercase text-xs px-1 py-0.5 rounded":!0,"bg-blue-300/30":n==="event","bg-green-300/30":n==="cron"}),children:n})]})}),l("div",{children:l("code",{class:W({"text-xs text-gray-500":!0,"bg-white":o,"bg-gray-500/10":!o}),children:e.id})}),l("span",{children:s?l("code",{children:s}):l("code",{class:"bg-white",children:"Invalid or no expression"})}),l("div",{children:n==="cron"&&l(Or,{className:"text-sm",onClick:i,children:"Trigger"})})]}),o?l("div",{class:"w-full p-2 bg-red-400/30",children:(u=Array.from((c=e.errors)!=null?c:[]))==null?void 0:u.map(f=>l("div",{class:"bg-red-100 border border-red-400 rounded p-2",children:xn[f]}))}):null]})},ws=({class:e=""})=>l("svg",{class:W({"animate-spin h-5 w-5 text-slate-800":!0,[e]:!0}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Ss=()=>l(ut,{children:e=>l(ks,{introspect:e})}),ks=({introspect:e})=>{var a;const{loading:t,value:r,retry:n,error:s}=e,[o,i]=Se(!1);hr(n,5e3);const c=I(()=>(r==null?void 0:r.functions.some(h=>{var _;return(_=h.errors)==null?void 0:_.size}))||!1,[r==null?void 0:r.functions]),u=I(()=>Boolean(r==null?void 0:r.globalErrors.size),[r==null?void 0:r.globalErrors]),f=I(()=>[{title:"\\u{1F9D1}\\u200D\\u{1F4BB} Writing functions",description:"Get started writing your serverless background functions and scheduled tasks.",href:"https://www.inngest.com/docs/functions"},{title:"\\u{1F4E2} Sending events",description:"Learn how to trigger your functions by sending events from your code.",href:"https://www.inngest.com/docs/events"},{title:"\\u{1F6A2} Deploying",description:"Deploy functions to your platform of choice.",href:"https://www.inngest.com/docs/deploy"}],[]);return t&&!r&&!s?l("div",{class:"flex-1 w-full h-full flex items-center justify-center",children:l(ws,{class:"h-8 w-8"})}):l(k,{children:[l("div",{class:"flex flex-col gap-4 py-20 bg-gray-100",children:l(de,{children:[l("div",{class:"text-3xl",children:c?"\\u274C Your functions are not set up correctly":r!=null&&r.functions.length?"\\u2705 Your functions are set up correctly":"\\u274E No functions detected"}),l("div",{class:"ml-12 opacity-75",children:l("code",{children:["inngest-",r==null?void 0:r.sdk]})})]})}),l("div",{children:l(de,{children:l("div",{class:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4",children:f.map(h=>l("a",{href:h.href,target:"_blank",class:"bg-white rounded border-1 border-black shadow-xl p-4 flex flex-col space-y-2 transition-all hover:scale-105 hover:shadow-2xl no-underline",children:[l("div",{class:"font-semibold text-lg",children:h.title}),l("div",{class:"text-sm",children:h.description}),l("div",{class:"flex-1"}),l("div",{class:"text-right font-semibold text-purple-500",children:"Explore \\u2192"})]}))})})}),u?l("div",{class:"mt-8",children:l(de,{children:l("div",{class:"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2",children:[l("div",{class:"font-semibold text-yellow-700 text-lg",children:"Your handler configuration might be missing some options"}),Array.from((a=r==null?void 0:r.globalErrors)!=null?a:[]).map(h=>l("div",{class:"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800",children:gn[h]}))]})})}):null,l(bs,{expanded:o,onToggle:()=>i(h=>!h)}),l("div",{class:"w-full flex items-center justify-center mt-8 p-4",children:l(de,{children:[l("div",{class:"flex flex-row justify-between",children:[l("div",{class:"flex flex-row space-x-2 items-center justify-center",children:[l("div",{class:"font-semibold",children:["Found ",(r==null?void 0:r.functions.length)||0," functions"]}),l("div",{children:l("div",{class:"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase",onClick:()=>n(),children:"Refresh"})})]}),l("a",{class:"mb-8",href:"#",children:"Don\'t see your function?"})]}),r!=null&&r.functions.length?l("div",{class:"flex flex-col",children:[l("div",{class:"w-full grid grid-cols-[1fr_1fr_1fr_100px] font-semibold border-b-2 border-slate-300 pb-1",children:[l("div",{children:"Name"}),l("div",{children:"ID"}),l("div",{children:"Event / Cron"})]}),r==null?void 0:r.functions.map((h,_)=>l(ys,{config:h,altBg:_%2===0}))]}):l("div",{class:"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20",children:[l("div",{class:"font-semibold",children:"No functions found"}),l("div",{class:"opacity-75 text-center",children:["We found your handler, but couldn\'t see any exported functions.",l("br",{}),"Check out the"," ",l("a",{href:"https://www.inngest.com/docs/functions",children:"Writing functions"})," ","guide to get started."]})]})]})})]})},$s=({copiable:e,value:t})=>l("code",{class:W({"flex flex-row space-x-2 items-center justify-center":!0,"cursor-pointer":Boolean(e)}),onClick:e?()=>{navigator.clipboard.writeText(t)}:void 0,children:[l("span",{children:t}),e?l(Es,{}):null]}),Es=()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15 15H20C20.5523 15 21 14.5523 21 14V4C21 3.44772 20.5523 3 20 3L10 3C9.44772 3 9 3.44771 9 4L9 9",stroke:"#1e293b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M4 21L14 21C14.5523 21 15 20.5523 15 20L15 10C15 9.44772 14.5523 9 14 9L4 9C3.44771 9 3 9.44771 3 10L3 20C3 20.5523 3.44771 21 4 21Z",stroke:"#1e293b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),Ns="http://localhost:8288",As=()=>l(ut,{children:e=>l("div",{class:"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5",children:[l("div",{class:"font-medium text-gray-900 text-xl",children:"Inngest SDK"}),l("div",{class:"h-6 w-1 bg-gray-300"}),l(Cs,{introspect:e})]})}),Cs=({introspect:e})=>{const{value:t,devConnected:r}=e,n=new URL((t==null?void 0:t.devServerURL)||Ns);return n.pathname="dev",l(k,{children:[l("div",{class:"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none",children:[l("div",{class:"flex h-4 w-4 relative",children:[l("span",{class:W({"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75":!0,"bg-green-400":r,"bg-red-400":!r})}),l("span",{class:W({"relative inline-flex rounded-full h-4 w-4":!0,"bg-green-500":r,"bg-red-500":!r})})]}),r?l("div",{children:["Connected to ",l("code",{children:"inngest dev"})," on"," ",l("code",{children:[n.hostname,":",n.port]})]}):l("div",{children:["Not connected to ",l("code",{children:"inngest dev"})]})]}),r?null:l(k,{children:[l("div",{className:"text-sm",children:"Run the dev server: "}),l($s,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function Hs(){return l(xs,{children:l(_s,{children:[l(As,{}),l(Zr,{children:l(Ss,{})})]})})}Yr(l(Hs,{}),document.getElementById("app"));\n\n</script>\n <style>\n*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0px}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-full{height:100%}.h-8{height:2rem}.h-6{height:1.5rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-1{width:.25rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr_100px\\]{grid-template-columns:1fr 1fr 1fr 100px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400\\/30{background-color:#facc154d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-200\\/30{background-color:#e2e8f04d}.bg-red-400\\/30{background-color:#f871714d}.bg-blue-300\\/30{background-color:#93c5fd4d}.bg-green-300\\/30{background-color:#86efac4d}.bg-gray-500\\/10{background-color:#6b72801a}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pt-1{padding-top:.25rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.opacity-25{opacity:.25}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}html,body,#app{height:100%;width:100%;--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem}.dark code{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}a{text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n</style>\n </head>\n <body>\n <div id="app"></div>\n \n </body>\n</html>\n';
5
5
  //# sourceMappingURL=landing.js.map
package/landing.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"landing.js","sourceRoot":"","sources":["../src/landing.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAClB,s6pEAAs6pE,CAAC"}
1
+ {"version":3,"file":"landing.js","sourceRoot":"","sources":["../src/landing.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAClB,kxsEAAkxsE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inngest",
3
- "version": "0.7.1-beta.1",
3
+ "version": "0.8.0",
4
4
  "description": "Official SDK for Inngest.com",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -53,6 +53,7 @@
53
53
  "buffer": "^6.0.3",
54
54
  "cross-fetch": "^3.1.5",
55
55
  "hash.js": "^1.1.7",
56
+ "ms": "^2.1.3",
56
57
  "sigmund": "^1.0.1",
57
58
  "zod": "^3.19.1"
58
59
  },
@@ -62,6 +63,7 @@
62
63
  "@types/aws-lambda": "^8.10.108",
63
64
  "@types/express": "^4.17.13",
64
65
  "@types/jest": "^27.4.1",
66
+ "@types/ms": "^0.7.31",
65
67
  "@types/sha.js": "^2.4.0",
66
68
  "@types/sigmund": "^1.0.0",
67
69
  "@typescript-eslint/eslint-plugin": "^5.38.0",
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "0.7.1-beta.1";
1
+ export declare const version = "0.8.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = "0.7.1-beta.1";
5
+ exports.version = "0.8.0";
6
6
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,OAAO,CAAC"}