Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

inngest

Package Overview
Dependencies
Maintainers
2
Versions
564
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inngest - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

5

cloudflare.js

@@ -7,2 +7,3 @@ "use strict";

const consts_1 = require("./helpers/consts");
const devserver_1 = require("./helpers/devserver");
const landing_1 = require("./landing");

@@ -40,3 +41,3 @@ class CloudflareCommHandler extends express_1.InngestCommHandler {

if (isIntrospection) {
const introspection = Object.assign(Object.assign({}, this.registerBody(reqUrl)), { hasSigningKey: Boolean(this.signingKey) });
const introspection = Object.assign(Object.assign({}, this.registerBody(reqUrl)), { devServerURL: (0, devserver_1.devServerUrl)(env[consts_1.envKeys.DevServerUrl]).href, hasSigningKey: Boolean(this.signingKey) });
return new Response(JSON.stringify(introspection), {

@@ -50,3 +51,3 @@ status: 200,

status: 200,
headers: Object.assign(Object.assign({}, headers), { "content-type": "text/html;charset=UTF-8" }),
headers: Object.assign(Object.assign({}, headers), { "content-type": "text/html; charset=utf-8" }),
});

@@ -53,0 +54,0 @@ }

4

express.js

@@ -131,6 +131,8 @@ "use strict";

if (Object.hasOwnProperty.call(req.query, consts_1.queryKeys.Introspect)) {
const introspection = Object.assign(Object.assign({}, this.registerBody(reqUrl)), { hasSigningKey: Boolean(this.signingKey) });
const introspection = Object.assign(Object.assign({}, this.registerBody(reqUrl)), { devServerURL: (0, devserver_1.devServerUrl)(process.env[consts_1.envKeys.DevServerUrl])
.href, hasSigningKey: Boolean(this.signingKey) });
return void res.status(200).json(introspection);
}
// Grab landing page and serve
res.header("content-type", "text/html; charset=utf-8");
return void res.status(200).send(landing_1.landing);

@@ -137,0 +139,0 @@ }

