inngest 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/landing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const landing = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Inngest SDK - Your functions</title>\n <script type=\"module\" crossorigin>\nvar Vr=Object.defineProperty;var Gr=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>(Gr(e,typeof t!=\"symbol\"?t+\"\":t,r),r),We=(e,t,r)=>{if(!t.has(e))throw TypeError(\"Cannot \"+r)};var O=(e,t,r)=>(We(e,t,\"read from private field\"),r?r.call(e):t.get(e)),X=(e,t,r)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,r)},Ne=(e,t,r,n)=>(We(e,t,\"write to private field\"),n?n.call(e,r):t.set(e,r),r);var Ve=(e,t,r)=>(We(e,t,\"access private method\"),r);(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const s of document.querySelectorAll('link[rel=\"modulepreload\"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type===\"childList\")for(const i of o.addedNodes)i.tagName===\"LINK\"&&i.rel===\"modulepreload\"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin===\"use-credentials\"?o.credentials=\"include\":s.crossorigin===\"anonymous\"?o.credentials=\"omit\":o.credentials=\"same-origin\",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Fe,v,jt,pe,mt,Kt,Te={},Jt=[],jr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function K(e,t){for(var r in t)e[r]=t[r];return e}function qt(e){var t=e.parentNode;t&&t.removeChild(e)}function Xe(e,t,r){var n,s,o,i={};for(o in t)o==\"key\"?n=t[o]:o==\"ref\"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Fe.call(arguments,2):r),typeof e==\"function\"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return Ie(e,i,n,s,null)}function Ie(e,t,r,n,s){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++jt:s};return s==null&&v.vnode!=null&&v.vnode(o),o}function k(e){return e.children}function M(e,t){this.props=e,this.context=t}function ee(e,t){if(t==null)return e.__?ee(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type==\"function\"?ee(e):null}function Yt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Yt(e)}}function Ze(e){(!e.__d&&(e.__d=!0)&&pe.push(e)&&!Pe.__r++||mt!==v.debounceRendering)&&((mt=v.debounceRendering)||setTimeout)(Pe)}function Pe(){for(var e;Pe.__r=pe.length;)e=pe.sort(function(t,r){return t.__v.__b-r.__v.__b}),pe=[],e.some(function(t){var r,n,s,o,i,c;t.__d&&(i=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(s=K({},o)).__v=o.__v+1,st(c,o,s,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[i]:null,n,i==null?ee(o):i,o.__h),er(n,o),o.__e!=i&&Yt(o)))})}function Xt(e,t,r,n,s,o,i,c,u,f){var a,h,_,d,p,w,g,b=n&&n.__k||Jt,S=b.length;for(r.__k=[],a=0;a<t.length;a++)if((d=r.__k[a]=(d=t[a])==null||typeof d==\"boolean\"?null:typeof d==\"string\"||typeof d==\"number\"||typeof d==\"bigint\"?Ie(null,d,null,null,d):Array.isArray(d)?Ie(k,{children:d},null,null,null):d.__b>0?Ie(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(_=b[a])===null||_&&d.key==_.key&&d.type===_.type)b[a]=void 0;else for(h=0;h<S;h++){if((_=b[h])&&d.key==_.key&&d.type===_.type){b[h]=void 0;break}_=null}st(e,d,_=_||Te,s,o,i,c,u,f),p=d.__e,(h=d.ref)&&_.ref!=h&&(g||(g=[]),_.ref&&g.push(_.ref,null,d),g.push(h,d.__c||p,d)),p!=null?(w==null&&(w=p),typeof d.type==\"function\"&&d.__k===_.__k?d.__d=u=Zt(d,u,e):u=Qt(e,d,_,b,p,u),typeof r.type==\"function\"&&(r.__d=u)):u&&_.__e==u&&u.parentNode!=e&&(u=ee(_))}for(r.__e=w,a=S;a--;)b[a]!=null&&(typeof r.type==\"function\"&&b[a].__e!=null&&b[a].__e==r.__d&&(r.__d=ee(n,a+1)),rr(b[a],b[a]));if(g)for(a=0;a<g.length;a++)tr(g[a],g[++a],g[++a])}function Zt(e,t,r){for(var n,s=e.__k,o=0;s&&o<s.length;o++)(n=s[o])&&(n.__=e,t=typeof n.type==\"function\"?Zt(n,t,r):Qt(r,n,n,s,n.__e,t));return t}function De(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(Array.isArray(e)?e.some(function(r){De(r,t)}):t.push(e)),t}function Qt(e,t,r,n,s,o){var i,c,u;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(r==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),i=null;else{for(c=o,u=0;(c=c.nextSibling)&&u<n.length;u+=2)if(c==s)break e;e.insertBefore(s,o),i=o}return i!==void 0?i:s.nextSibling}function Kr(e,t,r,n,s){var o;for(o in r)o===\"children\"||o===\"key\"||o in t||Re(e,o,null,r[o],n);for(o in t)s&&typeof t[o]!=\"function\"||o===\"children\"||o===\"key\"||o===\"value\"||o===\"checked\"||r[o]===t[o]||Re(e,o,t[o],r[o],n)}function yt(e,t,r){t[0]===\"-\"?e.setProperty(t,r):e[t]=r==null?\"\":typeof r!=\"number\"||jr.test(t)?r:r+\"px\"}function Re(e,t,r,n,s){var o;e:if(t===\"style\")if(typeof r==\"string\")e.style.cssText=r;else{if(typeof n==\"string\"&&(e.style.cssText=n=\"\"),n)for(t in n)r&&t in r||yt(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||yt(e.style,t,r[t])}else if(t[0]===\"o\"&&t[1]===\"n\")o=t!==(t=t.replace(/Capture$/,\"\")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?St:wt,o):e.removeEventListener(t,o?St:wt,o);else if(t!==\"dangerouslySetInnerHTML\"){if(s)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!==\"href\"&&t!==\"list\"&&t!==\"form\"&&t!==\"tabIndex\"&&t!==\"download\"&&t in e)try{e[t]=r==null?\"\":r;break e}catch{}typeof r==\"function\"||(r!=null&&(r!==!1||t[0]===\"a\"&&t[1]===\"r\")?e.setAttribute(t,r):e.removeAttribute(t))}}function wt(e){this.l[e.type+!1](v.event?v.event(e):e)}function St(e){this.l[e.type+!0](v.event?v.event(e):e)}function st(e,t,r,n,s,o,i,c,u){var f,a,h,_,d,p,w,g,b,S,z,F,A,y=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(f=v.__b)&&f(t);try{e:if(typeof y==\"function\"){if(g=t.props,b=(f=y.contextType)&&n[f.__c],S=f?b?b.props.value:f.__:n,r.__c?w=(a=t.__c=r.__c).__=a.__E:(\"prototype\"in y&&y.prototype.render?t.__c=a=new y(g,S):(t.__c=a=new M(g,S),a.constructor=y,a.render=qr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=S,a.__n=n,h=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),y.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=K({},a.__s)),K(a.__s,y.getDerivedStateFromProps(g,a.__s))),_=a.props,d=a.state,h)y.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(y.getDerivedStateFromProps==null&&g!==_&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,S),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,S)===!1||t.__v===r.__v){a.props=g,a.state=a.__s,t.__v!==r.__v&&(a.__d=!1),a.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(C){C&&(C.__=t)}),a.__h.length&&i.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,S),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(_,d,p)})}if(a.context=S,a.props=g,a.__v=t,a.__P=e,z=v.__r,F=0,\"prototype\"in y&&y.prototype.render)a.state=a.__s,a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context);else do a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++F<25);a.state=a.__s,a.getChildContext!=null&&(n=K(K({},n),a.getChildContext())),h||a.getSnapshotBeforeUpdate==null||(p=a.getSnapshotBeforeUpdate(_,d)),A=f!=null&&f.type===k&&f.key==null?f.props.children:f,Xt(e,Array.isArray(A)?A:[A],t,r,n,s,o,i,c,u),a.base=t.__e,t.__h=null,a.__h.length&&i.push(a),w&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Jr(r.__e,t,r,n,s,o,i,u);(f=v.diffed)&&f(t)}catch(C){t.__v=null,(u||o!=null)&&(t.__e=c,t.__h=!!u,o[o.indexOf(c)]=null),v.__e(C,t,r)}}function er(e,t){v.__c&&v.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){v.__e(n,r.__v)}})}function Jr(e,t,r,n,s,o,i,c){var u,f,a,h=r.props,_=t.props,d=t.type,p=0;if(d===\"svg\"&&(s=!0),o!=null){for(;p<o.length;p++)if((u=o[p])&&\"setAttribute\"in u==!!d&&(d?u.localName===d:u.nodeType===3)){e=u,o[p]=null;break}}if(e==null){if(d===null)return document.createTextNode(_);e=s?document.createElementNS(\"http://www.w3.org/2000/svg\",d):document.createElement(d,_.is&&_),o=null,c=!1}if(d===null)h===_||c&&e.data===_||(e.data=_);else{if(o=o&&Fe.call(e.childNodes),f=(h=r.props||Te).dangerouslySetInnerHTML,a=_.dangerouslySetInnerHTML,!c){if(o!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(a||f)&&(a&&(f&&a.__html==f.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||\"\"))}if(Kr(e,_,h,s,c),a)t.__k=[];else if(p=t.props.children,Xt(e,Array.isArray(p)?p:[p],t,r,n,s&&d!==\"foreignObject\",o,i,o?o[0]:r.__k&&ee(r,0),c),o!=null)for(p=o.length;p--;)o[p]!=null&&qt(o[p]);c||(\"value\"in _&&(p=_.value)!==void 0&&(p!==e.value||d===\"progress\"&&!p||d===\"option\"&&p!==h.value)&&Re(e,\"value\",p,h.value,!1),\"checked\"in _&&(p=_.checked)!==void 0&&p!==e.checked&&Re(e,\"checked\",p,h.checked,!1))}return e}function tr(e,t,r){try{typeof e==\"function\"?e(t):e.current=t}catch(n){v.__e(n,r)}}function rr(e,t,r){var n,s;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||tr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){v.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&rr(n[s],t,typeof e.type!=\"function\");r||e.__e==null||qt(e.__e),e.__=e.__e=e.__d=void 0}function qr(e,t,r){return this.constructor(e,r)}function Yr(e,t,r){var n,s,o;v.__&&v.__(e,t),s=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,o=[],st(t,e=(!n&&r||t).__k=Xe(k,null,[e]),s||Te,Te,t.ownerSVGElement!==void 0,!n&&r?[r]:s?null:t.firstChild?Fe.call(t.childNodes):null,o,!n&&r?r:s?s.__e:t.firstChild,n),er(o,e)}function nr(e,t){var r={__c:t=\"__cC\"+Kt++,__:e,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(Ze)},this.sub=function(i){s.push(i);var c=i.componentWillUnmount;i.componentWillUnmount=function(){s.splice(s.indexOf(i),1),c&&c.call(i)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Fe=Jt.slice,v={__e:function(e,t,r,n){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,n||{}),i=s.__d),i)return s.__E=s}catch(c){e=c}throw e}},jt=0,M.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=K({},this.state),typeof e==\"function\"&&(e=e(K({},r),this.props)),e&&K(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),Ze(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ze(this))},M.prototype.render=k,pe=[],Pe.__r=0,Kt=0;var Xr=0;function l(e,t,r,n,s){var o,i,c={};for(i in t)i==\"ref\"?o=t[i]:c[i]=t[i];var u={type:e,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Xr,__source:s,__self:n};if(typeof e==\"function\"&&(o=e.defaultProps))for(i in o)c[i]===void 0&&(c[i]=o[i]);return v.vnode&&v.vnode(u),u}const Zr=({children:e})=>l(\"div\",{class:\"w-full h-full\",children:e}),de=({children:e})=>l(\"div\",{class:\"w-full flex justify-center\",children:l(\"div\",{class:\"w-[70rem] max-w-full px-8\",children:e})});var we,m,Ge,kt,xe=0,or=[],Le=[],$t=v.__b,Et=v.__r,Nt=v.diffed,At=v.__c,Ct=v.unmount;function Oe(e,t){v.__h&&v.__h(m,e,xe||t),xe=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Le}),r.__[e]}function Se(e){return xe=1,sr(ar,e)}function sr(e,t,r){var n=Oe(we++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ar(void 0,t),function(o){var i=n.__N?n.__N[0]:n.__[0],c=n.t(i,o);i!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,i,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(a){return a.__c});if(u.every(function(a){return!a.__N}))return!s||s.call(this,o,i,c);var f=!1;return u.forEach(function(a){if(a.__N){var h=a.__[0];a.__=a.__N,a.__N=void 0,h!==a.__[0]&&(f=!0)}}),!!f&&(!s||s.call(this,o,i,c))}}return n.__N||n.__}function ge(e,t){var r=Oe(we++,3);!v.__s&&ir(r.__H,t)&&(r.__=e,r.i=t,m.__H.__h.push(r))}function it(e){return xe=5,I(function(){return{current:e}},[])}function I(e,t){var r=Oe(we++,7);return ir(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function at(e,t){return xe=8,I(function(){return e},t)}function Qr(e){var t=m.context[e.__c],r=Oe(we++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(m)),t.props.value):e.__}function en(){for(var e;e=or.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ue),e.__H.__h.forEach(Qe),e.__H.__h=[]}catch(t){e.__H.__h=[],v.__e(t,e.__v)}}v.__b=function(e){typeof e.type!=\"function\"||e.o||e.type===k?e.o||(e.o=e.__&&e.__.o?e.__.o:\"\"):e.o=(e.__&&e.__.o?e.__.o:\"\")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,$t&&$t(e)},v.__r=function(e){Et&&Et(e),we=0;var t=(m=e.__c).__H;t&&(Ge===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Le,r.__N=r.i=void 0})):(t.__h.forEach(Ue),t.__h.forEach(Qe),t.__h=[])),Ge=m},v.diffed=function(e){Nt&&Nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(or.push(t)!==1&&kt===v.requestAnimationFrame||((kt=v.requestAnimationFrame)||tn)(en)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Le&&(r.__=r.__V),r.i=void 0,r.__V=Le})),Ge=m=null},v.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ue),r.__h=r.__h.filter(function(n){return!n.__||Qe(n)})}catch(n){t.some(function(s){s.__h&&(s.__h=[])}),t=[],v.__e(n,r.__v)}}),At&&At(e,t)},v.unmount=function(e){Ct&&Ct(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ue(n)}catch(s){t=s}}),r.__H=void 0,t&&v.__e(t,r.__v))};var Ht=typeof requestAnimationFrame==\"function\";function tn(e){var t,r=function(){clearTimeout(n),Ht&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ht&&(t=requestAnimationFrame(r))}function Ue(e){var t=m,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),m=t}function Qe(e){var t=m;e.__c=e.__(),m=t}function ir(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ar(e,t){return typeof t==\"function\"?t(e):t}function rn(e,t){for(var r in t)e[r]=t[r];return e}function It(e,t){for(var r in e)if(r!==\"__source\"&&!(r in t))return!0;for(var n in t)if(n!==\"__source\"&&e[n]!==t[n])return!0;return!1}function Lt(e){this.props=e}(Lt.prototype=new M).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Ut=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ut&&Ut(e)};var nn=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),s.__c(e,t)}nn(e,t,r,n)};var Tt=v.unmount;function cr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c==\"function\"&&n.__c()}),e.__c.__H=null),(e=rn({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return cr(n,t,r)})),e}function lr(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return lr(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function je(){this.__u=0,this.t=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ae(){this.u=null,this.o=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Tt&&Tt(e)},(je.prototype=new M).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var s=ur(n.__v),o=!1,i=function(){o||(o=!0,r.__R=null,s?s(c):c())};r.__R=i;var c=function(){if(!--n.__u){if(n.state.__a){var f=n.state.__a;n.__v.__k[0]=lr(f,f.__c.__P,f.__c.__O)}var a;for(n.setState({__a:n.__b=null});a=n.t.pop();)a.forceUpdate()}},u=t.__h===!0;n.__u++||u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},je.prototype.componentWillUnmount=function(){this.t=[]},je.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement(\"div\"),n=this.__v.__k[0].__c;this.__v.__k[0]=cr(this.__b,r,n.__O=n.__P)}this.__b=null}var s=t.__a&&Xe(k,null,e.fallback);return s&&(s.__h=null),[Xe(k,null,t.__a?null:e.children),s]};var Pt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==\"t\"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(Ae.prototype=new M).__a=function(e){var t=this,r=ur(t.__v),n=t.o.get(e);return n[0]++,function(s){var o=function(){t.props.revealOrder?(n.push(s),Pt(t,e,n)):s()};r?r(o):o()}},Ae.prototype.render=function(e){this.u=null,this.o=new Map;var t=De(e.children);e.revealOrder&&e.revealOrder[0]===\"b\"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Pt(e,r,t)})};var on=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,sn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=typeof document<\"u\",cn=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Dt=v.event;function ln(){}function un(){return this.cancelBubble}function fn(){return this.defaultPrevented}v.event=function(e){return Dt&&(e=Dt(e)),e.persist=ln,e.isPropagationStopped=un,e.isDefaultPrevented=fn,e.nativeEvent=e};var Rt={configurable:!0,get:function(){return this.class}},Bt=v.vnode;v.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t==\"string\"){var s=t.indexOf(\"-\")===-1;for(var o in n={},r){var i=r[o];an&&o===\"children\"&&t===\"noscript\"||o===\"value\"&&\"defaultValue\"in r&&i==null||(o===\"defaultValue\"&&\"value\"in r&&r.value==null?o=\"value\":o===\"download\"&&i===!0?i=\"\":/ondoubleclick/i.test(o)?o=\"ondblclick\":/^onchange(textarea|input)/i.test(o+t)&&!cn(r.type)?o=\"oninput\":/^onfocus$/i.test(o)?o=\"onfocusin\":/^onblur$/i.test(o)?o=\"onfocusout\":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():s&&sn.test(o)?o=o.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o=\"oninputCapture\")),n[o]=i)}t==\"select\"&&n.multiple&&Array.isArray(n.value)&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t==\"select\"&&n.defaultValue!=null&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,r.class!=r.className&&(Rt.enumerable=\"className\"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,\"className\",Rt))}e.$$typeof=on,Bt&&Bt(e)};var zt=v.__r;v.__r=function(e){zt&&zt(e),e.__c};var te=function(){return te=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},te.apply(this,arguments)};function Ft(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var o=arguments[t],i=0,c=o.length;i<c;i++,s++)n[s]=o[i];return n}function hn(){var e=it(!1),t=at(function(){return e.current},[]);return ge(function(){return e.current=!0,function(){e.current=!1}},[]),t}function _n(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=it(0),s=hn(),o=Se(r),i=o[0],c=o[1],u=at(function(){for(var f=[],a=0;a<arguments.length;a++)f[a]=arguments[a];var h=++n.current;return i.loading||c(function(_){return te(te({},_),{loading:!0})}),e.apply(void 0,f).then(function(_){return s()&&h===n.current&&c({value:_,loading:!1}),_},function(_){return s()&&h===n.current&&c({error:_,loading:!1}),_})},t);return[i,u]}function dn(e,t){t===void 0&&(t=[]);var r=_n(e,t,{loading:!0}),n=r[0],s=r[1];return ge(function(){s()},[s]),n}var vn=function(e,t){t===void 0&&(t=[]);var r=Se(0),n=r[0],s=r[1],o=dn(e,Ft(t,[n])),i=o.loading,c=at(function(){i||s(function(u){return u+1})},Ft(t,[i]));return te(te({},o),{retry:c})};const fr=vn;var pn=function(e,t){var r=it(function(){});ge(function(){r.current=e}),ge(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const hr=pn;var ct=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(ct||{}),be=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(be||{});const xn={[be.EmptyTrigger]:l(k,{children:\"One or more triggers seems invalid; it has no event or cron definition. Make sure you've correctly used the function creation methods.\"}),[be.NoTriggers]:l(k,{children:\"Can't find any triggers for this function, such as an event or a cron definition. Make sure you've correctly used the function creation methods.\"})},gn={[ct.NoSigningKey]:l(\"div\",{class:\"flex flex-col space-y-2\",children:[l(\"div\",{class:\"font-semibold\",children:\"Could not find signing key\"}),l(\"div\",{children:[\"A signing key is required to communicate with Inngest securely. We weren't passed one when calling \",l(\"code\",{children:\"serve()\"}),\" and couldn't find it in the recommended \",l(\"code\",{children:\"INNGEST_SIGNING_KEY\"}),\" environment variable.\"]}),l(\"div\",{children:[\"You can find your signing key in the\",\" \",l(\"a\",{href:\"https://app.inngest.com/secrets\",target:\"_blank\",children:\"Inngest Dashboard - Secrets section.\"})]})]})};var et=(e=>(e.FnId=\"fnId\",e.StepId=\"stepId\",e.Introspect=\"introspect\",e))(et||{}),_r=(e=>(e.SigningKey=\"INNGEST_SIGNING_KEY\",e.EventKey=\"INNGEST_EVENT_KEY\",e.LandingPage=\"INNGEST_LANDING_PAGE\",e.DevServerUrl=\"INNGEST_DEVSERVER_URL\",e))(_r||{});const dr=\"http://127.0.0.1:8288/\",bn=async(e=dr,t)=>{try{const r=vr(e,\"/dev\");return await(await t(r.toString())).json(),!0}catch{return!1}},vr=(e=dr,t=\"\")=>new URL(t,e.includes(\"://\")?e:`http://${e}`),mn=()=>(lt()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),yn=()=>(lt()?[\"production\",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes(\"production\"),lt=()=>typeof process<\"u\"&&\"env\"in process,wn=\"0.8.2\";var re=1e3,ne=re*60,oe=ne*60,q=oe*24,Sn=q*7,kn=q*365.25,$n=function(e,t){t=t||{};var r=typeof e;if(r===\"string\"&&e.length>0)return En(e);if(r===\"number\"&&isFinite(e))return t.long?An(e):Nn(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function En(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||\"ms\").toLowerCase();switch(n){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*kn;case\"weeks\":case\"week\":case\"w\":return r*Sn;case\"days\":case\"day\":case\"d\":return r*q;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*oe;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*ne;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*re;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function Nn(e){var t=Math.abs(e);return t>=q?Math.round(e/q)+\"d\":t>=oe?Math.round(e/oe)+\"h\":t>=ne?Math.round(e/ne)+\"m\":t>=re?Math.round(e/re)+\"s\":e+\"ms\"}function An(e){var t=Math.abs(e);return t>=q?Ce(e,t,q,\"day\"):t>=oe?Ce(e,t,oe,\"hour\"):t>=ne?Ce(e,t,ne,\"minute\"):t>=re?Ce(e,t,re,\"second\"):e+\" ms\"}function Ce(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+\" \"+n+(s?\"s\":\"\")}const Cn=e=>{const t=\"-\";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)},Hn=1,pr=Hn*1e3,xr=pr*60,gr=xr*60,br=gr*24,In=br*7,Ln=[[\"w\",In],[\"d\",br],[\"h\",gr],[\"m\",xr],[\"s\",pr]],Ke=(e,t=new Date)=>{let r=e;if(typeof r==\"string\"||typeof r==\"number\"){const i=typeof r==\"string\"?$n(r):r;r=new Date(Date.now()+i)}if(t.setMilliseconds(0),r.setMilliseconds(0),!!isNaN(r.getTime()))throw new Error(\"Invalid date given to convert to time string\");const s=r.getTime()-t.getTime(),[,o]=Ln.reduce(([i,c],[u,f])=>{const a=Math.floor(i/f);return a>0?[i%f,`${c}${a}${u}`]:[i,c]},[s,\"\"]);return o};var mr={},x={},ke=yr;function yr(e,t){if(!e)throw new Error(t||\"Assertion failed\")}yr.equal=function(t,r,n){if(t!=r)throw new Error(n||\"Assertion failed: \"+t+\" != \"+r)};var tt={exports:{}};typeof Object.create==\"function\"?tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var Un=ke,Tn=tt.exports;x.inherits=Tn;function Pn(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function Dn(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e==\"string\")if(t){if(t===\"hex\")for(e=e.replace(/[^a-z0-9]+/ig,\"\"),e.length%2!==0&&(e=\"0\"+e),s=0;s<e.length;s+=2)r.push(parseInt(e[s]+e[s+1],16))}else for(var n=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):Pn(e,s)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(s=0;s<e.length;s++)r[s]=e[s]|0;return r}x.toArray=Dn;function Rn(e){for(var t=\"\",r=0;r<e.length;r++)t+=Sr(e[r].toString(16));return t}x.toHex=Rn;function wr(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}x.htonl=wr;function Bn(e,t){for(var r=\"\",n=0;n<e.length;n++){var s=e[n];t===\"little\"&&(s=wr(s)),r+=kr(s.toString(16))}return r}x.toHex32=Bn;function Sr(e){return e.length===1?\"0\"+e:e}x.zero2=Sr;function kr(e){return e.length===7?\"0\"+e:e.length===6?\"00\"+e:e.length===5?\"000\"+e:e.length===4?\"0000\"+e:e.length===3?\"00000\"+e:e.length===2?\"000000\"+e:e.length===1?\"0000000\"+e:e}x.zero8=kr;function zn(e,t,r,n){var s=r-t;Un(s%4===0);for(var o=new Array(s/4),i=0,c=t;i<o.length;i++,c+=4){var u;n===\"big\"?u=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:u=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[i]=u>>>0}return o}x.join32=zn;function Fn(e,t){for(var r=new Array(e.length*4),n=0,s=0;n<e.length;n++,s+=4){var o=e[n];t===\"big\"?(r[s]=o>>>24,r[s+1]=o>>>16&255,r[s+2]=o>>>8&255,r[s+3]=o&255):(r[s+3]=o>>>24,r[s+2]=o>>>16&255,r[s+1]=o>>>8&255,r[s]=o&255)}return r}x.split32=Fn;function On(e,t){return e>>>t|e<<32-t}x.rotr32=On;function Mn(e,t){return e<<t|e>>>32-t}x.rotl32=Mn;function Wn(e,t){return e+t>>>0}x.sum32=Wn;function Vn(e,t,r){return e+t+r>>>0}x.sum32_3=Vn;function Gn(e,t,r,n){return e+t+r+n>>>0}x.sum32_4=Gn;function jn(e,t,r,n,s){return e+t+r+n+s>>>0}x.sum32_5=jn;function Kn(e,t,r,n){var s=e[t],o=e[t+1],i=n+o>>>0,c=(i<n?1:0)+r+s;e[t]=c>>>0,e[t+1]=i}x.sum64=Kn;function Jn(e,t,r,n){var s=t+n>>>0,o=(s<t?1:0)+e+r;return o>>>0}x.sum64_hi=Jn;function qn(e,t,r,n){var s=t+n;return s>>>0}x.sum64_lo=qn;function Yn(e,t,r,n,s,o,i,c){var u=0,f=t;f=f+n>>>0,u+=f<t?1:0,f=f+o>>>0,u+=f<o?1:0,f=f+c>>>0,u+=f<c?1:0;var a=e+r+s+i+u;return a>>>0}x.sum64_4_hi=Yn;function Xn(e,t,r,n,s,o,i,c){var u=t+n+o+c;return u>>>0}x.sum64_4_lo=Xn;function Zn(e,t,r,n,s,o,i,c,u,f){var a=0,h=t;h=h+n>>>0,a+=h<t?1:0,h=h+o>>>0,a+=h<o?1:0,h=h+c>>>0,a+=h<c?1:0,h=h+f>>>0,a+=h<f?1:0;var _=e+r+s+i+u+a;return _>>>0}x.sum64_5_hi=Zn;function Qn(e,t,r,n,s,o,i,c,u,f){var a=t+n+o+c+f;return a>>>0}x.sum64_5_lo=Qn;function eo(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}x.rotr64_hi=eo;function to(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.rotr64_lo=to;function ro(e,t,r){return e>>>r}x.shr64_hi=ro;function no(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.shr64_lo=no;var ce={},Ot=x,oo=ke;function Me(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ce.BlockHash=Me;Me.prototype.update=function(t,r){if(t=Ot.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Ot.join32(t,0,t.length-n,this.endian);for(var s=0;s<t.length;s+=this._delta32)this._update(t,s,s+this._delta32)}return this};Me.prototype.digest=function(t){return this.update(this._pad()),oo(this.pending===null),this._digest(t)};Me.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,s=new Array(n+this.padLength);s[0]=128;for(var o=1;o<n;o++)s[o]=0;if(t<<=3,this.endian===\"big\"){for(var i=8;i<this.padLength;i++)s[o++]=0;s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=t>>>24&255,s[o++]=t>>>16&255,s[o++]=t>>>8&255,s[o++]=t&255}else for(s[o++]=t&255,s[o++]=t>>>8&255,s[o++]=t>>>16&255,s[o++]=t>>>24&255,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,i=8;i<this.padLength;i++)s[o++]=0;return s};var le={},B={},so=x,L=so.rotr32;function io(e,t,r,n){if(e===0)return $r(t,r,n);if(e===1||e===3)return Nr(t,r,n);if(e===2)return Er(t,r,n)}B.ft_1=io;function $r(e,t,r){return e&t^~e&r}B.ch32=$r;function Er(e,t,r){return e&t^e&r^t&r}B.maj32=Er;function Nr(e,t,r){return e^t^r}B.p32=Nr;function ao(e){return L(e,2)^L(e,13)^L(e,22)}B.s0_256=ao;function co(e){return L(e,6)^L(e,11)^L(e,25)}B.s1_256=co;function lo(e){return L(e,7)^L(e,18)^e>>>3}B.g0_256=lo;function uo(e){return L(e,17)^L(e,19)^e>>>10}B.g1_256=uo;var se=x,fo=ce,ho=B,Je=se.rotl32,he=se.sum32,_o=se.sum32_5,vo=ho.ft_1,Ar=fo.BlockHash,po=[1518500249,1859775393,2400959708,3395469782];function P(){if(!(this instanceof P))return new P;Ar.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}se.inherits(P,Ar);var xo=P;P.blockSize=512;P.outSize=160;P.hmacStrength=80;P.padLength=64;P.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=Je(n[s-3]^n[s-8]^n[s-14]^n[s-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4];for(s=0;s<n.length;s++){var a=~~(s/20),h=_o(Je(o,5),vo(a,i,c,u),f,n[s],po[a]);f=u,u=c,c=Je(i,30),i=o,o=h}this.h[0]=he(this.h[0],o),this.h[1]=he(this.h[1],i),this.h[2]=he(this.h[2],c),this.h[3]=he(this.h[3],u),this.h[4]=he(this.h[4],f)};P.prototype._digest=function(t){return t===\"hex\"?se.toHex32(this.h,\"big\"):se.split32(this.h,\"big\")};var ie=x,go=ce,ue=B,bo=ke,E=ie.sum32,mo=ie.sum32_4,yo=ie.sum32_5,wo=ue.ch32,So=ue.maj32,ko=ue.s0_256,$o=ue.s1_256,Eo=ue.g0_256,No=ue.g1_256,Cr=go.BlockHash,Ao=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function D(){if(!(this instanceof D))return new D;Cr.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Ao,this.W=new Array(64)}ie.inherits(D,Cr);var Hr=D;D.blockSize=512;D.outSize=256;D.hmacStrength=192;D.padLength=64;D.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=mo(No(n[s-2]),n[s-7],Eo(n[s-15]),n[s-16]);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4],a=this.h[5],h=this.h[6],_=this.h[7];for(bo(this.k.length===n.length),s=0;s<n.length;s++){var d=yo(_,$o(f),wo(f,a,h),this.k[s],n[s]),p=E(ko(o),So(o,i,c));_=h,h=a,a=f,f=E(u,d),u=c,c=i,i=o,o=E(d,p)}this.h[0]=E(this.h[0],o),this.h[1]=E(this.h[1],i),this.h[2]=E(this.h[2],c),this.h[3]=E(this.h[3],u),this.h[4]=E(this.h[4],f),this.h[5]=E(this.h[5],a),this.h[6]=E(this.h[6],h),this.h[7]=E(this.h[7],_)};D.prototype._digest=function(t){return t===\"hex\"?ie.toHex32(this.h,\"big\"):ie.split32(this.h,\"big\")};var rt=x,Ir=Hr;function V(){if(!(this instanceof V))return new V;Ir.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}rt.inherits(V,Ir);var Co=V;V.blockSize=512;V.outSize=224;V.hmacStrength=192;V.padLength=64;V.prototype._digest=function(t){return t===\"hex\"?rt.toHex32(this.h.slice(0,7),\"big\"):rt.split32(this.h.slice(0,7),\"big\")};var $=x,Ho=ce,Io=ke,U=$.rotr64_hi,T=$.rotr64_lo,Lr=$.shr64_hi,Ur=$.shr64_lo,j=$.sum64,qe=$.sum64_hi,Ye=$.sum64_lo,Lo=$.sum64_4_hi,Uo=$.sum64_4_lo,To=$.sum64_5_hi,Po=$.sum64_5_lo,Tr=Ho.BlockHash,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;Tr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Do,this.W=new Array(160)}$.inherits(N,Tr);var Pr=N;N.blockSize=1024;N.outSize=512;N.hmacStrength=192;N.padLength=128;N.prototype._prepareBlock=function(t,r){for(var n=this.W,s=0;s<32;s++)n[s]=t[r+s];for(;s<n.length;s+=2){var o=Ko(n[s-4],n[s-3]),i=Jo(n[s-4],n[s-3]),c=n[s-14],u=n[s-13],f=Go(n[s-30],n[s-29]),a=jo(n[s-30],n[s-29]),h=n[s-32],_=n[s-31];n[s]=Lo(o,i,c,u,f,a,h,_),n[s+1]=Uo(o,i,c,u,f,a,h,_)}};N.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,s=this.h[0],o=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],f=this.h[5],a=this.h[6],h=this.h[7],_=this.h[8],d=this.h[9],p=this.h[10],w=this.h[11],g=this.h[12],b=this.h[13],S=this.h[14],z=this.h[15];Io(this.k.length===n.length);for(var F=0;F<n.length;F+=2){var A=S,y=z,C=Wo(_,d),fe=Vo(_,d),ht=Ro(_,d,p,w,g),_t=Bo(_,d,p,w,g,b),dt=this.k[F],vt=this.k[F+1],pt=n[F],xt=n[F+1],$e=To(A,y,C,fe,ht,_t,dt,vt,pt,xt),Ee=Po(A,y,C,fe,ht,_t,dt,vt,pt,xt);A=Oo(s,o),y=Mo(s,o),C=zo(s,o,i,c,u),fe=Fo(s,o,i,c,u,f);var gt=qe(A,y,C,fe),bt=Ye(A,y,C,fe);S=g,z=b,g=p,b=w,p=_,w=d,_=qe(a,h,$e,Ee),d=Ye(h,h,$e,Ee),a=u,h=f,u=i,f=c,i=s,c=o,s=qe($e,Ee,gt,bt),o=Ye($e,Ee,gt,bt)}j(this.h,0,s,o),j(this.h,2,i,c),j(this.h,4,u,f),j(this.h,6,a,h),j(this.h,8,_,d),j(this.h,10,p,w),j(this.h,12,g,b),j(this.h,14,S,z)};N.prototype._digest=function(t){return t===\"hex\"?$.toHex32(this.h,\"big\"):$.split32(this.h,\"big\")};function Ro(e,t,r,n,s){var o=e&r^~e&s;return o<0&&(o+=4294967296),o}function Bo(e,t,r,n,s,o){var i=t&n^~t&o;return i<0&&(i+=4294967296),i}function zo(e,t,r,n,s){var o=e&r^e&s^r&s;return o<0&&(o+=4294967296),o}function Fo(e,t,r,n,s,o){var i=t&n^t&o^n&o;return i<0&&(i+=4294967296),i}function Oo(e,t){var r=U(e,t,28),n=U(t,e,2),s=U(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Mo(e,t){var r=T(e,t,28),n=T(t,e,2),s=T(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Wo(e,t){var r=U(e,t,14),n=U(e,t,18),s=U(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Vo(e,t){var r=T(e,t,14),n=T(e,t,18),s=T(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Go(e,t){var r=U(e,t,1),n=U(e,t,8),s=Lr(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function jo(e,t){var r=T(e,t,1),n=T(e,t,8),s=Ur(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Ko(e,t){var r=U(e,t,19),n=U(t,e,29),s=Lr(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}function Jo(e,t){var r=T(e,t,19),n=T(t,e,29),s=Ur(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}var nt=x,Dr=Pr;function G(){if(!(this instanceof G))return new G;Dr.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}nt.inherits(G,Dr);var qo=G;G.blockSize=1024;G.outSize=384;G.hmacStrength=192;G.padLength=128;G.prototype._digest=function(t){return t===\"hex\"?nt.toHex32(this.h.slice(0,12),\"big\"):nt.split32(this.h.slice(0,12),\"big\")};le.sha1=xo;le.sha224=Co;le.sha256=Hr;le.sha384=qo;le.sha512=Pr;var Rr={},Y=x,Yo=ce,He=Y.rotl32,Mt=Y.sum32,_e=Y.sum32_3,Wt=Y.sum32_4,Br=Yo.BlockHash;function R(){if(!(this instanceof R))return new R;Br.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}Y.inherits(R,Br);Rr.ripemd160=R;R.blockSize=512;R.outSize=160;R.hmacStrength=192;R.padLength=64;R.prototype._update=function(t,r){for(var n=this.h[0],s=this.h[1],o=this.h[2],i=this.h[3],c=this.h[4],u=n,f=s,a=o,h=i,_=c,d=0;d<80;d++){var p=Mt(He(Wt(n,Vt(d,s,o,i),t[Qo[d]+r],Xo(d)),ts[d]),c);n=c,c=i,i=He(o,10),o=s,s=p,p=Mt(He(Wt(u,Vt(79-d,f,a,h),t[es[d]+r],Zo(d)),rs[d]),_),u=_,_=h,h=He(a,10),a=f,f=p}p=_e(this.h[1],o,h),this.h[1]=_e(this.h[2],i,_),this.h[2]=_e(this.h[3],c,u),this.h[3]=_e(this.h[4],n,f),this.h[4]=_e(this.h[0],s,a),this.h[0]=p};R.prototype._digest=function(t){return t===\"hex\"?Y.toHex32(this.h,\"little\"):Y.split32(this.h,\"little\")};function Vt(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function Xo(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Zo(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var Qo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],es=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ts=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],rs=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ns=x,os=ke;function ae(e,t,r){if(!(this instanceof ae))return new ae(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(ns.toArray(t,r))}var ss=ae;ae.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),os(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};ae.prototype.update=function(t,r){return this.inner.update(t,r),this};ae.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=x,t.common=ce,t.sha=le,t.ripemd=Rr,t.hmac=ss,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(mr);var is=as;function as(e,t){t=t||10;var r=[],n=\"\",s=RegExp;function o(i,c){if(!(c>t)&&!(typeof i==\"function\"||typeof i>\"u\")){if(typeof i!=\"object\"||!i||i instanceof s){n+=i;return}r.indexOf(i)!==-1||c===t||(r.push(i),n+=\"{\",Object.keys(i).forEach(function(u,f,a){if(u.charAt(0)!==\"_\"){var h=typeof i[u];h===\"function\"||h===\"undefined\"||(n+=u,o(i[u],c+1))}}))}}return o(e,0),n}var ve=(e=>(e.WaitForEvent=\"WaitForEvent\",e.RunStep=\"Step\",e.Sleep=\"Sleep\",e))(ve||{});class ot{}const cs=e=>{let t=!0,r=0;const n={...e},s=u=>{const f=n[u.id];return[f!==void 0,f]},o=(u,f)=>(...a)=>{if(!t)throw new ot;const h=u(...a),_={...h,id:ls(h,r++)},[d,p]=s(_);if(d)return p;t=!1;const w=(...g)=>{i.nextOp=new Promise(b=>b(g[0])).then(b=>({..._,...g.length?{data:b}:{}}))};throw f?f({submitOp:w},...a):w(),i.nextOp?new ot:new Error(\"No operation was submitted by a tool\")},i={nextOp:void 0};return[{waitForEvent:o((u,f)=>{const a={ttl:Ke(f.timeout)};return f!=null&&f.match?a.match=`event.${f.match} == async.${f.match}`:f!=null&&f.if&&(a.match=f.if),{op:ve.WaitForEvent,name:u,opts:a}}),run:o(u=>({op:ve.RunStep,name:u}),({submitOp:u},f,a)=>{u(a())}),sleep:o(u=>({op:ve.Sleep,name:Ke(u)})),sleepUntil:o(u=>({op:ve.Sleep,name:Ke(u)}))},i]},ls=(e,t)=>mr.sha1().update(is({pos:t,op:e.op,name:e.name,opts:e.opts})).digest(\"hex\");var H,me,ye,Be,zr;const Z=class{constructor(t,r,n){X(this,Be);X(this,H,void 0);X(this,me,void 0);X(this,ye,void 0);Ne(this,H,t),Ne(this,me,r),Ne(this,ye,n)}id(t){return O(this,H).id||(O(this,H).id=Ve(this,Be,zr).call(this,t)),O(this,H).id}get name(){return O(this,H).name}getConfig(t,r){const n=this.id(r),s=new URL(t.href);return s.searchParams.set(et.FnId,n),s.searchParams.set(et.StepId,Z.stepId),{...O(this,H),id:n,name:this.name,triggers:[O(this,me)],steps:{[Z.stepId]:{id:Z.stepId,name:Z.stepId,runtime:{type:\"http\",url:s.href}}}}}async runFn(t,r){const[n,s]=cs(r),o={...t,tools:n};let i;try{i=await O(this,ye).call(this,o)}catch(c){if(!(c instanceof ot)){if(!s.nextOp)throw c;console.warn(\"An error occurred after submitting a new op. Continuing on.\",c)}}return s.nextOp?[!0,await s.nextOp]:[!1,i]}};let Q=Z;H=new WeakMap,me=new WeakMap,ye=new WeakMap,Be=new WeakSet,zr=function(t){return Cn([t||\"\",O(this,H).name].join(\"-\"))},J(Q,\"stepId\",\"step\");var ze,Fr;class us{constructor({name:t,eventKey:r,inngestBaseUrl:n=\"https://inn.gs/\"}){X(this,ze);J(this,\"name\");J(this,\"eventKey\");J(this,\"inngestBaseUrl\");J(this,\"inngestApiUrl\");J(this,\"headers\");if(!t)throw new Error(\"A name must be passed to create an Inngest instance.\");if(this.name=t,this.eventKey=r||lt()&&process.env[_r.EventKey]||\"\",this.inngestBaseUrl=new URL(n),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),!r)throw new Error(\"An event key must be passed to create an Inngest instance.\");this.headers={\"Content-Type\":\"application/json\",\"User-Agent\":`InngestJS v${wn}`}}async send(t,r){let n;if(typeof t==\"string\"?n=(Array.isArray(r)?r:r?[r]:[]).map(i=>({...i,name:t})):n=Array.isArray(t)?t:t?[t]:[],!n.length)throw new Error(\"Provided a name but no events to send; make sure to send an event payload too\");let s=this.inngestApiUrl.href;if(!yn()){const i=mn();(i!==void 0||await bn(i,fetch))&&(s=vr(i,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:\"POST\",body:JSON.stringify(n),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await Ve(this,ze,Fr).call(this,o)}createStepFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{event:r},n)}createFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{event:r},n)}createScheduledFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{cron:r},n)}}ze=new WeakSet,Fr=async function(t){let r=\"Unknown error\";switch(t.status){case 401:r=\"Event key Not Found\";break;case 400:r=\"Cannot process event payload\";break;case 403:r=\"Forbidden\";break;case 404:r=\"Event key not found\";break;case 406:r=`${JSON.stringify(await t.json())}`;break;case 409:case 412:r=\"Event transformation failed\";break;case 413:r=\"Event payload too large\";break;case 500:r=\"Internal server error\";break}return new Error(`Inngest API Error: ${t.status} ${r}`)};const W=e=>Object.entries(e).reduce((r,[n,s])=>s?[...r,n]:r,[]).filter(Boolean).join(\" \").trim(),Or=({children:e,onClick:t,type:r,disabled:n,className:s=\"\"})=>l(\"button\",{className:`${n?\"bg-slate-400\":\"bg-blue-500\"} text-white px-5 py-1 font-semibold rounded ${s}`,onClick:t,type:r,disabled:n,children:e}),fs=()=>fr(async()=>{const t=new URL(window.location.href);t.searchParams.set(\"introspect\",\"true\");const n=await(await fetch(t)).json();return n.functions=n.functions.map(s=>{var i;const o=new Set;return((i=s.triggers)==null?void 0:i.length)<1?o.add(be.NoTriggers):s.triggers.some(u=>!(u!=null&&u.event)&&!(u!=null&&u.cron))&&o.add(be.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var u,f;const i=Boolean((u=s.errors)==null?void 0:u.size),c=Boolean((f=o.errors)==null?void 0:f.size);return i!==c?i?-1:1:s.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(ct.NoSigningKey),n}),hs=\"http://localhost:8288\",Mr=nr({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ut=Mr.Consumer,_s=({children:e})=>{const{value:t,retry:r,loading:n,error:s}=fs(),o=new URL((t==null?void 0:t.devServerURL)||hs);o.pathname=\"dev\";const{value:i,retry:c}=fr(async()=>await(await fetch(o)).json());hr(c,1e3);const u=I(()=>Boolean(i),[i]);return l(Mr.Provider,{value:{value:t,retry:r,loading:n,error:s,dev:i,devConnected:u},children:e})},ds=({value:e,label:t,onChange:r,className:n=\"\",disabled:s})=>l(k,{children:[t?l(vs,{children:t}):null,l(\"textarea\",{disabled:s,class:W({\"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500\":!0,[n]:!0}),value:e,onChange:o=>r==null?void 0:r(o.currentTarget.value)})]}),vs=({children:e})=>l(\"label\",{class:\"font-semibold text-sm\",children:e}),Wr=nr({push:e=>()=>{},remove:e=>{}}),ps=(e,t)=>{switch(t.type){case\"add\":return e.find(r=>r.id===t.toast.id)?e:e.concat([{...t.toast}]);case\"remove\":return e.filter(r=>r.id!==t.id)}},xs=({children:e})=>{const[t,r]=sr(ps,[]),n=o=>r({type:\"remove\",id:o}),s=o=>{const i=Math.random().toString(16);return r({type:\"add\",toast:{...o,id:o.id||i}}),()=>n(i)};return l(Wr.Provider,{value:{push:s,remove:n},children:[l(\"div\",{className:\"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8\",children:t.map(o=>l(gs,{toast:o},o.id))}),e]})},ft=()=>Qr(Wr),Gt=5e3,gs=({toast:e})=>{const{remove:t}=ft(),[r,n]=Se(!1),s=e.icon;ge(()=>{setTimeout(()=>{n(!0)},25),setTimeout(()=>{!e.sticky&&n(!1)},e.duration||Gt-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||Gt)},[e.id]);const o=e.message||(e.type===\"error\"?\"Something went wrong\":\"\");let i=\"text-slate-200 bg-gray-800\";switch(e.type){case\"success\":i=\"text-slate-200 bg-green-600\";break;case\"error\":i=\"text-slate-200 bg-red-800\"}return r?l(\"div\",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${i} text-center mb-2`,onClick:()=>t(e.id),children:[s&&l(s,{size:22,style:{marginRight:10}}),l(\"span\",{children:o.replace(\"[GraphQL] \",\"\").replace(\"[Network] \",\"\")})]}):null},bs=e=>l(ut,{children:t=>l(ms,{...e,introspect:t})}),ms=({introspect:e,eventData:t})=>{const{push:r}=ft(),{value:n,devConnected:s}=e,[o,i]=Se(t||JSON.stringify({name:\"\",data:{}},void 0,\" \")),c=I(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),u=async f=>{if(f.preventDefault(),!n||!s){r({type:\"error\",message:\"You must run the dev server to send test events\"});return}await new us({name:n.appName,inngestBaseUrl:n.devServerURL,eventKey:\"dev-server\"}).send(JSON.parse(o)),r({type:\"success\",message:\"Event sent. Check your terminal for logs.\"})};return l(de,{children:l(\"details\",{class:\"border border-gray-200 p-4 flex flex-col cursor-pointer rounded-lg bg-white shadow-lg my-4\",children:[l(\"summary\",{class:\"select-none\",children:\"Send a test event to trigger functions\"}),l(\"div\",{className:\"pt-1 pb-2 text-gray-500 text-sm\",children:\"Send a test event as JSON to the Inngest dev server. This will trigger any functions that run from this event.\"}),l(\"form\",{class:\"flex-1\",onSubmit:u,children:[l(\"div\",{class:\"my-4\",children:l(ds,{label:\"Event data (JSON)\",className:W({\"font-mono overflow-y-scroll h-48 resize-none\":!0,\"bg-red-100\":!c}),value:o,onChange:i})}),l(\"div\",{class:\"flex flex-row justify-end space-x-4 items-center italic\",children:[s?l(\"div\",{class:\"text-gray-500 text-sm\",children:\"Ctrl + Enter to send\"}):l(\"div\",{class:\"text-red-600 text-sm\",children:\"Run the dev server to send test events\"}),l(Or,{type:\"submit\",disabled:!s,children:\"Send event\"})]})]})]})})},ys=({config:e,altBg:t})=>{var c,u;const{push:r}=ft(),n=I(()=>e.triggers[0].cron?\"cron\":\"event\",[e.triggers]),s=I(()=>{const f=e.triggers[0];return f.cron||f.event||\"\"},[e.triggers]),o=I(()=>{var f;return Boolean((f=e.errors)==null?void 0:f.size)},[e.errors]),i=async()=>{const f=new URL(window.location.href);f.searchParams.set(\"fnId\",e.id),f.searchParams.set(\"stepId\",e.steps.step.id),r({type:\"default\",message:\"Scheduled function triggered\"});const a=await fetch(f,{method:\"POST\",body:JSON.stringify({event:{}}),headers:{\"Content-Type\":\"application/json\"}}),h=await a.json(),_=typeof h==\"object\"&&h.status?h.status:a.status;r({type:_===200?\"success\":\"error\",message:`Function complete: ${JSON.stringify(h)}`})};return l(k,{children:[l(\"div\",{class:W({\"w-full grid grid-cols-[1fr_1fr_1fr_100px] p-2 items-center\":!0,\"bg-slate-200/30\":Boolean(t),\"bg-red-400/30\":o}),children:[l(\"div\",{class:\"flex flex-col\",children:l(\"div\",{class:\"font-semibold text-sm\",children:[e.name,\" \",l(\"span\",{class:W({\"uppercase text-xs px-1 py-0.5 rounded\":!0,\"bg-blue-300/30\":n===\"event\",\"bg-green-300/30\":n===\"cron\"}),children:n})]})}),l(\"div\",{children:l(\"code\",{class:W({\"text-xs text-gray-500\":!0,\"bg-white\":o,\"bg-gray-500/10\":!o}),children:e.id})}),l(\"span\",{children:s?l(\"code\",{children:s}):l(\"code\",{class:\"bg-white\",children:\"Invalid or no expression\"})}),l(\"div\",{children:n===\"cron\"&&l(Or,{className:\"text-sm\",onClick:i,children:\"Trigger\"})})]}),o?l(\"div\",{class:\"w-full p-2 bg-red-400/30\",children:(u=Array.from((c=e.errors)!=null?c:[]))==null?void 0:u.map(f=>l(\"div\",{class:\"bg-red-100 border border-red-400 rounded p-2\",children:xn[f]}))}):null]})},ws=({class:e=\"\"})=>l(\"svg\",{class:W({\"animate-spin h-5 w-5 text-slate-800\":!0,[e]:!0}),xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",children:[l(\"circle\",{class:\"opacity-25\",cx:\"12\",cy:\"12\",r:\"10\",stroke:\"currentColor\",\"stroke-width\":\"4\"}),l(\"path\",{class:\"opacity-75\",fill:\"currentColor\",d:\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"})]}),Ss=()=>l(ut,{children:e=>l(ks,{introspect:e})}),ks=({introspect:e})=>{var a;const{loading:t,value:r,retry:n,error:s}=e,[o,i]=Se(!1);hr(n,5e3);const c=I(()=>(r==null?void 0:r.functions.some(h=>{var _;return(_=h.errors)==null?void 0:_.size}))||!1,[r==null?void 0:r.functions]),u=I(()=>Boolean(r==null?void 0:r.globalErrors.size),[r==null?void 0:r.globalErrors]),f=I(()=>[{title:\"\\u{1F9D1}\\u200D\\u{1F4BB} Writing functions\",description:\"Get started writing your serverless background functions and scheduled tasks.\",href:\"https://www.inngest.com/docs/functions\"},{title:\"\\u{1F4E2} Sending events\",description:\"Learn how to trigger your functions by sending events from your code.\",href:\"https://www.inngest.com/docs/events\"},{title:\"\\u{1F6A2} Deploying\",description:\"Deploy functions to your platform of choice.\",href:\"https://www.inngest.com/docs/deploy\"}],[]);return t&&!r&&!s?l(\"div\",{class:\"flex-1 w-full h-full flex items-center justify-center\",children:l(ws,{class:\"h-8 w-8\"})}):l(k,{children:[l(\"div\",{class:\"flex flex-col gap-4 py-20 bg-gray-100\",children:l(de,{children:[l(\"div\",{class:\"text-3xl\",children:c?\"\\u274C Your functions are not set up correctly\":r!=null&&r.functions.length?\"\\u2705 Your functions are set up correctly\":\"\\u274E No functions detected\"}),l(\"div\",{class:\"ml-12 opacity-75\",children:l(\"code\",{children:[\"inngest-\",r==null?void 0:r.sdk]})})]})}),l(\"div\",{children:l(de,{children:l(\"div\",{class:\"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4\",children:f.map(h=>l(\"a\",{href:h.href,target:\"_blank\",class:\"bg-white rounded border-1 border-black shadow-xl p-4 flex flex-col space-y-2 transition-all hover:scale-105 hover:shadow-2xl no-underline\",children:[l(\"div\",{class:\"font-semibold text-lg\",children:h.title}),l(\"div\",{class:\"text-sm\",children:h.description}),l(\"div\",{class:\"flex-1\"}),l(\"div\",{class:\"text-right font-semibold text-purple-500\",children:\"Explore \\u2192\"})]}))})})}),u?l(\"div\",{class:\"mt-8\",children:l(de,{children:l(\"div\",{class:\"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2\",children:[l(\"div\",{class:\"font-semibold text-yellow-700 text-lg\",children:\"Your handler configuration might be missing some options\"}),Array.from((a=r==null?void 0:r.globalErrors)!=null?a:[]).map(h=>l(\"div\",{class:\"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800\",children:gn[h]}))]})})}):null,l(bs,{expanded:o,onToggle:()=>i(h=>!h)}),l(\"div\",{class:\"w-full flex items-center justify-center mt-8 p-4\",children:l(de,{children:[l(\"div\",{class:\"flex flex-row justify-between\",children:[l(\"div\",{class:\"flex flex-row space-x-2 items-center justify-center\",children:[l(\"div\",{class:\"font-semibold\",children:[\"Found \",(r==null?void 0:r.functions.length)||0,\" functions\"]}),l(\"div\",{children:l(\"div\",{class:\"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase\",onClick:()=>n(),children:\"Refresh\"})})]}),l(\"a\",{class:\"mb-8\",href:\"#\",children:\"Don't see your function?\"})]}),r!=null&&r.functions.length?l(\"div\",{class:\"flex flex-col\",children:[l(\"div\",{class:\"w-full grid grid-cols-[1fr_1fr_1fr_100px] font-semibold border-b-2 border-slate-300 pb-1\",children:[l(\"div\",{children:\"Name\"}),l(\"div\",{children:\"ID\"}),l(\"div\",{children:\"Event / Cron\"})]}),r==null?void 0:r.functions.map((h,_)=>l(ys,{config:h,altBg:_%2===0}))]}):l(\"div\",{class:\"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20\",children:[l(\"div\",{class:\"font-semibold\",children:\"No functions found\"}),l(\"div\",{class:\"opacity-75 text-center\",children:[\"We found your handler, but couldn't see any exported functions.\",l(\"br\",{}),\"Check out the\",\" \",l(\"a\",{href:\"https://www.inngest.com/docs/functions\",children:\"Writing functions\"}),\" \",\"guide to get started.\"]})]})]})})]})},$s=({copiable:e,value:t})=>l(\"code\",{class:W({\"flex flex-row space-x-2 items-center justify-center\":!0,\"cursor-pointer\":Boolean(e)}),onClick:e?()=>{navigator.clipboard.writeText(t)}:void 0,children:[l(\"span\",{children:t}),e?l(Es,{}):null]}),Es=()=>l(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[l(\"path\",{d:\"M15 15H20C20.5523 15 21 14.5523 21 14V4C21 3.44772 20.5523 3 20 3L10 3C9.44772 3 9 3.44771 9 4L9 9\",stroke:\"#1e293b\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),l(\"path\",{d:\"M4 21L14 21C14.5523 21 15 20.5523 15 20L15 10C15 9.44772 14.5523 9 14 9L4 9C3.44771 9 3 9.44771 3 10L3 20C3 20.5523 3.44771 21 4 21Z\",stroke:\"#1e293b\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})]}),Ns=\"http://localhost:8288\",As=()=>l(ut,{children:e=>l(\"div\",{class:\"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5\",children:[l(\"div\",{class:\"font-medium text-gray-900 text-xl\",children:\"Inngest SDK\"}),l(\"div\",{class:\"h-6 w-1 bg-gray-300\"}),l(Cs,{introspect:e})]})}),Cs=({introspect:e})=>{const{value:t,devConnected:r}=e,n=new URL((t==null?void 0:t.devServerURL)||Ns);return n.pathname=\"dev\",l(k,{children:[l(\"div\",{class:\"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none\",children:[l(\"div\",{class:\"flex h-4 w-4 relative\",children:[l(\"span\",{class:W({\"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75\":!0,\"bg-green-400\":r,\"bg-red-400\":!r})}),l(\"span\",{class:W({\"relative inline-flex rounded-full h-4 w-4\":!0,\"bg-green-500\":r,\"bg-red-500\":!r})})]}),r?l(\"div\",{children:[\"Connected to \",l(\"code\",{children:\"inngest dev\"}),\" on\",\" \",l(\"code\",{children:[n.hostname,\":\",n.port]})]}):l(\"div\",{children:[\"Not connected to \",l(\"code\",{children:\"inngest dev\"})]})]}),r?null:l(k,{children:[l(\"div\",{className:\"text-sm\",children:\"Run the dev server: \"}),l($s,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function Hs(){return l(xs,{children:l(_s,{children:[l(As,{}),l(Zr,{children:l(Ss,{})})]})})}Yr(l(Hs,{}),document.getElementById(\"app\"));\n\n</script>\n <style>\n*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0px}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-full{height:100%}.h-8{height:2rem}.h-6{height:1.5rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-1{width:.25rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr_100px\\]{grid-template-columns:1fr 1fr 1fr 100px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400\\/30{background-color:#facc154d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-200\\/30{background-color:#e2e8f04d}.bg-red-400\\/30{background-color:#f871714d}.bg-blue-300\\/30{background-color:#93c5fd4d}.bg-green-300\\/30{background-color:#86efac4d}.bg-gray-500\\/10{background-color:#6b72801a}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pt-1{padding-top:.25rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.opacity-25{opacity:.25}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}html,body,#app{height:100%;width:100%;--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem}.dark code{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}a{text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n</style>\n </head>\n <body>\n <div id=\"app\"></div>\n \n </body>\n</html>\n";
1
+ export declare const landing = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Inngest SDK - Your functions</title>\n <script type=\"module\" crossorigin>\nvar Vr=Object.defineProperty;var Gr=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>(Gr(e,typeof t!=\"symbol\"?t+\"\":t,r),r),We=(e,t,r)=>{if(!t.has(e))throw TypeError(\"Cannot \"+r)};var O=(e,t,r)=>(We(e,t,\"read from private field\"),r?r.call(e):t.get(e)),X=(e,t,r)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,r)},Ne=(e,t,r,n)=>(We(e,t,\"write to private field\"),n?n.call(e,r):t.set(e,r),r);var Ve=(e,t,r)=>(We(e,t,\"access private method\"),r);(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const s of document.querySelectorAll('link[rel=\"modulepreload\"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type===\"childList\")for(const i of o.addedNodes)i.tagName===\"LINK\"&&i.rel===\"modulepreload\"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin===\"use-credentials\"?o.credentials=\"include\":s.crossorigin===\"anonymous\"?o.credentials=\"omit\":o.credentials=\"same-origin\",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Fe,v,jt,pe,mt,Kt,Te={},Jt=[],jr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function K(e,t){for(var r in t)e[r]=t[r];return e}function qt(e){var t=e.parentNode;t&&t.removeChild(e)}function Xe(e,t,r){var n,s,o,i={};for(o in t)o==\"key\"?n=t[o]:o==\"ref\"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Fe.call(arguments,2):r),typeof e==\"function\"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return Ie(e,i,n,s,null)}function Ie(e,t,r,n,s){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++jt:s};return s==null&&v.vnode!=null&&v.vnode(o),o}function k(e){return e.children}function M(e,t){this.props=e,this.context=t}function ee(e,t){if(t==null)return e.__?ee(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type==\"function\"?ee(e):null}function Yt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Yt(e)}}function Ze(e){(!e.__d&&(e.__d=!0)&&pe.push(e)&&!Pe.__r++||mt!==v.debounceRendering)&&((mt=v.debounceRendering)||setTimeout)(Pe)}function Pe(){for(var e;Pe.__r=pe.length;)e=pe.sort(function(t,r){return t.__v.__b-r.__v.__b}),pe=[],e.some(function(t){var r,n,s,o,i,c;t.__d&&(i=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(s=K({},o)).__v=o.__v+1,st(c,o,s,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[i]:null,n,i==null?ee(o):i,o.__h),er(n,o),o.__e!=i&&Yt(o)))})}function Xt(e,t,r,n,s,o,i,c,u,f){var a,h,_,d,p,w,g,b=n&&n.__k||Jt,S=b.length;for(r.__k=[],a=0;a<t.length;a++)if((d=r.__k[a]=(d=t[a])==null||typeof d==\"boolean\"?null:typeof d==\"string\"||typeof d==\"number\"||typeof d==\"bigint\"?Ie(null,d,null,null,d):Array.isArray(d)?Ie(k,{children:d},null,null,null):d.__b>0?Ie(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(_=b[a])===null||_&&d.key==_.key&&d.type===_.type)b[a]=void 0;else for(h=0;h<S;h++){if((_=b[h])&&d.key==_.key&&d.type===_.type){b[h]=void 0;break}_=null}st(e,d,_=_||Te,s,o,i,c,u,f),p=d.__e,(h=d.ref)&&_.ref!=h&&(g||(g=[]),_.ref&&g.push(_.ref,null,d),g.push(h,d.__c||p,d)),p!=null?(w==null&&(w=p),typeof d.type==\"function\"&&d.__k===_.__k?d.__d=u=Zt(d,u,e):u=Qt(e,d,_,b,p,u),typeof r.type==\"function\"&&(r.__d=u)):u&&_.__e==u&&u.parentNode!=e&&(u=ee(_))}for(r.__e=w,a=S;a--;)b[a]!=null&&(typeof r.type==\"function\"&&b[a].__e!=null&&b[a].__e==r.__d&&(r.__d=ee(n,a+1)),rr(b[a],b[a]));if(g)for(a=0;a<g.length;a++)tr(g[a],g[++a],g[++a])}function Zt(e,t,r){for(var n,s=e.__k,o=0;s&&o<s.length;o++)(n=s[o])&&(n.__=e,t=typeof n.type==\"function\"?Zt(n,t,r):Qt(r,n,n,s,n.__e,t));return t}function De(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(Array.isArray(e)?e.some(function(r){De(r,t)}):t.push(e)),t}function Qt(e,t,r,n,s,o){var i,c,u;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(r==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),i=null;else{for(c=o,u=0;(c=c.nextSibling)&&u<n.length;u+=2)if(c==s)break e;e.insertBefore(s,o),i=o}return i!==void 0?i:s.nextSibling}function Kr(e,t,r,n,s){var o;for(o in r)o===\"children\"||o===\"key\"||o in t||Re(e,o,null,r[o],n);for(o in t)s&&typeof t[o]!=\"function\"||o===\"children\"||o===\"key\"||o===\"value\"||o===\"checked\"||r[o]===t[o]||Re(e,o,t[o],r[o],n)}function yt(e,t,r){t[0]===\"-\"?e.setProperty(t,r):e[t]=r==null?\"\":typeof r!=\"number\"||jr.test(t)?r:r+\"px\"}function Re(e,t,r,n,s){var o;e:if(t===\"style\")if(typeof r==\"string\")e.style.cssText=r;else{if(typeof n==\"string\"&&(e.style.cssText=n=\"\"),n)for(t in n)r&&t in r||yt(e.style,t,\"\");if(r)for(t in r)n&&r[t]===n[t]||yt(e.style,t,r[t])}else if(t[0]===\"o\"&&t[1]===\"n\")o=t!==(t=t.replace(/Capture$/,\"\")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?St:wt,o):e.removeEventListener(t,o?St:wt,o);else if(t!==\"dangerouslySetInnerHTML\"){if(s)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!==\"href\"&&t!==\"list\"&&t!==\"form\"&&t!==\"tabIndex\"&&t!==\"download\"&&t in e)try{e[t]=r==null?\"\":r;break e}catch{}typeof r==\"function\"||(r!=null&&(r!==!1||t[0]===\"a\"&&t[1]===\"r\")?e.setAttribute(t,r):e.removeAttribute(t))}}function wt(e){this.l[e.type+!1](v.event?v.event(e):e)}function St(e){this.l[e.type+!0](v.event?v.event(e):e)}function st(e,t,r,n,s,o,i,c,u){var f,a,h,_,d,p,w,g,b,S,z,F,A,y=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(f=v.__b)&&f(t);try{e:if(typeof y==\"function\"){if(g=t.props,b=(f=y.contextType)&&n[f.__c],S=f?b?b.props.value:f.__:n,r.__c?w=(a=t.__c=r.__c).__=a.__E:(\"prototype\"in y&&y.prototype.render?t.__c=a=new y(g,S):(t.__c=a=new M(g,S),a.constructor=y,a.render=qr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=S,a.__n=n,h=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),y.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=K({},a.__s)),K(a.__s,y.getDerivedStateFromProps(g,a.__s))),_=a.props,d=a.state,h)y.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(y.getDerivedStateFromProps==null&&g!==_&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,S),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,S)===!1||t.__v===r.__v){a.props=g,a.state=a.__s,t.__v!==r.__v&&(a.__d=!1),a.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(C){C&&(C.__=t)}),a.__h.length&&i.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,S),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(_,d,p)})}if(a.context=S,a.props=g,a.__v=t,a.__P=e,z=v.__r,F=0,\"prototype\"in y&&y.prototype.render)a.state=a.__s,a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context);else do a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++F<25);a.state=a.__s,a.getChildContext!=null&&(n=K(K({},n),a.getChildContext())),h||a.getSnapshotBeforeUpdate==null||(p=a.getSnapshotBeforeUpdate(_,d)),A=f!=null&&f.type===k&&f.key==null?f.props.children:f,Xt(e,Array.isArray(A)?A:[A],t,r,n,s,o,i,c,u),a.base=t.__e,t.__h=null,a.__h.length&&i.push(a),w&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Jr(r.__e,t,r,n,s,o,i,u);(f=v.diffed)&&f(t)}catch(C){t.__v=null,(u||o!=null)&&(t.__e=c,t.__h=!!u,o[o.indexOf(c)]=null),v.__e(C,t,r)}}function er(e,t){v.__c&&v.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){v.__e(n,r.__v)}})}function Jr(e,t,r,n,s,o,i,c){var u,f,a,h=r.props,_=t.props,d=t.type,p=0;if(d===\"svg\"&&(s=!0),o!=null){for(;p<o.length;p++)if((u=o[p])&&\"setAttribute\"in u==!!d&&(d?u.localName===d:u.nodeType===3)){e=u,o[p]=null;break}}if(e==null){if(d===null)return document.createTextNode(_);e=s?document.createElementNS(\"http://www.w3.org/2000/svg\",d):document.createElement(d,_.is&&_),o=null,c=!1}if(d===null)h===_||c&&e.data===_||(e.data=_);else{if(o=o&&Fe.call(e.childNodes),f=(h=r.props||Te).dangerouslySetInnerHTML,a=_.dangerouslySetInnerHTML,!c){if(o!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(a||f)&&(a&&(f&&a.__html==f.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||\"\"))}if(Kr(e,_,h,s,c),a)t.__k=[];else if(p=t.props.children,Xt(e,Array.isArray(p)?p:[p],t,r,n,s&&d!==\"foreignObject\",o,i,o?o[0]:r.__k&&ee(r,0),c),o!=null)for(p=o.length;p--;)o[p]!=null&&qt(o[p]);c||(\"value\"in _&&(p=_.value)!==void 0&&(p!==e.value||d===\"progress\"&&!p||d===\"option\"&&p!==h.value)&&Re(e,\"value\",p,h.value,!1),\"checked\"in _&&(p=_.checked)!==void 0&&p!==e.checked&&Re(e,\"checked\",p,h.checked,!1))}return e}function tr(e,t,r){try{typeof e==\"function\"?e(t):e.current=t}catch(n){v.__e(n,r)}}function rr(e,t,r){var n,s;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||tr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){v.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&rr(n[s],t,typeof e.type!=\"function\");r||e.__e==null||qt(e.__e),e.__=e.__e=e.__d=void 0}function qr(e,t,r){return this.constructor(e,r)}function Yr(e,t,r){var n,s,o;v.__&&v.__(e,t),s=(n=typeof r==\"function\")?null:r&&r.__k||t.__k,o=[],st(t,e=(!n&&r||t).__k=Xe(k,null,[e]),s||Te,Te,t.ownerSVGElement!==void 0,!n&&r?[r]:s?null:t.firstChild?Fe.call(t.childNodes):null,o,!n&&r?r:s?s.__e:t.firstChild,n),er(o,e)}function nr(e,t){var r={__c:t=\"__cC\"+Kt++,__:e,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(Ze)},this.sub=function(i){s.push(i);var c=i.componentWillUnmount;i.componentWillUnmount=function(){s.splice(s.indexOf(i),1),c&&c.call(i)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Fe=Jt.slice,v={__e:function(e,t,r,n){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,n||{}),i=s.__d),i)return s.__E=s}catch(c){e=c}throw e}},jt=0,M.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=K({},this.state),typeof e==\"function\"&&(e=e(K({},r),this.props)),e&&K(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),Ze(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ze(this))},M.prototype.render=k,pe=[],Pe.__r=0,Kt=0;var Xr=0;function l(e,t,r,n,s){var o,i,c={};for(i in t)i==\"ref\"?o=t[i]:c[i]=t[i];var u={type:e,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Xr,__source:s,__self:n};if(typeof e==\"function\"&&(o=e.defaultProps))for(i in o)c[i]===void 0&&(c[i]=o[i]);return v.vnode&&v.vnode(u),u}const Zr=({children:e})=>l(\"div\",{class:\"w-full h-full\",children:e}),de=({children:e})=>l(\"div\",{class:\"w-full flex justify-center\",children:l(\"div\",{class:\"w-[70rem] max-w-full px-8\",children:e})});var we,m,Ge,kt,xe=0,or=[],Le=[],$t=v.__b,Et=v.__r,Nt=v.diffed,At=v.__c,Ct=v.unmount;function Oe(e,t){v.__h&&v.__h(m,e,xe||t),xe=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Le}),r.__[e]}function Se(e){return xe=1,sr(ar,e)}function sr(e,t,r){var n=Oe(we++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ar(void 0,t),function(o){var i=n.__N?n.__N[0]:n.__[0],c=n.t(i,o);i!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,i,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(a){return a.__c});if(u.every(function(a){return!a.__N}))return!s||s.call(this,o,i,c);var f=!1;return u.forEach(function(a){if(a.__N){var h=a.__[0];a.__=a.__N,a.__N=void 0,h!==a.__[0]&&(f=!0)}}),!!f&&(!s||s.call(this,o,i,c))}}return n.__N||n.__}function ge(e,t){var r=Oe(we++,3);!v.__s&&ir(r.__H,t)&&(r.__=e,r.i=t,m.__H.__h.push(r))}function it(e){return xe=5,I(function(){return{current:e}},[])}function I(e,t){var r=Oe(we++,7);return ir(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function at(e,t){return xe=8,I(function(){return e},t)}function Qr(e){var t=m.context[e.__c],r=Oe(we++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(m)),t.props.value):e.__}function en(){for(var e;e=or.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ue),e.__H.__h.forEach(Qe),e.__H.__h=[]}catch(t){e.__H.__h=[],v.__e(t,e.__v)}}v.__b=function(e){typeof e.type!=\"function\"||e.o||e.type===k?e.o||(e.o=e.__&&e.__.o?e.__.o:\"\"):e.o=(e.__&&e.__.o?e.__.o:\"\")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,$t&&$t(e)},v.__r=function(e){Et&&Et(e),we=0;var t=(m=e.__c).__H;t&&(Ge===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Le,r.__N=r.i=void 0})):(t.__h.forEach(Ue),t.__h.forEach(Qe),t.__h=[])),Ge=m},v.diffed=function(e){Nt&&Nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(or.push(t)!==1&&kt===v.requestAnimationFrame||((kt=v.requestAnimationFrame)||tn)(en)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Le&&(r.__=r.__V),r.i=void 0,r.__V=Le})),Ge=m=null},v.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ue),r.__h=r.__h.filter(function(n){return!n.__||Qe(n)})}catch(n){t.some(function(s){s.__h&&(s.__h=[])}),t=[],v.__e(n,r.__v)}}),At&&At(e,t)},v.unmount=function(e){Ct&&Ct(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ue(n)}catch(s){t=s}}),r.__H=void 0,t&&v.__e(t,r.__v))};var Ht=typeof requestAnimationFrame==\"function\";function tn(e){var t,r=function(){clearTimeout(n),Ht&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ht&&(t=requestAnimationFrame(r))}function Ue(e){var t=m,r=e.__c;typeof r==\"function\"&&(e.__c=void 0,r()),m=t}function Qe(e){var t=m;e.__c=e.__(),m=t}function ir(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ar(e,t){return typeof t==\"function\"?t(e):t}function rn(e,t){for(var r in t)e[r]=t[r];return e}function It(e,t){for(var r in e)if(r!==\"__source\"&&!(r in t))return!0;for(var n in t)if(n!==\"__source\"&&e[n]!==t[n])return!0;return!1}function Lt(e){this.props=e}(Lt.prototype=new M).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Ut=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ut&&Ut(e)};var nn=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),s.__c(e,t)}nn(e,t,r,n)};var Tt=v.unmount;function cr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c==\"function\"&&n.__c()}),e.__c.__H=null),(e=rn({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return cr(n,t,r)})),e}function lr(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return lr(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function je(){this.__u=0,this.t=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ae(){this.u=null,this.o=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Tt&&Tt(e)},(je.prototype=new M).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var s=ur(n.__v),o=!1,i=function(){o||(o=!0,r.__R=null,s?s(c):c())};r.__R=i;var c=function(){if(!--n.__u){if(n.state.__a){var f=n.state.__a;n.__v.__k[0]=lr(f,f.__c.__P,f.__c.__O)}var a;for(n.setState({__a:n.__b=null});a=n.t.pop();)a.forceUpdate()}},u=t.__h===!0;n.__u++||u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},je.prototype.componentWillUnmount=function(){this.t=[]},je.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement(\"div\"),n=this.__v.__k[0].__c;this.__v.__k[0]=cr(this.__b,r,n.__O=n.__P)}this.__b=null}var s=t.__a&&Xe(k,null,e.fallback);return s&&(s.__h=null),[Xe(k,null,t.__a?null:e.children),s]};var Pt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==\"t\"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(Ae.prototype=new M).__a=function(e){var t=this,r=ur(t.__v),n=t.o.get(e);return n[0]++,function(s){var o=function(){t.props.revealOrder?(n.push(s),Pt(t,e,n)):s()};r?r(o):o()}},Ae.prototype.render=function(e){this.u=null,this.o=new Map;var t=De(e.children);e.revealOrder&&e.revealOrder[0]===\"b\"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Pt(e,r,t)})};var on=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,sn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=typeof document<\"u\",cn=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Dt=v.event;function ln(){}function un(){return this.cancelBubble}function fn(){return this.defaultPrevented}v.event=function(e){return Dt&&(e=Dt(e)),e.persist=ln,e.isPropagationStopped=un,e.isDefaultPrevented=fn,e.nativeEvent=e};var Rt={configurable:!0,get:function(){return this.class}},Bt=v.vnode;v.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t==\"string\"){var s=t.indexOf(\"-\")===-1;for(var o in n={},r){var i=r[o];an&&o===\"children\"&&t===\"noscript\"||o===\"value\"&&\"defaultValue\"in r&&i==null||(o===\"defaultValue\"&&\"value\"in r&&r.value==null?o=\"value\":o===\"download\"&&i===!0?i=\"\":/ondoubleclick/i.test(o)?o=\"ondblclick\":/^onchange(textarea|input)/i.test(o+t)&&!cn(r.type)?o=\"oninput\":/^onfocus$/i.test(o)?o=\"onfocusin\":/^onblur$/i.test(o)?o=\"onfocusout\":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():s&&sn.test(o)?o=o.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o=\"oninputCapture\")),n[o]=i)}t==\"select\"&&n.multiple&&Array.isArray(n.value)&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t==\"select\"&&n.defaultValue!=null&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,r.class!=r.className&&(Rt.enumerable=\"className\"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,\"className\",Rt))}e.$$typeof=on,Bt&&Bt(e)};var zt=v.__r;v.__r=function(e){zt&&zt(e),e.__c};var te=function(){return te=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},te.apply(this,arguments)};function Ft(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var o=arguments[t],i=0,c=o.length;i<c;i++,s++)n[s]=o[i];return n}function hn(){var e=it(!1),t=at(function(){return e.current},[]);return ge(function(){return e.current=!0,function(){e.current=!1}},[]),t}function _n(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=it(0),s=hn(),o=Se(r),i=o[0],c=o[1],u=at(function(){for(var f=[],a=0;a<arguments.length;a++)f[a]=arguments[a];var h=++n.current;return i.loading||c(function(_){return te(te({},_),{loading:!0})}),e.apply(void 0,f).then(function(_){return s()&&h===n.current&&c({value:_,loading:!1}),_},function(_){return s()&&h===n.current&&c({error:_,loading:!1}),_})},t);return[i,u]}function dn(e,t){t===void 0&&(t=[]);var r=_n(e,t,{loading:!0}),n=r[0],s=r[1];return ge(function(){s()},[s]),n}var vn=function(e,t){t===void 0&&(t=[]);var r=Se(0),n=r[0],s=r[1],o=dn(e,Ft(t,[n])),i=o.loading,c=at(function(){i||s(function(u){return u+1})},Ft(t,[i]));return te(te({},o),{retry:c})};const fr=vn;var pn=function(e,t){var r=it(function(){});ge(function(){r.current=e}),ge(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const hr=pn;var ct=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(ct||{}),be=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(be||{});const xn={[be.EmptyTrigger]:l(k,{children:\"One or more triggers seems invalid; it has no event or cron definition. Make sure you've correctly used the function creation methods.\"}),[be.NoTriggers]:l(k,{children:\"Can't find any triggers for this function, such as an event or a cron definition. Make sure you've correctly used the function creation methods.\"})},gn={[ct.NoSigningKey]:l(\"div\",{class:\"flex flex-col space-y-2\",children:[l(\"div\",{class:\"font-semibold\",children:\"Could not find signing key\"}),l(\"div\",{children:[\"A signing key is required to communicate with Inngest securely. We weren't passed one when calling \",l(\"code\",{children:\"serve()\"}),\" and couldn't find it in the recommended \",l(\"code\",{children:\"INNGEST_SIGNING_KEY\"}),\" environment variable.\"]}),l(\"div\",{children:[\"You can find your signing key in the\",\" \",l(\"a\",{href:\"https://app.inngest.com/secrets\",target:\"_blank\",children:\"Inngest Dashboard - Secrets section.\"})]})]})};var et=(e=>(e.FnId=\"fnId\",e.StepId=\"stepId\",e.Introspect=\"introspect\",e))(et||{}),_r=(e=>(e.SigningKey=\"INNGEST_SIGNING_KEY\",e.EventKey=\"INNGEST_EVENT_KEY\",e.LandingPage=\"INNGEST_LANDING_PAGE\",e.DevServerUrl=\"INNGEST_DEVSERVER_URL\",e))(_r||{});const dr=\"http://127.0.0.1:8288/\",bn=async(e=dr,t)=>{try{const r=vr(e,\"/dev\");return await(await t(r.toString())).json(),!0}catch{return!1}},vr=(e=dr,t=\"\")=>new URL(t,e.includes(\"://\")?e:`http://${e}`),mn=()=>(lt()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),yn=()=>(lt()?[\"production\",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes(\"production\"),lt=()=>typeof process<\"u\"&&\"env\"in process,wn=\"0.8.4\";var re=1e3,ne=re*60,oe=ne*60,q=oe*24,Sn=q*7,kn=q*365.25,$n=function(e,t){t=t||{};var r=typeof e;if(r===\"string\"&&e.length>0)return En(e);if(r===\"number\"&&isFinite(e))return t.long?An(e):Nn(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function En(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||\"ms\").toLowerCase();switch(n){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*kn;case\"weeks\":case\"week\":case\"w\":return r*Sn;case\"days\":case\"day\":case\"d\":return r*q;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*oe;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*ne;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*re;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function Nn(e){var t=Math.abs(e);return t>=q?Math.round(e/q)+\"d\":t>=oe?Math.round(e/oe)+\"h\":t>=ne?Math.round(e/ne)+\"m\":t>=re?Math.round(e/re)+\"s\":e+\"ms\"}function An(e){var t=Math.abs(e);return t>=q?Ce(e,t,q,\"day\"):t>=oe?Ce(e,t,oe,\"hour\"):t>=ne?Ce(e,t,ne,\"minute\"):t>=re?Ce(e,t,re,\"second\"):e+\" ms\"}function Ce(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+\" \"+n+(s?\"s\":\"\")}const Cn=e=>{const t=\"-\";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)},Hn=1,pr=Hn*1e3,xr=pr*60,gr=xr*60,br=gr*24,In=br*7,Ln=[[\"w\",In],[\"d\",br],[\"h\",gr],[\"m\",xr],[\"s\",pr]],Ke=(e,t=new Date)=>{let r=e;if(typeof r==\"string\"||typeof r==\"number\"){const i=typeof r==\"string\"?$n(r):r;r=new Date(Date.now()+i)}if(t.setMilliseconds(0),r.setMilliseconds(0),!!isNaN(r.getTime()))throw new Error(\"Invalid date given to convert to time string\");const s=r.getTime()-t.getTime(),[,o]=Ln.reduce(([i,c],[u,f])=>{const a=Math.floor(i/f);return a>0?[i%f,`${c}${a}${u}`]:[i,c]},[s,\"\"]);return o};var mr={},x={},ke=yr;function yr(e,t){if(!e)throw new Error(t||\"Assertion failed\")}yr.equal=function(t,r,n){if(t!=r)throw new Error(n||\"Assertion failed: \"+t+\" != \"+r)};var tt={exports:{}};typeof Object.create==\"function\"?tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var Un=ke,Tn=tt.exports;x.inherits=Tn;function Pn(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function Dn(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e==\"string\")if(t){if(t===\"hex\")for(e=e.replace(/[^a-z0-9]+/ig,\"\"),e.length%2!==0&&(e=\"0\"+e),s=0;s<e.length;s+=2)r.push(parseInt(e[s]+e[s+1],16))}else for(var n=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):Pn(e,s)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(s=0;s<e.length;s++)r[s]=e[s]|0;return r}x.toArray=Dn;function Rn(e){for(var t=\"\",r=0;r<e.length;r++)t+=Sr(e[r].toString(16));return t}x.toHex=Rn;function wr(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}x.htonl=wr;function Bn(e,t){for(var r=\"\",n=0;n<e.length;n++){var s=e[n];t===\"little\"&&(s=wr(s)),r+=kr(s.toString(16))}return r}x.toHex32=Bn;function Sr(e){return e.length===1?\"0\"+e:e}x.zero2=Sr;function kr(e){return e.length===7?\"0\"+e:e.length===6?\"00\"+e:e.length===5?\"000\"+e:e.length===4?\"0000\"+e:e.length===3?\"00000\"+e:e.length===2?\"000000\"+e:e.length===1?\"0000000\"+e:e}x.zero8=kr;function zn(e,t,r,n){var s=r-t;Un(s%4===0);for(var o=new Array(s/4),i=0,c=t;i<o.length;i++,c+=4){var u;n===\"big\"?u=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:u=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[i]=u>>>0}return o}x.join32=zn;function Fn(e,t){for(var r=new Array(e.length*4),n=0,s=0;n<e.length;n++,s+=4){var o=e[n];t===\"big\"?(r[s]=o>>>24,r[s+1]=o>>>16&255,r[s+2]=o>>>8&255,r[s+3]=o&255):(r[s+3]=o>>>24,r[s+2]=o>>>16&255,r[s+1]=o>>>8&255,r[s]=o&255)}return r}x.split32=Fn;function On(e,t){return e>>>t|e<<32-t}x.rotr32=On;function Mn(e,t){return e<<t|e>>>32-t}x.rotl32=Mn;function Wn(e,t){return e+t>>>0}x.sum32=Wn;function Vn(e,t,r){return e+t+r>>>0}x.sum32_3=Vn;function Gn(e,t,r,n){return e+t+r+n>>>0}x.sum32_4=Gn;function jn(e,t,r,n,s){return e+t+r+n+s>>>0}x.sum32_5=jn;function Kn(e,t,r,n){var s=e[t],o=e[t+1],i=n+o>>>0,c=(i<n?1:0)+r+s;e[t]=c>>>0,e[t+1]=i}x.sum64=Kn;function Jn(e,t,r,n){var s=t+n>>>0,o=(s<t?1:0)+e+r;return o>>>0}x.sum64_hi=Jn;function qn(e,t,r,n){var s=t+n;return s>>>0}x.sum64_lo=qn;function Yn(e,t,r,n,s,o,i,c){var u=0,f=t;f=f+n>>>0,u+=f<t?1:0,f=f+o>>>0,u+=f<o?1:0,f=f+c>>>0,u+=f<c?1:0;var a=e+r+s+i+u;return a>>>0}x.sum64_4_hi=Yn;function Xn(e,t,r,n,s,o,i,c){var u=t+n+o+c;return u>>>0}x.sum64_4_lo=Xn;function Zn(e,t,r,n,s,o,i,c,u,f){var a=0,h=t;h=h+n>>>0,a+=h<t?1:0,h=h+o>>>0,a+=h<o?1:0,h=h+c>>>0,a+=h<c?1:0,h=h+f>>>0,a+=h<f?1:0;var _=e+r+s+i+u+a;return _>>>0}x.sum64_5_hi=Zn;function Qn(e,t,r,n,s,o,i,c,u,f){var a=t+n+o+c+f;return a>>>0}x.sum64_5_lo=Qn;function eo(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}x.rotr64_hi=eo;function to(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.rotr64_lo=to;function ro(e,t,r){return e>>>r}x.shr64_hi=ro;function no(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.shr64_lo=no;var ce={},Ot=x,oo=ke;function Me(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=\"big\",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ce.BlockHash=Me;Me.prototype.update=function(t,r){if(t=Ot.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Ot.join32(t,0,t.length-n,this.endian);for(var s=0;s<t.length;s+=this._delta32)this._update(t,s,s+this._delta32)}return this};Me.prototype.digest=function(t){return this.update(this._pad()),oo(this.pending===null),this._digest(t)};Me.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,s=new Array(n+this.padLength);s[0]=128;for(var o=1;o<n;o++)s[o]=0;if(t<<=3,this.endian===\"big\"){for(var i=8;i<this.padLength;i++)s[o++]=0;s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=t>>>24&255,s[o++]=t>>>16&255,s[o++]=t>>>8&255,s[o++]=t&255}else for(s[o++]=t&255,s[o++]=t>>>8&255,s[o++]=t>>>16&255,s[o++]=t>>>24&255,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,i=8;i<this.padLength;i++)s[o++]=0;return s};var le={},B={},so=x,L=so.rotr32;function io(e,t,r,n){if(e===0)return $r(t,r,n);if(e===1||e===3)return Nr(t,r,n);if(e===2)return Er(t,r,n)}B.ft_1=io;function $r(e,t,r){return e&t^~e&r}B.ch32=$r;function Er(e,t,r){return e&t^e&r^t&r}B.maj32=Er;function Nr(e,t,r){return e^t^r}B.p32=Nr;function ao(e){return L(e,2)^L(e,13)^L(e,22)}B.s0_256=ao;function co(e){return L(e,6)^L(e,11)^L(e,25)}B.s1_256=co;function lo(e){return L(e,7)^L(e,18)^e>>>3}B.g0_256=lo;function uo(e){return L(e,17)^L(e,19)^e>>>10}B.g1_256=uo;var se=x,fo=ce,ho=B,Je=se.rotl32,he=se.sum32,_o=se.sum32_5,vo=ho.ft_1,Ar=fo.BlockHash,po=[1518500249,1859775393,2400959708,3395469782];function P(){if(!(this instanceof P))return new P;Ar.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}se.inherits(P,Ar);var xo=P;P.blockSize=512;P.outSize=160;P.hmacStrength=80;P.padLength=64;P.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=Je(n[s-3]^n[s-8]^n[s-14]^n[s-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4];for(s=0;s<n.length;s++){var a=~~(s/20),h=_o(Je(o,5),vo(a,i,c,u),f,n[s],po[a]);f=u,u=c,c=Je(i,30),i=o,o=h}this.h[0]=he(this.h[0],o),this.h[1]=he(this.h[1],i),this.h[2]=he(this.h[2],c),this.h[3]=he(this.h[3],u),this.h[4]=he(this.h[4],f)};P.prototype._digest=function(t){return t===\"hex\"?se.toHex32(this.h,\"big\"):se.split32(this.h,\"big\")};var ie=x,go=ce,ue=B,bo=ke,E=ie.sum32,mo=ie.sum32_4,yo=ie.sum32_5,wo=ue.ch32,So=ue.maj32,ko=ue.s0_256,$o=ue.s1_256,Eo=ue.g0_256,No=ue.g1_256,Cr=go.BlockHash,Ao=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function D(){if(!(this instanceof D))return new D;Cr.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Ao,this.W=new Array(64)}ie.inherits(D,Cr);var Hr=D;D.blockSize=512;D.outSize=256;D.hmacStrength=192;D.padLength=64;D.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=mo(No(n[s-2]),n[s-7],Eo(n[s-15]),n[s-16]);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4],a=this.h[5],h=this.h[6],_=this.h[7];for(bo(this.k.length===n.length),s=0;s<n.length;s++){var d=yo(_,$o(f),wo(f,a,h),this.k[s],n[s]),p=E(ko(o),So(o,i,c));_=h,h=a,a=f,f=E(u,d),u=c,c=i,i=o,o=E(d,p)}this.h[0]=E(this.h[0],o),this.h[1]=E(this.h[1],i),this.h[2]=E(this.h[2],c),this.h[3]=E(this.h[3],u),this.h[4]=E(this.h[4],f),this.h[5]=E(this.h[5],a),this.h[6]=E(this.h[6],h),this.h[7]=E(this.h[7],_)};D.prototype._digest=function(t){return t===\"hex\"?ie.toHex32(this.h,\"big\"):ie.split32(this.h,\"big\")};var rt=x,Ir=Hr;function V(){if(!(this instanceof V))return new V;Ir.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}rt.inherits(V,Ir);var Co=V;V.blockSize=512;V.outSize=224;V.hmacStrength=192;V.padLength=64;V.prototype._digest=function(t){return t===\"hex\"?rt.toHex32(this.h.slice(0,7),\"big\"):rt.split32(this.h.slice(0,7),\"big\")};var $=x,Ho=ce,Io=ke,U=$.rotr64_hi,T=$.rotr64_lo,Lr=$.shr64_hi,Ur=$.shr64_lo,j=$.sum64,qe=$.sum64_hi,Ye=$.sum64_lo,Lo=$.sum64_4_hi,Uo=$.sum64_4_lo,To=$.sum64_5_hi,Po=$.sum64_5_lo,Tr=Ho.BlockHash,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;Tr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Do,this.W=new Array(160)}$.inherits(N,Tr);var Pr=N;N.blockSize=1024;N.outSize=512;N.hmacStrength=192;N.padLength=128;N.prototype._prepareBlock=function(t,r){for(var n=this.W,s=0;s<32;s++)n[s]=t[r+s];for(;s<n.length;s+=2){var o=Ko(n[s-4],n[s-3]),i=Jo(n[s-4],n[s-3]),c=n[s-14],u=n[s-13],f=Go(n[s-30],n[s-29]),a=jo(n[s-30],n[s-29]),h=n[s-32],_=n[s-31];n[s]=Lo(o,i,c,u,f,a,h,_),n[s+1]=Uo(o,i,c,u,f,a,h,_)}};N.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,s=this.h[0],o=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],f=this.h[5],a=this.h[6],h=this.h[7],_=this.h[8],d=this.h[9],p=this.h[10],w=this.h[11],g=this.h[12],b=this.h[13],S=this.h[14],z=this.h[15];Io(this.k.length===n.length);for(var F=0;F<n.length;F+=2){var A=S,y=z,C=Wo(_,d),fe=Vo(_,d),ht=Ro(_,d,p,w,g),_t=Bo(_,d,p,w,g,b),dt=this.k[F],vt=this.k[F+1],pt=n[F],xt=n[F+1],$e=To(A,y,C,fe,ht,_t,dt,vt,pt,xt),Ee=Po(A,y,C,fe,ht,_t,dt,vt,pt,xt);A=Oo(s,o),y=Mo(s,o),C=zo(s,o,i,c,u),fe=Fo(s,o,i,c,u,f);var gt=qe(A,y,C,fe),bt=Ye(A,y,C,fe);S=g,z=b,g=p,b=w,p=_,w=d,_=qe(a,h,$e,Ee),d=Ye(h,h,$e,Ee),a=u,h=f,u=i,f=c,i=s,c=o,s=qe($e,Ee,gt,bt),o=Ye($e,Ee,gt,bt)}j(this.h,0,s,o),j(this.h,2,i,c),j(this.h,4,u,f),j(this.h,6,a,h),j(this.h,8,_,d),j(this.h,10,p,w),j(this.h,12,g,b),j(this.h,14,S,z)};N.prototype._digest=function(t){return t===\"hex\"?$.toHex32(this.h,\"big\"):$.split32(this.h,\"big\")};function Ro(e,t,r,n,s){var o=e&r^~e&s;return o<0&&(o+=4294967296),o}function Bo(e,t,r,n,s,o){var i=t&n^~t&o;return i<0&&(i+=4294967296),i}function zo(e,t,r,n,s){var o=e&r^e&s^r&s;return o<0&&(o+=4294967296),o}function Fo(e,t,r,n,s,o){var i=t&n^t&o^n&o;return i<0&&(i+=4294967296),i}function Oo(e,t){var r=U(e,t,28),n=U(t,e,2),s=U(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Mo(e,t){var r=T(e,t,28),n=T(t,e,2),s=T(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Wo(e,t){var r=U(e,t,14),n=U(e,t,18),s=U(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Vo(e,t){var r=T(e,t,14),n=T(e,t,18),s=T(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Go(e,t){var r=U(e,t,1),n=U(e,t,8),s=Lr(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function jo(e,t){var r=T(e,t,1),n=T(e,t,8),s=Ur(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Ko(e,t){var r=U(e,t,19),n=U(t,e,29),s=Lr(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}function Jo(e,t){var r=T(e,t,19),n=T(t,e,29),s=Ur(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}var nt=x,Dr=Pr;function G(){if(!(this instanceof G))return new G;Dr.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}nt.inherits(G,Dr);var qo=G;G.blockSize=1024;G.outSize=384;G.hmacStrength=192;G.padLength=128;G.prototype._digest=function(t){return t===\"hex\"?nt.toHex32(this.h.slice(0,12),\"big\"):nt.split32(this.h.slice(0,12),\"big\")};le.sha1=xo;le.sha224=Co;le.sha256=Hr;le.sha384=qo;le.sha512=Pr;var Rr={},Y=x,Yo=ce,He=Y.rotl32,Mt=Y.sum32,_e=Y.sum32_3,Wt=Y.sum32_4,Br=Yo.BlockHash;function R(){if(!(this instanceof R))return new R;Br.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=\"little\"}Y.inherits(R,Br);Rr.ripemd160=R;R.blockSize=512;R.outSize=160;R.hmacStrength=192;R.padLength=64;R.prototype._update=function(t,r){for(var n=this.h[0],s=this.h[1],o=this.h[2],i=this.h[3],c=this.h[4],u=n,f=s,a=o,h=i,_=c,d=0;d<80;d++){var p=Mt(He(Wt(n,Vt(d,s,o,i),t[Qo[d]+r],Xo(d)),ts[d]),c);n=c,c=i,i=He(o,10),o=s,s=p,p=Mt(He(Wt(u,Vt(79-d,f,a,h),t[es[d]+r],Zo(d)),rs[d]),_),u=_,_=h,h=He(a,10),a=f,f=p}p=_e(this.h[1],o,h),this.h[1]=_e(this.h[2],i,_),this.h[2]=_e(this.h[3],c,u),this.h[3]=_e(this.h[4],n,f),this.h[4]=_e(this.h[0],s,a),this.h[0]=p};R.prototype._digest=function(t){return t===\"hex\"?Y.toHex32(this.h,\"little\"):Y.split32(this.h,\"little\")};function Vt(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function Xo(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Zo(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var Qo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],es=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ts=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],rs=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ns=x,os=ke;function ae(e,t,r){if(!(this instanceof ae))return new ae(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(ns.toArray(t,r))}var ss=ae;ae.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),os(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};ae.prototype.update=function(t,r){return this.inner.update(t,r),this};ae.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=x,t.common=ce,t.sha=le,t.ripemd=Rr,t.hmac=ss,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(mr);var is=as;function as(e,t){t=t||10;var r=[],n=\"\",s=RegExp;function o(i,c){if(!(c>t)&&!(typeof i==\"function\"||typeof i>\"u\")){if(typeof i!=\"object\"||!i||i instanceof s){n+=i;return}r.indexOf(i)!==-1||c===t||(r.push(i),n+=\"{\",Object.keys(i).forEach(function(u,f,a){if(u.charAt(0)!==\"_\"){var h=typeof i[u];h===\"function\"||h===\"undefined\"||(n+=u,o(i[u],c+1))}}))}}return o(e,0),n}var ve=(e=>(e.WaitForEvent=\"WaitForEvent\",e.RunStep=\"Step\",e.Sleep=\"Sleep\",e))(ve||{});class ot{}const cs=e=>{let t=!0,r=0;const n={...e},s=u=>{const f=n[u.id];return[f!==void 0,f]},o=(u,f)=>(...a)=>{if(!t)throw new ot;const h=u(...a),_={...h,id:ls(h,r++)},[d,p]=s(_);if(d)return p;t=!1;const w=(...g)=>{i.nextOp=new Promise(b=>b(g[0])).then(b=>({..._,...g.length?{data:b}:{}}))};throw f?f({submitOp:w},...a):w(),i.nextOp?new ot:new Error(\"No operation was submitted by a tool\")},i={nextOp:void 0};return[{waitForEvent:o((u,f)=>{const a={ttl:Ke(f.timeout)};return f!=null&&f.match?a.match=`event.${f.match} == async.${f.match}`:f!=null&&f.if&&(a.match=f.if),{op:ve.WaitForEvent,name:u,opts:a}}),run:o(u=>({op:ve.RunStep,name:u}),({submitOp:u},f,a)=>{u(a())}),sleep:o(u=>({op:ve.Sleep,name:Ke(u)})),sleepUntil:o(u=>({op:ve.Sleep,name:Ke(u)}))},i]},ls=(e,t)=>mr.sha1().update(is({pos:t,op:e.op,name:e.name,opts:e.opts})).digest(\"hex\");var H,me,ye,Be,zr;const Z=class{constructor(t,r,n){X(this,Be);X(this,H,void 0);X(this,me,void 0);X(this,ye,void 0);Ne(this,H,t),Ne(this,me,r),Ne(this,ye,n)}id(t){return O(this,H).id||(O(this,H).id=Ve(this,Be,zr).call(this,t)),O(this,H).id}get name(){return O(this,H).name}getConfig(t,r){const n=this.id(r),s=new URL(t.href);return s.searchParams.set(et.FnId,n),s.searchParams.set(et.StepId,Z.stepId),{...O(this,H),id:n,name:this.name,triggers:[O(this,me)],steps:{[Z.stepId]:{id:Z.stepId,name:Z.stepId,runtime:{type:\"http\",url:s.href}}}}}async runFn(t,r){const[n,s]=cs(r),o={...t,tools:n};let i;try{i=await O(this,ye).call(this,o)}catch(c){if(!(c instanceof ot)){if(!s.nextOp)throw c;console.warn(\"An error occurred after submitting a new op. Continuing on.\",c)}}return s.nextOp?[!0,await s.nextOp]:[!1,i]}};let Q=Z;H=new WeakMap,me=new WeakMap,ye=new WeakMap,Be=new WeakSet,zr=function(t){return Cn([t||\"\",O(this,H).name].join(\"-\"))},J(Q,\"stepId\",\"step\");var ze,Fr;class us{constructor({name:t,eventKey:r,inngestBaseUrl:n=\"https://inn.gs/\"}){X(this,ze);J(this,\"name\");J(this,\"eventKey\");J(this,\"inngestBaseUrl\");J(this,\"inngestApiUrl\");J(this,\"headers\");if(!t)throw new Error(\"A name must be passed to create an Inngest instance.\");if(this.name=t,this.eventKey=r||lt()&&process.env[_r.EventKey]||\"\",this.inngestBaseUrl=new URL(n),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),!r)throw new Error(\"An event key must be passed to create an Inngest instance.\");this.headers={\"Content-Type\":\"application/json\",\"User-Agent\":`InngestJS v${wn}`}}async send(t,r){let n;if(typeof t==\"string\"?n=(Array.isArray(r)?r:r?[r]:[]).map(i=>({...i,name:t})):n=Array.isArray(t)?t:t?[t]:[],!n.length)throw new Error(\"Provided a name but no events to send; make sure to send an event payload too\");let s=this.inngestApiUrl.href;if(!yn()){const i=mn();(i!==void 0||await bn(i,fetch))&&(s=vr(i,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:\"POST\",body:JSON.stringify(n),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await Ve(this,ze,Fr).call(this,o)}createStepFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{event:r},n)}createFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{event:r},n)}createScheduledFunction(t,r,n){return new Q(typeof t==\"string\"?{name:t}:t,{cron:r},n)}}ze=new WeakSet,Fr=async function(t){let r=\"Unknown error\";switch(t.status){case 401:r=\"Event key Not Found\";break;case 400:r=\"Cannot process event payload\";break;case 403:r=\"Forbidden\";break;case 404:r=\"Event key not found\";break;case 406:r=`${JSON.stringify(await t.json())}`;break;case 409:case 412:r=\"Event transformation failed\";break;case 413:r=\"Event payload too large\";break;case 500:r=\"Internal server error\";break}return new Error(`Inngest API Error: ${t.status} ${r}`)};const W=e=>Object.entries(e).reduce((r,[n,s])=>s?[...r,n]:r,[]).filter(Boolean).join(\" \").trim(),Or=({children:e,onClick:t,type:r,disabled:n,className:s=\"\"})=>l(\"button\",{className:`${n?\"bg-slate-400\":\"bg-blue-500\"} text-white px-5 py-1 font-semibold rounded ${s}`,onClick:t,type:r,disabled:n,children:e}),fs=()=>fr(async()=>{const t=new URL(window.location.href);t.searchParams.set(\"introspect\",\"true\");const n=await(await fetch(t)).json();return n.functions=n.functions.map(s=>{var i;const o=new Set;return((i=s.triggers)==null?void 0:i.length)<1?o.add(be.NoTriggers):s.triggers.some(u=>!(u!=null&&u.event)&&!(u!=null&&u.cron))&&o.add(be.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var u,f;const i=Boolean((u=s.errors)==null?void 0:u.size),c=Boolean((f=o.errors)==null?void 0:f.size);return i!==c?i?-1:1:s.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(ct.NoSigningKey),n}),hs=\"http://localhost:8288\",Mr=nr({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ut=Mr.Consumer,_s=({children:e})=>{const{value:t,retry:r,loading:n,error:s}=fs(),o=new URL((t==null?void 0:t.devServerURL)||hs);o.pathname=\"dev\";const{value:i,retry:c}=fr(async()=>await(await fetch(o)).json());hr(c,1e3);const u=I(()=>Boolean(i),[i]);return l(Mr.Provider,{value:{value:t,retry:r,loading:n,error:s,dev:i,devConnected:u},children:e})},ds=({value:e,label:t,onChange:r,className:n=\"\",disabled:s})=>l(k,{children:[t?l(vs,{children:t}):null,l(\"textarea\",{disabled:s,class:W({\"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500\":!0,[n]:!0}),value:e,onChange:o=>r==null?void 0:r(o.currentTarget.value)})]}),vs=({children:e})=>l(\"label\",{class:\"font-semibold text-sm\",children:e}),Wr=nr({push:e=>()=>{},remove:e=>{}}),ps=(e,t)=>{switch(t.type){case\"add\":return e.find(r=>r.id===t.toast.id)?e:e.concat([{...t.toast}]);case\"remove\":return e.filter(r=>r.id!==t.id)}},xs=({children:e})=>{const[t,r]=sr(ps,[]),n=o=>r({type:\"remove\",id:o}),s=o=>{const i=Math.random().toString(16);return r({type:\"add\",toast:{...o,id:o.id||i}}),()=>n(i)};return l(Wr.Provider,{value:{push:s,remove:n},children:[l(\"div\",{className:\"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8\",children:t.map(o=>l(gs,{toast:o},o.id))}),e]})},ft=()=>Qr(Wr),Gt=5e3,gs=({toast:e})=>{const{remove:t}=ft(),[r,n]=Se(!1),s=e.icon;ge(()=>{setTimeout(()=>{n(!0)},25),setTimeout(()=>{!e.sticky&&n(!1)},e.duration||Gt-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||Gt)},[e.id]);const o=e.message||(e.type===\"error\"?\"Something went wrong\":\"\");let i=\"text-slate-200 bg-gray-800\";switch(e.type){case\"success\":i=\"text-slate-200 bg-green-600\";break;case\"error\":i=\"text-slate-200 bg-red-800\"}return r?l(\"div\",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${i} text-center mb-2`,onClick:()=>t(e.id),children:[s&&l(s,{size:22,style:{marginRight:10}}),l(\"span\",{children:o.replace(\"[GraphQL] \",\"\").replace(\"[Network] \",\"\")})]}):null},bs=e=>l(ut,{children:t=>l(ms,{...e,introspect:t})}),ms=({introspect:e,eventData:t})=>{const{push:r}=ft(),{value:n,devConnected:s}=e,[o,i]=Se(t||JSON.stringify({name:\"\",data:{}},void 0,\" \")),c=I(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),u=async f=>{if(f.preventDefault(),!n||!s){r({type:\"error\",message:\"You must run the dev server to send test events\"});return}await new us({name:n.appName,inngestBaseUrl:n.devServerURL,eventKey:\"dev-server\"}).send(JSON.parse(o)),r({type:\"success\",message:\"Event sent. Check your terminal for logs.\"})};return l(de,{children:l(\"details\",{class:\"border border-gray-200 p-4 flex flex-col cursor-pointer rounded-lg bg-white shadow-lg my-4\",children:[l(\"summary\",{class:\"select-none\",children:\"Send a test event to trigger functions\"}),l(\"div\",{className:\"pt-1 pb-2 text-gray-500 text-sm\",children:\"Send a test event as JSON to the Inngest dev server. This will trigger any functions that run from this event.\"}),l(\"form\",{class:\"flex-1\",onSubmit:u,children:[l(\"div\",{class:\"my-4\",children:l(ds,{label:\"Event data (JSON)\",className:W({\"font-mono overflow-y-scroll h-48 resize-none\":!0,\"bg-red-100\":!c}),value:o,onChange:i})}),l(\"div\",{class:\"flex flex-row justify-end space-x-4 items-center italic\",children:[s?l(\"div\",{class:\"text-gray-500 text-sm\",children:\"Ctrl + Enter to send\"}):l(\"div\",{class:\"text-red-600 text-sm\",children:\"Run the dev server to send test events\"}),l(Or,{type:\"submit\",disabled:!s,children:\"Send event\"})]})]})]})})},ys=({config:e,altBg:t})=>{var c,u;const{push:r}=ft(),n=I(()=>e.triggers[0].cron?\"cron\":\"event\",[e.triggers]),s=I(()=>{const f=e.triggers[0];return f.cron||f.event||\"\"},[e.triggers]),o=I(()=>{var f;return Boolean((f=e.errors)==null?void 0:f.size)},[e.errors]),i=async()=>{const f=new URL(window.location.href);f.searchParams.set(\"fnId\",e.id),f.searchParams.set(\"stepId\",e.steps.step.id),r({type:\"default\",message:\"Scheduled function triggered\"});const a=await fetch(f,{method:\"POST\",body:JSON.stringify({event:{}}),headers:{\"Content-Type\":\"application/json\"}}),h=await a.json(),_=typeof h==\"object\"&&h.status?h.status:a.status;r({type:_===200?\"success\":\"error\",message:`Function complete: ${JSON.stringify(h)}`})};return l(k,{children:[l(\"div\",{class:W({\"w-full grid grid-cols-[1fr_1fr_1fr_100px] p-2 items-center\":!0,\"bg-slate-200/30\":Boolean(t),\"bg-red-400/30\":o}),children:[l(\"div\",{class:\"flex flex-col\",children:l(\"div\",{class:\"font-semibold text-sm\",children:[e.name,\" \",l(\"span\",{class:W({\"uppercase text-xs px-1 py-0.5 rounded\":!0,\"bg-blue-300/30\":n===\"event\",\"bg-green-300/30\":n===\"cron\"}),children:n})]})}),l(\"div\",{children:l(\"code\",{class:W({\"text-xs text-gray-500\":!0,\"bg-white\":o,\"bg-gray-500/10\":!o}),children:e.id})}),l(\"span\",{children:s?l(\"code\",{children:s}):l(\"code\",{class:\"bg-white\",children:\"Invalid or no expression\"})}),l(\"div\",{children:n===\"cron\"&&l(Or,{className:\"text-sm\",onClick:i,children:\"Trigger\"})})]}),o?l(\"div\",{class:\"w-full p-2 bg-red-400/30\",children:(u=Array.from((c=e.errors)!=null?c:[]))==null?void 0:u.map(f=>l(\"div\",{class:\"bg-red-100 border border-red-400 rounded p-2\",children:xn[f]}))}):null]})},ws=({class:e=\"\"})=>l(\"svg\",{class:W({\"animate-spin h-5 w-5 text-slate-800\":!0,[e]:!0}),xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 24 24\",children:[l(\"circle\",{class:\"opacity-25\",cx:\"12\",cy:\"12\",r:\"10\",stroke:\"currentColor\",\"stroke-width\":\"4\"}),l(\"path\",{class:\"opacity-75\",fill:\"currentColor\",d:\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"})]}),Ss=()=>l(ut,{children:e=>l(ks,{introspect:e})}),ks=({introspect:e})=>{var a;const{loading:t,value:r,retry:n,error:s}=e,[o,i]=Se(!1);hr(n,5e3);const c=I(()=>(r==null?void 0:r.functions.some(h=>{var _;return(_=h.errors)==null?void 0:_.size}))||!1,[r==null?void 0:r.functions]),u=I(()=>Boolean(r==null?void 0:r.globalErrors.size),[r==null?void 0:r.globalErrors]),f=I(()=>[{title:\"\\u{1F9D1}\\u200D\\u{1F4BB} Writing functions\",description:\"Get started writing your serverless background functions and scheduled tasks.\",href:\"https://www.inngest.com/docs/functions\"},{title:\"\\u{1F4E2} Sending events\",description:\"Learn how to trigger your functions by sending events from your code.\",href:\"https://www.inngest.com/docs/events\"},{title:\"\\u{1F6A2} Deploying\",description:\"Deploy functions to your platform of choice.\",href:\"https://www.inngest.com/docs/deploy\"}],[]);return t&&!r&&!s?l(\"div\",{class:\"flex-1 w-full h-full flex items-center justify-center\",children:l(ws,{class:\"h-8 w-8\"})}):l(k,{children:[l(\"div\",{class:\"flex flex-col gap-4 py-20 bg-gray-100\",children:l(de,{children:[l(\"div\",{class:\"text-3xl\",children:c?\"\\u274C Your functions are not set up correctly\":r!=null&&r.functions.length?\"\\u2705 Your functions are set up correctly\":\"\\u274E No functions detected\"}),l(\"div\",{class:\"ml-12 opacity-75\",children:l(\"code\",{children:[\"inngest-\",r==null?void 0:r.sdk]})})]})}),l(\"div\",{children:l(de,{children:l(\"div\",{class:\"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4\",children:f.map(h=>l(\"a\",{href:h.href,target:\"_blank\",class:\"bg-white rounded border-1 border-black shadow-xl p-4 flex flex-col space-y-2 transition-all hover:scale-105 hover:shadow-2xl no-underline\",children:[l(\"div\",{class:\"font-semibold text-lg\",children:h.title}),l(\"div\",{class:\"text-sm\",children:h.description}),l(\"div\",{class:\"flex-1\"}),l(\"div\",{class:\"text-right font-semibold text-purple-500\",children:\"Explore \\u2192\"})]}))})})}),u?l(\"div\",{class:\"mt-8\",children:l(de,{children:l(\"div\",{class:\"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2\",children:[l(\"div\",{class:\"font-semibold text-yellow-700 text-lg\",children:\"Your handler configuration might be missing some options\"}),Array.from((a=r==null?void 0:r.globalErrors)!=null?a:[]).map(h=>l(\"div\",{class:\"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800\",children:gn[h]}))]})})}):null,l(bs,{expanded:o,onToggle:()=>i(h=>!h)}),l(\"div\",{class:\"w-full flex items-center justify-center mt-8 p-4\",children:l(de,{children:[l(\"div\",{class:\"flex flex-row justify-between\",children:[l(\"div\",{class:\"flex flex-row space-x-2 items-center justify-center\",children:[l(\"div\",{class:\"font-semibold\",children:[\"Found \",(r==null?void 0:r.functions.length)||0,\" functions\"]}),l(\"div\",{children:l(\"div\",{class:\"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase\",onClick:()=>n(),children:\"Refresh\"})})]}),l(\"a\",{class:\"mb-8\",href:\"#\",children:\"Don't see your function?\"})]}),r!=null&&r.functions.length?l(\"div\",{class:\"flex flex-col\",children:[l(\"div\",{class:\"w-full grid grid-cols-[1fr_1fr_1fr_100px] font-semibold border-b-2 border-slate-300 pb-1\",children:[l(\"div\",{children:\"Name\"}),l(\"div\",{children:\"ID\"}),l(\"div\",{children:\"Event / Cron\"})]}),r==null?void 0:r.functions.map((h,_)=>l(ys,{config:h,altBg:_%2===0}))]}):l(\"div\",{class:\"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20\",children:[l(\"div\",{class:\"font-semibold\",children:\"No functions found\"}),l(\"div\",{class:\"opacity-75 text-center\",children:[\"We found your handler, but couldn't see any exported functions.\",l(\"br\",{}),\"Check out the\",\" \",l(\"a\",{href:\"https://www.inngest.com/docs/functions\",children:\"Writing functions\"}),\" \",\"guide to get started.\"]})]})]})})]})},$s=({copiable:e,value:t})=>l(\"code\",{class:W({\"flex flex-row space-x-2 items-center justify-center\":!0,\"cursor-pointer\":Boolean(e)}),onClick:e?()=>{navigator.clipboard.writeText(t)}:void 0,children:[l(\"span\",{children:t}),e?l(Es,{}):null]}),Es=()=>l(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[l(\"path\",{d:\"M15 15H20C20.5523 15 21 14.5523 21 14V4C21 3.44772 20.5523 3 20 3L10 3C9.44772 3 9 3.44771 9 4L9 9\",stroke:\"#1e293b\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),l(\"path\",{d:\"M4 21L14 21C14.5523 21 15 20.5523 15 20L15 10C15 9.44772 14.5523 9 14 9L4 9C3.44771 9 3 9.44771 3 10L3 20C3 20.5523 3.44771 21 4 21Z\",stroke:\"#1e293b\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})]}),Ns=\"http://localhost:8288\",As=()=>l(ut,{children:e=>l(\"div\",{class:\"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5\",children:[l(\"div\",{class:\"font-medium text-gray-900 text-xl\",children:\"Inngest SDK\"}),l(\"div\",{class:\"h-6 w-1 bg-gray-300\"}),l(Cs,{introspect:e})]})}),Cs=({introspect:e})=>{const{value:t,devConnected:r}=e,n=new URL((t==null?void 0:t.devServerURL)||Ns);return n.pathname=\"dev\",l(k,{children:[l(\"div\",{class:\"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none\",children:[l(\"div\",{class:\"flex h-4 w-4 relative\",children:[l(\"span\",{class:W({\"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75\":!0,\"bg-green-400\":r,\"bg-red-400\":!r})}),l(\"span\",{class:W({\"relative inline-flex rounded-full h-4 w-4\":!0,\"bg-green-500\":r,\"bg-red-500\":!r})})]}),r?l(\"div\",{children:[\"Connected to \",l(\"code\",{children:\"inngest dev\"}),\" on\",\" \",l(\"code\",{children:[n.hostname,\":\",n.port]})]}):l(\"div\",{children:[\"Not connected to \",l(\"code\",{children:\"inngest dev\"})]})]}),r?null:l(k,{children:[l(\"div\",{className:\"text-sm\",children:\"Run the dev server: \"}),l($s,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function Hs(){return l(xs,{children:l(_s,{children:[l(As,{}),l(Zr,{children:l(Ss,{})})]})})}Yr(l(Hs,{}),document.getElementById(\"app\"));\n\n</script>\n <style>\n*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: \"\"}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0px}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-full{height:100%}.h-8{height:2rem}.h-6{height:1.5rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-1{width:.25rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr_100px\\]{grid-template-columns:1fr 1fr 1fr 100px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400\\/30{background-color:#facc154d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-200\\/30{background-color:#e2e8f04d}.bg-red-400\\/30{background-color:#f871714d}.bg-blue-300\\/30{background-color:#93c5fd4d}.bg-green-300\\/30{background-color:#86efac4d}.bg-gray-500\\/10{background-color:#6b72801a}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pt-1{padding-top:.25rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.opacity-25{opacity:.25}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}html,body,#app{height:100%;width:100%;--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem}.dark code{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}a{text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n</style>\n </head>\n <body>\n <div id=\"app\"></div>\n \n </body>\n</html>\n";
2
2
  //# sourceMappingURL=landing.d.ts.map
package/landing.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.landing = void 0;
4
- exports.landing = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <title>Inngest SDK - Your functions</title>\n <script type="module" crossorigin>\nvar Vr=Object.defineProperty;var Gr=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>(Gr(e,typeof t!="symbol"?t+"":t,r),r),We=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var O=(e,t,r)=>(We(e,t,"read from private field"),r?r.call(e):t.get(e)),X=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ne=(e,t,r,n)=>(We(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Ve=(e,t,r)=>(We(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll(\'link[rel="modulepreload"]\'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Fe,v,jt,pe,mt,Kt,Te={},Jt=[],jr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function K(e,t){for(var r in t)e[r]=t[r];return e}function qt(e){var t=e.parentNode;t&&t.removeChild(e)}function Xe(e,t,r){var n,s,o,i={};for(o in t)o=="key"?n=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Fe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return Ie(e,i,n,s,null)}function Ie(e,t,r,n,s){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++jt:s};return s==null&&v.vnode!=null&&v.vnode(o),o}function k(e){return e.children}function M(e,t){this.props=e,this.context=t}function ee(e,t){if(t==null)return e.__?ee(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ee(e):null}function Yt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Yt(e)}}function Ze(e){(!e.__d&&(e.__d=!0)&&pe.push(e)&&!Pe.__r++||mt!==v.debounceRendering)&&((mt=v.debounceRendering)||setTimeout)(Pe)}function Pe(){for(var e;Pe.__r=pe.length;)e=pe.sort(function(t,r){return t.__v.__b-r.__v.__b}),pe=[],e.some(function(t){var r,n,s,o,i,c;t.__d&&(i=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(s=K({},o)).__v=o.__v+1,st(c,o,s,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[i]:null,n,i==null?ee(o):i,o.__h),er(n,o),o.__e!=i&&Yt(o)))})}function Xt(e,t,r,n,s,o,i,c,u,f){var a,h,_,d,p,w,g,b=n&&n.__k||Jt,S=b.length;for(r.__k=[],a=0;a<t.length;a++)if((d=r.__k[a]=(d=t[a])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Ie(null,d,null,null,d):Array.isArray(d)?Ie(k,{children:d},null,null,null):d.__b>0?Ie(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(_=b[a])===null||_&&d.key==_.key&&d.type===_.type)b[a]=void 0;else for(h=0;h<S;h++){if((_=b[h])&&d.key==_.key&&d.type===_.type){b[h]=void 0;break}_=null}st(e,d,_=_||Te,s,o,i,c,u,f),p=d.__e,(h=d.ref)&&_.ref!=h&&(g||(g=[]),_.ref&&g.push(_.ref,null,d),g.push(h,d.__c||p,d)),p!=null?(w==null&&(w=p),typeof d.type=="function"&&d.__k===_.__k?d.__d=u=Zt(d,u,e):u=Qt(e,d,_,b,p,u),typeof r.type=="function"&&(r.__d=u)):u&&_.__e==u&&u.parentNode!=e&&(u=ee(_))}for(r.__e=w,a=S;a--;)b[a]!=null&&(typeof r.type=="function"&&b[a].__e!=null&&b[a].__e==r.__d&&(r.__d=ee(n,a+1)),rr(b[a],b[a]));if(g)for(a=0;a<g.length;a++)tr(g[a],g[++a],g[++a])}function Zt(e,t,r){for(var n,s=e.__k,o=0;s&&o<s.length;o++)(n=s[o])&&(n.__=e,t=typeof n.type=="function"?Zt(n,t,r):Qt(r,n,n,s,n.__e,t));return t}function De(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){De(r,t)}):t.push(e)),t}function Qt(e,t,r,n,s,o){var i,c,u;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(r==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),i=null;else{for(c=o,u=0;(c=c.nextSibling)&&u<n.length;u+=2)if(c==s)break e;e.insertBefore(s,o),i=o}return i!==void 0?i:s.nextSibling}function Kr(e,t,r,n,s){var o;for(o in r)o==="children"||o==="key"||o in t||Re(e,o,null,r[o],n);for(o in t)s&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||Re(e,o,t[o],r[o],n)}function yt(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||jr.test(t)?r:r+"px"}function Re(e,t,r,n,s){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||yt(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||yt(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?St:wt,o):e.removeEventListener(t,o?St:wt,o);else if(t!=="dangerouslySetInnerHTML"){if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r!=null&&(r!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,r):e.removeAttribute(t))}}function wt(e){this.l[e.type+!1](v.event?v.event(e):e)}function St(e){this.l[e.type+!0](v.event?v.event(e):e)}function st(e,t,r,n,s,o,i,c,u){var f,a,h,_,d,p,w,g,b,S,z,F,A,y=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(f=v.__b)&&f(t);try{e:if(typeof y=="function"){if(g=t.props,b=(f=y.contextType)&&n[f.__c],S=f?b?b.props.value:f.__:n,r.__c?w=(a=t.__c=r.__c).__=a.__E:("prototype"in y&&y.prototype.render?t.__c=a=new y(g,S):(t.__c=a=new M(g,S),a.constructor=y,a.render=qr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=S,a.__n=n,h=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),y.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=K({},a.__s)),K(a.__s,y.getDerivedStateFromProps(g,a.__s))),_=a.props,d=a.state,h)y.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(y.getDerivedStateFromProps==null&&g!==_&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,S),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,S)===!1||t.__v===r.__v){a.props=g,a.state=a.__s,t.__v!==r.__v&&(a.__d=!1),a.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(C){C&&(C.__=t)}),a.__h.length&&i.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,S),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(_,d,p)})}if(a.context=S,a.props=g,a.__v=t,a.__P=e,z=v.__r,F=0,"prototype"in y&&y.prototype.render)a.state=a.__s,a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context);else do a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++F<25);a.state=a.__s,a.getChildContext!=null&&(n=K(K({},n),a.getChildContext())),h||a.getSnapshotBeforeUpdate==null||(p=a.getSnapshotBeforeUpdate(_,d)),A=f!=null&&f.type===k&&f.key==null?f.props.children:f,Xt(e,Array.isArray(A)?A:[A],t,r,n,s,o,i,c,u),a.base=t.__e,t.__h=null,a.__h.length&&i.push(a),w&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Jr(r.__e,t,r,n,s,o,i,u);(f=v.diffed)&&f(t)}catch(C){t.__v=null,(u||o!=null)&&(t.__e=c,t.__h=!!u,o[o.indexOf(c)]=null),v.__e(C,t,r)}}function er(e,t){v.__c&&v.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){v.__e(n,r.__v)}})}function Jr(e,t,r,n,s,o,i,c){var u,f,a,h=r.props,_=t.props,d=t.type,p=0;if(d==="svg"&&(s=!0),o!=null){for(;p<o.length;p++)if((u=o[p])&&"setAttribute"in u==!!d&&(d?u.localName===d:u.nodeType===3)){e=u,o[p]=null;break}}if(e==null){if(d===null)return document.createTextNode(_);e=s?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,_.is&&_),o=null,c=!1}if(d===null)h===_||c&&e.data===_||(e.data=_);else{if(o=o&&Fe.call(e.childNodes),f=(h=r.props||Te).dangerouslySetInnerHTML,a=_.dangerouslySetInnerHTML,!c){if(o!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(a||f)&&(a&&(f&&a.__html==f.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(Kr(e,_,h,s,c),a)t.__k=[];else if(p=t.props.children,Xt(e,Array.isArray(p)?p:[p],t,r,n,s&&d!=="foreignObject",o,i,o?o[0]:r.__k&&ee(r,0),c),o!=null)for(p=o.length;p--;)o[p]!=null&&qt(o[p]);c||("value"in _&&(p=_.value)!==void 0&&(p!==e.value||d==="progress"&&!p||d==="option"&&p!==h.value)&&Re(e,"value",p,h.value,!1),"checked"in _&&(p=_.checked)!==void 0&&p!==e.checked&&Re(e,"checked",p,h.checked,!1))}return e}function tr(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){v.__e(n,r)}}function rr(e,t,r){var n,s;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||tr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){v.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&rr(n[s],t,typeof e.type!="function");r||e.__e==null||qt(e.__e),e.__=e.__e=e.__d=void 0}function qr(e,t,r){return this.constructor(e,r)}function Yr(e,t,r){var n,s,o;v.__&&v.__(e,t),s=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],st(t,e=(!n&&r||t).__k=Xe(k,null,[e]),s||Te,Te,t.ownerSVGElement!==void 0,!n&&r?[r]:s?null:t.firstChild?Fe.call(t.childNodes):null,o,!n&&r?r:s?s.__e:t.firstChild,n),er(o,e)}function nr(e,t){var r={__c:t="__cC"+Kt++,__:e,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(Ze)},this.sub=function(i){s.push(i);var c=i.componentWillUnmount;i.componentWillUnmount=function(){s.splice(s.indexOf(i),1),c&&c.call(i)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Fe=Jt.slice,v={__e:function(e,t,r,n){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,n||{}),i=s.__d),i)return s.__E=s}catch(c){e=c}throw e}},jt=0,M.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=K({},this.state),typeof e=="function"&&(e=e(K({},r),this.props)),e&&K(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),Ze(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ze(this))},M.prototype.render=k,pe=[],Pe.__r=0,Kt=0;var Xr=0;function l(e,t,r,n,s){var o,i,c={};for(i in t)i=="ref"?o=t[i]:c[i]=t[i];var u={type:e,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Xr,__source:s,__self:n};if(typeof e=="function"&&(o=e.defaultProps))for(i in o)c[i]===void 0&&(c[i]=o[i]);return v.vnode&&v.vnode(u),u}const Zr=({children:e})=>l("div",{class:"w-full h-full",children:e}),de=({children:e})=>l("div",{class:"w-full flex justify-center",children:l("div",{class:"w-[70rem] max-w-full px-8",children:e})});var we,m,Ge,kt,xe=0,or=[],Le=[],$t=v.__b,Et=v.__r,Nt=v.diffed,At=v.__c,Ct=v.unmount;function Oe(e,t){v.__h&&v.__h(m,e,xe||t),xe=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Le}),r.__[e]}function Se(e){return xe=1,sr(ar,e)}function sr(e,t,r){var n=Oe(we++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ar(void 0,t),function(o){var i=n.__N?n.__N[0]:n.__[0],c=n.t(i,o);i!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,i,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(a){return a.__c});if(u.every(function(a){return!a.__N}))return!s||s.call(this,o,i,c);var f=!1;return u.forEach(function(a){if(a.__N){var h=a.__[0];a.__=a.__N,a.__N=void 0,h!==a.__[0]&&(f=!0)}}),!!f&&(!s||s.call(this,o,i,c))}}return n.__N||n.__}function ge(e,t){var r=Oe(we++,3);!v.__s&&ir(r.__H,t)&&(r.__=e,r.i=t,m.__H.__h.push(r))}function it(e){return xe=5,I(function(){return{current:e}},[])}function I(e,t){var r=Oe(we++,7);return ir(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function at(e,t){return xe=8,I(function(){return e},t)}function Qr(e){var t=m.context[e.__c],r=Oe(we++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(m)),t.props.value):e.__}function en(){for(var e;e=or.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ue),e.__H.__h.forEach(Qe),e.__H.__h=[]}catch(t){e.__H.__h=[],v.__e(t,e.__v)}}v.__b=function(e){typeof e.type!="function"||e.o||e.type===k?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,$t&&$t(e)},v.__r=function(e){Et&&Et(e),we=0;var t=(m=e.__c).__H;t&&(Ge===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Le,r.__N=r.i=void 0})):(t.__h.forEach(Ue),t.__h.forEach(Qe),t.__h=[])),Ge=m},v.diffed=function(e){Nt&&Nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(or.push(t)!==1&&kt===v.requestAnimationFrame||((kt=v.requestAnimationFrame)||tn)(en)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Le&&(r.__=r.__V),r.i=void 0,r.__V=Le})),Ge=m=null},v.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ue),r.__h=r.__h.filter(function(n){return!n.__||Qe(n)})}catch(n){t.some(function(s){s.__h&&(s.__h=[])}),t=[],v.__e(n,r.__v)}}),At&&At(e,t)},v.unmount=function(e){Ct&&Ct(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ue(n)}catch(s){t=s}}),r.__H=void 0,t&&v.__e(t,r.__v))};var Ht=typeof requestAnimationFrame=="function";function tn(e){var t,r=function(){clearTimeout(n),Ht&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ht&&(t=requestAnimationFrame(r))}function Ue(e){var t=m,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),m=t}function Qe(e){var t=m;e.__c=e.__(),m=t}function ir(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ar(e,t){return typeof t=="function"?t(e):t}function rn(e,t){for(var r in t)e[r]=t[r];return e}function It(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Lt(e){this.props=e}(Lt.prototype=new M).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Ut=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ut&&Ut(e)};var nn=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),s.__c(e,t)}nn(e,t,r,n)};var Tt=v.unmount;function cr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=rn({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return cr(n,t,r)})),e}function lr(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return lr(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function je(){this.__u=0,this.t=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ae(){this.u=null,this.o=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Tt&&Tt(e)},(je.prototype=new M).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var s=ur(n.__v),o=!1,i=function(){o||(o=!0,r.__R=null,s?s(c):c())};r.__R=i;var c=function(){if(!--n.__u){if(n.state.__a){var f=n.state.__a;n.__v.__k[0]=lr(f,f.__c.__P,f.__c.__O)}var a;for(n.setState({__a:n.__b=null});a=n.t.pop();)a.forceUpdate()}},u=t.__h===!0;n.__u++||u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},je.prototype.componentWillUnmount=function(){this.t=[]},je.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=cr(this.__b,r,n.__O=n.__P)}this.__b=null}var s=t.__a&&Xe(k,null,e.fallback);return s&&(s.__h=null),[Xe(k,null,t.__a?null:e.children),s]};var Pt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(Ae.prototype=new M).__a=function(e){var t=this,r=ur(t.__v),n=t.o.get(e);return n[0]++,function(s){var o=function(){t.props.revealOrder?(n.push(s),Pt(t,e,n)):s()};r?r(o):o()}},Ae.prototype.render=function(e){this.u=null,this.o=new Map;var t=De(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Pt(e,r,t)})};var on=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,sn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=typeof document<"u",cn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Dt=v.event;function ln(){}function un(){return this.cancelBubble}function fn(){return this.defaultPrevented}v.event=function(e){return Dt&&(e=Dt(e)),e.persist=ln,e.isPropagationStopped=un,e.isDefaultPrevented=fn,e.nativeEvent=e};var Rt={configurable:!0,get:function(){return this.class}},Bt=v.vnode;v.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var s=t.indexOf("-")===-1;for(var o in n={},r){var i=r[o];an&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in r&&i==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!cn(r.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():s&&sn.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=i)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,r.class!=r.className&&(Rt.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",Rt))}e.$$typeof=on,Bt&&Bt(e)};var zt=v.__r;v.__r=function(e){zt&&zt(e),e.__c};var te=function(){return te=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},te.apply(this,arguments)};function Ft(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var o=arguments[t],i=0,c=o.length;i<c;i++,s++)n[s]=o[i];return n}function hn(){var e=it(!1),t=at(function(){return e.current},[]);return ge(function(){return e.current=!0,function(){e.current=!1}},[]),t}function _n(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=it(0),s=hn(),o=Se(r),i=o[0],c=o[1],u=at(function(){for(var f=[],a=0;a<arguments.length;a++)f[a]=arguments[a];var h=++n.current;return i.loading||c(function(_){return te(te({},_),{loading:!0})}),e.apply(void 0,f).then(function(_){return s()&&h===n.current&&c({value:_,loading:!1}),_},function(_){return s()&&h===n.current&&c({error:_,loading:!1}),_})},t);return[i,u]}function dn(e,t){t===void 0&&(t=[]);var r=_n(e,t,{loading:!0}),n=r[0],s=r[1];return ge(function(){s()},[s]),n}var vn=function(e,t){t===void 0&&(t=[]);var r=Se(0),n=r[0],s=r[1],o=dn(e,Ft(t,[n])),i=o.loading,c=at(function(){i||s(function(u){return u+1})},Ft(t,[i]));return te(te({},o),{retry:c})};const fr=vn;var pn=function(e,t){var r=it(function(){});ge(function(){r.current=e}),ge(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const hr=pn;var ct=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(ct||{}),be=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(be||{});const xn={[be.EmptyTrigger]:l(k,{children:"One or more triggers seems invalid; it has no event or cron definition. Make sure you\'ve correctly used the function creation methods."}),[be.NoTriggers]:l(k,{children:"Can\'t find any triggers for this function, such as an event or a cron definition. Make sure you\'ve correctly used the function creation methods."})},gn={[ct.NoSigningKey]:l("div",{class:"flex flex-col space-y-2",children:[l("div",{class:"font-semibold",children:"Could not find signing key"}),l("div",{children:["A signing key is required to communicate with Inngest securely. We weren\'t passed one when calling ",l("code",{children:"serve()"})," and couldn\'t find it in the recommended ",l("code",{children:"INNGEST_SIGNING_KEY"})," environment variable."]}),l("div",{children:["You can find your signing key in the"," ",l("a",{href:"https://app.inngest.com/secrets",target:"_blank",children:"Inngest Dashboard - Secrets section."})]})]})};var et=(e=>(e.FnId="fnId",e.StepId="stepId",e.Introspect="introspect",e))(et||{}),_r=(e=>(e.SigningKey="INNGEST_SIGNING_KEY",e.EventKey="INNGEST_EVENT_KEY",e.LandingPage="INNGEST_LANDING_PAGE",e.DevServerUrl="INNGEST_DEVSERVER_URL",e))(_r||{});const dr="http://127.0.0.1:8288/",bn=async(e=dr,t)=>{try{const r=vr(e,"/dev");return await(await t(r.toString())).json(),!0}catch{return!1}},vr=(e=dr,t="")=>new URL(t,e.includes("://")?e:`http://${e}`),mn=()=>(lt()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),yn=()=>(lt()?["production",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes("production"),lt=()=>typeof process<"u"&&"env"in process,wn="0.8.2";var re=1e3,ne=re*60,oe=ne*60,q=oe*24,Sn=q*7,kn=q*365.25,$n=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return En(e);if(r==="number"&&isFinite(e))return t.long?An(e):Nn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function En(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*kn;case"weeks":case"week":case"w":return r*Sn;case"days":case"day":case"d":return r*q;case"hours":case"hour":case"hrs":case"hr":case"h":return r*oe;case"minutes":case"minute":case"mins":case"min":case"m":return r*ne;case"seconds":case"second":case"secs":case"sec":case"s":return r*re;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Nn(e){var t=Math.abs(e);return t>=q?Math.round(e/q)+"d":t>=oe?Math.round(e/oe)+"h":t>=ne?Math.round(e/ne)+"m":t>=re?Math.round(e/re)+"s":e+"ms"}function An(e){var t=Math.abs(e);return t>=q?Ce(e,t,q,"day"):t>=oe?Ce(e,t,oe,"hour"):t>=ne?Ce(e,t,ne,"minute"):t>=re?Ce(e,t,re,"second"):e+" ms"}function Ce(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}const Cn=e=>{const t="-";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)},Hn=1,pr=Hn*1e3,xr=pr*60,gr=xr*60,br=gr*24,In=br*7,Ln=[["w",In],["d",br],["h",gr],["m",xr],["s",pr]],Ke=(e,t=new Date)=>{let r=e;if(typeof r=="string"||typeof r=="number"){const i=typeof r=="string"?$n(r):r;r=new Date(Date.now()+i)}if(t.setMilliseconds(0),r.setMilliseconds(0),!!isNaN(r.getTime()))throw new Error("Invalid date given to convert to time string");const s=r.getTime()-t.getTime(),[,o]=Ln.reduce(([i,c],[u,f])=>{const a=Math.floor(i/f);return a>0?[i%f,`${c}${a}${u}`]:[i,c]},[s,""]);return o};var mr={},x={},ke=yr;function yr(e,t){if(!e)throw new Error(t||"Assertion failed")}yr.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var tt={exports:{}};typeof Object.create=="function"?tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var Un=ke,Tn=tt.exports;x.inherits=Tn;function Pn(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function Dn(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),s=0;s<e.length;s+=2)r.push(parseInt(e[s]+e[s+1],16))}else for(var n=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):Pn(e,s)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(s=0;s<e.length;s++)r[s]=e[s]|0;return r}x.toArray=Dn;function Rn(e){for(var t="",r=0;r<e.length;r++)t+=Sr(e[r].toString(16));return t}x.toHex=Rn;function wr(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}x.htonl=wr;function Bn(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];t==="little"&&(s=wr(s)),r+=kr(s.toString(16))}return r}x.toHex32=Bn;function Sr(e){return e.length===1?"0"+e:e}x.zero2=Sr;function kr(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}x.zero8=kr;function zn(e,t,r,n){var s=r-t;Un(s%4===0);for(var o=new Array(s/4),i=0,c=t;i<o.length;i++,c+=4){var u;n==="big"?u=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:u=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[i]=u>>>0}return o}x.join32=zn;function Fn(e,t){for(var r=new Array(e.length*4),n=0,s=0;n<e.length;n++,s+=4){var o=e[n];t==="big"?(r[s]=o>>>24,r[s+1]=o>>>16&255,r[s+2]=o>>>8&255,r[s+3]=o&255):(r[s+3]=o>>>24,r[s+2]=o>>>16&255,r[s+1]=o>>>8&255,r[s]=o&255)}return r}x.split32=Fn;function On(e,t){return e>>>t|e<<32-t}x.rotr32=On;function Mn(e,t){return e<<t|e>>>32-t}x.rotl32=Mn;function Wn(e,t){return e+t>>>0}x.sum32=Wn;function Vn(e,t,r){return e+t+r>>>0}x.sum32_3=Vn;function Gn(e,t,r,n){return e+t+r+n>>>0}x.sum32_4=Gn;function jn(e,t,r,n,s){return e+t+r+n+s>>>0}x.sum32_5=jn;function Kn(e,t,r,n){var s=e[t],o=e[t+1],i=n+o>>>0,c=(i<n?1:0)+r+s;e[t]=c>>>0,e[t+1]=i}x.sum64=Kn;function Jn(e,t,r,n){var s=t+n>>>0,o=(s<t?1:0)+e+r;return o>>>0}x.sum64_hi=Jn;function qn(e,t,r,n){var s=t+n;return s>>>0}x.sum64_lo=qn;function Yn(e,t,r,n,s,o,i,c){var u=0,f=t;f=f+n>>>0,u+=f<t?1:0,f=f+o>>>0,u+=f<o?1:0,f=f+c>>>0,u+=f<c?1:0;var a=e+r+s+i+u;return a>>>0}x.sum64_4_hi=Yn;function Xn(e,t,r,n,s,o,i,c){var u=t+n+o+c;return u>>>0}x.sum64_4_lo=Xn;function Zn(e,t,r,n,s,o,i,c,u,f){var a=0,h=t;h=h+n>>>0,a+=h<t?1:0,h=h+o>>>0,a+=h<o?1:0,h=h+c>>>0,a+=h<c?1:0,h=h+f>>>0,a+=h<f?1:0;var _=e+r+s+i+u+a;return _>>>0}x.sum64_5_hi=Zn;function Qn(e,t,r,n,s,o,i,c,u,f){var a=t+n+o+c+f;return a>>>0}x.sum64_5_lo=Qn;function eo(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}x.rotr64_hi=eo;function to(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.rotr64_lo=to;function ro(e,t,r){return e>>>r}x.shr64_hi=ro;function no(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.shr64_lo=no;var ce={},Ot=x,oo=ke;function Me(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ce.BlockHash=Me;Me.prototype.update=function(t,r){if(t=Ot.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Ot.join32(t,0,t.length-n,this.endian);for(var s=0;s<t.length;s+=this._delta32)this._update(t,s,s+this._delta32)}return this};Me.prototype.digest=function(t){return this.update(this._pad()),oo(this.pending===null),this._digest(t)};Me.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,s=new Array(n+this.padLength);s[0]=128;for(var o=1;o<n;o++)s[o]=0;if(t<<=3,this.endian==="big"){for(var i=8;i<this.padLength;i++)s[o++]=0;s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=t>>>24&255,s[o++]=t>>>16&255,s[o++]=t>>>8&255,s[o++]=t&255}else for(s[o++]=t&255,s[o++]=t>>>8&255,s[o++]=t>>>16&255,s[o++]=t>>>24&255,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,i=8;i<this.padLength;i++)s[o++]=0;return s};var le={},B={},so=x,L=so.rotr32;function io(e,t,r,n){if(e===0)return $r(t,r,n);if(e===1||e===3)return Nr(t,r,n);if(e===2)return Er(t,r,n)}B.ft_1=io;function $r(e,t,r){return e&t^~e&r}B.ch32=$r;function Er(e,t,r){return e&t^e&r^t&r}B.maj32=Er;function Nr(e,t,r){return e^t^r}B.p32=Nr;function ao(e){return L(e,2)^L(e,13)^L(e,22)}B.s0_256=ao;function co(e){return L(e,6)^L(e,11)^L(e,25)}B.s1_256=co;function lo(e){return L(e,7)^L(e,18)^e>>>3}B.g0_256=lo;function uo(e){return L(e,17)^L(e,19)^e>>>10}B.g1_256=uo;var se=x,fo=ce,ho=B,Je=se.rotl32,he=se.sum32,_o=se.sum32_5,vo=ho.ft_1,Ar=fo.BlockHash,po=[1518500249,1859775393,2400959708,3395469782];function P(){if(!(this instanceof P))return new P;Ar.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}se.inherits(P,Ar);var xo=P;P.blockSize=512;P.outSize=160;P.hmacStrength=80;P.padLength=64;P.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=Je(n[s-3]^n[s-8]^n[s-14]^n[s-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4];for(s=0;s<n.length;s++){var a=~~(s/20),h=_o(Je(o,5),vo(a,i,c,u),f,n[s],po[a]);f=u,u=c,c=Je(i,30),i=o,o=h}this.h[0]=he(this.h[0],o),this.h[1]=he(this.h[1],i),this.h[2]=he(this.h[2],c),this.h[3]=he(this.h[3],u),this.h[4]=he(this.h[4],f)};P.prototype._digest=function(t){return t==="hex"?se.toHex32(this.h,"big"):se.split32(this.h,"big")};var ie=x,go=ce,ue=B,bo=ke,E=ie.sum32,mo=ie.sum32_4,yo=ie.sum32_5,wo=ue.ch32,So=ue.maj32,ko=ue.s0_256,$o=ue.s1_256,Eo=ue.g0_256,No=ue.g1_256,Cr=go.BlockHash,Ao=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function D(){if(!(this instanceof D))return new D;Cr.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Ao,this.W=new Array(64)}ie.inherits(D,Cr);var Hr=D;D.blockSize=512;D.outSize=256;D.hmacStrength=192;D.padLength=64;D.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=mo(No(n[s-2]),n[s-7],Eo(n[s-15]),n[s-16]);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4],a=this.h[5],h=this.h[6],_=this.h[7];for(bo(this.k.length===n.length),s=0;s<n.length;s++){var d=yo(_,$o(f),wo(f,a,h),this.k[s],n[s]),p=E(ko(o),So(o,i,c));_=h,h=a,a=f,f=E(u,d),u=c,c=i,i=o,o=E(d,p)}this.h[0]=E(this.h[0],o),this.h[1]=E(this.h[1],i),this.h[2]=E(this.h[2],c),this.h[3]=E(this.h[3],u),this.h[4]=E(this.h[4],f),this.h[5]=E(this.h[5],a),this.h[6]=E(this.h[6],h),this.h[7]=E(this.h[7],_)};D.prototype._digest=function(t){return t==="hex"?ie.toHex32(this.h,"big"):ie.split32(this.h,"big")};var rt=x,Ir=Hr;function V(){if(!(this instanceof V))return new V;Ir.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}rt.inherits(V,Ir);var Co=V;V.blockSize=512;V.outSize=224;V.hmacStrength=192;V.padLength=64;V.prototype._digest=function(t){return t==="hex"?rt.toHex32(this.h.slice(0,7),"big"):rt.split32(this.h.slice(0,7),"big")};var $=x,Ho=ce,Io=ke,U=$.rotr64_hi,T=$.rotr64_lo,Lr=$.shr64_hi,Ur=$.shr64_lo,j=$.sum64,qe=$.sum64_hi,Ye=$.sum64_lo,Lo=$.sum64_4_hi,Uo=$.sum64_4_lo,To=$.sum64_5_hi,Po=$.sum64_5_lo,Tr=Ho.BlockHash,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;Tr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Do,this.W=new Array(160)}$.inherits(N,Tr);var Pr=N;N.blockSize=1024;N.outSize=512;N.hmacStrength=192;N.padLength=128;N.prototype._prepareBlock=function(t,r){for(var n=this.W,s=0;s<32;s++)n[s]=t[r+s];for(;s<n.length;s+=2){var o=Ko(n[s-4],n[s-3]),i=Jo(n[s-4],n[s-3]),c=n[s-14],u=n[s-13],f=Go(n[s-30],n[s-29]),a=jo(n[s-30],n[s-29]),h=n[s-32],_=n[s-31];n[s]=Lo(o,i,c,u,f,a,h,_),n[s+1]=Uo(o,i,c,u,f,a,h,_)}};N.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,s=this.h[0],o=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],f=this.h[5],a=this.h[6],h=this.h[7],_=this.h[8],d=this.h[9],p=this.h[10],w=this.h[11],g=this.h[12],b=this.h[13],S=this.h[14],z=this.h[15];Io(this.k.length===n.length);for(var F=0;F<n.length;F+=2){var A=S,y=z,C=Wo(_,d),fe=Vo(_,d),ht=Ro(_,d,p,w,g),_t=Bo(_,d,p,w,g,b),dt=this.k[F],vt=this.k[F+1],pt=n[F],xt=n[F+1],$e=To(A,y,C,fe,ht,_t,dt,vt,pt,xt),Ee=Po(A,y,C,fe,ht,_t,dt,vt,pt,xt);A=Oo(s,o),y=Mo(s,o),C=zo(s,o,i,c,u),fe=Fo(s,o,i,c,u,f);var gt=qe(A,y,C,fe),bt=Ye(A,y,C,fe);S=g,z=b,g=p,b=w,p=_,w=d,_=qe(a,h,$e,Ee),d=Ye(h,h,$e,Ee),a=u,h=f,u=i,f=c,i=s,c=o,s=qe($e,Ee,gt,bt),o=Ye($e,Ee,gt,bt)}j(this.h,0,s,o),j(this.h,2,i,c),j(this.h,4,u,f),j(this.h,6,a,h),j(this.h,8,_,d),j(this.h,10,p,w),j(this.h,12,g,b),j(this.h,14,S,z)};N.prototype._digest=function(t){return t==="hex"?$.toHex32(this.h,"big"):$.split32(this.h,"big")};function Ro(e,t,r,n,s){var o=e&r^~e&s;return o<0&&(o+=4294967296),o}function Bo(e,t,r,n,s,o){var i=t&n^~t&o;return i<0&&(i+=4294967296),i}function zo(e,t,r,n,s){var o=e&r^e&s^r&s;return o<0&&(o+=4294967296),o}function Fo(e,t,r,n,s,o){var i=t&n^t&o^n&o;return i<0&&(i+=4294967296),i}function Oo(e,t){var r=U(e,t,28),n=U(t,e,2),s=U(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Mo(e,t){var r=T(e,t,28),n=T(t,e,2),s=T(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Wo(e,t){var r=U(e,t,14),n=U(e,t,18),s=U(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Vo(e,t){var r=T(e,t,14),n=T(e,t,18),s=T(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Go(e,t){var r=U(e,t,1),n=U(e,t,8),s=Lr(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function jo(e,t){var r=T(e,t,1),n=T(e,t,8),s=Ur(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Ko(e,t){var r=U(e,t,19),n=U(t,e,29),s=Lr(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}function Jo(e,t){var r=T(e,t,19),n=T(t,e,29),s=Ur(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}var nt=x,Dr=Pr;function G(){if(!(this instanceof G))return new G;Dr.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}nt.inherits(G,Dr);var qo=G;G.blockSize=1024;G.outSize=384;G.hmacStrength=192;G.padLength=128;G.prototype._digest=function(t){return t==="hex"?nt.toHex32(this.h.slice(0,12),"big"):nt.split32(this.h.slice(0,12),"big")};le.sha1=xo;le.sha224=Co;le.sha256=Hr;le.sha384=qo;le.sha512=Pr;var Rr={},Y=x,Yo=ce,He=Y.rotl32,Mt=Y.sum32,_e=Y.sum32_3,Wt=Y.sum32_4,Br=Yo.BlockHash;function R(){if(!(this instanceof R))return new R;Br.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Y.inherits(R,Br);Rr.ripemd160=R;R.blockSize=512;R.outSize=160;R.hmacStrength=192;R.padLength=64;R.prototype._update=function(t,r){for(var n=this.h[0],s=this.h[1],o=this.h[2],i=this.h[3],c=this.h[4],u=n,f=s,a=o,h=i,_=c,d=0;d<80;d++){var p=Mt(He(Wt(n,Vt(d,s,o,i),t[Qo[d]+r],Xo(d)),ts[d]),c);n=c,c=i,i=He(o,10),o=s,s=p,p=Mt(He(Wt(u,Vt(79-d,f,a,h),t[es[d]+r],Zo(d)),rs[d]),_),u=_,_=h,h=He(a,10),a=f,f=p}p=_e(this.h[1],o,h),this.h[1]=_e(this.h[2],i,_),this.h[2]=_e(this.h[3],c,u),this.h[3]=_e(this.h[4],n,f),this.h[4]=_e(this.h[0],s,a),this.h[0]=p};R.prototype._digest=function(t){return t==="hex"?Y.toHex32(this.h,"little"):Y.split32(this.h,"little")};function Vt(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function Xo(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Zo(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var Qo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],es=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ts=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],rs=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ns=x,os=ke;function ae(e,t,r){if(!(this instanceof ae))return new ae(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(ns.toArray(t,r))}var ss=ae;ae.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),os(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};ae.prototype.update=function(t,r){return this.inner.update(t,r),this};ae.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=x,t.common=ce,t.sha=le,t.ripemd=Rr,t.hmac=ss,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(mr);var is=as;function as(e,t){t=t||10;var r=[],n="",s=RegExp;function o(i,c){if(!(c>t)&&!(typeof i=="function"||typeof i>"u")){if(typeof i!="object"||!i||i instanceof s){n+=i;return}r.indexOf(i)!==-1||c===t||(r.push(i),n+="{",Object.keys(i).forEach(function(u,f,a){if(u.charAt(0)!=="_"){var h=typeof i[u];h==="function"||h==="undefined"||(n+=u,o(i[u],c+1))}}))}}return o(e,0),n}var ve=(e=>(e.WaitForEvent="WaitForEvent",e.RunStep="Step",e.Sleep="Sleep",e))(ve||{});class ot{}const cs=e=>{let t=!0,r=0;const n={...e},s=u=>{const f=n[u.id];return[f!==void 0,f]},o=(u,f)=>(...a)=>{if(!t)throw new ot;const h=u(...a),_={...h,id:ls(h,r++)},[d,p]=s(_);if(d)return p;t=!1;const w=(...g)=>{i.nextOp=new Promise(b=>b(g[0])).then(b=>({..._,...g.length?{data:b}:{}}))};throw f?f({submitOp:w},...a):w(),i.nextOp?new ot:new Error("No operation was submitted by a tool")},i={nextOp:void 0};return[{waitForEvent:o((u,f)=>{const a={ttl:Ke(f.timeout)};return f!=null&&f.match?a.match=`event.${f.match} == async.${f.match}`:f!=null&&f.if&&(a.match=f.if),{op:ve.WaitForEvent,name:u,opts:a}}),run:o(u=>({op:ve.RunStep,name:u}),({submitOp:u},f,a)=>{u(a())}),sleep:o(u=>({op:ve.Sleep,name:Ke(u)})),sleepUntil:o(u=>({op:ve.Sleep,name:Ke(u)}))},i]},ls=(e,t)=>mr.sha1().update(is({pos:t,op:e.op,name:e.name,opts:e.opts})).digest("hex");var H,me,ye,Be,zr;const Z=class{constructor(t,r,n){X(this,Be);X(this,H,void 0);X(this,me,void 0);X(this,ye,void 0);Ne(this,H,t),Ne(this,me,r),Ne(this,ye,n)}id(t){return O(this,H).id||(O(this,H).id=Ve(this,Be,zr).call(this,t)),O(this,H).id}get name(){return O(this,H).name}getConfig(t,r){const n=this.id(r),s=new URL(t.href);return s.searchParams.set(et.FnId,n),s.searchParams.set(et.StepId,Z.stepId),{...O(this,H),id:n,name:this.name,triggers:[O(this,me)],steps:{[Z.stepId]:{id:Z.stepId,name:Z.stepId,runtime:{type:"http",url:s.href}}}}}async runFn(t,r){const[n,s]=cs(r),o={...t,tools:n};let i;try{i=await O(this,ye).call(this,o)}catch(c){if(!(c instanceof ot)){if(!s.nextOp)throw c;console.warn("An error occurred after submitting a new op. Continuing on.",c)}}return s.nextOp?[!0,await s.nextOp]:[!1,i]}};let Q=Z;H=new WeakMap,me=new WeakMap,ye=new WeakMap,Be=new WeakSet,zr=function(t){return Cn([t||"",O(this,H).name].join("-"))},J(Q,"stepId","step");var ze,Fr;class us{constructor({name:t,eventKey:r,inngestBaseUrl:n="https://inn.gs/"}){X(this,ze);J(this,"name");J(this,"eventKey");J(this,"inngestBaseUrl");J(this,"inngestApiUrl");J(this,"headers");if(!t)throw new Error("A name must be passed to create an Inngest instance.");if(this.name=t,this.eventKey=r||lt()&&process.env[_r.EventKey]||"",this.inngestBaseUrl=new URL(n),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),!r)throw new Error("An event key must be passed to create an Inngest instance.");this.headers={"Content-Type":"application/json","User-Agent":`InngestJS v${wn}`}}async send(t,r){let n;if(typeof t=="string"?n=(Array.isArray(r)?r:r?[r]:[]).map(i=>({...i,name:t})):n=Array.isArray(t)?t:t?[t]:[],!n.length)throw new Error("Provided a name but no events to send; make sure to send an event payload too");let s=this.inngestApiUrl.href;if(!yn()){const i=mn();(i!==void 0||await bn(i,fetch))&&(s=vr(i,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:"POST",body:JSON.stringify(n),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await Ve(this,ze,Fr).call(this,o)}createStepFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{event:r},n)}createFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{event:r},n)}createScheduledFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{cron:r},n)}}ze=new WeakSet,Fr=async function(t){let r="Unknown error";switch(t.status){case 401:r="Event key Not Found";break;case 400:r="Cannot process event payload";break;case 403:r="Forbidden";break;case 404:r="Event key not found";break;case 406:r=`${JSON.stringify(await t.json())}`;break;case 409:case 412:r="Event transformation failed";break;case 413:r="Event payload too large";break;case 500:r="Internal server error";break}return new Error(`Inngest API Error: ${t.status} ${r}`)};const W=e=>Object.entries(e).reduce((r,[n,s])=>s?[...r,n]:r,[]).filter(Boolean).join(" ").trim(),Or=({children:e,onClick:t,type:r,disabled:n,className:s=""})=>l("button",{className:`${n?"bg-slate-400":"bg-blue-500"} text-white px-5 py-1 font-semibold rounded ${s}`,onClick:t,type:r,disabled:n,children:e}),fs=()=>fr(async()=>{const t=new URL(window.location.href);t.searchParams.set("introspect","true");const n=await(await fetch(t)).json();return n.functions=n.functions.map(s=>{var i;const o=new Set;return((i=s.triggers)==null?void 0:i.length)<1?o.add(be.NoTriggers):s.triggers.some(u=>!(u!=null&&u.event)&&!(u!=null&&u.cron))&&o.add(be.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var u,f;const i=Boolean((u=s.errors)==null?void 0:u.size),c=Boolean((f=o.errors)==null?void 0:f.size);return i!==c?i?-1:1:s.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(ct.NoSigningKey),n}),hs="http://localhost:8288",Mr=nr({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ut=Mr.Consumer,_s=({children:e})=>{const{value:t,retry:r,loading:n,error:s}=fs(),o=new URL((t==null?void 0:t.devServerURL)||hs);o.pathname="dev";const{value:i,retry:c}=fr(async()=>await(await fetch(o)).json());hr(c,1e3);const u=I(()=>Boolean(i),[i]);return l(Mr.Provider,{value:{value:t,retry:r,loading:n,error:s,dev:i,devConnected:u},children:e})},ds=({value:e,label:t,onChange:r,className:n="",disabled:s})=>l(k,{children:[t?l(vs,{children:t}):null,l("textarea",{disabled:s,class:W({"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500":!0,[n]:!0}),value:e,onChange:o=>r==null?void 0:r(o.currentTarget.value)})]}),vs=({children:e})=>l("label",{class:"font-semibold text-sm",children:e}),Wr=nr({push:e=>()=>{},remove:e=>{}}),ps=(e,t)=>{switch(t.type){case"add":return e.find(r=>r.id===t.toast.id)?e:e.concat([{...t.toast}]);case"remove":return e.filter(r=>r.id!==t.id)}},xs=({children:e})=>{const[t,r]=sr(ps,[]),n=o=>r({type:"remove",id:o}),s=o=>{const i=Math.random().toString(16);return r({type:"add",toast:{...o,id:o.id||i}}),()=>n(i)};return l(Wr.Provider,{value:{push:s,remove:n},children:[l("div",{className:"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8",children:t.map(o=>l(gs,{toast:o},o.id))}),e]})},ft=()=>Qr(Wr),Gt=5e3,gs=({toast:e})=>{const{remove:t}=ft(),[r,n]=Se(!1),s=e.icon;ge(()=>{setTimeout(()=>{n(!0)},25),setTimeout(()=>{!e.sticky&&n(!1)},e.duration||Gt-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||Gt)},[e.id]);const o=e.message||(e.type==="error"?"Something went wrong":"");let i="text-slate-200 bg-gray-800";switch(e.type){case"success":i="text-slate-200 bg-green-600";break;case"error":i="text-slate-200 bg-red-800"}return r?l("div",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${i} text-center mb-2`,onClick:()=>t(e.id),children:[s&&l(s,{size:22,style:{marginRight:10}}),l("span",{children:o.replace("[GraphQL] ","").replace("[Network] ","")})]}):null},bs=e=>l(ut,{children:t=>l(ms,{...e,introspect:t})}),ms=({introspect:e,eventData:t})=>{const{push:r}=ft(),{value:n,devConnected:s}=e,[o,i]=Se(t||JSON.stringify({name:"",data:{}},void 0," ")),c=I(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),u=async f=>{if(f.preventDefault(),!n||!s){r({type:"error",message:"You must run the dev server to send test events"});return}await new us({name:n.appName,inngestBaseUrl:n.devServerURL,eventKey:"dev-server"}).send(JSON.parse(o)),r({type:"success",message:"Event sent. Check your terminal for logs."})};return l(de,{children:l("details",{class:"border border-gray-200 p-4 flex flex-col cursor-pointer rounded-lg bg-white shadow-lg my-4",children:[l("summary",{class:"select-none",children:"Send a test event to trigger functions"}),l("div",{className:"pt-1 pb-2 text-gray-500 text-sm",children:"Send a test event as JSON to the Inngest dev server. This will trigger any functions that run from this event."}),l("form",{class:"flex-1",onSubmit:u,children:[l("div",{class:"my-4",children:l(ds,{label:"Event data (JSON)",className:W({"font-mono overflow-y-scroll h-48 resize-none":!0,"bg-red-100":!c}),value:o,onChange:i})}),l("div",{class:"flex flex-row justify-end space-x-4 items-center italic",children:[s?l("div",{class:"text-gray-500 text-sm",children:"Ctrl + Enter to send"}):l("div",{class:"text-red-600 text-sm",children:"Run the dev server to send test events"}),l(Or,{type:"submit",disabled:!s,children:"Send event"})]})]})]})})},ys=({config:e,altBg:t})=>{var c,u;const{push:r}=ft(),n=I(()=>e.triggers[0].cron?"cron":"event",[e.triggers]),s=I(()=>{const f=e.triggers[0];return f.cron||f.event||""},[e.triggers]),o=I(()=>{var f;return Boolean((f=e.errors)==null?void 0:f.size)},[e.errors]),i=async()=>{const f=new URL(window.location.href);f.searchParams.set("fnId",e.id),f.searchParams.set("stepId",e.steps.step.id),r({type:"default",message:"Scheduled function triggered"});const a=await fetch(f,{method:"POST",body:JSON.stringify({event:{}}),headers:{"Content-Type":"application/json"}}),h=await a.json(),_=typeof h=="object"&&h.status?h.status:a.status;r({type:_===200?"success":"error",message:`Function complete: ${JSON.stringify(h)}`})};return l(k,{children:[l("div",{class:W({"w-full grid grid-cols-[1fr_1fr_1fr_100px] p-2 items-center":!0,"bg-slate-200/30":Boolean(t),"bg-red-400/30":o}),children:[l("div",{class:"flex flex-col",children:l("div",{class:"font-semibold text-sm",children:[e.name," ",l("span",{class:W({"uppercase text-xs px-1 py-0.5 rounded":!0,"bg-blue-300/30":n==="event","bg-green-300/30":n==="cron"}),children:n})]})}),l("div",{children:l("code",{class:W({"text-xs text-gray-500":!0,"bg-white":o,"bg-gray-500/10":!o}),children:e.id})}),l("span",{children:s?l("code",{children:s}):l("code",{class:"bg-white",children:"Invalid or no expression"})}),l("div",{children:n==="cron"&&l(Or,{className:"text-sm",onClick:i,children:"Trigger"})})]}),o?l("div",{class:"w-full p-2 bg-red-400/30",children:(u=Array.from((c=e.errors)!=null?c:[]))==null?void 0:u.map(f=>l("div",{class:"bg-red-100 border border-red-400 rounded p-2",children:xn[f]}))}):null]})},ws=({class:e=""})=>l("svg",{class:W({"animate-spin h-5 w-5 text-slate-800":!0,[e]:!0}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Ss=()=>l(ut,{children:e=>l(ks,{introspect:e})}),ks=({introspect:e})=>{var a;const{loading:t,value:r,retry:n,error:s}=e,[o,i]=Se(!1);hr(n,5e3);const c=I(()=>(r==null?void 0:r.functions.some(h=>{var _;return(_=h.errors)==null?void 0:_.size}))||!1,[r==null?void 0:r.functions]),u=I(()=>Boolean(r==null?void 0:r.globalErrors.size),[r==null?void 0:r.globalErrors]),f=I(()=>[{title:"\\u{1F9D1}\\u200D\\u{1F4BB} Writing functions",description:"Get started writing your serverless background functions and scheduled tasks.",href:"https://www.inngest.com/docs/functions"},{title:"\\u{1F4E2} Sending events",description:"Learn how to trigger your functions by sending events from your code.",href:"https://www.inngest.com/docs/events"},{title:"\\u{1F6A2} Deploying",description:"Deploy functions to your platform of choice.",href:"https://www.inngest.com/docs/deploy"}],[]);return t&&!r&&!s?l("div",{class:"flex-1 w-full h-full flex items-center justify-center",children:l(ws,{class:"h-8 w-8"})}):l(k,{children:[l("div",{class:"flex flex-col gap-4 py-20 bg-gray-100",children:l(de,{children:[l("div",{class:"text-3xl",children:c?"\\u274C Your functions are not set up correctly":r!=null&&r.functions.length?"\\u2705 Your functions are set up correctly":"\\u274E No functions detected"}),l("div",{class:"ml-12 opacity-75",children:l("code",{children:["inngest-",r==null?void 0:r.sdk]})})]})}),l("div",{children:l(de,{children:l("div",{class:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4",children:f.map(h=>l("a",{href:h.href,target:"_blank",class:"bg-white rounded border-1 border-black shadow-xl p-4 flex flex-col space-y-2 transition-all hover:scale-105 hover:shadow-2xl no-underline",children:[l("div",{class:"font-semibold text-lg",children:h.title}),l("div",{class:"text-sm",children:h.description}),l("div",{class:"flex-1"}),l("div",{class:"text-right font-semibold text-purple-500",children:"Explore \\u2192"})]}))})})}),u?l("div",{class:"mt-8",children:l(de,{children:l("div",{class:"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2",children:[l("div",{class:"font-semibold text-yellow-700 text-lg",children:"Your handler configuration might be missing some options"}),Array.from((a=r==null?void 0:r.globalErrors)!=null?a:[]).map(h=>l("div",{class:"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800",children:gn[h]}))]})})}):null,l(bs,{expanded:o,onToggle:()=>i(h=>!h)}),l("div",{class:"w-full flex items-center justify-center mt-8 p-4",children:l(de,{children:[l("div",{class:"flex flex-row justify-between",children:[l("div",{class:"flex flex-row space-x-2 items-center justify-center",children:[l("div",{class:"font-semibold",children:["Found ",(r==null?void 0:r.functions.length)||0," functions"]}),l("div",{children:l("div",{class:"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase",onClick:()=>n(),children:"Refresh"})})]}),l("a",{class:"mb-8",href:"#",children:"Don\'t see your function?"})]}),r!=null&&r.functions.length?l("div",{class:"flex flex-col",children:[l("div",{class:"w-full grid grid-cols-[1fr_1fr_1fr_100px] font-semibold border-b-2 border-slate-300 pb-1",children:[l("div",{children:"Name"}),l("div",{children:"ID"}),l("div",{children:"Event / Cron"})]}),r==null?void 0:r.functions.map((h,_)=>l(ys,{config:h,altBg:_%2===0}))]}):l("div",{class:"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20",children:[l("div",{class:"font-semibold",children:"No functions found"}),l("div",{class:"opacity-75 text-center",children:["We found your handler, but couldn\'t see any exported functions.",l("br",{}),"Check out the"," ",l("a",{href:"https://www.inngest.com/docs/functions",children:"Writing functions"})," ","guide to get started."]})]})]})})]})},$s=({copiable:e,value:t})=>l("code",{class:W({"flex flex-row space-x-2 items-center justify-center":!0,"cursor-pointer":Boolean(e)}),onClick:e?()=>{navigator.clipboard.writeText(t)}:void 0,children:[l("span",{children:t}),e?l(Es,{}):null]}),Es=()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15 15H20C20.5523 15 21 14.5523 21 14V4C21 3.44772 20.5523 3 20 3L10 3C9.44772 3 9 3.44771 9 4L9 9",stroke:"#1e293b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M4 21L14 21C14.5523 21 15 20.5523 15 20L15 10C15 9.44772 14.5523 9 14 9L4 9C3.44771 9 3 9.44771 3 10L3 20C3 20.5523 3.44771 21 4 21Z",stroke:"#1e293b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),Ns="http://localhost:8288",As=()=>l(ut,{children:e=>l("div",{class:"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5",children:[l("div",{class:"font-medium text-gray-900 text-xl",children:"Inngest SDK"}),l("div",{class:"h-6 w-1 bg-gray-300"}),l(Cs,{introspect:e})]})}),Cs=({introspect:e})=>{const{value:t,devConnected:r}=e,n=new URL((t==null?void 0:t.devServerURL)||Ns);return n.pathname="dev",l(k,{children:[l("div",{class:"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none",children:[l("div",{class:"flex h-4 w-4 relative",children:[l("span",{class:W({"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75":!0,"bg-green-400":r,"bg-red-400":!r})}),l("span",{class:W({"relative inline-flex rounded-full h-4 w-4":!0,"bg-green-500":r,"bg-red-500":!r})})]}),r?l("div",{children:["Connected to ",l("code",{children:"inngest dev"})," on"," ",l("code",{children:[n.hostname,":",n.port]})]}):l("div",{children:["Not connected to ",l("code",{children:"inngest dev"})]})]}),r?null:l(k,{children:[l("div",{className:"text-sm",children:"Run the dev server: "}),l($s,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function Hs(){return l(xs,{children:l(_s,{children:[l(As,{}),l(Zr,{children:l(Ss,{})})]})})}Yr(l(Hs,{}),document.getElementById("app"));\n\n</script>\n <style>\n*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0px}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-full{height:100%}.h-8{height:2rem}.h-6{height:1.5rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-1{width:.25rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr_100px\\]{grid-template-columns:1fr 1fr 1fr 100px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400\\/30{background-color:#facc154d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-200\\/30{background-color:#e2e8f04d}.bg-red-400\\/30{background-color:#f871714d}.bg-blue-300\\/30{background-color:#93c5fd4d}.bg-green-300\\/30{background-color:#86efac4d}.bg-gray-500\\/10{background-color:#6b72801a}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pt-1{padding-top:.25rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.opacity-25{opacity:.25}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}html,body,#app{height:100%;width:100%;--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem}.dark code{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}a{text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n</style>\n </head>\n <body>\n <div id="app"></div>\n \n </body>\n</html>\n';
4
+ exports.landing = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <title>Inngest SDK - Your functions</title>\n <script type="module" crossorigin>\nvar Vr=Object.defineProperty;var Gr=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>(Gr(e,typeof t!="symbol"?t+"":t,r),r),We=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var O=(e,t,r)=>(We(e,t,"read from private field"),r?r.call(e):t.get(e)),X=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ne=(e,t,r,n)=>(We(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Ve=(e,t,r)=>(We(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll(\'link[rel="modulepreload"]\'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Fe,v,jt,pe,mt,Kt,Te={},Jt=[],jr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function K(e,t){for(var r in t)e[r]=t[r];return e}function qt(e){var t=e.parentNode;t&&t.removeChild(e)}function Xe(e,t,r){var n,s,o,i={};for(o in t)o=="key"?n=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Fe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return Ie(e,i,n,s,null)}function Ie(e,t,r,n,s){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++jt:s};return s==null&&v.vnode!=null&&v.vnode(o),o}function k(e){return e.children}function M(e,t){this.props=e,this.context=t}function ee(e,t){if(t==null)return e.__?ee(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ee(e):null}function Yt(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Yt(e)}}function Ze(e){(!e.__d&&(e.__d=!0)&&pe.push(e)&&!Pe.__r++||mt!==v.debounceRendering)&&((mt=v.debounceRendering)||setTimeout)(Pe)}function Pe(){for(var e;Pe.__r=pe.length;)e=pe.sort(function(t,r){return t.__v.__b-r.__v.__b}),pe=[],e.some(function(t){var r,n,s,o,i,c;t.__d&&(i=(o=(r=t).__v).__e,(c=r.__P)&&(n=[],(s=K({},o)).__v=o.__v+1,st(c,o,s,r.__n,c.ownerSVGElement!==void 0,o.__h!=null?[i]:null,n,i==null?ee(o):i,o.__h),er(n,o),o.__e!=i&&Yt(o)))})}function Xt(e,t,r,n,s,o,i,c,u,f){var a,h,_,d,p,w,g,b=n&&n.__k||Jt,S=b.length;for(r.__k=[],a=0;a<t.length;a++)if((d=r.__k[a]=(d=t[a])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Ie(null,d,null,null,d):Array.isArray(d)?Ie(k,{children:d},null,null,null):d.__b>0?Ie(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=r,d.__b=r.__b+1,(_=b[a])===null||_&&d.key==_.key&&d.type===_.type)b[a]=void 0;else for(h=0;h<S;h++){if((_=b[h])&&d.key==_.key&&d.type===_.type){b[h]=void 0;break}_=null}st(e,d,_=_||Te,s,o,i,c,u,f),p=d.__e,(h=d.ref)&&_.ref!=h&&(g||(g=[]),_.ref&&g.push(_.ref,null,d),g.push(h,d.__c||p,d)),p!=null?(w==null&&(w=p),typeof d.type=="function"&&d.__k===_.__k?d.__d=u=Zt(d,u,e):u=Qt(e,d,_,b,p,u),typeof r.type=="function"&&(r.__d=u)):u&&_.__e==u&&u.parentNode!=e&&(u=ee(_))}for(r.__e=w,a=S;a--;)b[a]!=null&&(typeof r.type=="function"&&b[a].__e!=null&&b[a].__e==r.__d&&(r.__d=ee(n,a+1)),rr(b[a],b[a]));if(g)for(a=0;a<g.length;a++)tr(g[a],g[++a],g[++a])}function Zt(e,t,r){for(var n,s=e.__k,o=0;s&&o<s.length;o++)(n=s[o])&&(n.__=e,t=typeof n.type=="function"?Zt(n,t,r):Qt(r,n,n,s,n.__e,t));return t}function De(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(r){De(r,t)}):t.push(e)),t}function Qt(e,t,r,n,s,o){var i,c,u;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(r==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),i=null;else{for(c=o,u=0;(c=c.nextSibling)&&u<n.length;u+=2)if(c==s)break e;e.insertBefore(s,o),i=o}return i!==void 0?i:s.nextSibling}function Kr(e,t,r,n,s){var o;for(o in r)o==="children"||o==="key"||o in t||Re(e,o,null,r[o],n);for(o in t)s&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||Re(e,o,t[o],r[o],n)}function yt(e,t,r){t[0]==="-"?e.setProperty(t,r):e[t]=r==null?"":typeof r!="number"||jr.test(t)?r:r+"px"}function Re(e,t,r,n,s){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||yt(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||yt(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?St:wt,o):e.removeEventListener(t,o?St:wt,o);else if(t!=="dangerouslySetInnerHTML"){if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r!=null&&(r!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,r):e.removeAttribute(t))}}function wt(e){this.l[e.type+!1](v.event?v.event(e):e)}function St(e){this.l[e.type+!0](v.event?v.event(e):e)}function st(e,t,r,n,s,o,i,c,u){var f,a,h,_,d,p,w,g,b,S,z,F,A,y=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(u=r.__h,c=t.__e=r.__e,t.__h=null,o=[c]),(f=v.__b)&&f(t);try{e:if(typeof y=="function"){if(g=t.props,b=(f=y.contextType)&&n[f.__c],S=f?b?b.props.value:f.__:n,r.__c?w=(a=t.__c=r.__c).__=a.__E:("prototype"in y&&y.prototype.render?t.__c=a=new y(g,S):(t.__c=a=new M(g,S),a.constructor=y,a.render=qr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=S,a.__n=n,h=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),y.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=K({},a.__s)),K(a.__s,y.getDerivedStateFromProps(g,a.__s))),_=a.props,d=a.state,h)y.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(y.getDerivedStateFromProps==null&&g!==_&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,S),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,S)===!1||t.__v===r.__v){a.props=g,a.state=a.__s,t.__v!==r.__v&&(a.__d=!1),a.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(C){C&&(C.__=t)}),a.__h.length&&i.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,S),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(_,d,p)})}if(a.context=S,a.props=g,a.__v=t,a.__P=e,z=v.__r,F=0,"prototype"in y&&y.prototype.render)a.state=a.__s,a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context);else do a.__d=!1,z&&z(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++F<25);a.state=a.__s,a.getChildContext!=null&&(n=K(K({},n),a.getChildContext())),h||a.getSnapshotBeforeUpdate==null||(p=a.getSnapshotBeforeUpdate(_,d)),A=f!=null&&f.type===k&&f.key==null?f.props.children:f,Xt(e,Array.isArray(A)?A:[A],t,r,n,s,o,i,c,u),a.base=t.__e,t.__h=null,a.__h.length&&i.push(a),w&&(a.__E=a.__=null),a.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Jr(r.__e,t,r,n,s,o,i,u);(f=v.diffed)&&f(t)}catch(C){t.__v=null,(u||o!=null)&&(t.__e=c,t.__h=!!u,o[o.indexOf(c)]=null),v.__e(C,t,r)}}function er(e,t){v.__c&&v.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){v.__e(n,r.__v)}})}function Jr(e,t,r,n,s,o,i,c){var u,f,a,h=r.props,_=t.props,d=t.type,p=0;if(d==="svg"&&(s=!0),o!=null){for(;p<o.length;p++)if((u=o[p])&&"setAttribute"in u==!!d&&(d?u.localName===d:u.nodeType===3)){e=u,o[p]=null;break}}if(e==null){if(d===null)return document.createTextNode(_);e=s?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,_.is&&_),o=null,c=!1}if(d===null)h===_||c&&e.data===_||(e.data=_);else{if(o=o&&Fe.call(e.childNodes),f=(h=r.props||Te).dangerouslySetInnerHTML,a=_.dangerouslySetInnerHTML,!c){if(o!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(a||f)&&(a&&(f&&a.__html==f.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(Kr(e,_,h,s,c),a)t.__k=[];else if(p=t.props.children,Xt(e,Array.isArray(p)?p:[p],t,r,n,s&&d!=="foreignObject",o,i,o?o[0]:r.__k&&ee(r,0),c),o!=null)for(p=o.length;p--;)o[p]!=null&&qt(o[p]);c||("value"in _&&(p=_.value)!==void 0&&(p!==e.value||d==="progress"&&!p||d==="option"&&p!==h.value)&&Re(e,"value",p,h.value,!1),"checked"in _&&(p=_.checked)!==void 0&&p!==e.checked&&Re(e,"checked",p,h.checked,!1))}return e}function tr(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){v.__e(n,r)}}function rr(e,t,r){var n,s;if(v.unmount&&v.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||tr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){v.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&rr(n[s],t,typeof e.type!="function");r||e.__e==null||qt(e.__e),e.__=e.__e=e.__d=void 0}function qr(e,t,r){return this.constructor(e,r)}function Yr(e,t,r){var n,s,o;v.__&&v.__(e,t),s=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],st(t,e=(!n&&r||t).__k=Xe(k,null,[e]),s||Te,Te,t.ownerSVGElement!==void 0,!n&&r?[r]:s?null:t.firstChild?Fe.call(t.childNodes):null,o,!n&&r?r:s?s.__e:t.firstChild,n),er(o,e)}function nr(e,t){var r={__c:t="__cC"+Kt++,__:e,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(Ze)},this.sub=function(i){s.push(i);var c=i.componentWillUnmount;i.componentWillUnmount=function(){s.splice(s.indexOf(i),1),c&&c.call(i)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Fe=Jt.slice,v={__e:function(e,t,r,n){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,n||{}),i=s.__d),i)return s.__E=s}catch(c){e=c}throw e}},jt=0,M.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=K({},this.state),typeof e=="function"&&(e=e(K({},r),this.props)),e&&K(r,e),e!=null&&this.__v&&(t&&this.__h.push(t),Ze(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ze(this))},M.prototype.render=k,pe=[],Pe.__r=0,Kt=0;var Xr=0;function l(e,t,r,n,s){var o,i,c={};for(i in t)i=="ref"?o=t[i]:c[i]=t[i];var u={type:e,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Xr,__source:s,__self:n};if(typeof e=="function"&&(o=e.defaultProps))for(i in o)c[i]===void 0&&(c[i]=o[i]);return v.vnode&&v.vnode(u),u}const Zr=({children:e})=>l("div",{class:"w-full h-full",children:e}),de=({children:e})=>l("div",{class:"w-full flex justify-center",children:l("div",{class:"w-[70rem] max-w-full px-8",children:e})});var we,m,Ge,kt,xe=0,or=[],Le=[],$t=v.__b,Et=v.__r,Nt=v.diffed,At=v.__c,Ct=v.unmount;function Oe(e,t){v.__h&&v.__h(m,e,xe||t),xe=0;var r=m.__H||(m.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Le}),r.__[e]}function Se(e){return xe=1,sr(ar,e)}function sr(e,t,r){var n=Oe(we++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ar(void 0,t),function(o){var i=n.__N?n.__N[0]:n.__[0],c=n.t(i,o);i!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,i,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(a){return a.__c});if(u.every(function(a){return!a.__N}))return!s||s.call(this,o,i,c);var f=!1;return u.forEach(function(a){if(a.__N){var h=a.__[0];a.__=a.__N,a.__N=void 0,h!==a.__[0]&&(f=!0)}}),!!f&&(!s||s.call(this,o,i,c))}}return n.__N||n.__}function ge(e,t){var r=Oe(we++,3);!v.__s&&ir(r.__H,t)&&(r.__=e,r.i=t,m.__H.__h.push(r))}function it(e){return xe=5,I(function(){return{current:e}},[])}function I(e,t){var r=Oe(we++,7);return ir(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function at(e,t){return xe=8,I(function(){return e},t)}function Qr(e){var t=m.context[e.__c],r=Oe(we++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(m)),t.props.value):e.__}function en(){for(var e;e=or.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ue),e.__H.__h.forEach(Qe),e.__H.__h=[]}catch(t){e.__H.__h=[],v.__e(t,e.__v)}}v.__b=function(e){typeof e.type!="function"||e.o||e.type===k?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,$t&&$t(e)},v.__r=function(e){Et&&Et(e),we=0;var t=(m=e.__c).__H;t&&(Ge===m?(t.__h=[],m.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Le,r.__N=r.i=void 0})):(t.__h.forEach(Ue),t.__h.forEach(Qe),t.__h=[])),Ge=m},v.diffed=function(e){Nt&&Nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(or.push(t)!==1&&kt===v.requestAnimationFrame||((kt=v.requestAnimationFrame)||tn)(en)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Le&&(r.__=r.__V),r.i=void 0,r.__V=Le})),Ge=m=null},v.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ue),r.__h=r.__h.filter(function(n){return!n.__||Qe(n)})}catch(n){t.some(function(s){s.__h&&(s.__h=[])}),t=[],v.__e(n,r.__v)}}),At&&At(e,t)},v.unmount=function(e){Ct&&Ct(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ue(n)}catch(s){t=s}}),r.__H=void 0,t&&v.__e(t,r.__v))};var Ht=typeof requestAnimationFrame=="function";function tn(e){var t,r=function(){clearTimeout(n),Ht&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ht&&(t=requestAnimationFrame(r))}function Ue(e){var t=m,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),m=t}function Qe(e){var t=m;e.__c=e.__(),m=t}function ir(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ar(e,t){return typeof t=="function"?t(e):t}function rn(e,t){for(var r in t)e[r]=t[r];return e}function It(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Lt(e){this.props=e}(Lt.prototype=new M).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Ut=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ut&&Ut(e)};var nn=v.__e;v.__e=function(e,t,r,n){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),s.__c(e,t)}nn(e,t,r,n)};var Tt=v.unmount;function cr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=rn({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return cr(n,t,r)})),e}function lr(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return lr(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function je(){this.__u=0,this.t=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ae(){this.u=null,this.o=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Tt&&Tt(e)},(je.prototype=new M).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var s=ur(n.__v),o=!1,i=function(){o||(o=!0,r.__R=null,s?s(c):c())};r.__R=i;var c=function(){if(!--n.__u){if(n.state.__a){var f=n.state.__a;n.__v.__k[0]=lr(f,f.__c.__P,f.__c.__O)}var a;for(n.setState({__a:n.__b=null});a=n.t.pop();)a.forceUpdate()}},u=t.__h===!0;n.__u++||u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},je.prototype.componentWillUnmount=function(){this.t=[]},je.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=cr(this.__b,r,n.__O=n.__P)}this.__b=null}var s=t.__a&&Xe(k,null,e.fallback);return s&&(s.__h=null),[Xe(k,null,t.__a?null:e.children),s]};var Pt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(Ae.prototype=new M).__a=function(e){var t=this,r=ur(t.__v),n=t.o.get(e);return n[0]++,function(s){var o=function(){t.props.revealOrder?(n.push(s),Pt(t,e,n)):s()};r?r(o):o()}},Ae.prototype.render=function(e){this.u=null,this.o=new Map;var t=De(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Pt(e,r,t)})};var on=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,sn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=typeof document<"u",cn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Dt=v.event;function ln(){}function un(){return this.cancelBubble}function fn(){return this.defaultPrevented}v.event=function(e){return Dt&&(e=Dt(e)),e.persist=ln,e.isPropagationStopped=un,e.isDefaultPrevented=fn,e.nativeEvent=e};var Rt={configurable:!0,get:function(){return this.class}},Bt=v.vnode;v.vnode=function(e){var t=e.type,r=e.props,n=r;if(typeof t=="string"){var s=t.indexOf("-")===-1;for(var o in n={},r){var i=r[o];an&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in r&&i==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!cn(r.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():s&&sn.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),n[o]&&(o="oninputCapture")),n[o]=i)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=De(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),e.props=n,r.class!=r.className&&(Rt.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",Rt))}e.$$typeof=on,Bt&&Bt(e)};var zt=v.__r;v.__r=function(e){zt&&zt(e),e.__c};var te=function(){return te=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},te.apply(this,arguments)};function Ft(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var o=arguments[t],i=0,c=o.length;i<c;i++,s++)n[s]=o[i];return n}function hn(){var e=it(!1),t=at(function(){return e.current},[]);return ge(function(){return e.current=!0,function(){e.current=!1}},[]),t}function _n(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=it(0),s=hn(),o=Se(r),i=o[0],c=o[1],u=at(function(){for(var f=[],a=0;a<arguments.length;a++)f[a]=arguments[a];var h=++n.current;return i.loading||c(function(_){return te(te({},_),{loading:!0})}),e.apply(void 0,f).then(function(_){return s()&&h===n.current&&c({value:_,loading:!1}),_},function(_){return s()&&h===n.current&&c({error:_,loading:!1}),_})},t);return[i,u]}function dn(e,t){t===void 0&&(t=[]);var r=_n(e,t,{loading:!0}),n=r[0],s=r[1];return ge(function(){s()},[s]),n}var vn=function(e,t){t===void 0&&(t=[]);var r=Se(0),n=r[0],s=r[1],o=dn(e,Ft(t,[n])),i=o.loading,c=at(function(){i||s(function(u){return u+1})},Ft(t,[i]));return te(te({},o),{retry:c})};const fr=vn;var pn=function(e,t){var r=it(function(){});ge(function(){r.current=e}),ge(function(){if(t!==null){var n=setInterval(function(){return r.current()},t||0);return function(){return clearInterval(n)}}},[t])};const hr=pn;var ct=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(ct||{}),be=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(be||{});const xn={[be.EmptyTrigger]:l(k,{children:"One or more triggers seems invalid; it has no event or cron definition. Make sure you\'ve correctly used the function creation methods."}),[be.NoTriggers]:l(k,{children:"Can\'t find any triggers for this function, such as an event or a cron definition. Make sure you\'ve correctly used the function creation methods."})},gn={[ct.NoSigningKey]:l("div",{class:"flex flex-col space-y-2",children:[l("div",{class:"font-semibold",children:"Could not find signing key"}),l("div",{children:["A signing key is required to communicate with Inngest securely. We weren\'t passed one when calling ",l("code",{children:"serve()"})," and couldn\'t find it in the recommended ",l("code",{children:"INNGEST_SIGNING_KEY"})," environment variable."]}),l("div",{children:["You can find your signing key in the"," ",l("a",{href:"https://app.inngest.com/secrets",target:"_blank",children:"Inngest Dashboard - Secrets section."})]})]})};var et=(e=>(e.FnId="fnId",e.StepId="stepId",e.Introspect="introspect",e))(et||{}),_r=(e=>(e.SigningKey="INNGEST_SIGNING_KEY",e.EventKey="INNGEST_EVENT_KEY",e.LandingPage="INNGEST_LANDING_PAGE",e.DevServerUrl="INNGEST_DEVSERVER_URL",e))(_r||{});const dr="http://127.0.0.1:8288/",bn=async(e=dr,t)=>{try{const r=vr(e,"/dev");return await(await t(r.toString())).json(),!0}catch{return!1}},vr=(e=dr,t="")=>new URL(t,e.includes("://")?e:`http://${e}`),mn=()=>(lt()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),yn=()=>(lt()?["production",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes("production"),lt=()=>typeof process<"u"&&"env"in process,wn="0.8.4";var re=1e3,ne=re*60,oe=ne*60,q=oe*24,Sn=q*7,kn=q*365.25,$n=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return En(e);if(r==="number"&&isFinite(e))return t.long?An(e):Nn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function En(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*kn;case"weeks":case"week":case"w":return r*Sn;case"days":case"day":case"d":return r*q;case"hours":case"hour":case"hrs":case"hr":case"h":return r*oe;case"minutes":case"minute":case"mins":case"min":case"m":return r*ne;case"seconds":case"second":case"secs":case"sec":case"s":return r*re;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Nn(e){var t=Math.abs(e);return t>=q?Math.round(e/q)+"d":t>=oe?Math.round(e/oe)+"h":t>=ne?Math.round(e/ne)+"m":t>=re?Math.round(e/re)+"s":e+"ms"}function An(e){var t=Math.abs(e);return t>=q?Ce(e,t,q,"day"):t>=oe?Ce(e,t,oe,"hour"):t>=ne?Ce(e,t,ne,"minute"):t>=re?Ce(e,t,re,"second"):e+" ms"}function Ce(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}const Cn=e=>{const t="-";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)},Hn=1,pr=Hn*1e3,xr=pr*60,gr=xr*60,br=gr*24,In=br*7,Ln=[["w",In],["d",br],["h",gr],["m",xr],["s",pr]],Ke=(e,t=new Date)=>{let r=e;if(typeof r=="string"||typeof r=="number"){const i=typeof r=="string"?$n(r):r;r=new Date(Date.now()+i)}if(t.setMilliseconds(0),r.setMilliseconds(0),!!isNaN(r.getTime()))throw new Error("Invalid date given to convert to time string");const s=r.getTime()-t.getTime(),[,o]=Ln.reduce(([i,c],[u,f])=>{const a=Math.floor(i/f);return a>0?[i%f,`${c}${a}${u}`]:[i,c]},[s,""]);return o};var mr={},x={},ke=yr;function yr(e,t){if(!e)throw new Error(t||"Assertion failed")}yr.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var tt={exports:{}};typeof Object.create=="function"?tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var Un=ke,Tn=tt.exports;x.inherits=Tn;function Pn(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function Dn(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),s=0;s<e.length;s+=2)r.push(parseInt(e[s]+e[s+1],16))}else for(var n=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):Pn(e,s)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(s=0;s<e.length;s++)r[s]=e[s]|0;return r}x.toArray=Dn;function Rn(e){for(var t="",r=0;r<e.length;r++)t+=Sr(e[r].toString(16));return t}x.toHex=Rn;function wr(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}x.htonl=wr;function Bn(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];t==="little"&&(s=wr(s)),r+=kr(s.toString(16))}return r}x.toHex32=Bn;function Sr(e){return e.length===1?"0"+e:e}x.zero2=Sr;function kr(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}x.zero8=kr;function zn(e,t,r,n){var s=r-t;Un(s%4===0);for(var o=new Array(s/4),i=0,c=t;i<o.length;i++,c+=4){var u;n==="big"?u=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:u=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[i]=u>>>0}return o}x.join32=zn;function Fn(e,t){for(var r=new Array(e.length*4),n=0,s=0;n<e.length;n++,s+=4){var o=e[n];t==="big"?(r[s]=o>>>24,r[s+1]=o>>>16&255,r[s+2]=o>>>8&255,r[s+3]=o&255):(r[s+3]=o>>>24,r[s+2]=o>>>16&255,r[s+1]=o>>>8&255,r[s]=o&255)}return r}x.split32=Fn;function On(e,t){return e>>>t|e<<32-t}x.rotr32=On;function Mn(e,t){return e<<t|e>>>32-t}x.rotl32=Mn;function Wn(e,t){return e+t>>>0}x.sum32=Wn;function Vn(e,t,r){return e+t+r>>>0}x.sum32_3=Vn;function Gn(e,t,r,n){return e+t+r+n>>>0}x.sum32_4=Gn;function jn(e,t,r,n,s){return e+t+r+n+s>>>0}x.sum32_5=jn;function Kn(e,t,r,n){var s=e[t],o=e[t+1],i=n+o>>>0,c=(i<n?1:0)+r+s;e[t]=c>>>0,e[t+1]=i}x.sum64=Kn;function Jn(e,t,r,n){var s=t+n>>>0,o=(s<t?1:0)+e+r;return o>>>0}x.sum64_hi=Jn;function qn(e,t,r,n){var s=t+n;return s>>>0}x.sum64_lo=qn;function Yn(e,t,r,n,s,o,i,c){var u=0,f=t;f=f+n>>>0,u+=f<t?1:0,f=f+o>>>0,u+=f<o?1:0,f=f+c>>>0,u+=f<c?1:0;var a=e+r+s+i+u;return a>>>0}x.sum64_4_hi=Yn;function Xn(e,t,r,n,s,o,i,c){var u=t+n+o+c;return u>>>0}x.sum64_4_lo=Xn;function Zn(e,t,r,n,s,o,i,c,u,f){var a=0,h=t;h=h+n>>>0,a+=h<t?1:0,h=h+o>>>0,a+=h<o?1:0,h=h+c>>>0,a+=h<c?1:0,h=h+f>>>0,a+=h<f?1:0;var _=e+r+s+i+u+a;return _>>>0}x.sum64_5_hi=Zn;function Qn(e,t,r,n,s,o,i,c,u,f){var a=t+n+o+c+f;return a>>>0}x.sum64_5_lo=Qn;function eo(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}x.rotr64_hi=eo;function to(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.rotr64_lo=to;function ro(e,t,r){return e>>>r}x.shr64_hi=ro;function no(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}x.shr64_lo=no;var ce={},Ot=x,oo=ke;function Me(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ce.BlockHash=Me;Me.prototype.update=function(t,r){if(t=Ot.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Ot.join32(t,0,t.length-n,this.endian);for(var s=0;s<t.length;s+=this._delta32)this._update(t,s,s+this._delta32)}return this};Me.prototype.digest=function(t){return this.update(this._pad()),oo(this.pending===null),this._digest(t)};Me.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,s=new Array(n+this.padLength);s[0]=128;for(var o=1;o<n;o++)s[o]=0;if(t<<=3,this.endian==="big"){for(var i=8;i<this.padLength;i++)s[o++]=0;s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=t>>>24&255,s[o++]=t>>>16&255,s[o++]=t>>>8&255,s[o++]=t&255}else for(s[o++]=t&255,s[o++]=t>>>8&255,s[o++]=t>>>16&255,s[o++]=t>>>24&255,s[o++]=0,s[o++]=0,s[o++]=0,s[o++]=0,i=8;i<this.padLength;i++)s[o++]=0;return s};var le={},B={},so=x,L=so.rotr32;function io(e,t,r,n){if(e===0)return $r(t,r,n);if(e===1||e===3)return Nr(t,r,n);if(e===2)return Er(t,r,n)}B.ft_1=io;function $r(e,t,r){return e&t^~e&r}B.ch32=$r;function Er(e,t,r){return e&t^e&r^t&r}B.maj32=Er;function Nr(e,t,r){return e^t^r}B.p32=Nr;function ao(e){return L(e,2)^L(e,13)^L(e,22)}B.s0_256=ao;function co(e){return L(e,6)^L(e,11)^L(e,25)}B.s1_256=co;function lo(e){return L(e,7)^L(e,18)^e>>>3}B.g0_256=lo;function uo(e){return L(e,17)^L(e,19)^e>>>10}B.g1_256=uo;var se=x,fo=ce,ho=B,Je=se.rotl32,he=se.sum32,_o=se.sum32_5,vo=ho.ft_1,Ar=fo.BlockHash,po=[1518500249,1859775393,2400959708,3395469782];function P(){if(!(this instanceof P))return new P;Ar.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}se.inherits(P,Ar);var xo=P;P.blockSize=512;P.outSize=160;P.hmacStrength=80;P.padLength=64;P.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=Je(n[s-3]^n[s-8]^n[s-14]^n[s-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4];for(s=0;s<n.length;s++){var a=~~(s/20),h=_o(Je(o,5),vo(a,i,c,u),f,n[s],po[a]);f=u,u=c,c=Je(i,30),i=o,o=h}this.h[0]=he(this.h[0],o),this.h[1]=he(this.h[1],i),this.h[2]=he(this.h[2],c),this.h[3]=he(this.h[3],u),this.h[4]=he(this.h[4],f)};P.prototype._digest=function(t){return t==="hex"?se.toHex32(this.h,"big"):se.split32(this.h,"big")};var ie=x,go=ce,ue=B,bo=ke,E=ie.sum32,mo=ie.sum32_4,yo=ie.sum32_5,wo=ue.ch32,So=ue.maj32,ko=ue.s0_256,$o=ue.s1_256,Eo=ue.g0_256,No=ue.g1_256,Cr=go.BlockHash,Ao=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function D(){if(!(this instanceof D))return new D;Cr.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Ao,this.W=new Array(64)}ie.inherits(D,Cr);var Hr=D;D.blockSize=512;D.outSize=256;D.hmacStrength=192;D.padLength=64;D.prototype._update=function(t,r){for(var n=this.W,s=0;s<16;s++)n[s]=t[r+s];for(;s<n.length;s++)n[s]=mo(No(n[s-2]),n[s-7],Eo(n[s-15]),n[s-16]);var o=this.h[0],i=this.h[1],c=this.h[2],u=this.h[3],f=this.h[4],a=this.h[5],h=this.h[6],_=this.h[7];for(bo(this.k.length===n.length),s=0;s<n.length;s++){var d=yo(_,$o(f),wo(f,a,h),this.k[s],n[s]),p=E(ko(o),So(o,i,c));_=h,h=a,a=f,f=E(u,d),u=c,c=i,i=o,o=E(d,p)}this.h[0]=E(this.h[0],o),this.h[1]=E(this.h[1],i),this.h[2]=E(this.h[2],c),this.h[3]=E(this.h[3],u),this.h[4]=E(this.h[4],f),this.h[5]=E(this.h[5],a),this.h[6]=E(this.h[6],h),this.h[7]=E(this.h[7],_)};D.prototype._digest=function(t){return t==="hex"?ie.toHex32(this.h,"big"):ie.split32(this.h,"big")};var rt=x,Ir=Hr;function V(){if(!(this instanceof V))return new V;Ir.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}rt.inherits(V,Ir);var Co=V;V.blockSize=512;V.outSize=224;V.hmacStrength=192;V.padLength=64;V.prototype._digest=function(t){return t==="hex"?rt.toHex32(this.h.slice(0,7),"big"):rt.split32(this.h.slice(0,7),"big")};var $=x,Ho=ce,Io=ke,U=$.rotr64_hi,T=$.rotr64_lo,Lr=$.shr64_hi,Ur=$.shr64_lo,j=$.sum64,qe=$.sum64_hi,Ye=$.sum64_lo,Lo=$.sum64_4_hi,Uo=$.sum64_4_lo,To=$.sum64_5_hi,Po=$.sum64_5_lo,Tr=Ho.BlockHash,Do=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function N(){if(!(this instanceof N))return new N;Tr.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Do,this.W=new Array(160)}$.inherits(N,Tr);var Pr=N;N.blockSize=1024;N.outSize=512;N.hmacStrength=192;N.padLength=128;N.prototype._prepareBlock=function(t,r){for(var n=this.W,s=0;s<32;s++)n[s]=t[r+s];for(;s<n.length;s+=2){var o=Ko(n[s-4],n[s-3]),i=Jo(n[s-4],n[s-3]),c=n[s-14],u=n[s-13],f=Go(n[s-30],n[s-29]),a=jo(n[s-30],n[s-29]),h=n[s-32],_=n[s-31];n[s]=Lo(o,i,c,u,f,a,h,_),n[s+1]=Uo(o,i,c,u,f,a,h,_)}};N.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,s=this.h[0],o=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],f=this.h[5],a=this.h[6],h=this.h[7],_=this.h[8],d=this.h[9],p=this.h[10],w=this.h[11],g=this.h[12],b=this.h[13],S=this.h[14],z=this.h[15];Io(this.k.length===n.length);for(var F=0;F<n.length;F+=2){var A=S,y=z,C=Wo(_,d),fe=Vo(_,d),ht=Ro(_,d,p,w,g),_t=Bo(_,d,p,w,g,b),dt=this.k[F],vt=this.k[F+1],pt=n[F],xt=n[F+1],$e=To(A,y,C,fe,ht,_t,dt,vt,pt,xt),Ee=Po(A,y,C,fe,ht,_t,dt,vt,pt,xt);A=Oo(s,o),y=Mo(s,o),C=zo(s,o,i,c,u),fe=Fo(s,o,i,c,u,f);var gt=qe(A,y,C,fe),bt=Ye(A,y,C,fe);S=g,z=b,g=p,b=w,p=_,w=d,_=qe(a,h,$e,Ee),d=Ye(h,h,$e,Ee),a=u,h=f,u=i,f=c,i=s,c=o,s=qe($e,Ee,gt,bt),o=Ye($e,Ee,gt,bt)}j(this.h,0,s,o),j(this.h,2,i,c),j(this.h,4,u,f),j(this.h,6,a,h),j(this.h,8,_,d),j(this.h,10,p,w),j(this.h,12,g,b),j(this.h,14,S,z)};N.prototype._digest=function(t){return t==="hex"?$.toHex32(this.h,"big"):$.split32(this.h,"big")};function Ro(e,t,r,n,s){var o=e&r^~e&s;return o<0&&(o+=4294967296),o}function Bo(e,t,r,n,s,o){var i=t&n^~t&o;return i<0&&(i+=4294967296),i}function zo(e,t,r,n,s){var o=e&r^e&s^r&s;return o<0&&(o+=4294967296),o}function Fo(e,t,r,n,s,o){var i=t&n^t&o^n&o;return i<0&&(i+=4294967296),i}function Oo(e,t){var r=U(e,t,28),n=U(t,e,2),s=U(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Mo(e,t){var r=T(e,t,28),n=T(t,e,2),s=T(t,e,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Wo(e,t){var r=U(e,t,14),n=U(e,t,18),s=U(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Vo(e,t){var r=T(e,t,14),n=T(e,t,18),s=T(t,e,9),o=r^n^s;return o<0&&(o+=4294967296),o}function Go(e,t){var r=U(e,t,1),n=U(e,t,8),s=Lr(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function jo(e,t){var r=T(e,t,1),n=T(e,t,8),s=Ur(e,t,7),o=r^n^s;return o<0&&(o+=4294967296),o}function Ko(e,t){var r=U(e,t,19),n=U(t,e,29),s=Lr(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}function Jo(e,t){var r=T(e,t,19),n=T(t,e,29),s=Ur(e,t,6),o=r^n^s;return o<0&&(o+=4294967296),o}var nt=x,Dr=Pr;function G(){if(!(this instanceof G))return new G;Dr.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}nt.inherits(G,Dr);var qo=G;G.blockSize=1024;G.outSize=384;G.hmacStrength=192;G.padLength=128;G.prototype._digest=function(t){return t==="hex"?nt.toHex32(this.h.slice(0,12),"big"):nt.split32(this.h.slice(0,12),"big")};le.sha1=xo;le.sha224=Co;le.sha256=Hr;le.sha384=qo;le.sha512=Pr;var Rr={},Y=x,Yo=ce,He=Y.rotl32,Mt=Y.sum32,_e=Y.sum32_3,Wt=Y.sum32_4,Br=Yo.BlockHash;function R(){if(!(this instanceof R))return new R;Br.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Y.inherits(R,Br);Rr.ripemd160=R;R.blockSize=512;R.outSize=160;R.hmacStrength=192;R.padLength=64;R.prototype._update=function(t,r){for(var n=this.h[0],s=this.h[1],o=this.h[2],i=this.h[3],c=this.h[4],u=n,f=s,a=o,h=i,_=c,d=0;d<80;d++){var p=Mt(He(Wt(n,Vt(d,s,o,i),t[Qo[d]+r],Xo(d)),ts[d]),c);n=c,c=i,i=He(o,10),o=s,s=p,p=Mt(He(Wt(u,Vt(79-d,f,a,h),t[es[d]+r],Zo(d)),rs[d]),_),u=_,_=h,h=He(a,10),a=f,f=p}p=_e(this.h[1],o,h),this.h[1]=_e(this.h[2],i,_),this.h[2]=_e(this.h[3],c,u),this.h[3]=_e(this.h[4],n,f),this.h[4]=_e(this.h[0],s,a),this.h[0]=p};R.prototype._digest=function(t){return t==="hex"?Y.toHex32(this.h,"little"):Y.split32(this.h,"little")};function Vt(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function Xo(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Zo(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var Qo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],es=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ts=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],rs=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ns=x,os=ke;function ae(e,t,r){if(!(this instanceof ae))return new ae(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(ns.toArray(t,r))}var ss=ae;ae.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),os(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};ae.prototype.update=function(t,r){return this.inner.update(t,r),this};ae.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=x,t.common=ce,t.sha=le,t.ripemd=Rr,t.hmac=ss,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(mr);var is=as;function as(e,t){t=t||10;var r=[],n="",s=RegExp;function o(i,c){if(!(c>t)&&!(typeof i=="function"||typeof i>"u")){if(typeof i!="object"||!i||i instanceof s){n+=i;return}r.indexOf(i)!==-1||c===t||(r.push(i),n+="{",Object.keys(i).forEach(function(u,f,a){if(u.charAt(0)!=="_"){var h=typeof i[u];h==="function"||h==="undefined"||(n+=u,o(i[u],c+1))}}))}}return o(e,0),n}var ve=(e=>(e.WaitForEvent="WaitForEvent",e.RunStep="Step",e.Sleep="Sleep",e))(ve||{});class ot{}const cs=e=>{let t=!0,r=0;const n={...e},s=u=>{const f=n[u.id];return[f!==void 0,f]},o=(u,f)=>(...a)=>{if(!t)throw new ot;const h=u(...a),_={...h,id:ls(h,r++)},[d,p]=s(_);if(d)return p;t=!1;const w=(...g)=>{i.nextOp=new Promise(b=>b(g[0])).then(b=>({..._,...g.length?{data:b}:{}}))};throw f?f({submitOp:w},...a):w(),i.nextOp?new ot:new Error("No operation was submitted by a tool")},i={nextOp:void 0};return[{waitForEvent:o((u,f)=>{const a={ttl:Ke(f.timeout)};return f!=null&&f.match?a.match=`event.${f.match} == async.${f.match}`:f!=null&&f.if&&(a.match=f.if),{op:ve.WaitForEvent,name:u,opts:a}}),run:o(u=>({op:ve.RunStep,name:u}),({submitOp:u},f,a)=>{u(a())}),sleep:o(u=>({op:ve.Sleep,name:Ke(u)})),sleepUntil:o(u=>({op:ve.Sleep,name:Ke(u)}))},i]},ls=(e,t)=>mr.sha1().update(is({pos:t,op:e.op,name:e.name,opts:e.opts})).digest("hex");var H,me,ye,Be,zr;const Z=class{constructor(t,r,n){X(this,Be);X(this,H,void 0);X(this,me,void 0);X(this,ye,void 0);Ne(this,H,t),Ne(this,me,r),Ne(this,ye,n)}id(t){return O(this,H).id||(O(this,H).id=Ve(this,Be,zr).call(this,t)),O(this,H).id}get name(){return O(this,H).name}getConfig(t,r){const n=this.id(r),s=new URL(t.href);return s.searchParams.set(et.FnId,n),s.searchParams.set(et.StepId,Z.stepId),{...O(this,H),id:n,name:this.name,triggers:[O(this,me)],steps:{[Z.stepId]:{id:Z.stepId,name:Z.stepId,runtime:{type:"http",url:s.href}}}}}async runFn(t,r){const[n,s]=cs(r),o={...t,tools:n};let i;try{i=await O(this,ye).call(this,o)}catch(c){if(!(c instanceof ot)){if(!s.nextOp)throw c;console.warn("An error occurred after submitting a new op. Continuing on.",c)}}return s.nextOp?[!0,await s.nextOp]:[!1,i]}};let Q=Z;H=new WeakMap,me=new WeakMap,ye=new WeakMap,Be=new WeakSet,zr=function(t){return Cn([t||"",O(this,H).name].join("-"))},J(Q,"stepId","step");var ze,Fr;class us{constructor({name:t,eventKey:r,inngestBaseUrl:n="https://inn.gs/"}){X(this,ze);J(this,"name");J(this,"eventKey");J(this,"inngestBaseUrl");J(this,"inngestApiUrl");J(this,"headers");if(!t)throw new Error("A name must be passed to create an Inngest instance.");if(this.name=t,this.eventKey=r||lt()&&process.env[_r.EventKey]||"",this.inngestBaseUrl=new URL(n),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),!r)throw new Error("An event key must be passed to create an Inngest instance.");this.headers={"Content-Type":"application/json","User-Agent":`InngestJS v${wn}`}}async send(t,r){let n;if(typeof t=="string"?n=(Array.isArray(r)?r:r?[r]:[]).map(i=>({...i,name:t})):n=Array.isArray(t)?t:t?[t]:[],!n.length)throw new Error("Provided a name but no events to send; make sure to send an event payload too");let s=this.inngestApiUrl.href;if(!yn()){const i=mn();(i!==void 0||await bn(i,fetch))&&(s=vr(i,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:"POST",body:JSON.stringify(n),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await Ve(this,ze,Fr).call(this,o)}createStepFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{event:r},n)}createFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{event:r},n)}createScheduledFunction(t,r,n){return new Q(typeof t=="string"?{name:t}:t,{cron:r},n)}}ze=new WeakSet,Fr=async function(t){let r="Unknown error";switch(t.status){case 401:r="Event key Not Found";break;case 400:r="Cannot process event payload";break;case 403:r="Forbidden";break;case 404:r="Event key not found";break;case 406:r=`${JSON.stringify(await t.json())}`;break;case 409:case 412:r="Event transformation failed";break;case 413:r="Event payload too large";break;case 500:r="Internal server error";break}return new Error(`Inngest API Error: ${t.status} ${r}`)};const W=e=>Object.entries(e).reduce((r,[n,s])=>s?[...r,n]:r,[]).filter(Boolean).join(" ").trim(),Or=({children:e,onClick:t,type:r,disabled:n,className:s=""})=>l("button",{className:`${n?"bg-slate-400":"bg-blue-500"} text-white px-5 py-1 font-semibold rounded ${s}`,onClick:t,type:r,disabled:n,children:e}),fs=()=>fr(async()=>{const t=new URL(window.location.href);t.searchParams.set("introspect","true");const n=await(await fetch(t)).json();return n.functions=n.functions.map(s=>{var i;const o=new Set;return((i=s.triggers)==null?void 0:i.length)<1?o.add(be.NoTriggers):s.triggers.some(u=>!(u!=null&&u.event)&&!(u!=null&&u.cron))&&o.add(be.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var u,f;const i=Boolean((u=s.errors)==null?void 0:u.size),c=Boolean((f=o.errors)==null?void 0:f.size);return i!==c?i?-1:1:s.name.localeCompare(o.name)}),n.globalErrors=new Set,n.hasSigningKey||n.globalErrors.add(ct.NoSigningKey),n}),hs="http://localhost:8288",Mr=nr({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ut=Mr.Consumer,_s=({children:e})=>{const{value:t,retry:r,loading:n,error:s}=fs(),o=new URL((t==null?void 0:t.devServerURL)||hs);o.pathname="dev";const{value:i,retry:c}=fr(async()=>await(await fetch(o)).json());hr(c,1e3);const u=I(()=>Boolean(i),[i]);return l(Mr.Provider,{value:{value:t,retry:r,loading:n,error:s,dev:i,devConnected:u},children:e})},ds=({value:e,label:t,onChange:r,className:n="",disabled:s})=>l(k,{children:[t?l(vs,{children:t}):null,l("textarea",{disabled:s,class:W({"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500":!0,[n]:!0}),value:e,onChange:o=>r==null?void 0:r(o.currentTarget.value)})]}),vs=({children:e})=>l("label",{class:"font-semibold text-sm",children:e}),Wr=nr({push:e=>()=>{},remove:e=>{}}),ps=(e,t)=>{switch(t.type){case"add":return e.find(r=>r.id===t.toast.id)?e:e.concat([{...t.toast}]);case"remove":return e.filter(r=>r.id!==t.id)}},xs=({children:e})=>{const[t,r]=sr(ps,[]),n=o=>r({type:"remove",id:o}),s=o=>{const i=Math.random().toString(16);return r({type:"add",toast:{...o,id:o.id||i}}),()=>n(i)};return l(Wr.Provider,{value:{push:s,remove:n},children:[l("div",{className:"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8",children:t.map(o=>l(gs,{toast:o},o.id))}),e]})},ft=()=>Qr(Wr),Gt=5e3,gs=({toast:e})=>{const{remove:t}=ft(),[r,n]=Se(!1),s=e.icon;ge(()=>{setTimeout(()=>{n(!0)},25),setTimeout(()=>{!e.sticky&&n(!1)},e.duration||Gt-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||Gt)},[e.id]);const o=e.message||(e.type==="error"?"Something went wrong":"");let i="text-slate-200 bg-gray-800";switch(e.type){case"success":i="text-slate-200 bg-green-600";break;case"error":i="text-slate-200 bg-red-800"}return r?l("div",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${i} text-center mb-2`,onClick:()=>t(e.id),children:[s&&l(s,{size:22,style:{marginRight:10}}),l("span",{children:o.replace("[GraphQL] ","").replace("[Network] ","")})]}):null},bs=e=>l(ut,{children:t=>l(ms,{...e,introspect:t})}),ms=({introspect:e,eventData:t})=>{const{push:r}=ft(),{value:n,devConnected:s}=e,[o,i]=Se(t||JSON.stringify({name:"",data:{}},void 0," ")),c=I(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),u=async f=>{if(f.preventDefault(),!n||!s){r({type:"error",message:"You must run the dev server to send test events"});return}await new us({name:n.appName,inngestBaseUrl:n.devServerURL,eventKey:"dev-server"}).send(JSON.parse(o)),r({type:"success",message:"Event sent. Check your terminal for logs."})};return l(de,{children:l("details",{class:"border border-gray-200 p-4 flex flex-col cursor-pointer rounded-lg bg-white shadow-lg my-4",children:[l("summary",{class:"select-none",children:"Send a test event to trigger functions"}),l("div",{className:"pt-1 pb-2 text-gray-500 text-sm",children:"Send a test event as JSON to the Inngest dev server. This will trigger any functions that run from this event."}),l("form",{class:"flex-1",onSubmit:u,children:[l("div",{class:"my-4",children:l(ds,{label:"Event data (JSON)",className:W({"font-mono overflow-y-scroll h-48 resize-none":!0,"bg-red-100":!c}),value:o,onChange:i})}),l("div",{class:"flex flex-row justify-end space-x-4 items-center italic",children:[s?l("div",{class:"text-gray-500 text-sm",children:"Ctrl + Enter to send"}):l("div",{class:"text-red-600 text-sm",children:"Run the dev server to send test events"}),l(Or,{type:"submit",disabled:!s,children:"Send event"})]})]})]})})},ys=({config:e,altBg:t})=>{var c,u;const{push:r}=ft(),n=I(()=>e.triggers[0].cron?"cron":"event",[e.triggers]),s=I(()=>{const f=e.triggers[0];return f.cron||f.event||""},[e.triggers]),o=I(()=>{var f;return Boolean((f=e.errors)==null?void 0:f.size)},[e.errors]),i=async()=>{const f=new URL(window.location.href);f.searchParams.set("fnId",e.id),f.searchParams.set("stepId",e.steps.step.id),r({type:"default",message:"Scheduled function triggered"});const a=await fetch(f,{method:"POST",body:JSON.stringify({event:{}}),headers:{"Content-Type":"application/json"}}),h=await a.json(),_=typeof h=="object"&&h.status?h.status:a.status;r({type:_===200?"success":"error",message:`Function complete: ${JSON.stringify(h)}`})};return l(k,{children:[l("div",{class:W({"w-full grid grid-cols-[1fr_1fr_1fr_100px] p-2 items-center":!0,"bg-slate-200/30":Boolean(t),"bg-red-400/30":o}),children:[l("div",{class:"flex flex-col",children:l("div",{class:"font-semibold text-sm",children:[e.name," ",l("span",{class:W({"uppercase text-xs px-1 py-0.5 rounded":!0,"bg-blue-300/30":n==="event","bg-green-300/30":n==="cron"}),children:n})]})}),l("div",{children:l("code",{class:W({"text-xs text-gray-500":!0,"bg-white":o,"bg-gray-500/10":!o}),children:e.id})}),l("span",{children:s?l("code",{children:s}):l("code",{class:"bg-white",children:"Invalid or no expression"})}),l("div",{children:n==="cron"&&l(Or,{className:"text-sm",onClick:i,children:"Trigger"})})]}),o?l("div",{class:"w-full p-2 bg-red-400/30",children:(u=Array.from((c=e.errors)!=null?c:[]))==null?void 0:u.map(f=>l("div",{class:"bg-red-100 border border-red-400 rounded p-2",children:xn[f]}))}):null]})},ws=({class:e=""})=>l("svg",{class:W({"animate-spin h-5 w-5 text-slate-800":!0,[e]:!0}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Ss=()=>l(ut,{children:e=>l(ks,{introspect:e})}),ks=({introspect:e})=>{var a;const{loading:t,value:r,retry:n,error:s}=e,[o,i]=Se(!1);hr(n,5e3);const c=I(()=>(r==null?void 0:r.functions.some(h=>{var _;return(_=h.errors)==null?void 0:_.size}))||!1,[r==null?void 0:r.functions]),u=I(()=>Boolean(r==null?void 0:r.globalErrors.size),[r==null?void 0:r.globalErrors]),f=I(()=>[{title:"\\u{1F9D1}\\u200D\\u{1F4BB} Writing functions",description:"Get started writing your serverless background functions and scheduled tasks.",href:"https://www.inngest.com/docs/functions"},{title:"\\u{1F4E2} Sending events",description:"Learn how to trigger your functions by sending events from your code.",href:"https://www.inngest.com/docs/events"},{title:"\\u{1F6A2} Deploying",description:"Deploy functions to your platform of choice.",href:"https://www.inngest.com/docs/deploy"}],[]);return t&&!r&&!s?l("div",{class:"flex-1 w-full h-full flex items-center justify-center",children:l(ws,{class:"h-8 w-8"})}):l(k,{children:[l("div",{class:"flex flex-col gap-4 py-20 bg-gray-100",children:l(de,{children:[l("div",{class:"text-3xl",children:c?"\\u274C Your functions are not set up correctly":r!=null&&r.functions.length?"\\u2705 Your functions are set up correctly":"\\u274E No functions detected"}),l("div",{class:"ml-12 opacity-75",children:l("code",{children:["inngest-",r==null?void 0:r.sdk]})})]})}),l("div",{children:l(de,{children:l("div",{class:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4",children:f.map(h=>l("a",{href:h.href,target:"_blank",class:"bg-white rounded border-1 border-black shadow-xl p-4 flex flex-col space-y-2 transition-all hover:scale-105 hover:shadow-2xl no-underline",children:[l("div",{class:"font-semibold text-lg",children:h.title}),l("div",{class:"text-sm",children:h.description}),l("div",{class:"flex-1"}),l("div",{class:"text-right font-semibold text-purple-500",children:"Explore \\u2192"})]}))})})}),u?l("div",{class:"mt-8",children:l(de,{children:l("div",{class:"w-full p-4 rounded bg-yellow-400/30 flex flex-col space-y-2",children:[l("div",{class:"font-semibold text-yellow-700 text-lg",children:"Your handler configuration might be missing some options"}),Array.from((a=r==null?void 0:r.globalErrors)!=null?a:[]).map(h=>l("div",{class:"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800",children:gn[h]}))]})})}):null,l(bs,{expanded:o,onToggle:()=>i(h=>!h)}),l("div",{class:"w-full flex items-center justify-center mt-8 p-4",children:l(de,{children:[l("div",{class:"flex flex-row justify-between",children:[l("div",{class:"flex flex-row space-x-2 items-center justify-center",children:[l("div",{class:"font-semibold",children:["Found ",(r==null?void 0:r.functions.length)||0," functions"]}),l("div",{children:l("div",{class:"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase",onClick:()=>n(),children:"Refresh"})})]}),l("a",{class:"mb-8",href:"#",children:"Don\'t see your function?"})]}),r!=null&&r.functions.length?l("div",{class:"flex flex-col",children:[l("div",{class:"w-full grid grid-cols-[1fr_1fr_1fr_100px] font-semibold border-b-2 border-slate-300 pb-1",children:[l("div",{children:"Name"}),l("div",{children:"ID"}),l("div",{children:"Event / Cron"})]}),r==null?void 0:r.functions.map((h,_)=>l(ys,{config:h,altBg:_%2===0}))]}):l("div",{class:"bg-gray-100 rounded-lg flex flex-col space-y-2 items-center justify-center p-20",children:[l("div",{class:"font-semibold",children:"No functions found"}),l("div",{class:"opacity-75 text-center",children:["We found your handler, but couldn\'t see any exported functions.",l("br",{}),"Check out the"," ",l("a",{href:"https://www.inngest.com/docs/functions",children:"Writing functions"})," ","guide to get started."]})]})]})})]})},$s=({copiable:e,value:t})=>l("code",{class:W({"flex flex-row space-x-2 items-center justify-center":!0,"cursor-pointer":Boolean(e)}),onClick:e?()=>{navigator.clipboard.writeText(t)}:void 0,children:[l("span",{children:t}),e?l(Es,{}):null]}),Es=()=>l("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15 15H20C20.5523 15 21 14.5523 21 14V4C21 3.44772 20.5523 3 20 3L10 3C9.44772 3 9 3.44771 9 4L9 9",stroke:"#1e293b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M4 21L14 21C14.5523 21 15 20.5523 15 20L15 10C15 9.44772 14.5523 9 14 9L4 9C3.44771 9 3 9.44771 3 10L3 20C3 20.5523 3.44771 21 4 21Z",stroke:"#1e293b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),Ns="http://localhost:8288",As=()=>l(ut,{children:e=>l("div",{class:"bg-gray-200 top-0 w-full p-4 flex flex-row items-center gap-5",children:[l("div",{class:"font-medium text-gray-900 text-xl",children:"Inngest SDK"}),l("div",{class:"h-6 w-1 bg-gray-300"}),l(Cs,{introspect:e})]})}),Cs=({introspect:e})=>{const{value:t,devConnected:r}=e,n=new URL((t==null?void 0:t.devServerURL)||Ns);return n.pathname="dev",l(k,{children:[l("div",{class:"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none",children:[l("div",{class:"flex h-4 w-4 relative",children:[l("span",{class:W({"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75":!0,"bg-green-400":r,"bg-red-400":!r})}),l("span",{class:W({"relative inline-flex rounded-full h-4 w-4":!0,"bg-green-500":r,"bg-red-500":!r})})]}),r?l("div",{children:["Connected to ",l("code",{children:"inngest dev"})," on"," ",l("code",{children:[n.hostname,":",n.port]})]}):l("div",{children:["Not connected to ",l("code",{children:"inngest dev"})]})]}),r?null:l(k,{children:[l("div",{className:"text-sm",children:"Run the dev server: "}),l($s,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function Hs(){return l(xs,{children:l(_s,{children:[l(As,{}),l(Zr,{children:l(Ss,{})})]})})}Yr(l(Hs,{}),document.getElementById("app"));\n\n</script>\n <style>\n*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0px}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-12{margin-left:3rem}.mt-8{margin-top:2rem}.mb-8{margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-full{height:100%}.h-8{height:2rem}.h-6{height:1.5rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.w-full{width:100%}.w-\\[70rem\\]{width:70rem}.w-8{width:2rem}.w-1{width:.25rem}.w-4{width:1rem}.w-5{width:1.25rem}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_1fr_1fr_100px\\]{grid-template-columns:1fr 1fr 1fr 100px}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400\\/30{background-color:#facc154d}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-200\\/30{background-color:#e2e8f04d}.bg-red-400\\/30{background-color:#f871714d}.bg-blue-300\\/30{background-color:#93c5fd4d}.bg-green-300\\/30{background-color:#86efac4d}.bg-gray-500\\/10{background-color:#6b72801a}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-2{padding:.5rem}.p-20{padding:5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pt-1{padding-top:.25rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.opacity-25{opacity:.25}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}html,body,#app{height:100%;width:100%;--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.875rem;line-height:1.25rem}.dark code{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}a{text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 768px){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n</style>\n </head>\n <body>\n <div id="app"></div>\n \n </body>\n</html>\n';
5
5
  //# sourceMappingURL=landing.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inngest",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Official SDK for Inngest.com",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -19,7 +19,8 @@
19
19
  "pb:version": "genversion --semi --double --es6 ./src/version.ts",
20
20
  "pb:landing": "yarn build:landing && node -e 'const page = JSON.stringify(require(\"fs\").readFileSync(\"./landing/dist/index.html\").toString()); console.log(\"export const landing = \" + page);' > ./src/landing.ts && npx prettier ./src/landing.ts --write",
21
21
  "build": "yarn run clean && tsc --project tsconfig.build.json",
22
- "test": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --silent --logHeapUsage --maxWorkers=8 --coverage",
22
+ "test": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --silent --logHeapUsage --maxWorkers=8 --coverage --ci --verbose",
23
+ "test:examples": "node --expose-gc --max-old-space-size=4096 ./node_modules/.bin/jest --silent --logHeapUsage --maxWorkers=8 --testMatch \"**/examples/test/*.test.ts\" --ci --verbose",
23
24
  "clean": "rm -rf ./dist",
24
25
  "lint": "eslint .",
25
26
  "postversion": "yarn run build && yarn run build:copy",
@@ -83,7 +84,8 @@
83
84
  "prettier": "^2.7.1",
84
85
  "shx": "^0.3.4",
85
86
  "ts-jest": "^27.1.4",
86
- "typescript": "^4.8.3"
87
+ "typescript": "^4.8.3",
88
+ "ulid": "^2.3.0"
87
89
  },
88
90
  "volta": {
89
91
  "node": "16.17.0",
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "0.8.2";
1
+ export declare const version = "0.8.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = "0.8.2";
5
+ exports.version = "0.8.4";
6
6
  //# sourceMappingURL=version.js.map