Comparing version 0.4.16-cfp.11 to 0.4.16-cfp.12
@@ -15,2 +15,3 @@ "use strict"; | ||
return async ({ request: req, env, }) => { | ||
const headers = { "x-inngest-sdk": this.sdkHeader.join("") }; | ||
let reqUrl; | ||
@@ -26,2 +27,3 @@ let isIntrospection; | ||
status: 500, | ||
headers, | ||
}); | ||
@@ -32,2 +34,5 @@ } | ||
} | ||
this._isProd = | ||
process.env.CF_PAGES === "1" || | ||
process.env.ENVIRONMENT === "production"; | ||
switch (req.method) { | ||
@@ -42,2 +47,3 @@ case "GET": { | ||
status: 200, | ||
headers, | ||
}); | ||
@@ -48,5 +54,3 @@ } | ||
status: 200, | ||
headers: { | ||
"content-type": "text/html;charset=UTF-8", | ||
}, | ||
headers: Object.assign(Object.assign({}, headers), { "content-type": "text/html;charset=UTF-8" }), | ||
}); | ||
@@ -57,3 +61,3 @@ } | ||
const { status, message } = await this.register(reqUrl); | ||
return new Response(JSON.stringify({ message }), { status }); | ||
return new Response(JSON.stringify({ message }), { status, headers }); | ||
} | ||
@@ -75,2 +79,3 @@ case "POST": { | ||
status: stepRes.status, | ||
headers, | ||
}); | ||
@@ -80,6 +85,7 @@ } | ||
status: stepRes.status, | ||
headers, | ||
}); | ||
} | ||
} | ||
return new Response(null, { status: 405 }); | ||
return new Response(null, { status: 405, headers }); | ||
}; | ||
@@ -86,0 +92,0 @@ } |
@@ -63,2 +63,9 @@ import { Inngest } from "./components/Inngest"; | ||
protected signingKey: string | undefined; | ||
/** | ||
* A property that can be set to indicate whether or not we believe we are in | ||
* production mode. | ||
* | ||
* Should be set every time a request is received. | ||
*/ | ||
protected _isProd: boolean; | ||
private readonly headers; | ||
@@ -83,2 +90,13 @@ private readonly fetch; | ||
protected configs(url: URL): FunctionConfig[]; | ||
/** | ||
* Returns an SDK header split in to three parts so that they can be used for | ||
* different purposes. | ||
* | ||
* To use the entire string, run `this.sdkHeader.join("")`. | ||
*/ | ||
protected get sdkHeader(): [ | ||
prefix: string, | ||
version: RegisterRequest["sdk"], | ||
suffix: string | ||
]; | ||
protected registerBody(url: URL): RegisterRequest; | ||
@@ -89,2 +107,3 @@ protected register(url: URL): Promise<{ | ||
}>; | ||
private get isProd(); | ||
protected shouldShowLandingPage(strEnvVar: string | undefined): boolean; | ||
@@ -91,0 +110,0 @@ protected validateSignature(): boolean; |
@@ -10,2 +10,3 @@ "use strict"; | ||
const consts_1 = require("./helpers/consts"); | ||
const devserver_1 = require("./helpers/devserver"); | ||
const scalar_1 = require("./helpers/scalar"); | ||
@@ -64,2 +65,9 @@ const landing_1 = require("./landing"); | ||
/** | ||
* A property that can be set to indicate whether or not we believe we are in | ||
* production mode. | ||
* | ||
* Should be set every time a request is received. | ||
*/ | ||
this._isProd = false; | ||
/** | ||
* A private collection of functions that are being served. This map is used | ||
@@ -83,3 +91,3 @@ * to find and register functions when interacting with Inngest Cloud. | ||
"Content-Type": "application/json", | ||
"User-Agent": `InngestJS v${version_1.version} (${this.frameworkName})`, | ||
"User-Agent": `inngest-js:v${version_1.version} (${this.frameworkName})`, | ||
}; | ||
@@ -103,2 +111,3 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
return async (req, res) => { | ||
res.setHeader("x-inngest-sdk", this.sdkHeader.join("")); | ||
const hostname = req.hostname || req.headers["host"]; | ||
@@ -116,2 +125,3 @@ const protocol = (hostname === null || hostname === void 0 ? void 0 : hostname.includes("://")) ? "" : `${req.protocol}://`; | ||
} | ||
this._isProd = process.env.ENVIRONMENT === "production"; | ||
switch (req.method) { | ||
@@ -183,2 +193,11 @@ case "GET": { | ||
} | ||
/** | ||
* Returns an SDK header split in to three parts so that they can be used for | ||
* different purposes. | ||
* | ||
* To use the entire string, run `this.sdkHeader.join("")`. | ||
*/ | ||
get sdkHeader() { | ||
return ["inngest-", `js:v${version_1.version}`, ` (${this.frameworkName})`]; | ||
} | ||
registerBody(url) { | ||
@@ -191,3 +210,3 @@ return { | ||
functions: this.configs(url), | ||
sdk: `js:v${version_1.version}`, | ||
sdk: this.sdkHeader[1], | ||
v: "0.1", | ||
@@ -199,4 +218,14 @@ }; | ||
let res; | ||
// Whenever we register, we check to see if the dev server is up. This | ||
// is a noop and returns false in production. | ||
let registerURL = this.inngestRegisterUrl; | ||
const devServerHost = process.env[consts_1.envKeys.DevServerUrl]; | ||
if (!this.isProd) { | ||
const hasDevServer = await (0, devserver_1.devServerAvailable)(devServerHost, this.fetch); | ||
if (hasDevServer) { | ||
registerURL = (0, devserver_1.devServerUrl)(devServerHost, "/fn/register"); | ||
} | ||
} | ||
try { | ||
res = await this.fetch(this.inngestRegisterUrl.href, { | ||
res = await this.fetch(registerURL.href, { | ||
method: "POST", | ||
@@ -225,5 +254,8 @@ body: JSON.stringify(body), | ||
const { status, error } = registerResSchema.parse(data); | ||
console.log("Registered:", res.status, res.statusText, data); | ||
console.log("Registered Inngest functions:", res.status, res.statusText, data); | ||
return { status, message: error }; | ||
} | ||
get isProd() { | ||
return this._isProd; | ||
} | ||
shouldShowLandingPage(strEnvVar) { | ||
@@ -230,0 +262,0 @@ var _a, _b; |
@@ -9,4 +9,11 @@ export declare enum queryKeys { | ||
EventKey = "INNGEST_EVENT_KEY", | ||
LandingPage = "INNGEST_LANDING_PAGE" | ||
LandingPage = "INNGEST_LANDING_PAGE", | ||
DevServerUrl = "INNGEST_DEVSERVER_URL" | ||
} | ||
export declare enum prodEnvKeys { | ||
NodeEnvKey = "NODE_ENV", | ||
VercelEnvKey = "VERCEL_ENV", | ||
NetlifyEnvKey = "CONTEXT" | ||
} | ||
export declare const defaultDevServerHost = "http://127.0.0.1:8288/"; | ||
//# sourceMappingURL=consts.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.envKeys = exports.queryKeys = void 0; | ||
exports.defaultDevServerHost = exports.prodEnvKeys = exports.envKeys = exports.queryKeys = void 0; | ||
var queryKeys; | ||
@@ -15,3 +15,11 @@ (function (queryKeys) { | ||
envKeys["LandingPage"] = "INNGEST_LANDING_PAGE"; | ||
envKeys["DevServerUrl"] = "INNGEST_DEVSERVER_URL"; | ||
})(envKeys = exports.envKeys || (exports.envKeys = {})); | ||
var prodEnvKeys; | ||
(function (prodEnvKeys) { | ||
prodEnvKeys["NodeEnvKey"] = "NODE_ENV"; | ||
prodEnvKeys["VercelEnvKey"] = "VERCEL_ENV"; | ||
prodEnvKeys["NetlifyEnvKey"] = "CONTEXT"; | ||
})(prodEnvKeys = exports.prodEnvKeys || (exports.prodEnvKeys = {})); | ||
exports.defaultDevServerHost = "http://127.0.0.1:8288/"; | ||
//# sourceMappingURL=consts.js.map |
@@ -1,2 +0,2 @@ | ||
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 - Landing</title>\n <script type=\"module\" crossorigin>\n(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const _ of document.querySelectorAll('link[rel=\"modulepreload\"]'))n(_);new MutationObserver(_=>{for(const o of _)if(o.type===\"childList\")for(const l of o.addedNodes)l.tagName===\"LINK\"&&l.rel===\"modulepreload\"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(_){const o={};return _.integrity&&(o.integrity=_.integrity),_.referrerpolicy&&(o.referrerPolicy=_.referrerpolicy),_.crossorigin===\"use-credentials\"?o.credentials=\"include\":_.crossorigin===\"anonymous\"?o.credentials=\"omit\":o.credentials=\"same-origin\",o}function n(_){if(_.ep)return;_.ep=!0;const o=r(_);fetch(_.href,o)}})();var z,u,Ee,H,re,W={},Ne=[],Ve=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function E(e,t){for(var r in t)e[r]=t[r];return e}function $e(e){var t=e.parentNode;t&&t.removeChild(e)}function Y(e,t,r){var n,_,o,l={};for(o in t)o==\"key\"?n=t[o]:o==\"ref\"?_=t[o]:l[o]=t[o];if(arguments.length>2&&(l.children=arguments.length>3?z.call(arguments,2):r),typeof e==\"function\"&&e.defaultProps!=null)for(o in e.defaultProps)l[o]===void 0&&(l[o]=e.defaultProps[o]);return U(e,l,n,_,null)}function U(e,t,r,n,_){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:_==null?++Ee:_};return _==null&&u.vnode!=null&&u.vnode(o),o}function k(e){return e.children}function x(e,t){this.props=e,this.context=t}function S(e,t){if(t==null)return e.__?S(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\"?S(e):null}function Se(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 Se(e)}}function ne(e){(!e.__d&&(e.__d=!0)&&H.push(e)&&!F.__r++||re!==u.debounceRendering)&&((re=u.debounceRendering)||setTimeout)(F)}function F(){for(var e;F.__r=H.length;)e=H.sort(function(t,r){return t.__v.__b-r.__v.__b}),H=[],e.some(function(t){var r,n,_,o,l,c;t.__d&&(l=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(_=E({},o)).__v=o.__v+1,J(c,o,_,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[l]:null,n,l==null?S(o):l,o.__h),Pe(n,o),o.__e!=l&&Se(o)))})}function Ce(e,t,r,n,_,o,l,c,a,p){var i,v,d,f,h,$,y,m=n&&n.__k||Ne,w=m.length;for(r.__k=[],i=0;i<t.length;i++)if((f=r.__k[i]=(f=t[i])==null||typeof f==\"boolean\"?null:typeof f==\"string\"||typeof f==\"number\"||typeof f==\"bigint\"?U(null,f,null,null,f):Array.isArray(f)?U(k,{children:f},null,null,null):f.__b>0?U(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=r,f.__b=r.__b+1,(d=m[i])===null||d&&f.key==d.key&&f.type===d.type)m[i]=void 0;else for(v=0;v<w;v++){if((d=m[v])&&f.key==d.key&&f.type===d.type){m[v]=void 0;break}d=null}J(e,f,d=d||W,_,o,l,c,a,p),h=f.__e,(v=f.ref)&&d.ref!=v&&(y||(y=[]),d.ref&&y.push(d.ref,null,f),y.push(v,f.__c||h,f)),h!=null?($==null&&($=h),typeof f.type==\"function\"&&f.__k===d.__k?f.__d=a=Ae(f,a,e):a=He(e,f,d,m,h,a),typeof r.type==\"function\"&&(r.__d=a)):a&&d.__e==a&&a.parentNode!=e&&(a=S(d))}for(r.__e=$,i=w;i--;)m[i]!=null&&(typeof r.type==\"function\"&&m[i].__e!=null&&m[i].__e==r.__d&&(r.__d=S(n,i+1)),Oe(m[i],m[i]));if(y)for(i=0;i<y.length;i++)Te(y[i],y[++i],y[++i])}function Ae(e,t,r){for(var n,_=e.__k,o=0;_&&o<_.length;o++)(n=_[o])&&(n.__=e,t=typeof n.type==\"function\"?Ae(n,t,r):He(r,n,n,_,n.__e,t));return t}function V(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(Array.isArray(e)?e.some(function(r){V(r,t)}):t.push(e)),t}function He(e,t,r,n,_,o){var l,c,a;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(r==null||_!=o||_.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(_),l=null;else{for(c=o,a=0;(c=c.nextSibling)&&a<n.length;a+=2)if(c==_)break e;e.insertBefore(_,o),l=o}return l!==void 0?l:_.nextSibling}function je(e,t,r,n,_){var o;for(o in r)o===\"children\"||o===\"key\"||o in t||j(e,o,null,r[o],n);for(o in t)_&&typeof t[o]!=\"function\"||o===\"children\"||o===\"key\"||o===\"value\"||o===\"checked\"||r[o]===t[o]||j(e,o,t[o],r[o],n)}function oe(e,t,r){t[0]===\"-\"?e.setProperty(t,r):e[t]=r==null?\"\":typeof r!=\"number\"||Ve.test(t)?r:r+\"px\"}function j(e,t,r,n,_){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||oe(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||oe(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?ie:_e,o):e.removeEventListener(t,o?ie:_e,o);else if(t!==\"dangerouslySetInnerHTML\"){if(_)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 _e(e){this.l[e.type+!1](u.event?u.event(e):e)}function ie(e){this.l[e.type+!0](u.event?u.event(e):e)}function J(e,t,r,n,_,o,l,c,a){var p,i,v,d,f,h,$,y,m,w,A,te,O,b=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(a=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(p=u.__b)&&p(t);try{e:if(typeof b==\"function\"){if(y=t.props,m=(p=b.contextType)&&n[p.__c],w=p?m?m.props.value:p.__:n,r.__c?$=(i=t.__c=r.__c).__=i.__E:(\"prototype\"in b&&b.prototype.render?t.__c=i=new b(y,w):(t.__c=i=new x(y,w),i.constructor=b,i.render=qe),m&&m.sub(i),i.props=y,i.state||(i.state={}),i.context=w,i.__n=n,v=i.__d=!0,i.__h=[]),i.__s==null&&(i.__s=i.state),b.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=E({},i.__s)),E(i.__s,b.getDerivedStateFromProps(y,i.__s))),d=i.props,f=i.state,v)b.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(b.getDerivedStateFromProps==null&&y!==d&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(y,w),!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(y,i.__s,w)===!1||t.__v===r.__v){i.props=y,i.state=i.__s,t.__v!==r.__v&&(i.__d=!1),i.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(D){D&&(D.__=t)}),i.__h.length&&l.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(y,i.__s,w),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(d,f,h)})}if(i.context=w,i.props=y,i.__v=t,i.__P=e,A=u.__r,te=0,\"prototype\"in b&&b.prototype.render)i.state=i.__s,i.__d=!1,A&&A(t),p=i.render(i.props,i.state,i.context);else do i.__d=!1,A&&A(t),p=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++te<25);i.state=i.__s,i.getChildContext!=null&&(n=E(E({},n),i.getChildContext())),v||i.getSnapshotBeforeUpdate==null||(h=i.getSnapshotBeforeUpdate(d,f)),O=p!=null&&p.type===k&&p.key==null?p.props.children:p,Ce(e,Array.isArray(O)?O:[O],t,r,n,_,o,l,c,a),i.base=t.__e,t.__h=null,i.__h.length&&l.push(i),$&&(i.__E=i.__=null),i.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=ze(r.__e,t,r,n,_,o,l,a);(p=u.diffed)&&p(t)}catch(D){t.__v=null,(a||o!=null)&&(t.__e=c,t.__h=!!a,o[o.indexOf(c)]=null),u.__e(D,t,r)}}function Pe(e,t){u.__c&&u.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){u.__e(n,r.__v)}})}function ze(e,t,r,n,_,o,l,c){var a,p,i,v=r.props,d=t.props,f=t.type,h=0;if(f===\"svg\"&&(_=!0),o!=null){for(;h<o.length;h++)if((a=o[h])&&\"setAttribute\"in a==!!f&&(f?a.localName===f:a.nodeType===3)){e=a,o[h]=null;break}}if(e==null){if(f===null)return document.createTextNode(d);e=_?document.createElementNS(\"http://www.w3.org/2000/svg\",f):document.createElement(f,d.is&&d),o=null,c=!1}if(f===null)v===d||c&&e.data===d||(e.data=d);else{if(o=o&&z.call(e.childNodes),p=(v=r.props||W).dangerouslySetInnerHTML,i=d.dangerouslySetInnerHTML,!c){if(o!=null)for(v={},h=0;h<e.attributes.length;h++)v[e.attributes[h].name]=e.attributes[h].value;(i||p)&&(i&&(p&&i.__html==p.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||\"\"))}if(je(e,d,v,_,c),i)t.__k=[];else if(h=t.props.children,Ce(e,Array.isArray(h)?h:[h],t,r,n,_&&f!==\"foreignObject\",o,l,o?o[0]:r.__k&&S(r,0),c),o!=null)for(h=o.length;h--;)o[h]!=null&&$e(o[h]);c||(\"value\"in d&&(h=d.value)!==void 0&&(h!==e.value||f===\"progress\"&&!h||f===\"option\"&&h!==v.value)&&j(e,\"value\",h,v.value,!1),\"checked\"in d&&(h=d.checked)!==void 0&&h!==e.checked&&j(e,\"checked\",h,v.checked,!1))}return e}function Te(e,t,r){try{typeof e==\"function\"?e(t):e.current=t}catch(n){u.__e(n,r)}}function Oe(e,t,r){var n,_;if(u.unmount&&u.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Te(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){u.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(_=0;_<n.length;_++)n[_]&&Oe(n[_],t,typeof e.type!=\"function\");r||e.__e==null||$e(e.__e),e.__=e.__e=e.__d=void 0}function qe(e,t,r){return this.constructor(e,r)}function Ke(e,t,r){var n,_,o;u.__&&u.__(e,t),_=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,o=[],J(t,e=(!n&&r||t).__k=Y(k,null,[e]),_||W,W,t.ownerSVGElement!==void 0,!n&&r?[r]:_?null:t.firstChild?z.call(t.childNodes):null,o,!n&&r?r:_?_.__e:t.firstChild,n),Pe(o,e)}z=Ne.slice,u={__e:function(e,t,r,n){for(var _,o,l;t=t.__;)if((_=t.__c)&&!_.__)try{if((o=_.constructor)&&o.getDerivedStateFromError!=null&&(_.setState(o.getDerivedStateFromError(e)),l=_.__d),_.componentDidCatch!=null&&(_.componentDidCatch(e,n||{}),l=_.__d),l)return _.__E=_}catch(c){e=c}throw e}},Ee=0,x.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=E({},this.state),typeof e==\"function\"&&(e=e(E({},r),this.props)),e&&E(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),ne(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ne(this))},x.prototype.render=k,H=[],F.__r=0;var Ge=0;function s(e,t,r,n,_){var o,l,c={};for(l in t)l==\"ref\"?o=t[l]:c[l]=t[l];var a={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:--Ge,__source:_,__self:n};if(typeof e==\"function\"&&(o=e.defaultProps))for(l in o)c[l]===void 0&&(c[l]=o[l]);return u.vnode&&u.vnode(a),a}const Ye=({children:e})=>s(\"div\",{class:\"w-full\",children:e}),B=({children:e})=>s(\"div\",{class:\"w-full flex justify-center\",children:s(\"div\",{class:\"w-[70rem] max-w-full px-8\",children:e})});var q,g,K,le,P=0,De=[],I=[],ce=u.__b,se=u.__r,ue=u.diffed,ae=u.__c,fe=u.unmount;function X(e,t){u.__h&&u.__h(g,e,P||t),P=0;var r=g.__H||(g.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:I}),r.__[e]}function Be(e){return P=1,Ze(Me,e)}function Ze(e,t,r){var n=X(q++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Me(void 0,t),function(o){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,o);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=g,!g.u)){g.u=!0;var _=g.shouldComponentUpdate;g.shouldComponentUpdate=function(o,l,c){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(i){return i.__c});if(a.every(function(i){return!i.__N}))return!_||_.call(this,o,l,c);var p=!1;return a.forEach(function(i){if(i.__N){var v=i.__[0];i.__=i.__N,i.__N=void 0,v!==i.__[0]&&(p=!0)}}),!!p&&(!_||_.call(this,o,l,c))}}return n.__N||n.__}function Le(e,t){var r=X(q++,3);!u.__s&&Ie(r.__H,t)&&(r.__=e,r.i=t,g.__H.__h.push(r))}function Ue(e){return P=5,N(function(){return{current:e}},[])}function N(e,t){var r=X(q++,7);return Ie(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Q(e,t){return P=8,N(function(){return e},t)}function Je(){for(var e;e=De.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(M),e.__H.__h.forEach(Z),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__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),g=null,ce&&ce(e)},u.__r=function(e){se&&se(e),q=0;var t=(g=e.__c).__H;t&&(K===g?(t.__h=[],g.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=I,r.__N=r.i=void 0})):(t.__h.forEach(M),t.__h.forEach(Z),t.__h=[])),K=g},u.diffed=function(e){ue&&ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(De.push(t)!==1&&le===u.requestAnimationFrame||((le=u.requestAnimationFrame)||Xe)(Je)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==I&&(r.__=r.__V),r.i=void 0,r.__V=I})),K=g=null},u.__c=function(e,t){t.some(function(r){try{r.__h.forEach(M),r.__h=r.__h.filter(function(n){return!n.__||Z(n)})}catch(n){t.some(function(_){_.__h&&(_.__h=[])}),t=[],u.__e(n,r.__v)}}),ae&&ae(e,t)},u.unmount=function(e){fe&&fe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{M(n)}catch(_){t=_}}),r.__H=void 0,t&&u.__e(t,r.__v))};var de=typeof requestAnimationFrame==\"function\";function Xe(e){var t,r=function(){clearTimeout(n),de&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);de&&(t=requestAnimationFrame(r))}function M(e){var t=g,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),g=t}function Z(e){var t=g;e.__c=e.__(),g=t}function Ie(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Me(e,t){return typeof t==\"function\"?t(e):t}function Qe(e,t){for(var r in t)e[r]=t[r];return e}function pe(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 he(e){this.props=e}(he.prototype=new x).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,t){return pe(this.props,e)||pe(this.state,t)};var ve=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)};var et=u.__e;u.__e=function(e,t,r,n){if(e.then){for(var _,o=t;o=o.__;)if((_=o.__c)&&_.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),_.__c(e,t)}et(e,t,r,n)};var ye=u.unmount;function Re(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=Qe({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Re(n,t,r)})),e}function We(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return We(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 G(){this.__u=0,this.t=null,this.__b=null}function Fe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function L(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),ye&&ye(e)},(G.prototype=new x).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var _=Fe(n.__v),o=!1,l=function(){o||(o=!0,r.__R=null,_?_(c):c())};r.__R=l;var c=function(){if(!--n.__u){if(n.state.__a){var p=n.state.__a;n.__v.__k[0]=We(p,p.__c.__P,p.__c.__O)}var i;for(n.setState({__a:n.__b=null});i=n.t.pop();)i.forceUpdate()}},a=t.__h===!0;n.__u++||a||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(l,l)},G.prototype.componentWillUnmount=function(){this.t=[]},G.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]=Re(this.__b,r,n.__O=n.__P)}this.__b=null}var _=t.__a&&Y(k,null,e.fallback);return _&&(_.__h=null),[Y(k,null,t.__a?null:e.children),_]};var ge=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]}};(L.prototype=new x).__a=function(e){var t=this,r=Fe(t.__v),n=t.o.get(e);return n[0]++,function(_){var o=function(){t.props.revealOrder?(n.push(_),ge(t,e,n)):_()};r?r(o):o()}},L.prototype.render=function(e){this.u=null,this.o=new Map;var t=V(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},L.prototype.componentDidUpdate=L.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){ge(e,r,t)})};var tt=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,rt=/^(?: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]/,nt=typeof document<\"u\",ot=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/i:/fil|che|ra/i).test(e)};x.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var me=u.event;function _t(){}function it(){return this.cancelBubble}function lt(){return this.defaultPrevented}u.event=function(e){return me&&(e=me(e)),e.persist=_t,e.isPropagationStopped=it,e.isDefaultPrevented=lt,e.nativeEvent=e};var be={configurable:!0,get:function(){return this.class}},ke=u.vnode;u.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t==\"string\"){var _=t.indexOf(\"-\")===-1;for(var o in n={},r){var l=r[o];nt&&o===\"children\"&&t===\"noscript\"||o===\"value\"&&\"defaultValue\"in r&&l==null||(o===\"defaultValue\"&&\"value\"in r&&r.value==null?o=\"value\":o===\"download\"&&l===!0?l=\"\":/ondoubleclick/i.test(o)?o=\"ondblclick\":/^onchange(textarea|input)/i.test(o+t)&&!ot(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():_&&rt.test(o)?o=o.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o=\"oninputCapture\")),n[o]=l)}t==\"select\"&&n.multiple&&Array.isArray(n.value)&&(n.value=V(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t==\"select\"&&n.defaultValue!=null&&(n.value=V(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&&(be.enumerable=\"className\"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,\"className\",be))}e.$$typeof=tt,ke&&ke(e)};var we=u.__r;u.__r=function(e){we&&we(e),e.__c};var C=function(){return C=Object.assign||function(t){for(var r,n=1,_=arguments.length;n<_;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},C.apply(this,arguments)};function xe(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),_=0,t=0;t<r;t++)for(var o=arguments[t],l=0,c=o.length;l<c;l++,_++)n[_]=o[l];return n}function ct(){var e=Ue(!1),t=Q(function(){return e.current},[]);return Le(function(){return e.current=!0,function(){e.current=!1}},[]),t}function st(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=Ue(0),_=ct(),o=Be(r),l=o[0],c=o[1],a=Q(function(){for(var p=[],i=0;i<arguments.length;i++)p[i]=arguments[i];var v=++n.current;return l.loading||c(function(d){return C(C({},d),{loading:!0})}),e.apply(void 0,p).then(function(d){return _()&&v===n.current&&c({value:d,loading:!1}),d},function(d){return _()&&v===n.current&&c({error:d,loading:!1}),d})},t);return[l,a]}function ut(e,t){t===void 0&&(t=[]);var r=st(e,t,{loading:!0}),n=r[0],_=r[1];return Le(function(){_()},[_]),n}var at=function(e,t){t===void 0&&(t=[]);var r=Be(0),n=r[0],_=r[1],o=ut(e,xe(t,[n])),l=o.loading,c=Q(function(){l||_(function(a){return a+1})},xe(t,[l]));return C(C({},o),{retry:c})};const ft=at;var ee=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(ee||{}),T=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(T||{});const dt=()=>ft(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(_=>{var l;const o=new Set;return((l=_.triggers)==null?void 0:l.length)<1?o.add(T.NoTriggers):_.triggers.some(a=>!(a!=null&&a.event)&&!(a!=null&&a.cron))&&o.add(T.EmptyTrigger),o.size&&(_.errors=o),_}).sort((_,o)=>{var a,p;const l=Boolean((a=_.errors)==null?void 0:a.size),c=Boolean((p=o.errors)==null?void 0:p.size);return l!==c?l?-1:1:_.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(ee.NoSigningKey),n}),pt={[T.EmptyTrigger]:s(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.\"}),[T.NoTriggers]:s(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.\"})},ht={[ee.NoSigningKey]:s(\"div\",{class:\"flex flex-col space-y-2\",children:[s(\"div\",{class:\"font-semibold\",children:\"Could not find signing key\"}),s(\"div\",{children:[\"A signing key is required to communicate with Inngest securely. We weren't passed one when calling \",s(\"code\",{children:\"serve()\"}),\" and couldn't find it in the recommended \",s(\"code\",{children:\"INNGEST_SIGNING_KEY\"}),\" environment variable.\"]}),s(\"div\",{children:[\"You can find your signing key in the\",\" \",s(\"a\",{href:\"https://app.inngest.com/secrets\",target:\"_blank\",children:\"Inngest Dashboard - Secrets section.\"})]})]})},R=e=>Object.entries(e).reduce((r,[n,_])=>_?[...r,n]:r,[]).filter(Boolean).join(\" \").trim(),vt=({config:e,altBg:t})=>{var o,l;const r=N(()=>e.triggers[0].cron?\"cron\":\"event\",[e.triggers]),n=N(()=>{const c=e.triggers[0];return c.cron||c.event||\"\"},[e.triggers]),_=N(()=>{var c;return Boolean((c=e.errors)==null?void 0:c.size)},[e.errors]);return s(k,{children:[s(\"div\",{class:R({\"w-full grid grid-cols-[1fr_1fr_1fr] p-2 items-center\":!0,\"bg-slate-200/30\":Boolean(t),\"bg-red-400/30\":_}),children:[s(\"div\",{class:\"flex flex-col\",children:s(\"div\",{class:\"font-semibold text-sm\",children:[e.name,\" \",s(\"span\",{class:R({\"uppercase text-xs px-1 py-0.5 rounded\":!0,\"bg-blue-300/30\":r===\"event\",\"bg-green-300/30\":r===\"cron\"}),children:r})]})}),s(\"div\",{children:s(\"code\",{class:R({\"text-xs text-gray-500\":!0,\"bg-white\":_,\"bg-gray-500/10\":!_}),children:e.id})}),s(\"span\",{children:n?s(\"code\",{children:n}):s(\"code\",{class:\"bg-white\",children:\"Invalid or no expression\"})})]}),_?s(\"div\",{class:\"w-full p-2 bg-red-400/30\",children:(l=Array.from((o=e.errors)!=null?o:[]))==null?void 0:l.map(c=>s(\"div\",{class:\"bg-red-100 border border-red-400 rounded p-2\",children:pt[c]}))}):null]})},yt=({class:e=\"\"})=>s(\"svg\",{class:R({\"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:[s(\"circle\",{class:\"opacity-25\",cx:\"12\",cy:\"12\",r:\"10\",stroke:\"currentColor\",\"stroke-width\":\"4\"}),s(\"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\"})]}),gt=()=>{var l;const{loading:e,value:t,retry:r}=dt(),n=N(()=>(t==null?void 0:t.functions.some(c=>{var a;return(a=c.errors)==null?void 0:a.size}))||!1,[t==null?void 0:t.functions]),_=N(()=>Boolean(t==null?void 0:t.globalErrors.size),[t==null?void 0:t.globalErrors]),o=N(()=>[{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 e?s(yt,{class:\"h-8 w-8\"}):s(k,{children:[s(\"div\",{class:\"flex flex-col gap-4 py-20 bg-gray-100\",children:s(B,{children:[s(\"div\",{class:\"text-3xl\",children:n?\"\\u274C Your functions are not set up correctly\":t!=null&&t.functions.length?\"\\u2705 Your functions are set up correctly\":\"\\u274E No functions detected\"}),s(\"div\",{class:\"ml-12 opacity-75\",children:s(\"code\",{children:[\"inngest-\",t==null?void 0:t.sdk]})})]})}),s(\"div\",{children:s(B,{children:s(\"div\",{class:\"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4\",children:o.map(c=>s(\"a\",{href:c.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:[s(\"div\",{class:\"font-semibold text-lg\",children:c.title}),s(\"div\",{class:\"text-sm\",children:c.description}),s(\"div\",{class:\"flex-1\"}),s(\"div\",{class:\"text-right font-semibold text-purple-500\",children:\"Explore \\u2192\"})]}))})})}),_?s(\"div\",{class:\"mt-8\",children:s(B,{children:s(\"div\",{class:\"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2\",children:[s(\"div\",{class:\"font-semibold text-yellow-700 text-lg\",children:\"Your handler configuration might be missing some options\"}),Array.from((l=t==null?void 0:t.globalErrors)!=null?l:[]).map(c=>s(\"div\",{class:\"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800\",children:ht[c]}))]})})}):null,s(\"div\",{class:\"w-full flex items-center justify-center mt-8 p-4\",children:s(B,{children:[s(\"div\",{class:\"flex flex-row justify-between\",children:[s(\"div\",{class:\"flex flex-row space-x-2 items-center justify-center\",children:[s(\"div\",{class:\"font-semibold\",children:[\"Found \",(t==null?void 0:t.functions.length)||0,\" functions\"]}),s(\"div\",{children:s(\"div\",{class:\"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase\",onClick:()=>r(),children:\"Refresh\"})})]}),s(\"a\",{class:\"mb-8\",href:\"#\",children:\"Don't see your function?\"})]}),t!=null&&t.functions.length?s(\"div\",{class:\"flex flex-col\",children:[s(\"div\",{class:\"w-full grid grid-cols-[1fr_1fr_1fr] font-semibold border-b-2 border-slate-300 pb-1\",children:[s(\"div\",{children:\"Name\"}),s(\"div\",{children:\"ID\"}),s(\"div\",{children:\"Event / Cron\"})]}),t==null?void 0:t.functions.map((c,a)=>s(vt,{config:c,altBg:a%2===0}))]}):s(\"div\",{class:\"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20\",children:[s(\"div\",{class:\"font-semibold\",children:\"No functions found\"}),s(\"div\",{class:\"opacity-75 text-center\",children:[\"We found your handler, but couldn't see any exported functions.\",s(\"br\",{}),\"Check out the\",\" \",s(\"a\",{href:\"https://www.inngest.com/docs/functions\",children:\"Writing functions\"}),\" \",\"guide to get started.\"]})]})]})})]})},mt=()=>s(\"div\",{class:\"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5\",children:s(\"div\",{class:\"font-medium text-gray-900 text-xl\",children:\"Inngest SDK\"})});function bt(){return s(k,{children:[s(mt,{}),s(Ye,{children:s(gt,{})})]})}Ke(s(bt,{}),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}}.static{position:static}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-8{height:2rem}.h-4{height:1rem}.h-full{height:100%}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.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}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr\\]{grid-template-columns:1fr 1fr 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.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-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-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)))}.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-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-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-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-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-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.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}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pb-1{padding-bottom:.25rem}.text-center{text-align:center}.text-right{text-align:right}.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}.leading-none{line-height:1}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / 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)}.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{height:100%;width:100%;overflow:hidden;--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)}@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"; | ||
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 - Landing</title>\n <script type=\"module\" crossorigin>\n(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const _ of document.querySelectorAll('link[rel=\"modulepreload\"]'))n(_);new MutationObserver(_=>{for(const o of _)if(o.type===\"childList\")for(const c of o.addedNodes)c.tagName===\"LINK\"&&c.rel===\"modulepreload\"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(_){const o={};return _.integrity&&(o.integrity=_.integrity),_.referrerpolicy&&(o.referrerPolicy=_.referrerpolicy),_.crossorigin===\"use-credentials\"?o.credentials=\"include\":_.crossorigin===\"anonymous\"?o.credentials=\"omit\":o.credentials=\"same-origin\",o}function n(_){if(_.ep)return;_.ep=!0;const o=r(_);fetch(_.href,o)}})();var q,u,$e,P,oe,R={},Ne=[],Ve=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function E(e,t){for(var r in t)e[r]=t[r];return e}function Se(e){var t=e.parentNode;t&&t.removeChild(e)}function Z(e,t,r){var n,_,o,c={};for(o in t)o==\"key\"?n=t[o]:o==\"ref\"?_=t[o]:c[o]=t[o];if(arguments.length>2&&(c.children=arguments.length>3?q.call(arguments,2):r),typeof e==\"function\"&&e.defaultProps!=null)for(o in e.defaultProps)c[o]===void 0&&(c[o]=e.defaultProps[o]);return U(e,c,n,_,null)}function U(e,t,r,n,_){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:_==null?++$e:_};return _==null&&u.vnode!=null&&u.vnode(o),o}function b(e){return e.children}function k(e,t){this.props=e,this.context=t}function S(e,t){if(t==null)return e.__?S(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\"?S(e):null}function Ae(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 Ae(e)}}function _e(e){(!e.__d&&(e.__d=!0)&&P.push(e)&&!W.__r++||oe!==u.debounceRendering)&&((oe=u.debounceRendering)||setTimeout)(W)}function W(){for(var e;W.__r=P.length;)e=P.sort(function(t,r){return t.__v.__b-r.__v.__b}),P=[],e.some(function(t){var r,n,_,o,c,s;t.__d&&(c=(o=(r=t).__v).__e,(s=r.__P)&&(n=[],(_=E({},o)).__v=o.__v+1,X(s,o,_,r.__n,s.ownerSVGElement!==void 0,o.__h!=null?[c]:null,n,c==null?S(o):c,o.__h),Le(n,o),o.__e!=c&&Ae(o)))})}function He(e,t,r,n,_,o,c,s,a,p){var i,v,d,f,h,N,g,m=n&&n.__k||Ne,x=m.length;for(r.__k=[],i=0;i<t.length;i++)if((f=r.__k[i]=(f=t[i])==null||typeof f==\"boolean\"?null:typeof f==\"string\"||typeof f==\"number\"||typeof f==\"bigint\"?U(null,f,null,null,f):Array.isArray(f)?U(b,{children:f},null,null,null):f.__b>0?U(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=r,f.__b=r.__b+1,(d=m[i])===null||d&&f.key==d.key&&f.type===d.type)m[i]=void 0;else for(v=0;v<x;v++){if((d=m[v])&&f.key==d.key&&f.type===d.type){m[v]=void 0;break}d=null}X(e,f,d=d||R,_,o,c,s,a,p),h=f.__e,(v=f.ref)&&d.ref!=v&&(g||(g=[]),d.ref&&g.push(d.ref,null,f),g.push(v,f.__c||h,f)),h!=null?(N==null&&(N=h),typeof f.type==\"function\"&&f.__k===d.__k?f.__d=a=Pe(f,a,e):a=Te(e,f,d,m,h,a),typeof r.type==\"function\"&&(r.__d=a)):a&&d.__e==a&&a.parentNode!=e&&(a=S(d))}for(r.__e=N,i=x;i--;)m[i]!=null&&(typeof r.type==\"function\"&&m[i].__e!=null&&m[i].__e==r.__d&&(r.__d=S(n,i+1)),Be(m[i],m[i]));if(g)for(i=0;i<g.length;i++)Oe(g[i],g[++i],g[++i])}function Pe(e,t,r){for(var n,_=e.__k,o=0;_&&o<_.length;o++)(n=_[o])&&(n.__=e,t=typeof n.type==\"function\"?Pe(n,t,r):Te(r,n,n,_,n.__e,t));return t}function F(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(Array.isArray(e)?e.some(function(r){F(r,t)}):t.push(e)),t}function Te(e,t,r,n,_,o){var c,s,a;if(t.__d!==void 0)c=t.__d,t.__d=void 0;else if(r==null||_!=o||_.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(_),c=null;else{for(s=o,a=0;(s=s.nextSibling)&&a<n.length;a+=2)if(s==_)break e;e.insertBefore(_,o),c=o}return c!==void 0?c:_.nextSibling}function ze(e,t,r,n,_){var o;for(o in r)o===\"children\"||o===\"key\"||o in t||V(e,o,null,r[o],n);for(o in t)_&&typeof t[o]!=\"function\"||o===\"children\"||o===\"key\"||o===\"value\"||o===\"checked\"||r[o]===t[o]||V(e,o,t[o],r[o],n)}function ie(e,t,r){t[0]===\"-\"?e.setProperty(t,r):e[t]=r==null?\"\":typeof r!=\"number\"||Ve.test(t)?r:r+\"px\"}function V(e,t,r,n,_){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||ie(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||ie(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?ce:le,o):e.removeEventListener(t,o?ce:le,o);else if(t!==\"dangerouslySetInnerHTML\"){if(_)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 le(e){this.l[e.type+!1](u.event?u.event(e):e)}function ce(e){this.l[e.type+!0](u.event?u.event(e):e)}function X(e,t,r,n,_,o,c,s,a){var p,i,v,d,f,h,N,g,m,x,H,ne,O,w=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(a=r.__h,s=t.__e=r.__e,t.__h=null,o=[s]),(p=u.__b)&&p(t);try{e:if(typeof w==\"function\"){if(g=t.props,m=(p=w.contextType)&&n[p.__c],x=p?m?m.props.value:p.__:n,r.__c?N=(i=t.__c=r.__c).__=i.__E:(\"prototype\"in w&&w.prototype.render?t.__c=i=new w(g,x):(t.__c=i=new k(g,x),i.constructor=w,i.render=Ke),m&&m.sub(i),i.props=g,i.state||(i.state={}),i.context=x,i.__n=n,v=i.__d=!0,i.__h=[]),i.__s==null&&(i.__s=i.state),w.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=E({},i.__s)),E(i.__s,w.getDerivedStateFromProps(g,i.__s))),d=i.props,f=i.state,v)w.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(w.getDerivedStateFromProps==null&&g!==d&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,x),!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,x)===!1||t.__v===r.__v){i.props=g,i.state=i.__s,t.__v!==r.__v&&(i.__d=!1),i.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(B){B&&(B.__=t)}),i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(d,f,h)})}if(i.context=x,i.props=g,i.__v=t,i.__P=e,H=u.__r,ne=0,\"prototype\"in w&&w.prototype.render)i.state=i.__s,i.__d=!1,H&&H(t),p=i.render(i.props,i.state,i.context);else do i.__d=!1,H&&H(t),p=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++ne<25);i.state=i.__s,i.getChildContext!=null&&(n=E(E({},n),i.getChildContext())),v||i.getSnapshotBeforeUpdate==null||(h=i.getSnapshotBeforeUpdate(d,f)),O=p!=null&&p.type===b&&p.key==null?p.props.children:p,He(e,Array.isArray(O)?O:[O],t,r,n,_,o,c,s,a),i.base=t.__e,t.__h=null,i.__h.length&&c.push(i),N&&(i.__E=i.__=null),i.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=qe(r.__e,t,r,n,_,o,c,a);(p=u.diffed)&&p(t)}catch(B){t.__v=null,(a||o!=null)&&(t.__e=s,t.__h=!!a,o[o.indexOf(s)]=null),u.__e(B,t,r)}}function Le(e,t){u.__c&&u.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){u.__e(n,r.__v)}})}function qe(e,t,r,n,_,o,c,s){var a,p,i,v=r.props,d=t.props,f=t.type,h=0;if(f===\"svg\"&&(_=!0),o!=null){for(;h<o.length;h++)if((a=o[h])&&\"setAttribute\"in a==!!f&&(f?a.localName===f:a.nodeType===3)){e=a,o[h]=null;break}}if(e==null){if(f===null)return document.createTextNode(d);e=_?document.createElementNS(\"http://www.w3.org/2000/svg\",f):document.createElement(f,d.is&&d),o=null,s=!1}if(f===null)v===d||s&&e.data===d||(e.data=d);else{if(o=o&&q.call(e.childNodes),p=(v=r.props||R).dangerouslySetInnerHTML,i=d.dangerouslySetInnerHTML,!s){if(o!=null)for(v={},h=0;h<e.attributes.length;h++)v[e.attributes[h].name]=e.attributes[h].value;(i||p)&&(i&&(p&&i.__html==p.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||\"\"))}if(ze(e,d,v,_,s),i)t.__k=[];else if(h=t.props.children,He(e,Array.isArray(h)?h:[h],t,r,n,_&&f!==\"foreignObject\",o,c,o?o[0]:r.__k&&S(r,0),s),o!=null)for(h=o.length;h--;)o[h]!=null&&Se(o[h]);s||(\"value\"in d&&(h=d.value)!==void 0&&(h!==e.value||f===\"progress\"&&!h||f===\"option\"&&h!==v.value)&&V(e,\"value\",h,v.value,!1),\"checked\"in d&&(h=d.checked)!==void 0&&h!==e.checked&&V(e,\"checked\",h,v.checked,!1))}return e}function Oe(e,t,r){try{typeof e==\"function\"?e(t):e.current=t}catch(n){u.__e(n,r)}}function Be(e,t,r){var n,_;if(u.unmount&&u.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Oe(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){u.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(_=0;_<n.length;_++)n[_]&&Be(n[_],t,typeof e.type!=\"function\");r||e.__e==null||Se(e.__e),e.__=e.__e=e.__d=void 0}function Ke(e,t,r){return this.constructor(e,r)}function Ge(e,t,r){var n,_,o;u.__&&u.__(e,t),_=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,o=[],X(t,e=(!n&&r||t).__k=Z(b,null,[e]),_||R,R,t.ownerSVGElement!==void 0,!n&&r?[r]:_?null:t.firstChild?q.call(t.childNodes):null,o,!n&&r?r:_?_.__e:t.firstChild,n),Le(o,e)}q=Ne.slice,u={__e:function(e,t,r,n){for(var _,o,c;t=t.__;)if((_=t.__c)&&!_.__)try{if((o=_.constructor)&&o.getDerivedStateFromError!=null&&(_.setState(o.getDerivedStateFromError(e)),c=_.__d),_.componentDidCatch!=null&&(_.componentDidCatch(e,n||{}),c=_.__d),c)return _.__E=_}catch(s){e=s}throw e}},$e=0,k.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=E({},this.state),typeof e==\"function\"&&(e=e(E({},r),this.props)),e&&E(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),_e(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_e(this))},k.prototype.render=b,P=[],W.__r=0;var Ye=0;function l(e,t,r,n,_){var o,c,s={};for(c in t)c==\"ref\"?o=t[c]:s[c]=t[c];var a={type:e,props:s,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ye,__source:_,__self:n};if(typeof e==\"function\"&&(o=e.defaultProps))for(c in o)s[c]===void 0&&(s[c]=o[c]);return u.vnode&&u.vnode(a),a}const Ze=({children:e})=>l(\"div\",{class:\"w-full h-full\",children:e}),D=({children:e})=>l(\"div\",{class:\"w-full flex justify-center\",children:l(\"div\",{class:\"w-[70rem] max-w-full px-8\",children:e})});var K,y,G,se,T=0,De=[],M=[],ue=u.__b,ae=u.__r,fe=u.diffed,de=u.__c,pe=u.unmount;function Q(e,t){u.__h&&u.__h(y,e,T||t),T=0;var r=y.__H||(y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:M}),r.__[e]}function Ie(e){return T=1,Je(Me,e)}function Je(e,t,r){var n=Q(K++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Me(void 0,t),function(o){var c=n.__N?n.__N[0]:n.__[0],s=n.t(c,o);c!==s&&(n.__N=[s,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){y.u=!0;var _=y.shouldComponentUpdate;y.shouldComponentUpdate=function(o,c,s){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(i){return i.__c});if(a.every(function(i){return!i.__N}))return!_||_.call(this,o,c,s);var p=!1;return a.forEach(function(i){if(i.__N){var v=i.__[0];i.__=i.__N,i.__N=void 0,v!==i.__[0]&&(p=!0)}}),!!p&&(!_||_.call(this,o,c,s))}}return n.__N||n.__}function z(e,t){var r=Q(K++,3);!u.__s&&Ue(r.__H,t)&&(r.__=e,r.i=t,y.__H.__h.push(r))}function ee(e){return T=5,C(function(){return{current:e}},[])}function C(e,t){var r=Q(K++,7);return Ue(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function te(e,t){return T=8,C(function(){return e},t)}function Xe(){for(var e;e=De.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(J),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){typeof e.type!=\"function\"||e.o||e.type===b?e.o||(e.o=e.__&&e.__.o?e.__.o:\"\"):e.o=(e.__&&e.__.o?e.__.o:\"\")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),y=null,ue&&ue(e)},u.__r=function(e){ae&&ae(e),K=0;var t=(y=e.__c).__H;t&&(G===y?(t.__h=[],y.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=M,r.__N=r.i=void 0})):(t.__h.forEach(j),t.__h.forEach(J),t.__h=[])),G=y},u.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(De.push(t)!==1&&se===u.requestAnimationFrame||((se=u.requestAnimationFrame)||Qe)(Xe)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==M&&(r.__=r.__V),r.i=void 0,r.__V=M})),G=y=null},u.__c=function(e,t){t.some(function(r){try{r.__h.forEach(j),r.__h=r.__h.filter(function(n){return!n.__||J(n)})}catch(n){t.some(function(_){_.__h&&(_.__h=[])}),t=[],u.__e(n,r.__v)}}),de&&de(e,t)},u.unmount=function(e){pe&&pe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{j(n)}catch(_){t=_}}),r.__H=void 0,t&&u.__e(t,r.__v))};var he=typeof requestAnimationFrame==\"function\";function Qe(e){var t,r=function(){clearTimeout(n),he&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);he&&(t=requestAnimationFrame(r))}function j(e){var t=y,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),y=t}function J(e){var t=y;e.__c=e.__(),y=t}function Ue(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Me(e,t){return typeof t==\"function\"?t(e):t}function et(e,t){for(var r in t)e[r]=t[r];return e}function ve(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 ge(e){this.props=e}(ge.prototype=new k).isPureReactComponent=!0,ge.prototype.shouldComponentUpdate=function(e,t){return ve(this.props,e)||ve(this.state,t)};var ye=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ye&&ye(e)};var tt=u.__e;u.__e=function(e,t,r,n){if(e.then){for(var _,o=t;o=o.__;)if((_=o.__c)&&_.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),_.__c(e,t)}tt(e,t,r,n)};var me=u.unmount;function je(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=et({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return je(n,t,r)})),e}function Re(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Re(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 Y(){this.__u=0,this.t=null,this.__b=null}function We(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function I(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),me&&me(e)},(Y.prototype=new k).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var _=We(n.__v),o=!1,c=function(){o||(o=!0,r.__R=null,_?_(s):s())};r.__R=c;var s=function(){if(!--n.__u){if(n.state.__a){var p=n.state.__a;n.__v.__k[0]=Re(p,p.__c.__P,p.__c.__O)}var i;for(n.setState({__a:n.__b=null});i=n.t.pop();)i.forceUpdate()}},a=t.__h===!0;n.__u++||a||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(c,c)},Y.prototype.componentWillUnmount=function(){this.t=[]},Y.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]=je(this.__b,r,n.__O=n.__P)}this.__b=null}var _=t.__a&&Z(b,null,e.fallback);return _&&(_.__h=null),[Z(b,null,t.__a?null:e.children),_]};var be=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]}};(I.prototype=new k).__a=function(e){var t=this,r=We(t.__v),n=t.o.get(e);return n[0]++,function(_){var o=function(){t.props.revealOrder?(n.push(_),be(t,e,n)):_()};r?r(o):o()}},I.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(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},I.prototype.componentDidUpdate=I.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){be(e,r,t)})};var rt=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,nt=/^(?: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]/,ot=typeof document<\"u\",_t=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/i:/fil|che|ra/i).test(e)};k.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var we=u.event;function it(){}function lt(){return this.cancelBubble}function ct(){return this.defaultPrevented}u.event=function(e){return we&&(e=we(e)),e.persist=it,e.isPropagationStopped=lt,e.isDefaultPrevented=ct,e.nativeEvent=e};var xe={configurable:!0,get:function(){return this.class}},ke=u.vnode;u.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t==\"string\"){var _=t.indexOf(\"-\")===-1;for(var o in n={},r){var c=r[o];ot&&o===\"children\"&&t===\"noscript\"||o===\"value\"&&\"defaultValue\"in r&&c==null||(o===\"defaultValue\"&&\"value\"in r&&r.value==null?o=\"value\":o===\"download\"&&c===!0?c=\"\":/ondoubleclick/i.test(o)?o=\"ondblclick\":/^onchange(textarea|input)/i.test(o+t)&&!_t(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():_&&nt.test(o)?o=o.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():c===null&&(c=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o=\"oninputCapture\")),n[o]=c)}t==\"select\"&&n.multiple&&Array.isArray(n.value)&&(n.value=F(r.children).forEach(function(s){s.props.selected=n.value.indexOf(s.props.value)!=-1})),t==\"select\"&&n.defaultValue!=null&&(n.value=F(r.children).forEach(function(s){s.props.selected=n.multiple?n.defaultValue.indexOf(s.props.value)!=-1:n.defaultValue==s.props.value})),e.props=n,r.class!=r.className&&(xe.enumerable=\"className\"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,\"className\",xe))}e.$$typeof=rt,ke&&ke(e)};var Ce=u.__r;u.__r=function(e){Ce&&Ce(e),e.__c};var A=function(){return A=Object.assign||function(t){for(var r,n=1,_=arguments.length;n<_;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},A.apply(this,arguments)};function Ee(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),_=0,t=0;t<r;t++)for(var o=arguments[t],c=0,s=o.length;c<s;c++,_++)n[_]=o[c];return n}function st(){var e=ee(!1),t=te(function(){return e.current},[]);return z(function(){return e.current=!0,function(){e.current=!1}},[]),t}function ut(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=ee(0),_=st(),o=Ie(r),c=o[0],s=o[1],a=te(function(){for(var p=[],i=0;i<arguments.length;i++)p[i]=arguments[i];var v=++n.current;return c.loading||s(function(d){return A(A({},d),{loading:!0})}),e.apply(void 0,p).then(function(d){return _()&&v===n.current&&s({value:d,loading:!1}),d},function(d){return _()&&v===n.current&&s({error:d,loading:!1}),d})},t);return[c,a]}function at(e,t){t===void 0&&(t=[]);var r=ut(e,t,{loading:!0}),n=r[0],_=r[1];return z(function(){_()},[_]),n}var ft=function(e,t){t===void 0&&(t=[]);var r=Ie(0),n=r[0],_=r[1],o=at(e,Ee(t,[n])),c=o.loading,s=te(function(){c||_(function(a){return a+1})},Ee(t,[c]));return A(A({},o),{retry:s})};const Fe=ft;var dt=function(e,t){var r=ee(function(){});z(function(){r.current=e}),z(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const pt=dt;var re=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(re||{}),L=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(L||{});const ht=()=>Fe(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(_=>{var c;const o=new Set;return((c=_.triggers)==null?void 0:c.length)<1?o.add(L.NoTriggers):_.triggers.some(a=>!(a!=null&&a.event)&&!(a!=null&&a.cron))&&o.add(L.EmptyTrigger),o.size&&(_.errors=o),_}).sort((_,o)=>{var a,p;const c=Boolean((a=_.errors)==null?void 0:a.size),s=Boolean((p=o.errors)==null?void 0:p.size);return c!==s?c?-1:1:_.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(re.NoSigningKey),n}),vt={[L.EmptyTrigger]:l(b,{children:\"One or more triggers seems invalid; it has no event or cron definition. Make sure you've correctly used the function creation methods.\"}),[L.NoTriggers]:l(b,{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.\"})},gt={[re.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.\"})]})]})},$=e=>Object.entries(e).reduce((r,[n,_])=>_?[...r,n]:r,[]).filter(Boolean).join(\" \").trim(),yt=({config:e,altBg:t})=>{var o,c;const r=C(()=>e.triggers[0].cron?\"cron\":\"event\",[e.triggers]),n=C(()=>{const s=e.triggers[0];return s.cron||s.event||\"\"},[e.triggers]),_=C(()=>{var s;return Boolean((s=e.errors)==null?void 0:s.size)},[e.errors]);return l(b,{children:[l(\"div\",{class:$({\"w-full grid grid-cols-[1fr_1fr_1fr] p-2 items-center\":!0,\"bg-slate-200/30\":Boolean(t),\"bg-red-400/30\":_}),children:[l(\"div\",{class:\"flex flex-col\",children:l(\"div\",{class:\"font-semibold text-sm\",children:[e.name,\" \",l(\"span\",{class:$({\"uppercase text-xs px-1 py-0.5 rounded\":!0,\"bg-blue-300/30\":r===\"event\",\"bg-green-300/30\":r===\"cron\"}),children:r})]})}),l(\"div\",{children:l(\"code\",{class:$({\"text-xs text-gray-500\":!0,\"bg-white\":_,\"bg-gray-500/10\":!_}),children:e.id})}),l(\"span\",{children:n?l(\"code\",{children:n}):l(\"code\",{class:\"bg-white\",children:\"Invalid or no expression\"})})]}),_?l(\"div\",{class:\"w-full p-2 bg-red-400/30\",children:(c=Array.from((o=e.errors)!=null?o:[]))==null?void 0:c.map(s=>l(\"div\",{class:\"bg-red-100 border border-red-400 rounded p-2\",children:vt[s]}))}):null]})},mt=({class:e=\"\"})=>l(\"svg\",{class:$({\"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\"})]}),bt=()=>{var c;const{loading:e,value:t,retry:r}=ht(),n=C(()=>(t==null?void 0:t.functions.some(s=>{var a;return(a=s.errors)==null?void 0:a.size}))||!1,[t==null?void 0:t.functions]),_=C(()=>Boolean(t==null?void 0:t.globalErrors.size),[t==null?void 0:t.globalErrors]),o=C(()=>[{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 e?l(\"div\",{class:\"flex-1 w-full h-full flex items-center justify-center\",children:l(mt,{class:\"h-8 w-8\"})}):l(b,{children:[l(\"div\",{class:\"flex flex-col gap-4 py-20 bg-gray-100\",children:l(D,{children:[l(\"div\",{class:\"text-3xl\",children:n?\"\\u274C Your functions are not set up correctly\":t!=null&&t.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-\",t==null?void 0:t.sdk]})})]})}),l(\"div\",{children:l(D,{children:l(\"div\",{class:\"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4\",children:o.map(s=>l(\"a\",{href:s.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:s.title}),l(\"div\",{class:\"text-sm\",children:s.description}),l(\"div\",{class:\"flex-1\"}),l(\"div\",{class:\"text-right font-semibold text-purple-500\",children:\"Explore \\u2192\"})]}))})})}),_?l(\"div\",{class:\"mt-8\",children:l(D,{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((c=t==null?void 0:t.globalErrors)!=null?c:[]).map(s=>l(\"div\",{class:\"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800\",children:gt[s]}))]})})}):null,l(\"div\",{class:\"w-full flex items-center justify-center mt-8 p-4\",children:l(D,{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 \",(t==null?void 0:t.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:()=>r(),children:\"Refresh\"})})]}),l(\"a\",{class:\"mb-8\",href:\"#\",children:\"Don't see your function?\"})]}),t!=null&&t.functions.length?l(\"div\",{class:\"flex flex-col\",children:[l(\"div\",{class:\"w-full grid grid-cols-[1fr_1fr_1fr] font-semibold border-b-2 border-slate-300 pb-1\",children:[l(\"div\",{children:\"Name\"}),l(\"div\",{children:\"ID\"}),l(\"div\",{children:\"Event / Cron\"})]}),t==null?void 0:t.functions.map((s,a)=>l(yt,{config:s,altBg:a%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.\"]})]})]})})]})},wt=({copiable:e,value:t})=>l(\"code\",{class:$({\"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(xt,{}):null]}),xt=()=>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\"})]}),kt=()=>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(Ct,{})]}),Ct=()=>{const{loading:e,value:t,error:r,retry:n}=Fe(async()=>await(await fetch(new URL(\"http://localhost:8288/dev\"))).json());pt(n,5e3);const _=C(()=>Boolean(t),[t]);return l(b,{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:$({\"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75\":!0,\"bg-green-400\":_,\"bg-red-400\":!_})}),l(\"span\",{class:$({\"relative inline-flex rounded-full h-4 w-4\":!0,\"bg-green-500\":_,\"bg-red-500\":!_})})]}),_?l(\"div\",{children:[\"Connected to \",l(\"code\",{children:\"inngest dev\"}),\" on \",l(\"code\",{children:\":8288\"})]}):l(\"div\",{children:[\"Not connected to \",l(\"code\",{children:\"inngest dev\"})]})]}),_?null:l(wt,{copiable:!0,value:`npx inngest-cli -u ${window.location.href}`})]})};function Et(){return l(b,{children:[l(kt,{}),l(Ze,{children:l(bt,{})})]})}Ge(l(Et,{}),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}}.static{position:static}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.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-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%}.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}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr\\]{grid-template-columns:1fr 1fr 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.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))}.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-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-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-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-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.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}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pb-1{padding-bottom:.25rem}.text-center{text-align:center}.text-right{text-align:right}.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}.leading-none{line-height:1}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / 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)}.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)}@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"; | ||
//# sourceMappingURL=landing.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.landing = void 0; | ||
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 - Landing</title>\n <script type="module" crossorigin>\n(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const _ of document.querySelectorAll(\'link[rel="modulepreload"]\'))n(_);new MutationObserver(_=>{for(const o of _)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(_){const o={};return _.integrity&&(o.integrity=_.integrity),_.referrerpolicy&&(o.referrerPolicy=_.referrerpolicy),_.crossorigin==="use-credentials"?o.credentials="include":_.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(_){if(_.ep)return;_.ep=!0;const o=r(_);fetch(_.href,o)}})();var z,u,Ee,H,re,W={},Ne=[],Ve=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function E(e,t){for(var r in t)e[r]=t[r];return e}function $e(e){var t=e.parentNode;t&&t.removeChild(e)}function Y(e,t,r){var n,_,o,l={};for(o in t)o=="key"?n=t[o]:o=="ref"?_=t[o]:l[o]=t[o];if(arguments.length>2&&(l.children=arguments.length>3?z.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)l[o]===void 0&&(l[o]=e.defaultProps[o]);return U(e,l,n,_,null)}function U(e,t,r,n,_){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:_==null?++Ee:_};return _==null&&u.vnode!=null&&u.vnode(o),o}function k(e){return e.children}function x(e,t){this.props=e,this.context=t}function S(e,t){if(t==null)return e.__?S(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"?S(e):null}function Se(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 Se(e)}}function ne(e){(!e.__d&&(e.__d=!0)&&H.push(e)&&!F.__r++||re!==u.debounceRendering)&&((re=u.debounceRendering)||setTimeout)(F)}function F(){for(var e;F.__r=H.length;)e=H.sort(function(t,r){return t.__v.__b-r.__v.__b}),H=[],e.some(function(t){var r,n,_,o,l,c;t.__d&&(l=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(_=E({},o)).__v=o.__v+1,J(c,o,_,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[l]:null,n,l==null?S(o):l,o.__h),Pe(n,o),o.__e!=l&&Se(o)))})}function Ce(e,t,r,n,_,o,l,c,a,p){var i,v,d,f,h,$,y,m=n&&n.__k||Ne,w=m.length;for(r.__k=[],i=0;i<t.length;i++)if((f=r.__k[i]=(f=t[i])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?U(null,f,null,null,f):Array.isArray(f)?U(k,{children:f},null,null,null):f.__b>0?U(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=r,f.__b=r.__b+1,(d=m[i])===null||d&&f.key==d.key&&f.type===d.type)m[i]=void 0;else for(v=0;v<w;v++){if((d=m[v])&&f.key==d.key&&f.type===d.type){m[v]=void 0;break}d=null}J(e,f,d=d||W,_,o,l,c,a,p),h=f.__e,(v=f.ref)&&d.ref!=v&&(y||(y=[]),d.ref&&y.push(d.ref,null,f),y.push(v,f.__c||h,f)),h!=null?($==null&&($=h),typeof f.type=="function"&&f.__k===d.__k?f.__d=a=Ae(f,a,e):a=He(e,f,d,m,h,a),typeof r.type=="function"&&(r.__d=a)):a&&d.__e==a&&a.parentNode!=e&&(a=S(d))}for(r.__e=$,i=w;i--;)m[i]!=null&&(typeof r.type=="function"&&m[i].__e!=null&&m[i].__e==r.__d&&(r.__d=S(n,i+1)),Oe(m[i],m[i]));if(y)for(i=0;i<y.length;i++)Te(y[i],y[++i],y[++i])}function Ae(e,t,r){for(var n,_=e.__k,o=0;_&&o<_.length;o++)(n=_[o])&&(n.__=e,t=typeof n.type=="function"?Ae(n,t,r):He(r,n,n,_,n.__e,t));return t}function V(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){V(r,t)}):t.push(e)),t}function He(e,t,r,n,_,o){var l,c,a;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(r==null||_!=o||_.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(_),l=null;else{for(c=o,a=0;(c=c.nextSibling)&&a<n.length;a+=2)if(c==_)break e;e.insertBefore(_,o),l=o}return l!==void 0?l:_.nextSibling}function je(e,t,r,n,_){var o;for(o in r)o==="children"||o==="key"||o in t||j(e,o,null,r[o],n);for(o in t)_&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||j(e,o,t[o],r[o],n)}function oe(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||Ve.test(t)?r:r+"px"}function j(e,t,r,n,_){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||oe(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||oe(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?ie:_e,o):e.removeEventListener(t,o?ie:_e,o);else if(t!=="dangerouslySetInnerHTML"){if(_)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 _e(e){this.l[e.type+!1](u.event?u.event(e):e)}function ie(e){this.l[e.type+!0](u.event?u.event(e):e)}function J(e,t,r,n,_,o,l,c,a){var p,i,v,d,f,h,$,y,m,w,A,te,O,b=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(a=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(p=u.__b)&&p(t);try{e:if(typeof b=="function"){if(y=t.props,m=(p=b.contextType)&&n[p.__c],w=p?m?m.props.value:p.__:n,r.__c?$=(i=t.__c=r.__c).__=i.__E:("prototype"in b&&b.prototype.render?t.__c=i=new b(y,w):(t.__c=i=new x(y,w),i.constructor=b,i.render=qe),m&&m.sub(i),i.props=y,i.state||(i.state={}),i.context=w,i.__n=n,v=i.__d=!0,i.__h=[]),i.__s==null&&(i.__s=i.state),b.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=E({},i.__s)),E(i.__s,b.getDerivedStateFromProps(y,i.__s))),d=i.props,f=i.state,v)b.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(b.getDerivedStateFromProps==null&&y!==d&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(y,w),!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(y,i.__s,w)===!1||t.__v===r.__v){i.props=y,i.state=i.__s,t.__v!==r.__v&&(i.__d=!1),i.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(D){D&&(D.__=t)}),i.__h.length&&l.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(y,i.__s,w),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(d,f,h)})}if(i.context=w,i.props=y,i.__v=t,i.__P=e,A=u.__r,te=0,"prototype"in b&&b.prototype.render)i.state=i.__s,i.__d=!1,A&&A(t),p=i.render(i.props,i.state,i.context);else do i.__d=!1,A&&A(t),p=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++te<25);i.state=i.__s,i.getChildContext!=null&&(n=E(E({},n),i.getChildContext())),v||i.getSnapshotBeforeUpdate==null||(h=i.getSnapshotBeforeUpdate(d,f)),O=p!=null&&p.type===k&&p.key==null?p.props.children:p,Ce(e,Array.isArray(O)?O:[O],t,r,n,_,o,l,c,a),i.base=t.__e,t.__h=null,i.__h.length&&l.push(i),$&&(i.__E=i.__=null),i.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=ze(r.__e,t,r,n,_,o,l,a);(p=u.diffed)&&p(t)}catch(D){t.__v=null,(a||o!=null)&&(t.__e=c,t.__h=!!a,o[o.indexOf(c)]=null),u.__e(D,t,r)}}function Pe(e,t){u.__c&&u.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){u.__e(n,r.__v)}})}function ze(e,t,r,n,_,o,l,c){var a,p,i,v=r.props,d=t.props,f=t.type,h=0;if(f==="svg"&&(_=!0),o!=null){for(;h<o.length;h++)if((a=o[h])&&"setAttribute"in a==!!f&&(f?a.localName===f:a.nodeType===3)){e=a,o[h]=null;break}}if(e==null){if(f===null)return document.createTextNode(d);e=_?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,d.is&&d),o=null,c=!1}if(f===null)v===d||c&&e.data===d||(e.data=d);else{if(o=o&&z.call(e.childNodes),p=(v=r.props||W).dangerouslySetInnerHTML,i=d.dangerouslySetInnerHTML,!c){if(o!=null)for(v={},h=0;h<e.attributes.length;h++)v[e.attributes[h].name]=e.attributes[h].value;(i||p)&&(i&&(p&&i.__html==p.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||""))}if(je(e,d,v,_,c),i)t.__k=[];else if(h=t.props.children,Ce(e,Array.isArray(h)?h:[h],t,r,n,_&&f!=="foreignObject",o,l,o?o[0]:r.__k&&S(r,0),c),o!=null)for(h=o.length;h--;)o[h]!=null&&$e(o[h]);c||("value"in d&&(h=d.value)!==void 0&&(h!==e.value||f==="progress"&&!h||f==="option"&&h!==v.value)&&j(e,"value",h,v.value,!1),"checked"in d&&(h=d.checked)!==void 0&&h!==e.checked&&j(e,"checked",h,v.checked,!1))}return e}function Te(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){u.__e(n,r)}}function Oe(e,t,r){var n,_;if(u.unmount&&u.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Te(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){u.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(_=0;_<n.length;_++)n[_]&&Oe(n[_],t,typeof e.type!="function");r||e.__e==null||$e(e.__e),e.__=e.__e=e.__d=void 0}function qe(e,t,r){return this.constructor(e,r)}function Ke(e,t,r){var n,_,o;u.__&&u.__(e,t),_=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],J(t,e=(!n&&r||t).__k=Y(k,null,[e]),_||W,W,t.ownerSVGElement!==void 0,!n&&r?[r]:_?null:t.firstChild?z.call(t.childNodes):null,o,!n&&r?r:_?_.__e:t.firstChild,n),Pe(o,e)}z=Ne.slice,u={__e:function(e,t,r,n){for(var _,o,l;t=t.__;)if((_=t.__c)&&!_.__)try{if((o=_.constructor)&&o.getDerivedStateFromError!=null&&(_.setState(o.getDerivedStateFromError(e)),l=_.__d),_.componentDidCatch!=null&&(_.componentDidCatch(e,n||{}),l=_.__d),l)return _.__E=_}catch(c){e=c}throw e}},Ee=0,x.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=E({},this.state),typeof e=="function"&&(e=e(E({},r),this.props)),e&&E(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),ne(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ne(this))},x.prototype.render=k,H=[],F.__r=0;var Ge=0;function s(e,t,r,n,_){var o,l,c={};for(l in t)l=="ref"?o=t[l]:c[l]=t[l];var a={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:--Ge,__source:_,__self:n};if(typeof e=="function"&&(o=e.defaultProps))for(l in o)c[l]===void 0&&(c[l]=o[l]);return u.vnode&&u.vnode(a),a}const Ye=({children:e})=>s("div",{class:"w-full",children:e}),B=({children:e})=>s("div",{class:"w-full flex justify-center",children:s("div",{class:"w-[70rem] max-w-full px-8",children:e})});var q,g,K,le,P=0,De=[],I=[],ce=u.__b,se=u.__r,ue=u.diffed,ae=u.__c,fe=u.unmount;function X(e,t){u.__h&&u.__h(g,e,P||t),P=0;var r=g.__H||(g.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:I}),r.__[e]}function Be(e){return P=1,Ze(Me,e)}function Ze(e,t,r){var n=X(q++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Me(void 0,t),function(o){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,o);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=g,!g.u)){g.u=!0;var _=g.shouldComponentUpdate;g.shouldComponentUpdate=function(o,l,c){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(i){return i.__c});if(a.every(function(i){return!i.__N}))return!_||_.call(this,o,l,c);var p=!1;return a.forEach(function(i){if(i.__N){var v=i.__[0];i.__=i.__N,i.__N=void 0,v!==i.__[0]&&(p=!0)}}),!!p&&(!_||_.call(this,o,l,c))}}return n.__N||n.__}function Le(e,t){var r=X(q++,3);!u.__s&&Ie(r.__H,t)&&(r.__=e,r.i=t,g.__H.__h.push(r))}function Ue(e){return P=5,N(function(){return{current:e}},[])}function N(e,t){var r=X(q++,7);return Ie(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Q(e,t){return P=8,N(function(){return e},t)}function Je(){for(var e;e=De.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(M),e.__H.__h.forEach(Z),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__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),g=null,ce&&ce(e)},u.__r=function(e){se&&se(e),q=0;var t=(g=e.__c).__H;t&&(K===g?(t.__h=[],g.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=I,r.__N=r.i=void 0})):(t.__h.forEach(M),t.__h.forEach(Z),t.__h=[])),K=g},u.diffed=function(e){ue&&ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(De.push(t)!==1&&le===u.requestAnimationFrame||((le=u.requestAnimationFrame)||Xe)(Je)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==I&&(r.__=r.__V),r.i=void 0,r.__V=I})),K=g=null},u.__c=function(e,t){t.some(function(r){try{r.__h.forEach(M),r.__h=r.__h.filter(function(n){return!n.__||Z(n)})}catch(n){t.some(function(_){_.__h&&(_.__h=[])}),t=[],u.__e(n,r.__v)}}),ae&&ae(e,t)},u.unmount=function(e){fe&&fe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{M(n)}catch(_){t=_}}),r.__H=void 0,t&&u.__e(t,r.__v))};var de=typeof requestAnimationFrame=="function";function Xe(e){var t,r=function(){clearTimeout(n),de&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);de&&(t=requestAnimationFrame(r))}function M(e){var t=g,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),g=t}function Z(e){var t=g;e.__c=e.__(),g=t}function Ie(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Me(e,t){return typeof t=="function"?t(e):t}function Qe(e,t){for(var r in t)e[r]=t[r];return e}function pe(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 he(e){this.props=e}(he.prototype=new x).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,t){return pe(this.props,e)||pe(this.state,t)};var ve=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)};var et=u.__e;u.__e=function(e,t,r,n){if(e.then){for(var _,o=t;o=o.__;)if((_=o.__c)&&_.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),_.__c(e,t)}et(e,t,r,n)};var ye=u.unmount;function Re(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=Qe({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Re(n,t,r)})),e}function We(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return We(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 G(){this.__u=0,this.t=null,this.__b=null}function Fe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function L(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),ye&&ye(e)},(G.prototype=new x).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var _=Fe(n.__v),o=!1,l=function(){o||(o=!0,r.__R=null,_?_(c):c())};r.__R=l;var c=function(){if(!--n.__u){if(n.state.__a){var p=n.state.__a;n.__v.__k[0]=We(p,p.__c.__P,p.__c.__O)}var i;for(n.setState({__a:n.__b=null});i=n.t.pop();)i.forceUpdate()}},a=t.__h===!0;n.__u++||a||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(l,l)},G.prototype.componentWillUnmount=function(){this.t=[]},G.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]=Re(this.__b,r,n.__O=n.__P)}this.__b=null}var _=t.__a&&Y(k,null,e.fallback);return _&&(_.__h=null),[Y(k,null,t.__a?null:e.children),_]};var ge=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]}};(L.prototype=new x).__a=function(e){var t=this,r=Fe(t.__v),n=t.o.get(e);return n[0]++,function(_){var o=function(){t.props.revealOrder?(n.push(_),ge(t,e,n)):_()};r?r(o):o()}},L.prototype.render=function(e){this.u=null,this.o=new Map;var t=V(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},L.prototype.componentDidUpdate=L.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){ge(e,r,t)})};var tt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,rt=/^(?: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]/,nt=typeof document<"u",ot=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var me=u.event;function _t(){}function it(){return this.cancelBubble}function lt(){return this.defaultPrevented}u.event=function(e){return me&&(e=me(e)),e.persist=_t,e.isPropagationStopped=it,e.isDefaultPrevented=lt,e.nativeEvent=e};var be={configurable:!0,get:function(){return this.class}},ke=u.vnode;u.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var _=t.indexOf("-")===-1;for(var o in n={},r){var l=r[o];nt&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in r&&l==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&l===!0?l="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!ot(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():_&&rt.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=l)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=V(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=V(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&&(be.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",be))}e.$$typeof=tt,ke&&ke(e)};var we=u.__r;u.__r=function(e){we&&we(e),e.__c};var C=function(){return C=Object.assign||function(t){for(var r,n=1,_=arguments.length;n<_;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},C.apply(this,arguments)};function xe(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),_=0,t=0;t<r;t++)for(var o=arguments[t],l=0,c=o.length;l<c;l++,_++)n[_]=o[l];return n}function ct(){var e=Ue(!1),t=Q(function(){return e.current},[]);return Le(function(){return e.current=!0,function(){e.current=!1}},[]),t}function st(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=Ue(0),_=ct(),o=Be(r),l=o[0],c=o[1],a=Q(function(){for(var p=[],i=0;i<arguments.length;i++)p[i]=arguments[i];var v=++n.current;return l.loading||c(function(d){return C(C({},d),{loading:!0})}),e.apply(void 0,p).then(function(d){return _()&&v===n.current&&c({value:d,loading:!1}),d},function(d){return _()&&v===n.current&&c({error:d,loading:!1}),d})},t);return[l,a]}function ut(e,t){t===void 0&&(t=[]);var r=st(e,t,{loading:!0}),n=r[0],_=r[1];return Le(function(){_()},[_]),n}var at=function(e,t){t===void 0&&(t=[]);var r=Be(0),n=r[0],_=r[1],o=ut(e,xe(t,[n])),l=o.loading,c=Q(function(){l||_(function(a){return a+1})},xe(t,[l]));return C(C({},o),{retry:c})};const ft=at;var ee=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(ee||{}),T=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(T||{});const dt=()=>ft(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(_=>{var l;const o=new Set;return((l=_.triggers)==null?void 0:l.length)<1?o.add(T.NoTriggers):_.triggers.some(a=>!(a!=null&&a.event)&&!(a!=null&&a.cron))&&o.add(T.EmptyTrigger),o.size&&(_.errors=o),_}).sort((_,o)=>{var a,p;const l=Boolean((a=_.errors)==null?void 0:a.size),c=Boolean((p=o.errors)==null?void 0:p.size);return l!==c?l?-1:1:_.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(ee.NoSigningKey),n}),pt={[T.EmptyTrigger]:s(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."}),[T.NoTriggers]:s(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."})},ht={[ee.NoSigningKey]:s("div",{class:"flex flex-col space-y-2",children:[s("div",{class:"font-semibold",children:"Could not find signing key"}),s("div",{children:["A signing key is required to communicate with Inngest securely. We weren\'t passed one when calling ",s("code",{children:"serve()"})," and couldn\'t find it in the recommended ",s("code",{children:"INNGEST_SIGNING_KEY"})," environment variable."]}),s("div",{children:["You can find your signing key in the"," ",s("a",{href:"https://app.inngest.com/secrets",target:"_blank",children:"Inngest Dashboard - Secrets section."})]})]})},R=e=>Object.entries(e).reduce((r,[n,_])=>_?[...r,n]:r,[]).filter(Boolean).join(" ").trim(),vt=({config:e,altBg:t})=>{var o,l;const r=N(()=>e.triggers[0].cron?"cron":"event",[e.triggers]),n=N(()=>{const c=e.triggers[0];return c.cron||c.event||""},[e.triggers]),_=N(()=>{var c;return Boolean((c=e.errors)==null?void 0:c.size)},[e.errors]);return s(k,{children:[s("div",{class:R({"w-full grid grid-cols-[1fr_1fr_1fr] p-2 items-center":!0,"bg-slate-200/30":Boolean(t),"bg-red-400/30":_}),children:[s("div",{class:"flex flex-col",children:s("div",{class:"font-semibold text-sm",children:[e.name," ",s("span",{class:R({"uppercase text-xs px-1 py-0.5 rounded":!0,"bg-blue-300/30":r==="event","bg-green-300/30":r==="cron"}),children:r})]})}),s("div",{children:s("code",{class:R({"text-xs text-gray-500":!0,"bg-white":_,"bg-gray-500/10":!_}),children:e.id})}),s("span",{children:n?s("code",{children:n}):s("code",{class:"bg-white",children:"Invalid or no expression"})})]}),_?s("div",{class:"w-full p-2 bg-red-400/30",children:(l=Array.from((o=e.errors)!=null?o:[]))==null?void 0:l.map(c=>s("div",{class:"bg-red-100 border border-red-400 rounded p-2",children:pt[c]}))}):null]})},yt=({class:e=""})=>s("svg",{class:R({"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:[s("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s("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"})]}),gt=()=>{var l;const{loading:e,value:t,retry:r}=dt(),n=N(()=>(t==null?void 0:t.functions.some(c=>{var a;return(a=c.errors)==null?void 0:a.size}))||!1,[t==null?void 0:t.functions]),_=N(()=>Boolean(t==null?void 0:t.globalErrors.size),[t==null?void 0:t.globalErrors]),o=N(()=>[{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 e?s(yt,{class:"h-8 w-8"}):s(k,{children:[s("div",{class:"flex flex-col gap-4 py-20 bg-gray-100",children:s(B,{children:[s("div",{class:"text-3xl",children:n?"\\u274C Your functions are not set up correctly":t!=null&&t.functions.length?"\\u2705 Your functions are set up correctly":"\\u274E No functions detected"}),s("div",{class:"ml-12 opacity-75",children:s("code",{children:["inngest-",t==null?void 0:t.sdk]})})]})}),s("div",{children:s(B,{children:s("div",{class:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4",children:o.map(c=>s("a",{href:c.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:[s("div",{class:"font-semibold text-lg",children:c.title}),s("div",{class:"text-sm",children:c.description}),s("div",{class:"flex-1"}),s("div",{class:"text-right font-semibold text-purple-500",children:"Explore \\u2192"})]}))})})}),_?s("div",{class:"mt-8",children:s(B,{children:s("div",{class:"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2",children:[s("div",{class:"font-semibold text-yellow-700 text-lg",children:"Your handler configuration might be missing some options"}),Array.from((l=t==null?void 0:t.globalErrors)!=null?l:[]).map(c=>s("div",{class:"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800",children:ht[c]}))]})})}):null,s("div",{class:"w-full flex items-center justify-center mt-8 p-4",children:s(B,{children:[s("div",{class:"flex flex-row justify-between",children:[s("div",{class:"flex flex-row space-x-2 items-center justify-center",children:[s("div",{class:"font-semibold",children:["Found ",(t==null?void 0:t.functions.length)||0," functions"]}),s("div",{children:s("div",{class:"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase",onClick:()=>r(),children:"Refresh"})})]}),s("a",{class:"mb-8",href:"#",children:"Don\'t see your function?"})]}),t!=null&&t.functions.length?s("div",{class:"flex flex-col",children:[s("div",{class:"w-full grid grid-cols-[1fr_1fr_1fr] font-semibold border-b-2 border-slate-300 pb-1",children:[s("div",{children:"Name"}),s("div",{children:"ID"}),s("div",{children:"Event / Cron"})]}),t==null?void 0:t.functions.map((c,a)=>s(vt,{config:c,altBg:a%2===0}))]}):s("div",{class:"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20",children:[s("div",{class:"font-semibold",children:"No functions found"}),s("div",{class:"opacity-75 text-center",children:["We found your handler, but couldn\'t see any exported functions.",s("br",{}),"Check out the"," ",s("a",{href:"https://www.inngest.com/docs/functions",children:"Writing functions"})," ","guide to get started."]})]})]})})]})},mt=()=>s("div",{class:"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5",children:s("div",{class:"font-medium text-gray-900 text-xl",children:"Inngest SDK"})});function bt(){return s(k,{children:[s(mt,{}),s(Ye,{children:s(gt,{})})]})}Ke(s(bt,{}),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}}.static{position:static}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-8{height:2rem}.h-4{height:1rem}.h-full{height:100%}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.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}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr\\]{grid-template-columns:1fr 1fr 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.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-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-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)))}.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-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-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-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-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-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.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}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pb-1{padding-bottom:.25rem}.text-center{text-align:center}.text-right{text-align:right}.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}.leading-none{line-height:1}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / 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)}.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{height:100%;width:100%;overflow:hidden;--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)}@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'; | ||
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 - Landing</title>\n <script type="module" crossorigin>\n(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const _ of document.querySelectorAll(\'link[rel="modulepreload"]\'))n(_);new MutationObserver(_=>{for(const o of _)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(_){const o={};return _.integrity&&(o.integrity=_.integrity),_.referrerpolicy&&(o.referrerPolicy=_.referrerpolicy),_.crossorigin==="use-credentials"?o.credentials="include":_.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(_){if(_.ep)return;_.ep=!0;const o=r(_);fetch(_.href,o)}})();var q,u,$e,P,oe,R={},Ne=[],Ve=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function E(e,t){for(var r in t)e[r]=t[r];return e}function Se(e){var t=e.parentNode;t&&t.removeChild(e)}function Z(e,t,r){var n,_,o,c={};for(o in t)o=="key"?n=t[o]:o=="ref"?_=t[o]:c[o]=t[o];if(arguments.length>2&&(c.children=arguments.length>3?q.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)c[o]===void 0&&(c[o]=e.defaultProps[o]);return U(e,c,n,_,null)}function U(e,t,r,n,_){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:_==null?++$e:_};return _==null&&u.vnode!=null&&u.vnode(o),o}function b(e){return e.children}function k(e,t){this.props=e,this.context=t}function S(e,t){if(t==null)return e.__?S(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"?S(e):null}function Ae(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 Ae(e)}}function _e(e){(!e.__d&&(e.__d=!0)&&P.push(e)&&!W.__r++||oe!==u.debounceRendering)&&((oe=u.debounceRendering)||setTimeout)(W)}function W(){for(var e;W.__r=P.length;)e=P.sort(function(t,r){return t.__v.__b-r.__v.__b}),P=[],e.some(function(t){var r,n,_,o,c,s;t.__d&&(c=(o=(r=t).__v).__e,(s=r.__P)&&(n=[],(_=E({},o)).__v=o.__v+1,X(s,o,_,r.__n,s.ownerSVGElement!==void 0,o.__h!=null?[c]:null,n,c==null?S(o):c,o.__h),Le(n,o),o.__e!=c&&Ae(o)))})}function He(e,t,r,n,_,o,c,s,a,p){var i,v,d,f,h,N,g,m=n&&n.__k||Ne,x=m.length;for(r.__k=[],i=0;i<t.length;i++)if((f=r.__k[i]=(f=t[i])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?U(null,f,null,null,f):Array.isArray(f)?U(b,{children:f},null,null,null):f.__b>0?U(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=r,f.__b=r.__b+1,(d=m[i])===null||d&&f.key==d.key&&f.type===d.type)m[i]=void 0;else for(v=0;v<x;v++){if((d=m[v])&&f.key==d.key&&f.type===d.type){m[v]=void 0;break}d=null}X(e,f,d=d||R,_,o,c,s,a,p),h=f.__e,(v=f.ref)&&d.ref!=v&&(g||(g=[]),d.ref&&g.push(d.ref,null,f),g.push(v,f.__c||h,f)),h!=null?(N==null&&(N=h),typeof f.type=="function"&&f.__k===d.__k?f.__d=a=Pe(f,a,e):a=Te(e,f,d,m,h,a),typeof r.type=="function"&&(r.__d=a)):a&&d.__e==a&&a.parentNode!=e&&(a=S(d))}for(r.__e=N,i=x;i--;)m[i]!=null&&(typeof r.type=="function"&&m[i].__e!=null&&m[i].__e==r.__d&&(r.__d=S(n,i+1)),Be(m[i],m[i]));if(g)for(i=0;i<g.length;i++)Oe(g[i],g[++i],g[++i])}function Pe(e,t,r){for(var n,_=e.__k,o=0;_&&o<_.length;o++)(n=_[o])&&(n.__=e,t=typeof n.type=="function"?Pe(n,t,r):Te(r,n,n,_,n.__e,t));return t}function F(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){F(r,t)}):t.push(e)),t}function Te(e,t,r,n,_,o){var c,s,a;if(t.__d!==void 0)c=t.__d,t.__d=void 0;else if(r==null||_!=o||_.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(_),c=null;else{for(s=o,a=0;(s=s.nextSibling)&&a<n.length;a+=2)if(s==_)break e;e.insertBefore(_,o),c=o}return c!==void 0?c:_.nextSibling}function ze(e,t,r,n,_){var o;for(o in r)o==="children"||o==="key"||o in t||V(e,o,null,r[o],n);for(o in t)_&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||V(e,o,t[o],r[o],n)}function ie(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||Ve.test(t)?r:r+"px"}function V(e,t,r,n,_){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||ie(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||ie(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?ce:le,o):e.removeEventListener(t,o?ce:le,o);else if(t!=="dangerouslySetInnerHTML"){if(_)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 le(e){this.l[e.type+!1](u.event?u.event(e):e)}function ce(e){this.l[e.type+!0](u.event?u.event(e):e)}function X(e,t,r,n,_,o,c,s,a){var p,i,v,d,f,h,N,g,m,x,H,ne,O,w=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(a=r.__h,s=t.__e=r.__e,t.__h=null,o=[s]),(p=u.__b)&&p(t);try{e:if(typeof w=="function"){if(g=t.props,m=(p=w.contextType)&&n[p.__c],x=p?m?m.props.value:p.__:n,r.__c?N=(i=t.__c=r.__c).__=i.__E:("prototype"in w&&w.prototype.render?t.__c=i=new w(g,x):(t.__c=i=new k(g,x),i.constructor=w,i.render=Ke),m&&m.sub(i),i.props=g,i.state||(i.state={}),i.context=x,i.__n=n,v=i.__d=!0,i.__h=[]),i.__s==null&&(i.__s=i.state),w.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=E({},i.__s)),E(i.__s,w.getDerivedStateFromProps(g,i.__s))),d=i.props,f=i.state,v)w.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(w.getDerivedStateFromProps==null&&g!==d&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,x),!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,x)===!1||t.__v===r.__v){i.props=g,i.state=i.__s,t.__v!==r.__v&&(i.__d=!1),i.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(B){B&&(B.__=t)}),i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(d,f,h)})}if(i.context=x,i.props=g,i.__v=t,i.__P=e,H=u.__r,ne=0,"prototype"in w&&w.prototype.render)i.state=i.__s,i.__d=!1,H&&H(t),p=i.render(i.props,i.state,i.context);else do i.__d=!1,H&&H(t),p=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++ne<25);i.state=i.__s,i.getChildContext!=null&&(n=E(E({},n),i.getChildContext())),v||i.getSnapshotBeforeUpdate==null||(h=i.getSnapshotBeforeUpdate(d,f)),O=p!=null&&p.type===b&&p.key==null?p.props.children:p,He(e,Array.isArray(O)?O:[O],t,r,n,_,o,c,s,a),i.base=t.__e,t.__h=null,i.__h.length&&c.push(i),N&&(i.__E=i.__=null),i.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=qe(r.__e,t,r,n,_,o,c,a);(p=u.diffed)&&p(t)}catch(B){t.__v=null,(a||o!=null)&&(t.__e=s,t.__h=!!a,o[o.indexOf(s)]=null),u.__e(B,t,r)}}function Le(e,t){u.__c&&u.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){u.__e(n,r.__v)}})}function qe(e,t,r,n,_,o,c,s){var a,p,i,v=r.props,d=t.props,f=t.type,h=0;if(f==="svg"&&(_=!0),o!=null){for(;h<o.length;h++)if((a=o[h])&&"setAttribute"in a==!!f&&(f?a.localName===f:a.nodeType===3)){e=a,o[h]=null;break}}if(e==null){if(f===null)return document.createTextNode(d);e=_?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,d.is&&d),o=null,s=!1}if(f===null)v===d||s&&e.data===d||(e.data=d);else{if(o=o&&q.call(e.childNodes),p=(v=r.props||R).dangerouslySetInnerHTML,i=d.dangerouslySetInnerHTML,!s){if(o!=null)for(v={},h=0;h<e.attributes.length;h++)v[e.attributes[h].name]=e.attributes[h].value;(i||p)&&(i&&(p&&i.__html==p.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||""))}if(ze(e,d,v,_,s),i)t.__k=[];else if(h=t.props.children,He(e,Array.isArray(h)?h:[h],t,r,n,_&&f!=="foreignObject",o,c,o?o[0]:r.__k&&S(r,0),s),o!=null)for(h=o.length;h--;)o[h]!=null&&Se(o[h]);s||("value"in d&&(h=d.value)!==void 0&&(h!==e.value||f==="progress"&&!h||f==="option"&&h!==v.value)&&V(e,"value",h,v.value,!1),"checked"in d&&(h=d.checked)!==void 0&&h!==e.checked&&V(e,"checked",h,v.checked,!1))}return e}function Oe(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){u.__e(n,r)}}function Be(e,t,r){var n,_;if(u.unmount&&u.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Oe(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){u.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(_=0;_<n.length;_++)n[_]&&Be(n[_],t,typeof e.type!="function");r||e.__e==null||Se(e.__e),e.__=e.__e=e.__d=void 0}function Ke(e,t,r){return this.constructor(e,r)}function Ge(e,t,r){var n,_,o;u.__&&u.__(e,t),_=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],X(t,e=(!n&&r||t).__k=Z(b,null,[e]),_||R,R,t.ownerSVGElement!==void 0,!n&&r?[r]:_?null:t.firstChild?q.call(t.childNodes):null,o,!n&&r?r:_?_.__e:t.firstChild,n),Le(o,e)}q=Ne.slice,u={__e:function(e,t,r,n){for(var _,o,c;t=t.__;)if((_=t.__c)&&!_.__)try{if((o=_.constructor)&&o.getDerivedStateFromError!=null&&(_.setState(o.getDerivedStateFromError(e)),c=_.__d),_.componentDidCatch!=null&&(_.componentDidCatch(e,n||{}),c=_.__d),c)return _.__E=_}catch(s){e=s}throw e}},$e=0,k.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=E({},this.state),typeof e=="function"&&(e=e(E({},r),this.props)),e&&E(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),_e(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_e(this))},k.prototype.render=b,P=[],W.__r=0;var Ye=0;function l(e,t,r,n,_){var o,c,s={};for(c in t)c=="ref"?o=t[c]:s[c]=t[c];var a={type:e,props:s,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ye,__source:_,__self:n};if(typeof e=="function"&&(o=e.defaultProps))for(c in o)s[c]===void 0&&(s[c]=o[c]);return u.vnode&&u.vnode(a),a}const Ze=({children:e})=>l("div",{class:"w-full h-full",children:e}),D=({children:e})=>l("div",{class:"w-full flex justify-center",children:l("div",{class:"w-[70rem] max-w-full px-8",children:e})});var K,y,G,se,T=0,De=[],M=[],ue=u.__b,ae=u.__r,fe=u.diffed,de=u.__c,pe=u.unmount;function Q(e,t){u.__h&&u.__h(y,e,T||t),T=0;var r=y.__H||(y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:M}),r.__[e]}function Ie(e){return T=1,Je(Me,e)}function Je(e,t,r){var n=Q(K++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Me(void 0,t),function(o){var c=n.__N?n.__N[0]:n.__[0],s=n.t(c,o);c!==s&&(n.__N=[s,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){y.u=!0;var _=y.shouldComponentUpdate;y.shouldComponentUpdate=function(o,c,s){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(i){return i.__c});if(a.every(function(i){return!i.__N}))return!_||_.call(this,o,c,s);var p=!1;return a.forEach(function(i){if(i.__N){var v=i.__[0];i.__=i.__N,i.__N=void 0,v!==i.__[0]&&(p=!0)}}),!!p&&(!_||_.call(this,o,c,s))}}return n.__N||n.__}function z(e,t){var r=Q(K++,3);!u.__s&&Ue(r.__H,t)&&(r.__=e,r.i=t,y.__H.__h.push(r))}function ee(e){return T=5,C(function(){return{current:e}},[])}function C(e,t){var r=Q(K++,7);return Ue(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function te(e,t){return T=8,C(function(){return e},t)}function Xe(){for(var e;e=De.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(J),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){typeof e.type!="function"||e.o||e.type===b?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),y=null,ue&&ue(e)},u.__r=function(e){ae&&ae(e),K=0;var t=(y=e.__c).__H;t&&(G===y?(t.__h=[],y.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=M,r.__N=r.i=void 0})):(t.__h.forEach(j),t.__h.forEach(J),t.__h=[])),G=y},u.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(De.push(t)!==1&&se===u.requestAnimationFrame||((se=u.requestAnimationFrame)||Qe)(Xe)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==M&&(r.__=r.__V),r.i=void 0,r.__V=M})),G=y=null},u.__c=function(e,t){t.some(function(r){try{r.__h.forEach(j),r.__h=r.__h.filter(function(n){return!n.__||J(n)})}catch(n){t.some(function(_){_.__h&&(_.__h=[])}),t=[],u.__e(n,r.__v)}}),de&&de(e,t)},u.unmount=function(e){pe&&pe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{j(n)}catch(_){t=_}}),r.__H=void 0,t&&u.__e(t,r.__v))};var he=typeof requestAnimationFrame=="function";function Qe(e){var t,r=function(){clearTimeout(n),he&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);he&&(t=requestAnimationFrame(r))}function j(e){var t=y,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),y=t}function J(e){var t=y;e.__c=e.__(),y=t}function Ue(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Me(e,t){return typeof t=="function"?t(e):t}function et(e,t){for(var r in t)e[r]=t[r];return e}function ve(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 ge(e){this.props=e}(ge.prototype=new k).isPureReactComponent=!0,ge.prototype.shouldComponentUpdate=function(e,t){return ve(this.props,e)||ve(this.state,t)};var ye=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ye&&ye(e)};var tt=u.__e;u.__e=function(e,t,r,n){if(e.then){for(var _,o=t;o=o.__;)if((_=o.__c)&&_.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),_.__c(e,t)}tt(e,t,r,n)};var me=u.unmount;function je(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=et({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return je(n,t,r)})),e}function Re(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Re(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 Y(){this.__u=0,this.t=null,this.__b=null}function We(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function I(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),me&&me(e)},(Y.prototype=new k).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var _=We(n.__v),o=!1,c=function(){o||(o=!0,r.__R=null,_?_(s):s())};r.__R=c;var s=function(){if(!--n.__u){if(n.state.__a){var p=n.state.__a;n.__v.__k[0]=Re(p,p.__c.__P,p.__c.__O)}var i;for(n.setState({__a:n.__b=null});i=n.t.pop();)i.forceUpdate()}},a=t.__h===!0;n.__u++||a||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(c,c)},Y.prototype.componentWillUnmount=function(){this.t=[]},Y.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]=je(this.__b,r,n.__O=n.__P)}this.__b=null}var _=t.__a&&Z(b,null,e.fallback);return _&&(_.__h=null),[Z(b,null,t.__a?null:e.children),_]};var be=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]}};(I.prototype=new k).__a=function(e){var t=this,r=We(t.__v),n=t.o.get(e);return n[0]++,function(_){var o=function(){t.props.revealOrder?(n.push(_),be(t,e,n)):_()};r?r(o):o()}},I.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(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},I.prototype.componentDidUpdate=I.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){be(e,r,t)})};var rt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,nt=/^(?: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]/,ot=typeof document<"u",_t=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var we=u.event;function it(){}function lt(){return this.cancelBubble}function ct(){return this.defaultPrevented}u.event=function(e){return we&&(e=we(e)),e.persist=it,e.isPropagationStopped=lt,e.isDefaultPrevented=ct,e.nativeEvent=e};var xe={configurable:!0,get:function(){return this.class}},ke=u.vnode;u.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var _=t.indexOf("-")===-1;for(var o in n={},r){var c=r[o];ot&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in r&&c==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&c===!0?c="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!_t(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():_&&nt.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():c===null&&(c=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=c)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=F(r.children).forEach(function(s){s.props.selected=n.value.indexOf(s.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=F(r.children).forEach(function(s){s.props.selected=n.multiple?n.defaultValue.indexOf(s.props.value)!=-1:n.defaultValue==s.props.value})),e.props=n,r.class!=r.className&&(xe.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",xe))}e.$$typeof=rt,ke&&ke(e)};var Ce=u.__r;u.__r=function(e){Ce&&Ce(e),e.__c};var A=function(){return A=Object.assign||function(t){for(var r,n=1,_=arguments.length;n<_;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},A.apply(this,arguments)};function Ee(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),_=0,t=0;t<r;t++)for(var o=arguments[t],c=0,s=o.length;c<s;c++,_++)n[_]=o[c];return n}function st(){var e=ee(!1),t=te(function(){return e.current},[]);return z(function(){return e.current=!0,function(){e.current=!1}},[]),t}function ut(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=ee(0),_=st(),o=Ie(r),c=o[0],s=o[1],a=te(function(){for(var p=[],i=0;i<arguments.length;i++)p[i]=arguments[i];var v=++n.current;return c.loading||s(function(d){return A(A({},d),{loading:!0})}),e.apply(void 0,p).then(function(d){return _()&&v===n.current&&s({value:d,loading:!1}),d},function(d){return _()&&v===n.current&&s({error:d,loading:!1}),d})},t);return[c,a]}function at(e,t){t===void 0&&(t=[]);var r=ut(e,t,{loading:!0}),n=r[0],_=r[1];return z(function(){_()},[_]),n}var ft=function(e,t){t===void 0&&(t=[]);var r=Ie(0),n=r[0],_=r[1],o=at(e,Ee(t,[n])),c=o.loading,s=te(function(){c||_(function(a){return a+1})},Ee(t,[c]));return A(A({},o),{retry:s})};const Fe=ft;var dt=function(e,t){var r=ee(function(){});z(function(){r.current=e}),z(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const pt=dt;var re=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(re||{}),L=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(L||{});const ht=()=>Fe(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(_=>{var c;const o=new Set;return((c=_.triggers)==null?void 0:c.length)<1?o.add(L.NoTriggers):_.triggers.some(a=>!(a!=null&&a.event)&&!(a!=null&&a.cron))&&o.add(L.EmptyTrigger),o.size&&(_.errors=o),_}).sort((_,o)=>{var a,p;const c=Boolean((a=_.errors)==null?void 0:a.size),s=Boolean((p=o.errors)==null?void 0:p.size);return c!==s?c?-1:1:_.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(re.NoSigningKey),n}),vt={[L.EmptyTrigger]:l(b,{children:"One or more triggers seems invalid; it has no event or cron definition. Make sure you\'ve correctly used the function creation methods."}),[L.NoTriggers]:l(b,{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."})},gt={[re.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."})]})]})},$=e=>Object.entries(e).reduce((r,[n,_])=>_?[...r,n]:r,[]).filter(Boolean).join(" ").trim(),yt=({config:e,altBg:t})=>{var o,c;const r=C(()=>e.triggers[0].cron?"cron":"event",[e.triggers]),n=C(()=>{const s=e.triggers[0];return s.cron||s.event||""},[e.triggers]),_=C(()=>{var s;return Boolean((s=e.errors)==null?void 0:s.size)},[e.errors]);return l(b,{children:[l("div",{class:$({"w-full grid grid-cols-[1fr_1fr_1fr] p-2 items-center":!0,"bg-slate-200/30":Boolean(t),"bg-red-400/30":_}),children:[l("div",{class:"flex flex-col",children:l("div",{class:"font-semibold text-sm",children:[e.name," ",l("span",{class:$({"uppercase text-xs px-1 py-0.5 rounded":!0,"bg-blue-300/30":r==="event","bg-green-300/30":r==="cron"}),children:r})]})}),l("div",{children:l("code",{class:$({"text-xs text-gray-500":!0,"bg-white":_,"bg-gray-500/10":!_}),children:e.id})}),l("span",{children:n?l("code",{children:n}):l("code",{class:"bg-white",children:"Invalid or no expression"})})]}),_?l("div",{class:"w-full p-2 bg-red-400/30",children:(c=Array.from((o=e.errors)!=null?o:[]))==null?void 0:c.map(s=>l("div",{class:"bg-red-100 border border-red-400 rounded p-2",children:vt[s]}))}):null]})},mt=({class:e=""})=>l("svg",{class:$({"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"})]}),bt=()=>{var c;const{loading:e,value:t,retry:r}=ht(),n=C(()=>(t==null?void 0:t.functions.some(s=>{var a;return(a=s.errors)==null?void 0:a.size}))||!1,[t==null?void 0:t.functions]),_=C(()=>Boolean(t==null?void 0:t.globalErrors.size),[t==null?void 0:t.globalErrors]),o=C(()=>[{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 e?l("div",{class:"flex-1 w-full h-full flex items-center justify-center",children:l(mt,{class:"h-8 w-8"})}):l(b,{children:[l("div",{class:"flex flex-col gap-4 py-20 bg-gray-100",children:l(D,{children:[l("div",{class:"text-3xl",children:n?"\\u274C Your functions are not set up correctly":t!=null&&t.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-",t==null?void 0:t.sdk]})})]})}),l("div",{children:l(D,{children:l("div",{class:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4",children:o.map(s=>l("a",{href:s.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:s.title}),l("div",{class:"text-sm",children:s.description}),l("div",{class:"flex-1"}),l("div",{class:"text-right font-semibold text-purple-500",children:"Explore \\u2192"})]}))})})}),_?l("div",{class:"mt-8",children:l(D,{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((c=t==null?void 0:t.globalErrors)!=null?c:[]).map(s=>l("div",{class:"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800",children:gt[s]}))]})})}):null,l("div",{class:"w-full flex items-center justify-center mt-8 p-4",children:l(D,{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 ",(t==null?void 0:t.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:()=>r(),children:"Refresh"})})]}),l("a",{class:"mb-8",href:"#",children:"Don\'t see your function?"})]}),t!=null&&t.functions.length?l("div",{class:"flex flex-col",children:[l("div",{class:"w-full grid grid-cols-[1fr_1fr_1fr] font-semibold border-b-2 border-slate-300 pb-1",children:[l("div",{children:"Name"}),l("div",{children:"ID"}),l("div",{children:"Event / Cron"})]}),t==null?void 0:t.functions.map((s,a)=>l(yt,{config:s,altBg:a%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."]})]})]})})]})},wt=({copiable:e,value:t})=>l("code",{class:$({"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(xt,{}):null]}),xt=()=>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"})]}),kt=()=>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(Ct,{})]}),Ct=()=>{const{loading:e,value:t,error:r,retry:n}=Fe(async()=>await(await fetch(new URL("http://localhost:8288/dev"))).json());pt(n,5e3);const _=C(()=>Boolean(t),[t]);return l(b,{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:$({"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75":!0,"bg-green-400":_,"bg-red-400":!_})}),l("span",{class:$({"relative inline-flex rounded-full h-4 w-4":!0,"bg-green-500":_,"bg-red-500":!_})})]}),_?l("div",{children:["Connected to ",l("code",{children:"inngest dev"})," on ",l("code",{children:":8288"})]}):l("div",{children:["Not connected to ",l("code",{children:"inngest dev"})]})]}),_?null:l(wt,{copiable:!0,value:`npx inngest-cli -u ${window.location.href}`})]})};function Et(){return l(b,{children:[l(kt,{}),l(Ze,{children:l(bt,{})})]})}Ge(l(Et,{}),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}}.static{position:static}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.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-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%}.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}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr\\]{grid-template-columns:1fr 1fr 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.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))}.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-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-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-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-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.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}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pb-1{padding-bottom:.25rem}.text-center{text-align:center}.text-right{text-align:right}.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}.leading-none{line-height:1}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / 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)}.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)}@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'; | ||
//# sourceMappingURL=landing.js.map |
@@ -24,2 +24,7 @@ "use strict"; | ||
} | ||
res.setHeader("x-inngest-sdk", this.sdkHeader.join("")); | ||
this._isProd = | ||
process.env.VERCEL_ENV === "production" || | ||
process.env.CONTEXT === "production" || | ||
process.env.ENVIRONMENT === "production"; | ||
switch (req.method) { | ||
@@ -26,0 +31,0 @@ case "GET": { |
{ | ||
"name": "inngest", | ||
"version": "0.4.16-cfp.11", | ||
"version": "0.4.16-cfp.12", | ||
"description": "Official SDK for Inngest.com", | ||
@@ -28,3 +28,3 @@ "main": "./index.js", | ||
"api-extractor": "api-extractor", | ||
"dev": "concurrently --names Build,Lint,Landing --prefix-colors \"green.inverse,magenta.inverse,blue.inverse\" --handle-input \"yarn run dev:build\" \"yarn run dev:lint\" \"yarn run dev:landing\"", | ||
"dev": "yarn && sh -c 'cd ./landing && yarn' && concurrently --names Build,Lint,Landing --prefix-colors \"green.inverse,magenta.inverse,blue.inverse\" --handle-input \"yarn run dev:build\" \"yarn run dev:lint\" \"yarn run dev:landing\"", | ||
"dev:build": "nodemon -w src -e ts -i version.ts -i landing.ts --delay 300ms -x 'yarn run build && yarn run build:check --local'", | ||
@@ -31,0 +31,0 @@ "dev:lint": "nodemon -w src -e ts -i version.ts -i landing.ts --delay 300ms -x 'yarn lint'", |
@@ -53,3 +53,2 @@ <div align="center"> | ||
```ts | ||
import { createFunction } from "inngest"; | ||
@@ -66,3 +65,3 @@ | ||
Functions listen to events which can be triggered by API calls, webhooks, integrations, or external services. When a matching event is received, the serverless function runs automatically, with built in retries. | ||
Functions listen to events which can be triggered by API calls, webhooks, integrations, or external services. When a matching event is received, the serverless function runs automatically, with built in retries. | ||
@@ -73,3 +72,2 @@ <br /> | ||
```ts | ||
@@ -84,5 +82,4 @@ // Send events | ||
Events trigger any number of functions automatically, in parallel, in the background. Inngest also stores a history of all events for observability, testing, and replay. | ||
Events trigger any number of functions automatically, in parallel, in the background. Inngest also stores a history of all events for observability, testing, and replay. | ||
<br /> | ||
@@ -92,9 +89,9 @@ | ||
- **Fully serverless:** Run background jobs, scheduled functions, and build event-driven systems without any servers, state, or setup | ||
- **Deploy anywhere**: works with NextJS, Netlify, Vercel, Redwood, Express, Cloudflare, and Lambda | ||
- **Use your existing code:** write functions within your current project, zero learning required | ||
- **A complete platform**: complex functionality built in, such as **event replay**, **canary deploys**, **version management** and **git integration** | ||
- **Fully typed**: Event schemas, versioning, and governance out of the box | ||
- **Observable**: A full UI for managing and inspecting your functions | ||
- **Any language:** Use our CLI to write functions using any language | ||
- **Fully serverless:** Run background jobs, scheduled functions, and build event-driven systems without any servers, state, or setup | ||
- **Deploy anywhere**: works with NextJS, Netlify, Vercel, Redwood, Express, Cloudflare, and Lambda | ||
- **Use your existing code:** write functions within your current project, zero learning required | ||
- **A complete platform**: complex functionality built in, such as **event replay**, **canary deploys**, **version management** and **git integration** | ||
- **Fully typed**: Event schemas, versioning, and governance out of the box | ||
- **Observable**: A full UI for managing and inspecting your functions | ||
- **Any language:** Use our CLI to write functions using any language | ||
@@ -101,0 +98,0 @@ <br /> |
19
remix.js
@@ -20,2 +20,3 @@ "use strict"; | ||
return async ({ request: req, }) => { | ||
const headers = { "x-inngest-sdk": this.sdkHeader.join("") }; | ||
let reqUrl; | ||
@@ -31,4 +32,9 @@ let isIntrospection; | ||
status: 500, | ||
headers, | ||
}); | ||
} | ||
this._isProd = | ||
process.env.VERCEL_ENV === "production" || | ||
process.env.CONTEXT === "production" || | ||
process.env.ENVIRONMENT === "production"; | ||
switch (req.method) { | ||
@@ -48,5 +54,3 @@ case "GET": { | ||
status: 200, | ||
headers: { | ||
"content-type": "text/html;charset=UTF-8", | ||
}, | ||
headers: Object.assign(Object.assign({}, headers), { "content-type": "text/html;charset=UTF-8" }), | ||
}); | ||
@@ -57,3 +61,6 @@ } | ||
const { status, message } = await this.register(reqUrl); | ||
return new cross_fetch_1.Response(JSON.stringify({ message }), { status }); | ||
return new cross_fetch_1.Response(JSON.stringify({ message }), { | ||
status, | ||
headers, | ||
}); | ||
} | ||
@@ -75,2 +82,3 @@ case "POST": { | ||
status: stepRes.status, | ||
headers, | ||
}); | ||
@@ -80,6 +88,7 @@ } | ||
status: stepRes.status, | ||
headers, | ||
}); | ||
} | ||
} | ||
return new cross_fetch_1.Response(null, { status: 405 }); | ||
return new cross_fetch_1.Response(null, { status: 405, headers }); | ||
}; | ||
@@ -86,0 +95,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.4.16-cfp.11"; | ||
export declare const version = "0.4.16-cfp.12"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Generated by genversion. | ||
exports.version = "0.4.16-cfp.11"; | ||
exports.version = "0.4.16-cfp.12"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
231892
71
2223
126
16
5