@@ -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 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";
export declare const landing = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Inngest SDK - Your functions</title>\n <script type=\"module\" crossorigin>\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,a,$e,P,oe,j={},Ne=[],qe=/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 I(e,c,n,_,null)}function I(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&&a.vnode!=null&&a.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!==a.debounceRendering)&&((oe=a.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),Te(n,o),o.__e!=c&&Ae(o)))})}function He(e,t,r,n,_,o,c,s,u,p){var i,v,f,d,h,N,g,m=n&&n.__k||Ne,x=m.length;for(r.__k=[],i=0;i<t.length;i++)if((d=r.__k[i]=(d=t[i])==null||typeof d==\"boolean\"?null:typeof d==\"string\"||typeof d==\"number\"||typeof d==\"bigint\"?I(null,d,null,null,d):Array.isArray(d)?I(b,{children:d},null,null,null):d.__b>0?I(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(f=m[i])===null||f&&d.key==f.key&&d.type===f.type)m[i]=void 0;else for(v=0;v<x;v++){if((f=m[v])&&d.key==f.key&&d.type===f.type){m[v]=void 0;break}f=null}X(e,d,f=f||j,_,o,c,s,u,p),h=d.__e,(v=d.ref)&&f.ref!=v&&(g||(g=[]),f.ref&&g.push(f.ref,null,d),g.push(v,d.__c||h,d)),h!=null?(N==null&&(N=h),typeof d.type==\"function\"&&d.__k===f.__k?d.__d=u=Pe(d,u,e):u=Le(e,d,f,m,h,u),typeof r.type==\"function\"&&(r.__d=u)):u&&f.__e==u&&u.parentNode!=e&&(u=S(f))}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):Le(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 Le(e,t,r,n,_,o){var c,s,u;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,u=0;(s=s.nextSibling)&&u<n.length;u+=2)if(s==_)break e;e.insertBefore(_,o),c=o}return c!==void 0?c:_.nextSibling}function Ke(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\"||qe.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](a.event?a.event(e):e)}function ce(e){this.l[e.type+!0](a.event?a.event(e):e)}function X(e,t,r,n,_,o,c,s,u){var p,i,v,f,d,h,N,g,m,x,H,ne,O,w=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,s=t.__e=r.__e,t.__h=null,o=[s]),(p=a.__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=Ye),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))),f=i.props,d=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!==f&&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(f,d,h)})}if(i.context=x,i.props=g,i.__v=t,i.__P=e,H=a.__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(f,d)),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,u),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=Ge(r.__e,t,r,n,_,o,c,u);(p=a.diffed)&&p(t)}catch(B){t.__v=null,(u||o!=null)&&(t.__e=s,t.__h=!!u,o[o.indexOf(s)]=null),a.__e(B,t,r)}}function Te(e,t){a.__c&&a.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){a.__e(n,r.__v)}})}function Ge(e,t,r,n,_,o,c,s){var u,p,i,v=r.props,f=t.props,d=t.type,h=0;if(d===\"svg\"&&(_=!0),o!=null){for(;h<o.length;h++)if((u=o[h])&&\"setAttribute\"in u==!!d&&(d?u.localName===d:u.nodeType===3)){e=u,o[h]=null;break}}if(e==null){if(d===null)return document.createTextNode(f);e=_?document.createElementNS(\"http://www.w3.org/2000/svg\",d):document.createElement(d,f.is&&f),o=null,s=!1}if(d===null)v===f||s&&e.data===f||(e.data=f);else{if(o=o&&q.call(e.childNodes),p=(v=r.props||j).dangerouslySetInnerHTML,i=f.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(Ke(e,f,v,_,s),i)t.__k=[];else if(h=t.props.children,He(e,Array.isArray(h)?h:[h],t,r,n,_&&d!==\"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 f&&(h=f.value)!==void 0&&(h!==e.value||d===\"progress\"&&!h||d===\"option\"&&h!==v.value)&&V(e,\"value\",h,v.value,!1),\"checked\"in f&&(h=f.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){a.__e(n,r)}}function Be(e,t,r){var n,_;if(a.unmount&&a.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){a.__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 Ye(e,t,r){return this.constructor(e,r)}function Ze(e,t,r){var n,_,o;a.__&&a.__(e,t),_=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,o=[],X(t,e=(!n&&r||t).__k=Z(b,null,[e]),_||j,j,t.ownerSVGElement!==void 0,!n&&r?[r]:_?null:t.firstChild?q.call(t.childNodes):null,o,!n&&r?r:_?_.__e:t.firstChild,n),Te(o,e)}q=Ne.slice,a={__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 Je=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 u={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:--Je,__source:_,__self:n};if(typeof e==\"function\"&&(o=e.defaultProps))for(c in o)s[c]===void 0&&(s[c]=o[c]);return a.vnode&&a.vnode(u),u}const Xe=({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,L=0,De=[],M=[],ue=a.__b,ae=a.__r,de=a.diffed,fe=a.__c,pe=a.unmount;function Q(e,t){a.__h&&a.__h(y,e,L||t),L=0;var r=y.__H||(y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:M}),r.__[e]}function Ue(e){return L=1,Qe(Me,e)}function Qe(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 u=n.__c.__H.__.filter(function(i){return i.__c});if(u.every(function(i){return!i.__N}))return!_||_.call(this,o,c,s);var p=!1;return u.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);!a.__s&&Ie(r.__H,t)&&(r.__=e,r.i=t,y.__H.__h.push(r))}function ee(e){return L=5,C(function(){return{current:e}},[])}function C(e,t){var r=Q(K++,7);return Ie(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function te(e,t){return L=8,C(function(){return e},t)}function et(){for(var e;e=De.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(J),e.__H.__h=[]}catch(t){e.__H.__h=[],a.__e(t,e.__v)}}a.__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)},a.__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(R),t.__h.forEach(J),t.__h=[])),G=y},a.diffed=function(e){de&&de(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(De.push(t)!==1&&se===a.requestAnimationFrame||((se=a.requestAnimationFrame)||tt)(et)),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},a.__c=function(e,t){t.some(function(r){try{r.__h.forEach(R),r.__h=r.__h.filter(function(n){return!n.__||J(n)})}catch(n){t.some(function(_){_.__h&&(_.__h=[])}),t=[],a.__e(n,r.__v)}}),fe&&fe(e,t)},a.unmount=function(e){pe&&pe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{R(n)}catch(_){t=_}}),r.__H=void 0,t&&a.__e(t,r.__v))};var he=typeof requestAnimationFrame==\"function\";function tt(e){var t,r=function(){clearTimeout(n),he&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);he&&(t=requestAnimationFrame(r))}function R(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 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 rt(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=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ye&&ye(e)};var nt=a.__e;a.__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)}nt(e,t,r,n)};var me=a.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=rt({},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 je(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return je(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 U(){this.u=null,this.o=null}a.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]=je(p,p.__c.__P,p.__c.__O)}var i;for(n.setState({__a:n.__b=null});i=n.t.pop();)i.forceUpdate()}},u=t.__h===!0;n.__u++||u||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]=Re(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]}};(U.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()}},U.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},U.prototype.componentDidUpdate=U.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){be(e,r,t)})};var ot=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,_t=/^(?: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]/,it=typeof document<\"u\",lt=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=a.event;function ct(){}function st(){return this.cancelBubble}function ut(){return this.defaultPrevented}a.event=function(e){return we&&(e=we(e)),e.persist=ct,e.isPropagationStopped=st,e.isDefaultPrevented=ut,e.nativeEvent=e};var xe={configurable:!0,get:function(){return this.class}},ke=a.vnode;a.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];it&&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)&&!lt(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():_&&_t.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=ot,ke&&ke(e)};var Ce=a.__r;a.__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 at(){var e=ee(!1),t=te(function(){return e.current},[]);return z(function(){return e.current=!0,function(){e.current=!1}},[]),t}function dt(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=ee(0),_=at(),o=Ue(r),c=o[0],s=o[1],u=te(function(){for(var p=[],i=0;i<arguments.length;i++)p[i]=arguments[i];var v=++n.current;return c.loading||s(function(f){return A(A({},f),{loading:!0})}),e.apply(void 0,p).then(function(f){return _()&&v===n.current&&s({value:f,loading:!1}),f},function(f){return _()&&v===n.current&&s({error:f,loading:!1}),f})},t);return[c,u]}function ft(e,t){t===void 0&&(t=[]);var r=dt(e,t,{loading:!0}),n=r[0],_=r[1];return z(function(){_()},[_]),n}var pt=function(e,t){t===void 0&&(t=[]);var r=Ue(0),n=r[0],_=r[1],o=ft(e,Ee(t,[n])),c=o.loading,s=te(function(){c||_(function(u){return u+1})},Ee(t,[c]));return A(A({},o),{retry:s})};const Fe=pt;var ht=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 Ve=ht;var re=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(re||{}),T=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(T||{});const ze=()=>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(T.NoTriggers):_.triggers.some(u=>!(u!=null&&u.event)&&!(u!=null&&u.cron))&&o.add(T.EmptyTrigger),o.size&&(_.errors=o),_}).sort((_,o)=>{var u,p;const c=Boolean((u=_.errors)==null?void 0:u.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={[T.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.\"}),[T.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}=ze();Ve(r,5e3);const n=C(()=>(t==null?void 0:t.functions.some(s=>{var u;return(u=s.errors)==null?void 0:u.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&&!(t!=null&&t.functions.length)?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,u)=>l(yt,{config:s,altBg:u%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=\"http://localhost:8288\",Ct=()=>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(Et,{})]}),Et=()=>{const{value:e}=ze(),t=new URL((e==null?void 0:e.devServerURL)||kt);t.pathname=\"dev\";const{loading:r,value:n,error:_,retry:o}=Fe(async()=>await(await fetch(t)).json());Ve(o,5e3);const c=C(()=>Boolean(n),[n]);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\":c,\"bg-red-400\":!c})}),l(\"span\",{class:$({\"relative inline-flex rounded-full h-4 w-4\":!0,\"bg-green-500\":c,\"bg-red-500\":!c})})]}),c?l(\"div\",{children:[\"Connected to \",l(\"code\",{children:\"inngest dev\"}),\" on \",l(\"code\",{children:[t.hostname,\":\",t.port]})]}):l(\"div\",{children:[\"Not connected to \",l(\"code\",{children:\"inngest dev\"})]})]}),c?null:l(wt,{copiable:!0,value:`npx inngest-cli dev -u ${window.location.href}`})]})};function $t(){return l(b,{children:[l(Ct,{}),l(Xe,{children:l(bt,{})})]})}Ze(l($t,{}),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 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';
exports.landing = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <title>Inngest SDK - Your functions</title>\n <script type="module" crossorigin>\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,a,$e,P,oe,j={},Ne=[],qe=/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 I(e,c,n,_,null)}function I(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&&a.vnode!=null&&a.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!==a.debounceRendering)&&((oe=a.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),Te(n,o),o.__e!=c&&Ae(o)))})}function He(e,t,r,n,_,o,c,s,u,p){var i,v,f,d,h,N,g,m=n&&n.__k||Ne,x=m.length;for(r.__k=[],i=0;i<t.length;i++)if((d=r.__k[i]=(d=t[i])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?I(null,d,null,null,d):Array.isArray(d)?I(b,{children:d},null,null,null):d.__b>0?I(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(f=m[i])===null||f&&d.key==f.key&&d.type===f.type)m[i]=void 0;else for(v=0;v<x;v++){if((f=m[v])&&d.key==f.key&&d.type===f.type){m[v]=void 0;break}f=null}X(e,d,f=f||j,_,o,c,s,u,p),h=d.__e,(v=d.ref)&&f.ref!=v&&(g||(g=[]),f.ref&&g.push(f.ref,null,d),g.push(v,d.__c||h,d)),h!=null?(N==null&&(N=h),typeof d.type=="function"&&d.__k===f.__k?d.__d=u=Pe(d,u,e):u=Le(e,d,f,m,h,u),typeof r.type=="function"&&(r.__d=u)):u&&f.__e==u&&u.parentNode!=e&&(u=S(f))}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):Le(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 Le(e,t,r,n,_,o){var c,s,u;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,u=0;(s=s.nextSibling)&&u<n.length;u+=2)if(s==_)break e;e.insertBefore(_,o),c=o}return c!==void 0?c:_.nextSibling}function Ke(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"||qe.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](a.event?a.event(e):e)}function ce(e){this.l[e.type+!0](a.event?a.event(e):e)}function X(e,t,r,n,_,o,c,s,u){var p,i,v,f,d,h,N,g,m,x,H,ne,O,w=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,s=t.__e=r.__e,t.__h=null,o=[s]),(p=a.__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=Ye),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))),f=i.props,d=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!==f&&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(f,d,h)})}if(i.context=x,i.props=g,i.__v=t,i.__P=e,H=a.__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(f,d)),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,u),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=Ge(r.__e,t,r,n,_,o,c,u);(p=a.diffed)&&p(t)}catch(B){t.__v=null,(u||o!=null)&&(t.__e=s,t.__h=!!u,o[o.indexOf(s)]=null),a.__e(B,t,r)}}function Te(e,t){a.__c&&a.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){a.__e(n,r.__v)}})}function Ge(e,t,r,n,_,o,c,s){var u,p,i,v=r.props,f=t.props,d=t.type,h=0;if(d==="svg"&&(_=!0),o!=null){for(;h<o.length;h++)if((u=o[h])&&"setAttribute"in u==!!d&&(d?u.localName===d:u.nodeType===3)){e=u,o[h]=null;break}}if(e==null){if(d===null)return document.createTextNode(f);e=_?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),o=null,s=!1}if(d===null)v===f||s&&e.data===f||(e.data=f);else{if(o=o&&q.call(e.childNodes),p=(v=r.props||j).dangerouslySetInnerHTML,i=f.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(Ke(e,f,v,_,s),i)t.__k=[];else if(h=t.props.children,He(e,Array.isArray(h)?h:[h],t,r,n,_&&d!=="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 f&&(h=f.value)!==void 0&&(h!==e.value||d==="progress"&&!h||d==="option"&&h!==v.value)&&V(e,"value",h,v.value,!1),"checked"in f&&(h=f.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){a.__e(n,r)}}function Be(e,t,r){var n,_;if(a.unmount&&a.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){a.__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 Ye(e,t,r){return this.constructor(e,r)}function Ze(e,t,r){var n,_,o;a.__&&a.__(e,t),_=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],X(t,e=(!n&&r||t).__k=Z(b,null,[e]),_||j,j,t.ownerSVGElement!==void 0,!n&&r?[r]:_?null:t.firstChild?q.call(t.childNodes):null,o,!n&&r?r:_?_.__e:t.firstChild,n),Te(o,e)}q=Ne.slice,a={__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 Je=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 u={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:--Je,__source:_,__self:n};if(typeof e=="function"&&(o=e.defaultProps))for(c in o)s[c]===void 0&&(s[c]=o[c]);return a.vnode&&a.vnode(u),u}const Xe=({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,L=0,De=[],M=[],ue=a.__b,ae=a.__r,de=a.diffed,fe=a.__c,pe=a.unmount;function Q(e,t){a.__h&&a.__h(y,e,L||t),L=0;var r=y.__H||(y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:M}),r.__[e]}function Ue(e){return L=1,Qe(Me,e)}function Qe(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 u=n.__c.__H.__.filter(function(i){return i.__c});if(u.every(function(i){return!i.__N}))return!_||_.call(this,o,c,s);var p=!1;return u.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);!a.__s&&Ie(r.__H,t)&&(r.__=e,r.i=t,y.__H.__h.push(r))}function ee(e){return L=5,C(function(){return{current:e}},[])}function C(e,t){var r=Q(K++,7);return Ie(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function te(e,t){return L=8,C(function(){return e},t)}function et(){for(var e;e=De.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(J),e.__H.__h=[]}catch(t){e.__H.__h=[],a.__e(t,e.__v)}}a.__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)},a.__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(R),t.__h.forEach(J),t.__h=[])),G=y},a.diffed=function(e){de&&de(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(De.push(t)!==1&&se===a.requestAnimationFrame||((se=a.requestAnimationFrame)||tt)(et)),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},a.__c=function(e,t){t.some(function(r){try{r.__h.forEach(R),r.__h=r.__h.filter(function(n){return!n.__||J(n)})}catch(n){t.some(function(_){_.__h&&(_.__h=[])}),t=[],a.__e(n,r.__v)}}),fe&&fe(e,t)},a.unmount=function(e){pe&&pe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{R(n)}catch(_){t=_}}),r.__H=void 0,t&&a.__e(t,r.__v))};var he=typeof requestAnimationFrame=="function";function tt(e){var t,r=function(){clearTimeout(n),he&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);he&&(t=requestAnimationFrame(r))}function R(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 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 rt(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=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ye&&ye(e)};var nt=a.__e;a.__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)}nt(e,t,r,n)};var me=a.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=rt({},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 je(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return je(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 U(){this.u=null,this.o=null}a.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]=je(p,p.__c.__P,p.__c.__O)}var i;for(n.setState({__a:n.__b=null});i=n.t.pop();)i.forceUpdate()}},u=t.__h===!0;n.__u++||u||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]=Re(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]}};(U.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()}},U.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},U.prototype.componentDidUpdate=U.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){be(e,r,t)})};var ot=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,_t=/^(?: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]/,it=typeof document<"u",lt=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=a.event;function ct(){}function st(){return this.cancelBubble}function ut(){return this.defaultPrevented}a.event=function(e){return we&&(e=we(e)),e.persist=ct,e.isPropagationStopped=st,e.isDefaultPrevented=ut,e.nativeEvent=e};var xe={configurable:!0,get:function(){return this.class}},ke=a.vnode;a.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];it&&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)&&!lt(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():_&&_t.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=ot,ke&&ke(e)};var Ce=a.__r;a.__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 at(){var e=ee(!1),t=te(function(){return e.current},[]);return z(function(){return e.current=!0,function(){e.current=!1}},[]),t}function dt(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=ee(0),_=at(),o=Ue(r),c=o[0],s=o[1],u=te(function(){for(var p=[],i=0;i<arguments.length;i++)p[i]=arguments[i];var v=++n.current;return c.loading||s(function(f){return A(A({},f),{loading:!0})}),e.apply(void 0,p).then(function(f){return _()&&v===n.current&&s({value:f,loading:!1}),f},function(f){return _()&&v===n.current&&s({error:f,loading:!1}),f})},t);return[c,u]}function ft(e,t){t===void 0&&(t=[]);var r=dt(e,t,{loading:!0}),n=r[0],_=r[1];return z(function(){_()},[_]),n}var pt=function(e,t){t===void 0&&(t=[]);var r=Ue(0),n=r[0],_=r[1],o=ft(e,Ee(t,[n])),c=o.loading,s=te(function(){c||_(function(u){return u+1})},Ee(t,[c]));return A(A({},o),{retry:s})};const Fe=pt;var ht=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 Ve=ht;var re=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(re||{}),T=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(T||{});const ze=()=>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(T.NoTriggers):_.triggers.some(u=>!(u!=null&&u.event)&&!(u!=null&&u.cron))&&o.add(T.EmptyTrigger),o.size&&(_.errors=o),_}).sort((_,o)=>{var u,p;const c=Boolean((u=_.errors)==null?void 0:u.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={[T.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."}),[T.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}=ze();Ve(r,5e3);const n=C(()=>(t==null?void 0:t.functions.some(s=>{var u;return(u=s.errors)==null?void 0:u.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&&!(t!=null&&t.functions.length)?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,u)=>l(yt,{config:s,altBg:u%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="http://localhost:8288",Ct=()=>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(Et,{})]}),Et=()=>{const{value:e}=ze(),t=new URL((e==null?void 0:e.devServerURL)||kt);t.pathname="dev";const{loading:r,value:n,error:_,retry:o}=Fe(async()=>await(await fetch(t)).json());Ve(o,5e3);const c=C(()=>Boolean(n),[n]);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":c,"bg-red-400":!c})}),l("span",{class:$({"relative inline-flex rounded-full h-4 w-4":!0,"bg-green-500":c,"bg-red-500":!c})})]}),c?l("div",{children:["Connected to ",l("code",{children:"inngest dev"})," on ",l("code",{children:[t.hostname,":",t.port]})]}):l("div",{children:["Not connected to ",l("code",{children:"inngest dev"})]})]}),c?null:l(wt,{copiable:!0,value:`npx inngest-cli dev -u ${window.location.href}`})]})};function $t(){return l(b,{children:[l(Ct,{}),l(Xe,{children:l(bt,{})})]})}Ze(l($t,{}),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

@@ -7,2 +7,3 @@ "use strict";

const consts_1 = require("./helpers/consts");
const devserver_1 = require("./helpers/devserver");
const landing_1 = require("./landing");

@@ -39,6 +40,8 @@ class NextCommHandler extends express_1.InngestCommHandler {

if (Object.hasOwnProperty.call(req.query, consts_1.queryKeys.Introspect)) {
const introspection = Object.assign(Object.assign({}, this.registerBody(reqUrl)), { hasSigningKey: Boolean(this.signingKey) });
const introspection = Object.assign(Object.assign({}, this.registerBody(reqUrl)), { devServerURL: (0, devserver_1.devServerUrl)(process.env[consts_1.envKeys.DevServerUrl])
.href, hasSigningKey: Boolean(this.signingKey) });
return void res.status(200).json(introspection);
}
// Grab landing page and serve
res.setHeader("content-type", "text/html; charset=utf-8");
return void res.status(200).send(landing_1.landing);

@@ -45,0 +48,0 @@ }

{
"name": "inngest",
"version": "0.5.0",
"version": "0.5.1",
"description": "Official SDK for Inngest.com",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -24,3 +24,11 @@ <div align="center">

Build, test, and deploy code that runs in response to events or on a schedule right in your own codebase.<br />
Inngest allows you to:
- ๐Ÿ‘‰ Write <b>background jobs</b> in any framework, on any platform <br />
- ๐Ÿ‘‰ Create <b>scheduled & cron jobs</b> for any serverless platform <br />
- ๐Ÿ‘‰ Build <b>serverless queues</b> without configuring infra <br />
- ๐Ÿ‘‰ Write complex <b>step functions</b> anywhere <br />
- ๐Ÿ‘‰ Build <b>serverless event-driven systems</b> <br />
- ๐Ÿ‘‰ Reliably respond to webhooks, with retries & payloads stored for history <br />
๐Ÿ‘‹ _Have a question or feature request? [Join our Discord](https://www.inngest.com/discord)!_

@@ -39,2 +47,4 @@

<img width="1489" alt="Screen Shot 2022-10-05 at 17 06 32" src="https://user-images.githubusercontent.com/306177/194185480-a942a175-0adb-42cb-9cfd-355aa03332d5.png">
## Getting started

@@ -41,0 +51,0 @@

@@ -8,2 +8,3 @@ "use strict";

const consts_1 = require("./helpers/consts");
const devserver_1 = require("./helpers/devserver");
const landing_1 = require("./landing");

@@ -48,3 +49,4 @@ /**

if (isIntrospection) {
const introspection = Object.assign(Object.assign({}, this.registerBody(reqUrl)), { hasSigningKey: Boolean(this.signingKey) });
const introspection = Object.assign(Object.assign({}, this.registerBody(reqUrl)), { devServerURL: (0, devserver_1.devServerUrl)(process.env[consts_1.envKeys.DevServerUrl])
.href, hasSigningKey: Boolean(this.signingKey) });
return new cross_fetch_1.Response(JSON.stringify(introspection), {

@@ -57,3 +59,3 @@ status: 200,

status: 200,
headers: Object.assign(Object.assign({}, headers), { "content-type": "text/html;charset=UTF-8" }),
headers: Object.assign(Object.assign({}, headers), { "content-type": "text/html; charset=utf-8" }),
});

@@ -60,0 +62,0 @@ }

@@ -302,2 +302,6 @@ import type { InngestStep } from "./components/InngestStep";

hasSigningKey: boolean;
/**
* devserverURL must be included for the frontend to know where to ping.
*/
devServerURL: string;
}

@@ -304,0 +308,0 @@ /**

@@ -1,2 +0,2 @@

export declare const version = "0.5.0";
export declare const version = "0.5.1";
//# sourceMappingURL=version.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

// Generated by genversion.
exports.version = "0.5.0";
exports.version = "0.5.1";
//# 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc