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

inngest

Package Overview
Dependencies
Maintainers
2
Versions
563
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inngest - npm Package Compare versions

Comparing version 0.6.1-redwood.1 to 0.6.1-redwood.2

2

landing.d.ts

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

export declare const landing = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Inngest SDK - Your functions</title>\n <script type=\"module\" crossorigin>\nvar bt=Object.defineProperty;var wt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var A=(e,t,n)=>(wt(e,typeof t!=\"symbol\"?t+\"\":t,n),n),ie=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)};var k=(e,t,n)=>(ie(e,t,\"read from private field\"),n?n.call(e):t.get(e)),I=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},D=(e,t,n,r)=>(ie(e,t,\"write to private field\"),r?r.call(e,n):t.set(e,n),n);var le=(e,t,n)=>(ie(e,t,\"access private method\"),n);(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const s of document.querySelectorAll('link[rel=\"modulepreload\"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type===\"childList\")for(const c of o.addedNodes)c.tagName===\"LINK\"&&c.rel===\"modulepreload\"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(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 r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var oe,u,Ge,B,we,ze,Z={},Ke=[],xt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $(e,t){for(var n in t)e[n]=t[n];return e}function Je(e){var t=e.parentNode;t&&t.removeChild(e)}function ae(e,t,n){var r,s,o,c={};for(o in t)o==\"key\"?r=t[o]:o==\"ref\"?s=t[o]:c[o]=t[o];if(arguments.length>2&&(c.children=arguments.length>3?oe.call(arguments,2):n),typeof e==\"function\"&&e.defaultProps!=null)for(o in e.defaultProps)c[o]===void 0&&(c[o]=e.defaultProps[o]);return Y(e,c,r,s,null)}function Y(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++Ge:s};return s==null&&u.vnode!=null&&u.vnode(o),o}function b(e){return e.children}function N(e,t){this.props=e,this.context=t}function L(e,t){if(t==null)return e.__?L(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==\"function\"?L(e):null}function Ye(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ye(e)}}function ue(e){(!e.__d&&(e.__d=!0)&&B.push(e)&&!Q.__r++||we!==u.debounceRendering)&&((we=u.debounceRendering)||setTimeout)(Q)}function Q(){for(var e;Q.__r=B.length;)e=B.sort(function(t,n){return t.__v.__b-n.__v.__b}),B=[],e.some(function(t){var n,r,s,o,c,_;t.__d&&(c=(o=(n=t).__v).__e,(_=n.__P)&&(r=[],(s=$({},o)).__v=o.__v+1,he(_,o,s,n.__n,_.ownerSVGElement!==void 0,o.__h!=null?[c]:null,r,c==null?L(o):c,o.__h),Qe(r,o),o.__e!=c&&Ye(o)))})}function qe(e,t,n,r,s,o,c,_,a,h){var i,p,f,d,v,T,g,y=r&&r.__k||Ke,x=y.length;for(n.__k=[],i=0;i<t.length;i++)if((d=n.__k[i]=(d=t[i])==null||typeof d==\"boolean\"?null:typeof d==\"string\"||typeof d==\"number\"||typeof d==\"bigint\"?Y(null,d,null,null,d):Array.isArray(d)?Y(b,{children:d},null,null,null):d.__b>0?Y(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(f=y[i])===null||f&&d.key==f.key&&d.type===f.type)y[i]=void 0;else for(p=0;p<x;p++){if((f=y[p])&&d.key==f.key&&d.type===f.type){y[p]=void 0;break}f=null}he(e,d,f=f||Z,s,o,c,_,a,h),v=d.__e,(p=d.ref)&&f.ref!=p&&(g||(g=[]),f.ref&&g.push(f.ref,null,d),g.push(p,d.__c||v,d)),v!=null?(T==null&&(T=v),typeof d.type==\"function\"&&d.__k===f.__k?d.__d=a=Xe(d,a,e):a=Ze(e,d,f,y,v,a),typeof n.type==\"function\"&&(n.__d=a)):a&&f.__e==a&&a.parentNode!=e&&(a=L(f))}for(n.__e=T,i=x;i--;)y[i]!=null&&(typeof n.type==\"function\"&&y[i].__e!=null&&y[i].__e==n.__d&&(n.__d=L(r,i+1)),tt(y[i],y[i]));if(g)for(i=0;i<g.length;i++)et(g[i],g[++i],g[++i])}function Xe(e,t,n){for(var r,s=e.__k,o=0;s&&o<s.length;o++)(r=s[o])&&(r.__=e,t=typeof r.type==\"function\"?Xe(r,t,n):Ze(n,r,r,s,r.__e,t));return t}function ee(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(Array.isArray(e)?e.some(function(n){ee(n,t)}):t.push(e)),t}function Ze(e,t,n,r,s,o){var c,_,a;if(t.__d!==void 0)c=t.__d,t.__d=void 0;else if(n==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),c=null;else{for(_=o,a=0;(_=_.nextSibling)&&a<r.length;a+=2)if(_==s)break e;e.insertBefore(s,o),c=o}return c!==void 0?c:s.nextSibling}function kt(e,t,n,r,s){var o;for(o in n)o===\"children\"||o===\"key\"||o in t||te(e,o,null,n[o],r);for(o in t)s&&typeof t[o]!=\"function\"||o===\"children\"||o===\"key\"||o===\"value\"||o===\"checked\"||n[o]===t[o]||te(e,o,t[o],n[o],r)}function xe(e,t,n){t[0]===\"-\"?e.setProperty(t,n):e[t]=n==null?\"\":typeof n!=\"number\"||xt.test(t)?n:n+\"px\"}function te(e,t,n,r,s){var o;e:if(t===\"style\")if(typeof n==\"string\")e.style.cssText=n;else{if(typeof r==\"string\"&&(e.style.cssText=r=\"\"),r)for(t in r)n&&t in n||xe(e.style,t,\"\");if(n)for(t in n)r&&n[t]===r[t]||xe(e.style,t,n[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]=n,n?r||e.addEventListener(t,o?Ee:ke,o):e.removeEventListener(t,o?Ee:ke,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]=n==null?\"\":n;break e}catch{}typeof n==\"function\"||(n!=null&&(n!==!1||t[0]===\"a\"&&t[1]===\"r\")?e.setAttribute(t,n):e.removeAttribute(t))}}function ke(e){this.l[e.type+!1](u.event?u.event(e):e)}function Ee(e){this.l[e.type+!0](u.event?u.event(e):e)}function he(e,t,n,r,s,o,c,_,a){var h,i,p,f,d,v,T,g,y,x,P,be,z,w=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(a=n.__h,_=t.__e=n.__e,t.__h=null,o=[_]),(h=u.__b)&&h(t);try{e:if(typeof w==\"function\"){if(g=t.props,y=(h=w.contextType)&&r[h.__c],x=h?y?y.props.value:h.__:r,n.__c?T=(i=t.__c=n.__c).__=i.__E:(\"prototype\"in w&&w.prototype.render?t.__c=i=new w(g,x):(t.__c=i=new N(g,x),i.constructor=w,i.render=St),y&&y.sub(i),i.props=g,i.state||(i.state={}),i.context=x,i.__n=r,p=i.__d=!0,i.__h=[]),i.__s==null&&(i.__s=i.state),w.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=$({},i.__s)),$(i.__s,w.getDerivedStateFromProps(g,i.__s))),f=i.props,d=i.state,p)w.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(w.getDerivedStateFromProps==null&&g!==f&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,x),!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,x)===!1||t.__v===n.__v){i.props=g,i.state=i.__s,t.__v!==n.__v&&(i.__d=!1),i.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(K){K&&(K.__=t)}),i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(f,d,v)})}if(i.context=x,i.props=g,i.__v=t,i.__P=e,P=u.__r,be=0,\"prototype\"in w&&w.prototype.render)i.state=i.__s,i.__d=!1,P&&P(t),h=i.render(i.props,i.state,i.context);else do i.__d=!1,P&&P(t),h=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++be<25);i.state=i.__s,i.getChildContext!=null&&(r=$($({},r),i.getChildContext())),p||i.getSnapshotBeforeUpdate==null||(v=i.getSnapshotBeforeUpdate(f,d)),z=h!=null&&h.type===b&&h.key==null?h.props.children:h,qe(e,Array.isArray(z)?z:[z],t,n,r,s,o,c,_,a),i.base=t.__e,t.__h=null,i.__h.length&&c.push(i),T&&(i.__E=i.__=null),i.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Et(n.__e,t,n,r,s,o,c,a);(h=u.diffed)&&h(t)}catch(K){t.__v=null,(a||o!=null)&&(t.__e=_,t.__h=!!a,o[o.indexOf(_)]=null),u.__e(K,t,n)}}function Qe(e,t){u.__c&&u.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){u.__e(r,n.__v)}})}function Et(e,t,n,r,s,o,c,_){var a,h,i,p=n.props,f=t.props,d=t.type,v=0;if(d===\"svg\"&&(s=!0),o!=null){for(;v<o.length;v++)if((a=o[v])&&\"setAttribute\"in a==!!d&&(d?a.localName===d:a.nodeType===3)){e=a,o[v]=null;break}}if(e==null){if(d===null)return document.createTextNode(f);e=s?document.createElementNS(\"http://www.w3.org/2000/svg\",d):document.createElement(d,f.is&&f),o=null,_=!1}if(d===null)p===f||_&&e.data===f||(e.data=f);else{if(o=o&&oe.call(e.childNodes),h=(p=n.props||Z).dangerouslySetInnerHTML,i=f.dangerouslySetInnerHTML,!_){if(o!=null)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(i||h)&&(i&&(h&&i.__html==h.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||\"\"))}if(kt(e,f,p,s,_),i)t.__k=[];else if(v=t.props.children,qe(e,Array.isArray(v)?v:[v],t,n,r,s&&d!==\"foreignObject\",o,c,o?o[0]:n.__k&&L(n,0),_),o!=null)for(v=o.length;v--;)o[v]!=null&&Je(o[v]);_||(\"value\"in f&&(v=f.value)!==void 0&&(v!==e.value||d===\"progress\"&&!v||d===\"option\"&&v!==p.value)&&te(e,\"value\",v,p.value,!1),\"checked\"in f&&(v=f.checked)!==void 0&&v!==e.checked&&te(e,\"checked\",v,p.checked,!1))}return e}function et(e,t,n){try{typeof e==\"function\"?e(t):e.current=t}catch(r){u.__e(r,n)}}function tt(e,t,n){var r,s;if(u.unmount&&u.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){u.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&tt(r[s],t,typeof e.type!=\"function\");n||e.__e==null||Je(e.__e),e.__=e.__e=e.__d=void 0}function St(e,t,n){return this.constructor(e,n)}function Nt(e,t,n){var r,s,o;u.__&&u.__(e,t),s=(r=typeof n==\"function\")?null:n&&n.__k||t.__k,o=[],he(t,e=(!r&&n||t).__k=ae(b,null,[e]),s||Z,Z,t.ownerSVGElement!==void 0,!r&&n?[n]:s?null:t.firstChild?oe.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r),Qe(o,e)}function nt(e,t){var n={__c:t=\"__cC\"+ze++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&s.some(ue)},this.sub=function(c){s.push(c);var _=c.componentWillUnmount;c.componentWillUnmount=function(){s.splice(s.indexOf(c),1),_&&_.call(c)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}oe=Ke.slice,u={__e:function(e,t,n,r){for(var s,o,c;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),c=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),c=s.__d),c)return s.__E=s}catch(_){e=_}throw e}},Ge=0,N.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof e==\"function\"&&(e=e($({},n),this.props)),e&&$(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),ue(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ue(this))},N.prototype.render=b,B=[],Q.__r=0,ze=0;var Ct=0;function l(e,t,n,r,s){var o,c,_={};for(c in t)c==\"ref\"?o=t[c]:_[c]=t[c];var a={type:e,props:_,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ct,__source:s,__self:r};if(typeof e==\"function\"&&(o=e.defaultProps))for(c in o)_[c]===void 0&&(_[c]=o[c]);return u.vnode&&u.vnode(a),a}const $t=({children:e})=>l(\"div\",{class:\"w-full h-full\",children:e}),H=({children:e})=>l(\"div\",{class:\"w-full flex justify-center\",children:l(\"div\",{class:\"w-[70rem] max-w-full px-8\",children:e})});var W,m,ce,Se,j=0,rt=[],q=[],Ne=u.__b,Ce=u.__r,$e=u.diffed,Ie=u.__c,Te=u.unmount;function se(e,t){u.__h&&u.__h(m,e,j||t),j=0;var n=m.__H||(m.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:q}),n.__[e]}function G(e){return j=1,ot(it,e)}function ot(e,t,n){var r=se(W++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):it(void 0,t),function(o){var c=r.__N?r.__N[0]:r.__[0],_=r.t(c,o);c!==_&&(r.__N=[_,r.__[1]],r.__c.setState({}))}],r.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,c,_){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(i){return i.__c});if(a.every(function(i){return!i.__N}))return!s||s.call(this,o,c,_);var h=!1;return a.forEach(function(i){if(i.__N){var p=i.__[0];i.__=i.__N,i.__N=void 0,p!==i.__[0]&&(h=!0)}}),!!h&&(!s||s.call(this,o,c,_))}}return r.__N||r.__}function V(e,t){var n=se(W++,3);!u.__s&&st(n.__H,t)&&(n.__=e,n.i=t,m.__H.__h.push(n))}function pe(e){return j=5,E(function(){return{current:e}},[])}function E(e,t){var n=se(W++,7);return st(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ve(e,t){return j=8,E(function(){return e},t)}function It(e){var t=m.context[e.__c],n=se(W++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(m)),t.props.value):e.__}function Tt(){for(var e;e=rt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(X),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){typeof e.type!=\"function\"||e.o||e.type===b?e.o||(e.o=e.__&&e.__.o?e.__.o:\"\"):e.o=(e.__&&e.__.o?e.__.o:\"\")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,Ne&&Ne(e)},u.__r=function(e){Ce&&Ce(e),W=0;var t=(m=e.__c).__H;t&&(ce===m?(t.__h=[],m.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=q,n.__N=n.i=void 0})):(t.__h.forEach(X),t.__h.forEach(de),t.__h=[])),ce=m},u.diffed=function(e){$e&&$e(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(rt.push(t)!==1&&Se===u.requestAnimationFrame||((Se=u.requestAnimationFrame)||At)(Tt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==q&&(n.__=n.__V),n.i=void 0,n.__V=q})),ce=m=null},u.__c=function(e,t){t.some(function(n){try{n.__h.forEach(X),n.__h=n.__h.filter(function(r){return!r.__||de(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],u.__e(r,n.__v)}}),Ie&&Ie(e,t)},u.unmount=function(e){Te&&Te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{X(r)}catch(s){t=s}}),n.__H=void 0,t&&u.__e(t,n.__v))};var Ae=typeof requestAnimationFrame==\"function\";function At(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function X(e){var t=m,n=e.__c;typeof n==\"function\"&&(e.__c=void 0,n()),m=t}function de(e){var t=m;e.__c=e.__(),m=t}function st(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function it(e,t){return typeof t==\"function\"?t(e):t}function Ut(e,t){for(var n in t)e[n]=t[n];return e}function Ue(e,t){for(var n in e)if(n!==\"__source\"&&!(n in t))return!0;for(var r in t)if(r!==\"__source\"&&e[r]!==t[r])return!0;return!1}function Le(e){this.props=e}(Le.prototype=new N).isPureReactComponent=!0,Le.prototype.shouldComponentUpdate=function(e,t){return Ue(this.props,e)||Ue(this.state,t)};var Re=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Re&&Re(e)};var Lt=u.__e;u.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Lt(e,t,n,r)};var Pe=u.unmount;function lt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c==\"function\"&&r.__c()}),e.__c.__H=null),(e=Ut({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return lt(r,t,n)})),e}function ct(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ct(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function _e(){this.__u=0,this.t=null,this.__b=null}function _t(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function J(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Pe&&Pe(e)},(_e.prototype=new N).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=_t(r.__v),o=!1,c=function(){o||(o=!0,n.__R=null,s?s(_):_())};n.__R=c;var _=function(){if(!--r.__u){if(r.state.__a){var h=r.state.__a;r.__v.__k[0]=ct(h,h.__c.__P,h.__c.__O)}var i;for(r.setState({__a:r.__b=null});i=r.t.pop();)i.forceUpdate()}},a=t.__h===!0;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(c,c)},_e.prototype.componentWillUnmount=function(){this.t=[]},_e.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(\"div\"),r=this.__v.__k[0].__c;this.__v.__k[0]=lt(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&ae(b,null,e.fallback);return s&&(s.__h=null),[ae(b,null,t.__a?null:e.children),s]};var De=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==\"t\"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(J.prototype=new N).__a=function(e){var t=this,n=_t(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),De(t,e,r)):s()};n?n(o):o()}},J.prototype.render=function(e){this.u=null,this.o=new Map;var t=ee(e.children);e.revealOrder&&e.revealOrder[0]===\"b\"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},J.prototype.componentDidUpdate=J.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){De(e,n,t)})};var Rt=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,Pt=/^(?: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]/,Dt=typeof document<\"u\",Ht=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/i:/fil|che|ra/i).test(e)};N.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(N.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var He=u.event;function Bt(){}function jt(){return this.cancelBubble}function Vt(){return this.defaultPrevented}u.event=function(e){return He&&(e=He(e)),e.persist=Bt,e.isPropagationStopped=jt,e.isDefaultPrevented=Vt,e.nativeEvent=e};var Be={configurable:!0,get:function(){return this.class}},je=u.vnode;u.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t==\"string\"){var s=t.indexOf(\"-\")===-1;for(var o in r={},n){var c=n[o];Dt&&o===\"children\"&&t===\"noscript\"||o===\"value\"&&\"defaultValue\"in n&&c==null||(o===\"defaultValue\"&&\"value\"in n&&n.value==null?o=\"value\":o===\"download\"&&c===!0?c=\"\":/ondoubleclick/i.test(o)?o=\"ondblclick\":/^onchange(textarea|input)/i.test(o+t)&&!Ht(n.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&&Pt.test(o)?o=o.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():c===null&&(c=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o=\"oninputCapture\")),r[o]=c)}t==\"select\"&&r.multiple&&Array.isArray(r.value)&&(r.value=ee(n.children).forEach(function(_){_.props.selected=r.value.indexOf(_.props.value)!=-1})),t==\"select\"&&r.defaultValue!=null&&(r.value=ee(n.children).forEach(function(_){_.props.selected=r.multiple?r.defaultValue.indexOf(_.props.value)!=-1:r.defaultValue==_.props.value})),e.props=r,n.class!=n.className&&(Be.enumerable=\"className\"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,\"className\",Be))}e.$$typeof=Rt,je&&je(e)};var Ve=u.__r;u.__r=function(e){Ve&&Ve(e),e.__c};var R=function(){return R=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},R.apply(this,arguments)};function Oe(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),s=0,t=0;t<n;t++)for(var o=arguments[t],c=0,_=o.length;c<_;c++,s++)r[s]=o[c];return r}function Ot(){var e=pe(!1),t=ve(function(){return e.current},[]);return V(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Ft(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=pe(0),s=Ot(),o=G(n),c=o[0],_=o[1],a=ve(function(){for(var h=[],i=0;i<arguments.length;i++)h[i]=arguments[i];var p=++r.current;return c.loading||_(function(f){return R(R({},f),{loading:!0})}),e.apply(void 0,h).then(function(f){return s()&&p===r.current&&_({value:f,loading:!1}),f},function(f){return s()&&p===r.current&&_({error:f,loading:!1}),f})},t);return[c,a]}function Mt(e,t){t===void 0&&(t=[]);var n=Ft(e,t,{loading:!0}),r=n[0],s=n[1];return V(function(){s()},[s]),r}var Wt=function(e,t){t===void 0&&(t=[]);var n=G(0),r=n[0],s=n[1],o=Mt(e,Oe(t,[r])),c=o.loading,_=ve(function(){c||s(function(a){return a+1})},Oe(t,[c]));return R(R({},o),{retry:_})};const at=Wt;var Gt=function(e,t){var n=pe(function(){});V(function(){n.current=e}),V(function(){if(t!==null){var r=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(r)}}},[t])};const ut=Gt;var ge=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(ge||{}),O=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(O||{});const zt={[O.EmptyTrigger]:l(b,{children:\"One or more triggers seems invalid; it has no event or cron definition. Make sure you've correctly used the function creation methods.\"}),[O.NoTriggers]:l(b,{children:\"Can't find any triggers for this function, such as an event or a cron definition. Make sure you've correctly used the function creation methods.\"})},Kt={[ge.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 fe=(e=>(e.FnId=\"fnId\",e.StepId=\"stepId\",e.Introspect=\"introspect\",e))(fe||{}),dt=(e=>(e.SigningKey=\"INNGEST_SIGNING_KEY\",e.EventKey=\"INNGEST_EVENT_KEY\",e.LandingPage=\"INNGEST_LANDING_PAGE\",e.DevServerUrl=\"INNGEST_DEVSERVER_URL\",e))(dt||{});const ft=\"http://127.0.0.1:8288/\",Jt=async(e=ft,t)=>{try{const n=ht(e,\"/dev\");return await(await t(n.toString())).json(),!0}catch{return!1}},ht=(e=ft,t=\"\")=>new URL(t,e.includes(\"://\")?e:`http://${e}`),Yt=()=>(me()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),qt=()=>(me()?[\"production\",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes(\"production\"),me=()=>typeof process<\"u\"&&\"env\"in process,Xt=\"0.6.1-redwood.1\",Zt=e=>{const t=\"-\";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)};var S,F,U,ne,pt;class Fe{constructor(t,n,r){I(this,ne);I(this,S,void 0);I(this,F,void 0);I(this,U,void 0);D(this,S,t),D(this,F,n),D(this,U,r||{})}id(t){return k(this,S).id||(k(this,S).id=le(this,ne,pt).call(this,t)),k(this,S).id}get name(){return k(this,S).name}getConfig(t,n){const r=this.id(n);return{id:r,name:this.name,triggers:[k(this,F)],steps:Object.keys(k(this,U)).reduce((s,o)=>{const c=new URL(t.href);return c.searchParams.set(fe.FnId,r),c.searchParams.set(fe.StepId,o),{...s,[o]:{id:o,name:o,runtime:{type:\"http\",url:c.href}}}},{})}}runStep(t,n){const r=k(this,U)[t];if(!r)throw new Error(`Could not find step with ID \"${t}\" in function \"${this.name}\"`);return r.run(n)}}S=new WeakMap,F=new WeakMap,U=new WeakMap,ne=new WeakSet,pt=function(t){return Zt([t||\"\",k(this,S).name].join(\"-\"))};var M;class Me{constructor(t){I(this,M,void 0);D(this,M,t)}async run(t){return k(this,M).call(this,t)}}M=new WeakMap;var re,vt;class Qt{constructor({name:t,eventKey:n,inngestBaseUrl:r=\"https://inn.gs/\"}){I(this,re);A(this,\"name\");A(this,\"eventKey\");A(this,\"inngestBaseUrl\");A(this,\"inngestApiUrl\");A(this,\"headers\");if(!t)throw new Error(\"A name must be passed to create an Inngest instance.\");if(!n)throw new Error(\"An event key must be passed to create an Inngest instance.\");this.name=t,this.eventKey=n||me()&&process.env[dt.EventKey]||\"\",this.inngestBaseUrl=new URL(r),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),this.headers={\"Content-Type\":\"application/json\",\"User-Agent\":`InngestJS v${Xt}`}}async send(t,n){let r;if(typeof t==\"string\"?r=(Array.isArray(n)?n:n?[n]:[]).map(c=>({...c,name:t})):r=Array.isArray(t)?t:t?[t]:[],!r.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(!qt()){const c=Yt();(c!==void 0||await Jt(c,fetch))&&(s=ht(c,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:\"POST\",body:JSON.stringify(r),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await le(this,re,vt).call(this,o)}createFunction(t,n,r){return new Fe(typeof t==\"string\"?{name:t}:t,{event:n},{step:new Me(r)})}createScheduledFunction(t,n,r){return new Fe(typeof t==\"string\"?{name:t}:t,{cron:n},{step:new Me(r)})}}re=new WeakSet,vt=async function(t){let n=\"Unknown error\";switch(t.status){case 401:n=\"Event key Not Found\";break;case 400:n=\"Cannot process event payload\";break;case 403:n=\"Forbidden\";break;case 404:n=\"Event key not found\";break;case 406:n=`${JSON.stringify(await t.json())}`;break;case 409:case 412:n=\"Event transformation failed\";break;case 413:n=\"Event payload too large\";break;case 500:n=\"Internal server error\";break}return new Error(`Inngest API Error: ${t.status} ${n}`)};const C=e=>Object.entries(e).reduce((n,[r,s])=>s?[...n,r]:n,[]).filter(Boolean).join(\" \").trim(),en=({children:e,onClick:t,type:n,disabled:r})=>l(\"button\",{class:`${r?\"bg-slate-400\":\"bg-blue-500\"} text-white px-5 py-1 font-semibold rounded`,onClick:t,type:n,disabled:r,children:e}),tn=()=>at(async()=>{const t=new URL(window.location.href);t.searchParams.set(\"introspect\",\"true\");const r=await(await fetch(t)).json();return r.functions=r.functions.map(s=>{var c;const o=new Set;return((c=s.triggers)==null?void 0:c.length)<1?o.add(O.NoTriggers):s.triggers.some(a=>!(a!=null&&a.event)&&!(a!=null&&a.cron))&&o.add(O.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var a,h;const c=Boolean((a=s.errors)==null?void 0:a.size),_=Boolean((h=o.errors)==null?void 0:h.size);return c!==_?c?-1:1:s.name.localeCompare(o.name)}),r.globalErrors=new Set,r.hasSigningKey||r.globalErrors.add(ge.NoSigningKey),r}),nn=\"http://localhost:8288\",gt=nt({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ye=gt.Consumer,rn=({children:e})=>{const{value:t,retry:n,loading:r,error:s}=tn(),o=new URL((t==null?void 0:t.devServerURL)||nn);o.pathname=\"dev\";const{value:c,retry:_}=at(async()=>await(await fetch(o)).json());ut(_,1e3);const a=E(()=>Boolean(c),[c]);return l(gt.Provider,{value:{value:t,retry:n,loading:r,error:s,dev:c,devConnected:a},children:e})},on=({value:e,label:t,onChange:n,className:r=\"\",disabled:s})=>l(b,{children:[t?l(sn,{children:t}):null,l(\"textarea\",{disabled:s,class:C({\"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500\":!0,[r]:!0}),value:e,onChange:o=>n==null?void 0:n(o.currentTarget.value)})]}),sn=({children:e})=>l(\"label\",{class:\"font-semibold text-sm\",children:e}),mt=nt({push:e=>()=>{},remove:e=>{}}),ln=(e,t)=>{switch(t.type){case\"add\":return e.find(n=>n.id===t.toast.id)?e:e.concat([{...t.toast}]);case\"remove\":return e.filter(n=>n.id!==t.id)}},cn=({children:e})=>{const[t,n]=ot(ln,[]),r=o=>n({type:\"remove\",id:o}),s=o=>{const c=Math.random().toString(16);return n({type:\"add\",toast:{...o,id:o.id||c}}),()=>r(c)};return l(mt.Provider,{value:{push:s,remove:r},children:[l(\"div\",{className:\"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8\",children:t.map(o=>l(_n,{toast:o},o.id))}),e]})},yt=()=>It(mt),We=5e3,_n=({toast:e})=>{const{remove:t}=yt(),[n,r]=G(!1),s=e.icon;V(()=>{setTimeout(()=>{r(!0)},25),setTimeout(()=>{!e.sticky&&r(!1)},e.duration||We-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||We)},[e.id]);const o=e.message||(e.type===\"error\"?\"Something went wrong\":\"\");let c=\"text-slate-200 bg-gray-800\";switch(e.type){case\"success\":c=\"text-slate-200 bg-green-600\";break;case\"error\":c=\"text-slate-200 bg-red-800\"}return n?l(\"div\",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${c} 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},an=e=>l(ye,{children:t=>l(un,{...e,introspect:t})}),un=({introspect:e,eventData:t})=>{const{push:n}=yt(),{value:r,devConnected:s}=e,[o,c]=G(t||JSON.stringify({name:\"\",data:{}},void 0,\" \")),_=E(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),a=async h=>{if(h.preventDefault(),!r||!s){n({type:\"error\",message:\"You must run the dev server to send test events\"});return}await new Qt({name:r.appName,inngestBaseUrl:r.devServerURL,eventKey:\"dev-server\"}).send(JSON.parse(o)),n({type:\"success\",message:\"Event sent. Check your terminal for logs.\"})};return l(H,{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:a,children:[l(\"div\",{class:\"my-4\",children:l(on,{label:\"Event data (JSON)\",className:C({\"font-mono overflow-y-scroll h-48 resize-none\":!0,\"bg-red-100\":!_}),value:o,onChange:c})}),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(en,{type:\"submit\",disabled:!s,children:\"Send event\"})]})]})]})})},dn=({config:e,altBg:t})=>{var o,c;const n=E(()=>e.triggers[0].cron?\"cron\":\"event\",[e.triggers]),r=E(()=>{const _=e.triggers[0];return _.cron||_.event||\"\"},[e.triggers]),s=E(()=>{var _;return Boolean((_=e.errors)==null?void 0:_.size)},[e.errors]);return l(b,{children:[l(\"div\",{class:C({\"w-full grid grid-cols-[1fr_1fr_1fr] p-2 items-center\":!0,\"bg-slate-200/30\":Boolean(t),\"bg-red-400/30\":s}),children:[l(\"div\",{class:\"flex flex-col\",children:l(\"div\",{class:\"font-semibold text-sm\",children:[e.name,\" \",l(\"span\",{class:C({\"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:C({\"text-xs text-gray-500\":!0,\"bg-white\":s,\"bg-gray-500/10\":!s}),children:e.id})}),l(\"span\",{children:r?l(\"code\",{children:r}):l(\"code\",{class:\"bg-white\",children:\"Invalid or no expression\"})})]}),s?l(\"div\",{class:\"w-full p-2 bg-red-400/30\",children:(c=Array.from((o=e.errors)!=null?o:[]))==null?void 0:c.map(_=>l(\"div\",{class:\"bg-red-100 border border-red-400 rounded p-2\",children:zt[_]}))}):null]})},fn=({class:e=\"\"})=>l(\"svg\",{class:C({\"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\"})]}),hn=()=>l(ye,{children:e=>l(pn,{introspect:e})}),pn=({introspect:e})=>{var i;const{loading:t,value:n,retry:r,error:s}=e,[o,c]=G(!1);ut(r,5e3);const _=E(()=>(n==null?void 0:n.functions.some(p=>{var f;return(f=p.errors)==null?void 0:f.size}))||!1,[n==null?void 0:n.functions]),a=E(()=>Boolean(n==null?void 0:n.globalErrors.size),[n==null?void 0:n.globalErrors]),h=E(()=>[{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&&!n&&!s?l(\"div\",{class:\"flex-1 w-full h-full flex items-center justify-center\",children:l(fn,{class:\"h-8 w-8\"})}):l(b,{children:[l(\"div\",{class:\"flex flex-col gap-4 py-20 bg-gray-100\",children:l(H,{children:[l(\"div\",{class:\"text-3xl\",children:_?\"\\u274C Your functions are not set up correctly\":n!=null&&n.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-\",n==null?void 0:n.sdk]})})]})}),l(\"div\",{children:l(H,{children:l(\"div\",{class:\"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4\",children:h.map(p=>l(\"a\",{href:p.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:p.title}),l(\"div\",{class:\"text-sm\",children:p.description}),l(\"div\",{class:\"flex-1\"}),l(\"div\",{class:\"text-right font-semibold text-purple-500\",children:\"Explore \\u2192\"})]}))})})}),a?l(\"div\",{class:\"mt-8\",children:l(H,{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((i=n==null?void 0:n.globalErrors)!=null?i:[]).map(p=>l(\"div\",{class:\"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800\",children:Kt[p]}))]})})}):null,l(an,{expanded:o,onToggle:()=>c(p=>!p)}),l(\"div\",{class:\"w-full flex items-center justify-center mt-8 p-4\",children:l(H,{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 \",(n==null?void 0:n.functions.length)||0,\" functions\"]}),l(\"div\",{children:l(\"div\",{class:\"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase\",onClick:()=>r(),children:\"Refresh\"})})]}),l(\"a\",{class:\"mb-8\",href:\"#\",children:\"Don't see your function?\"})]}),n!=null&&n.functions.length?l(\"div\",{class:\"flex flex-col\",children:[l(\"div\",{class:\"w-full grid grid-cols-[1fr_1fr_1fr] font-semibold border-b-2 border-slate-300 pb-1\",children:[l(\"div\",{children:\"Name\"}),l(\"div\",{children:\"ID\"}),l(\"div\",{children:\"Event / Cron\"})]}),n==null?void 0:n.functions.map((p,f)=>l(dn,{config:p,altBg:f%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.\"]})]})]})})]})},vn=({copiable:e,value:t})=>l(\"code\",{class:C({\"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(gn,{}):null]}),gn=()=>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\"})]}),mn=\"http://localhost:8288\",yn=()=>l(ye,{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(bn,{introspect:e})]})}),bn=({introspect:e})=>{const{value:t,devConnected:n}=e,r=new URL((t==null?void 0:t.devServerURL)||mn);return r.pathname=\"dev\",l(b,{children:[l(\"div\",{class:\"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none\",children:[l(\"div\",{class:\"flex h-4 w-4 relative\",children:[l(\"span\",{class:C({\"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75\":!0,\"bg-green-400\":n,\"bg-red-400\":!n})}),l(\"span\",{class:C({\"relative inline-flex rounded-full h-4 w-4\":!0,\"bg-green-500\":n,\"bg-red-500\":!n})})]}),n?l(\"div\",{children:[\"Connected to \",l(\"code\",{children:\"inngest dev\"}),\" on\",\" \",l(\"code\",{children:[r.hostname,\":\",r.port]})]}):l(\"div\",{children:[\"Not connected to \",l(\"code\",{children:\"inngest dev\"})]})]}),n?null:l(b,{children:[l(\"div\",{className:\"text-sm\",children:\"Run the dev server: \"}),l(vn,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function wn(){return l(cn,{children:l(rn,{children:[l(yn,{}),l($t,{children:l(hn,{})})]})})}Nt(l(wn,{}),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\\]{grid-template-columns:1fr 1fr 1fr}.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";
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 bt=Object.defineProperty;var wt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var A=(e,t,n)=>(wt(e,typeof t!=\"symbol\"?t+\"\":t,n),n),ie=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)};var k=(e,t,n)=>(ie(e,t,\"read from private field\"),n?n.call(e):t.get(e)),I=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},D=(e,t,n,r)=>(ie(e,t,\"write to private field\"),r?r.call(e,n):t.set(e,n),n);var le=(e,t,n)=>(ie(e,t,\"access private method\"),n);(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const s of document.querySelectorAll('link[rel=\"modulepreload\"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type===\"childList\")for(const c of o.addedNodes)c.tagName===\"LINK\"&&c.rel===\"modulepreload\"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(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 r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var oe,u,Ge,B,we,ze,Z={},Ke=[],xt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $(e,t){for(var n in t)e[n]=t[n];return e}function Je(e){var t=e.parentNode;t&&t.removeChild(e)}function ae(e,t,n){var r,s,o,c={};for(o in t)o==\"key\"?r=t[o]:o==\"ref\"?s=t[o]:c[o]=t[o];if(arguments.length>2&&(c.children=arguments.length>3?oe.call(arguments,2):n),typeof e==\"function\"&&e.defaultProps!=null)for(o in e.defaultProps)c[o]===void 0&&(c[o]=e.defaultProps[o]);return Y(e,c,r,s,null)}function Y(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++Ge:s};return s==null&&u.vnode!=null&&u.vnode(o),o}function b(e){return e.children}function N(e,t){this.props=e,this.context=t}function L(e,t){if(t==null)return e.__?L(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==\"function\"?L(e):null}function Ye(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ye(e)}}function ue(e){(!e.__d&&(e.__d=!0)&&B.push(e)&&!Q.__r++||we!==u.debounceRendering)&&((we=u.debounceRendering)||setTimeout)(Q)}function Q(){for(var e;Q.__r=B.length;)e=B.sort(function(t,n){return t.__v.__b-n.__v.__b}),B=[],e.some(function(t){var n,r,s,o,c,_;t.__d&&(c=(o=(n=t).__v).__e,(_=n.__P)&&(r=[],(s=$({},o)).__v=o.__v+1,he(_,o,s,n.__n,_.ownerSVGElement!==void 0,o.__h!=null?[c]:null,r,c==null?L(o):c,o.__h),Qe(r,o),o.__e!=c&&Ye(o)))})}function qe(e,t,n,r,s,o,c,_,a,h){var i,p,f,d,v,T,g,y=r&&r.__k||Ke,x=y.length;for(n.__k=[],i=0;i<t.length;i++)if((d=n.__k[i]=(d=t[i])==null||typeof d==\"boolean\"?null:typeof d==\"string\"||typeof d==\"number\"||typeof d==\"bigint\"?Y(null,d,null,null,d):Array.isArray(d)?Y(b,{children:d},null,null,null):d.__b>0?Y(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(f=y[i])===null||f&&d.key==f.key&&d.type===f.type)y[i]=void 0;else for(p=0;p<x;p++){if((f=y[p])&&d.key==f.key&&d.type===f.type){y[p]=void 0;break}f=null}he(e,d,f=f||Z,s,o,c,_,a,h),v=d.__e,(p=d.ref)&&f.ref!=p&&(g||(g=[]),f.ref&&g.push(f.ref,null,d),g.push(p,d.__c||v,d)),v!=null?(T==null&&(T=v),typeof d.type==\"function\"&&d.__k===f.__k?d.__d=a=Xe(d,a,e):a=Ze(e,d,f,y,v,a),typeof n.type==\"function\"&&(n.__d=a)):a&&f.__e==a&&a.parentNode!=e&&(a=L(f))}for(n.__e=T,i=x;i--;)y[i]!=null&&(typeof n.type==\"function\"&&y[i].__e!=null&&y[i].__e==n.__d&&(n.__d=L(r,i+1)),tt(y[i],y[i]));if(g)for(i=0;i<g.length;i++)et(g[i],g[++i],g[++i])}function Xe(e,t,n){for(var r,s=e.__k,o=0;s&&o<s.length;o++)(r=s[o])&&(r.__=e,t=typeof r.type==\"function\"?Xe(r,t,n):Ze(n,r,r,s,r.__e,t));return t}function ee(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(Array.isArray(e)?e.some(function(n){ee(n,t)}):t.push(e)),t}function Ze(e,t,n,r,s,o){var c,_,a;if(t.__d!==void 0)c=t.__d,t.__d=void 0;else if(n==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),c=null;else{for(_=o,a=0;(_=_.nextSibling)&&a<r.length;a+=2)if(_==s)break e;e.insertBefore(s,o),c=o}return c!==void 0?c:s.nextSibling}function kt(e,t,n,r,s){var o;for(o in n)o===\"children\"||o===\"key\"||o in t||te(e,o,null,n[o],r);for(o in t)s&&typeof t[o]!=\"function\"||o===\"children\"||o===\"key\"||o===\"value\"||o===\"checked\"||n[o]===t[o]||te(e,o,t[o],n[o],r)}function xe(e,t,n){t[0]===\"-\"?e.setProperty(t,n):e[t]=n==null?\"\":typeof n!=\"number\"||xt.test(t)?n:n+\"px\"}function te(e,t,n,r,s){var o;e:if(t===\"style\")if(typeof n==\"string\")e.style.cssText=n;else{if(typeof r==\"string\"&&(e.style.cssText=r=\"\"),r)for(t in r)n&&t in n||xe(e.style,t,\"\");if(n)for(t in n)r&&n[t]===r[t]||xe(e.style,t,n[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]=n,n?r||e.addEventListener(t,o?Ee:ke,o):e.removeEventListener(t,o?Ee:ke,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]=n==null?\"\":n;break e}catch{}typeof n==\"function\"||(n!=null&&(n!==!1||t[0]===\"a\"&&t[1]===\"r\")?e.setAttribute(t,n):e.removeAttribute(t))}}function ke(e){this.l[e.type+!1](u.event?u.event(e):e)}function Ee(e){this.l[e.type+!0](u.event?u.event(e):e)}function he(e,t,n,r,s,o,c,_,a){var h,i,p,f,d,v,T,g,y,x,P,be,z,w=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(a=n.__h,_=t.__e=n.__e,t.__h=null,o=[_]),(h=u.__b)&&h(t);try{e:if(typeof w==\"function\"){if(g=t.props,y=(h=w.contextType)&&r[h.__c],x=h?y?y.props.value:h.__:r,n.__c?T=(i=t.__c=n.__c).__=i.__E:(\"prototype\"in w&&w.prototype.render?t.__c=i=new w(g,x):(t.__c=i=new N(g,x),i.constructor=w,i.render=St),y&&y.sub(i),i.props=g,i.state||(i.state={}),i.context=x,i.__n=r,p=i.__d=!0,i.__h=[]),i.__s==null&&(i.__s=i.state),w.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=$({},i.__s)),$(i.__s,w.getDerivedStateFromProps(g,i.__s))),f=i.props,d=i.state,p)w.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(w.getDerivedStateFromProps==null&&g!==f&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,x),!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,x)===!1||t.__v===n.__v){i.props=g,i.state=i.__s,t.__v!==n.__v&&(i.__d=!1),i.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(K){K&&(K.__=t)}),i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(f,d,v)})}if(i.context=x,i.props=g,i.__v=t,i.__P=e,P=u.__r,be=0,\"prototype\"in w&&w.prototype.render)i.state=i.__s,i.__d=!1,P&&P(t),h=i.render(i.props,i.state,i.context);else do i.__d=!1,P&&P(t),h=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++be<25);i.state=i.__s,i.getChildContext!=null&&(r=$($({},r),i.getChildContext())),p||i.getSnapshotBeforeUpdate==null||(v=i.getSnapshotBeforeUpdate(f,d)),z=h!=null&&h.type===b&&h.key==null?h.props.children:h,qe(e,Array.isArray(z)?z:[z],t,n,r,s,o,c,_,a),i.base=t.__e,t.__h=null,i.__h.length&&c.push(i),T&&(i.__E=i.__=null),i.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Et(n.__e,t,n,r,s,o,c,a);(h=u.diffed)&&h(t)}catch(K){t.__v=null,(a||o!=null)&&(t.__e=_,t.__h=!!a,o[o.indexOf(_)]=null),u.__e(K,t,n)}}function Qe(e,t){u.__c&&u.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){u.__e(r,n.__v)}})}function Et(e,t,n,r,s,o,c,_){var a,h,i,p=n.props,f=t.props,d=t.type,v=0;if(d===\"svg\"&&(s=!0),o!=null){for(;v<o.length;v++)if((a=o[v])&&\"setAttribute\"in a==!!d&&(d?a.localName===d:a.nodeType===3)){e=a,o[v]=null;break}}if(e==null){if(d===null)return document.createTextNode(f);e=s?document.createElementNS(\"http://www.w3.org/2000/svg\",d):document.createElement(d,f.is&&f),o=null,_=!1}if(d===null)p===f||_&&e.data===f||(e.data=f);else{if(o=o&&oe.call(e.childNodes),h=(p=n.props||Z).dangerouslySetInnerHTML,i=f.dangerouslySetInnerHTML,!_){if(o!=null)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(i||h)&&(i&&(h&&i.__html==h.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||\"\"))}if(kt(e,f,p,s,_),i)t.__k=[];else if(v=t.props.children,qe(e,Array.isArray(v)?v:[v],t,n,r,s&&d!==\"foreignObject\",o,c,o?o[0]:n.__k&&L(n,0),_),o!=null)for(v=o.length;v--;)o[v]!=null&&Je(o[v]);_||(\"value\"in f&&(v=f.value)!==void 0&&(v!==e.value||d===\"progress\"&&!v||d===\"option\"&&v!==p.value)&&te(e,\"value\",v,p.value,!1),\"checked\"in f&&(v=f.checked)!==void 0&&v!==e.checked&&te(e,\"checked\",v,p.checked,!1))}return e}function et(e,t,n){try{typeof e==\"function\"?e(t):e.current=t}catch(r){u.__e(r,n)}}function tt(e,t,n){var r,s;if(u.unmount&&u.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){u.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&tt(r[s],t,typeof e.type!=\"function\");n||e.__e==null||Je(e.__e),e.__=e.__e=e.__d=void 0}function St(e,t,n){return this.constructor(e,n)}function Nt(e,t,n){var r,s,o;u.__&&u.__(e,t),s=(r=typeof n==\"function\")?null:n&&n.__k||t.__k,o=[],he(t,e=(!r&&n||t).__k=ae(b,null,[e]),s||Z,Z,t.ownerSVGElement!==void 0,!r&&n?[n]:s?null:t.firstChild?oe.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r),Qe(o,e)}function nt(e,t){var n={__c:t=\"__cC\"+ze++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&s.some(ue)},this.sub=function(c){s.push(c);var _=c.componentWillUnmount;c.componentWillUnmount=function(){s.splice(s.indexOf(c),1),_&&_.call(c)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}oe=Ke.slice,u={__e:function(e,t,n,r){for(var s,o,c;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),c=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),c=s.__d),c)return s.__E=s}catch(_){e=_}throw e}},Ge=0,N.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof e==\"function\"&&(e=e($({},n),this.props)),e&&$(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),ue(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ue(this))},N.prototype.render=b,B=[],Q.__r=0,ze=0;var Ct=0;function l(e,t,n,r,s){var o,c,_={};for(c in t)c==\"ref\"?o=t[c]:_[c]=t[c];var a={type:e,props:_,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ct,__source:s,__self:r};if(typeof e==\"function\"&&(o=e.defaultProps))for(c in o)_[c]===void 0&&(_[c]=o[c]);return u.vnode&&u.vnode(a),a}const $t=({children:e})=>l(\"div\",{class:\"w-full h-full\",children:e}),H=({children:e})=>l(\"div\",{class:\"w-full flex justify-center\",children:l(\"div\",{class:\"w-[70rem] max-w-full px-8\",children:e})});var W,m,ce,Se,j=0,rt=[],q=[],Ne=u.__b,Ce=u.__r,$e=u.diffed,Ie=u.__c,Te=u.unmount;function se(e,t){u.__h&&u.__h(m,e,j||t),j=0;var n=m.__H||(m.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:q}),n.__[e]}function G(e){return j=1,ot(it,e)}function ot(e,t,n){var r=se(W++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):it(void 0,t),function(o){var c=r.__N?r.__N[0]:r.__[0],_=r.t(c,o);c!==_&&(r.__N=[_,r.__[1]],r.__c.setState({}))}],r.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,c,_){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(i){return i.__c});if(a.every(function(i){return!i.__N}))return!s||s.call(this,o,c,_);var h=!1;return a.forEach(function(i){if(i.__N){var p=i.__[0];i.__=i.__N,i.__N=void 0,p!==i.__[0]&&(h=!0)}}),!!h&&(!s||s.call(this,o,c,_))}}return r.__N||r.__}function V(e,t){var n=se(W++,3);!u.__s&&st(n.__H,t)&&(n.__=e,n.i=t,m.__H.__h.push(n))}function pe(e){return j=5,E(function(){return{current:e}},[])}function E(e,t){var n=se(W++,7);return st(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ve(e,t){return j=8,E(function(){return e},t)}function It(e){var t=m.context[e.__c],n=se(W++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(m)),t.props.value):e.__}function Tt(){for(var e;e=rt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(X),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){typeof e.type!=\"function\"||e.o||e.type===b?e.o||(e.o=e.__&&e.__.o?e.__.o:\"\"):e.o=(e.__&&e.__.o?e.__.o:\"\")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,Ne&&Ne(e)},u.__r=function(e){Ce&&Ce(e),W=0;var t=(m=e.__c).__H;t&&(ce===m?(t.__h=[],m.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=q,n.__N=n.i=void 0})):(t.__h.forEach(X),t.__h.forEach(de),t.__h=[])),ce=m},u.diffed=function(e){$e&&$e(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(rt.push(t)!==1&&Se===u.requestAnimationFrame||((Se=u.requestAnimationFrame)||At)(Tt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==q&&(n.__=n.__V),n.i=void 0,n.__V=q})),ce=m=null},u.__c=function(e,t){t.some(function(n){try{n.__h.forEach(X),n.__h=n.__h.filter(function(r){return!r.__||de(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],u.__e(r,n.__v)}}),Ie&&Ie(e,t)},u.unmount=function(e){Te&&Te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{X(r)}catch(s){t=s}}),n.__H=void 0,t&&u.__e(t,n.__v))};var Ae=typeof requestAnimationFrame==\"function\";function At(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function X(e){var t=m,n=e.__c;typeof n==\"function\"&&(e.__c=void 0,n()),m=t}function de(e){var t=m;e.__c=e.__(),m=t}function st(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function it(e,t){return typeof t==\"function\"?t(e):t}function Ut(e,t){for(var n in t)e[n]=t[n];return e}function Ue(e,t){for(var n in e)if(n!==\"__source\"&&!(n in t))return!0;for(var r in t)if(r!==\"__source\"&&e[r]!==t[r])return!0;return!1}function Le(e){this.props=e}(Le.prototype=new N).isPureReactComponent=!0,Le.prototype.shouldComponentUpdate=function(e,t){return Ue(this.props,e)||Ue(this.state,t)};var Re=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Re&&Re(e)};var Lt=u.__e;u.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Lt(e,t,n,r)};var Pe=u.unmount;function lt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c==\"function\"&&r.__c()}),e.__c.__H=null),(e=Ut({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return lt(r,t,n)})),e}function ct(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ct(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function _e(){this.__u=0,this.t=null,this.__b=null}function _t(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function J(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Pe&&Pe(e)},(_e.prototype=new N).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=_t(r.__v),o=!1,c=function(){o||(o=!0,n.__R=null,s?s(_):_())};n.__R=c;var _=function(){if(!--r.__u){if(r.state.__a){var h=r.state.__a;r.__v.__k[0]=ct(h,h.__c.__P,h.__c.__O)}var i;for(r.setState({__a:r.__b=null});i=r.t.pop();)i.forceUpdate()}},a=t.__h===!0;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(c,c)},_e.prototype.componentWillUnmount=function(){this.t=[]},_e.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(\"div\"),r=this.__v.__k[0].__c;this.__v.__k[0]=lt(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&ae(b,null,e.fallback);return s&&(s.__h=null),[ae(b,null,t.__a?null:e.children),s]};var De=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==\"t\"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(J.prototype=new N).__a=function(e){var t=this,n=_t(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),De(t,e,r)):s()};n?n(o):o()}},J.prototype.render=function(e){this.u=null,this.o=new Map;var t=ee(e.children);e.revealOrder&&e.revealOrder[0]===\"b\"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},J.prototype.componentDidUpdate=J.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){De(e,n,t)})};var Rt=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,Pt=/^(?: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]/,Dt=typeof document<\"u\",Ht=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/i:/fil|che|ra/i).test(e)};N.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(N.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var He=u.event;function Bt(){}function jt(){return this.cancelBubble}function Vt(){return this.defaultPrevented}u.event=function(e){return He&&(e=He(e)),e.persist=Bt,e.isPropagationStopped=jt,e.isDefaultPrevented=Vt,e.nativeEvent=e};var Be={configurable:!0,get:function(){return this.class}},je=u.vnode;u.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t==\"string\"){var s=t.indexOf(\"-\")===-1;for(var o in r={},n){var c=n[o];Dt&&o===\"children\"&&t===\"noscript\"||o===\"value\"&&\"defaultValue\"in n&&c==null||(o===\"defaultValue\"&&\"value\"in n&&n.value==null?o=\"value\":o===\"download\"&&c===!0?c=\"\":/ondoubleclick/i.test(o)?o=\"ondblclick\":/^onchange(textarea|input)/i.test(o+t)&&!Ht(n.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&&Pt.test(o)?o=o.replace(/[A-Z0-9]/g,\"-$&\").toLowerCase():c===null&&(c=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o=\"oninputCapture\")),r[o]=c)}t==\"select\"&&r.multiple&&Array.isArray(r.value)&&(r.value=ee(n.children).forEach(function(_){_.props.selected=r.value.indexOf(_.props.value)!=-1})),t==\"select\"&&r.defaultValue!=null&&(r.value=ee(n.children).forEach(function(_){_.props.selected=r.multiple?r.defaultValue.indexOf(_.props.value)!=-1:r.defaultValue==_.props.value})),e.props=r,n.class!=n.className&&(Be.enumerable=\"className\"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,\"className\",Be))}e.$$typeof=Rt,je&&je(e)};var Ve=u.__r;u.__r=function(e){Ve&&Ve(e),e.__c};var R=function(){return R=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},R.apply(this,arguments)};function Oe(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),s=0,t=0;t<n;t++)for(var o=arguments[t],c=0,_=o.length;c<_;c++,s++)r[s]=o[c];return r}function Ot(){var e=pe(!1),t=ve(function(){return e.current},[]);return V(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Ft(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=pe(0),s=Ot(),o=G(n),c=o[0],_=o[1],a=ve(function(){for(var h=[],i=0;i<arguments.length;i++)h[i]=arguments[i];var p=++r.current;return c.loading||_(function(f){return R(R({},f),{loading:!0})}),e.apply(void 0,h).then(function(f){return s()&&p===r.current&&_({value:f,loading:!1}),f},function(f){return s()&&p===r.current&&_({error:f,loading:!1}),f})},t);return[c,a]}function Mt(e,t){t===void 0&&(t=[]);var n=Ft(e,t,{loading:!0}),r=n[0],s=n[1];return V(function(){s()},[s]),r}var Wt=function(e,t){t===void 0&&(t=[]);var n=G(0),r=n[0],s=n[1],o=Mt(e,Oe(t,[r])),c=o.loading,_=ve(function(){c||s(function(a){return a+1})},Oe(t,[c]));return R(R({},o),{retry:_})};const at=Wt;var Gt=function(e,t){var n=pe(function(){});V(function(){n.current=e}),V(function(){if(t!==null){var r=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(r)}}},[t])};const ut=Gt;var ge=(e=>(e[e.NoSigningKey=0]=\"NoSigningKey\",e))(ge||{}),O=(e=>(e[e.EmptyTrigger=0]=\"EmptyTrigger\",e[e.NoTriggers=1]=\"NoTriggers\",e))(O||{});const zt={[O.EmptyTrigger]:l(b,{children:\"One or more triggers seems invalid; it has no event or cron definition. Make sure you've correctly used the function creation methods.\"}),[O.NoTriggers]:l(b,{children:\"Can't find any triggers for this function, such as an event or a cron definition. Make sure you've correctly used the function creation methods.\"})},Kt={[ge.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 fe=(e=>(e.FnId=\"fnId\",e.StepId=\"stepId\",e.Introspect=\"introspect\",e))(fe||{}),dt=(e=>(e.SigningKey=\"INNGEST_SIGNING_KEY\",e.EventKey=\"INNGEST_EVENT_KEY\",e.LandingPage=\"INNGEST_LANDING_PAGE\",e.DevServerUrl=\"INNGEST_DEVSERVER_URL\",e))(dt||{});const ft=\"http://127.0.0.1:8288/\",Jt=async(e=ft,t)=>{try{const n=ht(e,\"/dev\");return await(await t(n.toString())).json(),!0}catch{return!1}},ht=(e=ft,t=\"\")=>new URL(t,e.includes(\"://\")?e:`http://${e}`),Yt=()=>(me()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),qt=()=>(me()?[\"production\",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes(\"production\"),me=()=>typeof process<\"u\"&&\"env\"in process,Xt=\"0.6.1-redwood.2\",Zt=e=>{const t=\"-\";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)};var S,F,U,ne,pt;class Fe{constructor(t,n,r){I(this,ne);I(this,S,void 0);I(this,F,void 0);I(this,U,void 0);D(this,S,t),D(this,F,n),D(this,U,r||{})}id(t){return k(this,S).id||(k(this,S).id=le(this,ne,pt).call(this,t)),k(this,S).id}get name(){return k(this,S).name}getConfig(t,n){const r=this.id(n);return{id:r,name:this.name,triggers:[k(this,F)],steps:Object.keys(k(this,U)).reduce((s,o)=>{const c=new URL(t.href);return c.searchParams.set(fe.FnId,r),c.searchParams.set(fe.StepId,o),{...s,[o]:{id:o,name:o,runtime:{type:\"http\",url:c.href}}}},{})}}runStep(t,n){const r=k(this,U)[t];if(!r)throw new Error(`Could not find step with ID \"${t}\" in function \"${this.name}\"`);return r.run(n)}}S=new WeakMap,F=new WeakMap,U=new WeakMap,ne=new WeakSet,pt=function(t){return Zt([t||\"\",k(this,S).name].join(\"-\"))};var M;class Me{constructor(t){I(this,M,void 0);D(this,M,t)}async run(t){return k(this,M).call(this,t)}}M=new WeakMap;var re,vt;class Qt{constructor({name:t,eventKey:n,inngestBaseUrl:r=\"https://inn.gs/\"}){I(this,re);A(this,\"name\");A(this,\"eventKey\");A(this,\"inngestBaseUrl\");A(this,\"inngestApiUrl\");A(this,\"headers\");if(!t)throw new Error(\"A name must be passed to create an Inngest instance.\");if(!n)throw new Error(\"An event key must be passed to create an Inngest instance.\");this.name=t,this.eventKey=n||me()&&process.env[dt.EventKey]||\"\",this.inngestBaseUrl=new URL(r),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),this.headers={\"Content-Type\":\"application/json\",\"User-Agent\":`InngestJS v${Xt}`}}async send(t,n){let r;if(typeof t==\"string\"?r=(Array.isArray(n)?n:n?[n]:[]).map(c=>({...c,name:t})):r=Array.isArray(t)?t:t?[t]:[],!r.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(!qt()){const c=Yt();(c!==void 0||await Jt(c,fetch))&&(s=ht(c,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:\"POST\",body:JSON.stringify(r),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await le(this,re,vt).call(this,o)}createFunction(t,n,r){return new Fe(typeof t==\"string\"?{name:t}:t,{event:n},{step:new Me(r)})}createScheduledFunction(t,n,r){return new Fe(typeof t==\"string\"?{name:t}:t,{cron:n},{step:new Me(r)})}}re=new WeakSet,vt=async function(t){let n=\"Unknown error\";switch(t.status){case 401:n=\"Event key Not Found\";break;case 400:n=\"Cannot process event payload\";break;case 403:n=\"Forbidden\";break;case 404:n=\"Event key not found\";break;case 406:n=`${JSON.stringify(await t.json())}`;break;case 409:case 412:n=\"Event transformation failed\";break;case 413:n=\"Event payload too large\";break;case 500:n=\"Internal server error\";break}return new Error(`Inngest API Error: ${t.status} ${n}`)};const C=e=>Object.entries(e).reduce((n,[r,s])=>s?[...n,r]:n,[]).filter(Boolean).join(\" \").trim(),en=({children:e,onClick:t,type:n,disabled:r})=>l(\"button\",{class:`${r?\"bg-slate-400\":\"bg-blue-500\"} text-white px-5 py-1 font-semibold rounded`,onClick:t,type:n,disabled:r,children:e}),tn=()=>at(async()=>{const t=new URL(window.location.href);t.searchParams.set(\"introspect\",\"true\");const r=await(await fetch(t)).json();return r.functions=r.functions.map(s=>{var c;const o=new Set;return((c=s.triggers)==null?void 0:c.length)<1?o.add(O.NoTriggers):s.triggers.some(a=>!(a!=null&&a.event)&&!(a!=null&&a.cron))&&o.add(O.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var a,h;const c=Boolean((a=s.errors)==null?void 0:a.size),_=Boolean((h=o.errors)==null?void 0:h.size);return c!==_?c?-1:1:s.name.localeCompare(o.name)}),r.globalErrors=new Set,r.hasSigningKey||r.globalErrors.add(ge.NoSigningKey),r}),nn=\"http://localhost:8288\",gt=nt({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ye=gt.Consumer,rn=({children:e})=>{const{value:t,retry:n,loading:r,error:s}=tn(),o=new URL((t==null?void 0:t.devServerURL)||nn);o.pathname=\"dev\";const{value:c,retry:_}=at(async()=>await(await fetch(o)).json());ut(_,1e3);const a=E(()=>Boolean(c),[c]);return l(gt.Provider,{value:{value:t,retry:n,loading:r,error:s,dev:c,devConnected:a},children:e})},on=({value:e,label:t,onChange:n,className:r=\"\",disabled:s})=>l(b,{children:[t?l(sn,{children:t}):null,l(\"textarea\",{disabled:s,class:C({\"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500\":!0,[r]:!0}),value:e,onChange:o=>n==null?void 0:n(o.currentTarget.value)})]}),sn=({children:e})=>l(\"label\",{class:\"font-semibold text-sm\",children:e}),mt=nt({push:e=>()=>{},remove:e=>{}}),ln=(e,t)=>{switch(t.type){case\"add\":return e.find(n=>n.id===t.toast.id)?e:e.concat([{...t.toast}]);case\"remove\":return e.filter(n=>n.id!==t.id)}},cn=({children:e})=>{const[t,n]=ot(ln,[]),r=o=>n({type:\"remove\",id:o}),s=o=>{const c=Math.random().toString(16);return n({type:\"add\",toast:{...o,id:o.id||c}}),()=>r(c)};return l(mt.Provider,{value:{push:s,remove:r},children:[l(\"div\",{className:\"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8\",children:t.map(o=>l(_n,{toast:o},o.id))}),e]})},yt=()=>It(mt),We=5e3,_n=({toast:e})=>{const{remove:t}=yt(),[n,r]=G(!1),s=e.icon;V(()=>{setTimeout(()=>{r(!0)},25),setTimeout(()=>{!e.sticky&&r(!1)},e.duration||We-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||We)},[e.id]);const o=e.message||(e.type===\"error\"?\"Something went wrong\":\"\");let c=\"text-slate-200 bg-gray-800\";switch(e.type){case\"success\":c=\"text-slate-200 bg-green-600\";break;case\"error\":c=\"text-slate-200 bg-red-800\"}return n?l(\"div\",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${c} 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},an=e=>l(ye,{children:t=>l(un,{...e,introspect:t})}),un=({introspect:e,eventData:t})=>{const{push:n}=yt(),{value:r,devConnected:s}=e,[o,c]=G(t||JSON.stringify({name:\"\",data:{}},void 0,\" \")),_=E(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),a=async h=>{if(h.preventDefault(),!r||!s){n({type:\"error\",message:\"You must run the dev server to send test events\"});return}await new Qt({name:r.appName,inngestBaseUrl:r.devServerURL,eventKey:\"dev-server\"}).send(JSON.parse(o)),n({type:\"success\",message:\"Event sent. Check your terminal for logs.\"})};return l(H,{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:a,children:[l(\"div\",{class:\"my-4\",children:l(on,{label:\"Event data (JSON)\",className:C({\"font-mono overflow-y-scroll h-48 resize-none\":!0,\"bg-red-100\":!_}),value:o,onChange:c})}),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(en,{type:\"submit\",disabled:!s,children:\"Send event\"})]})]})]})})},dn=({config:e,altBg:t})=>{var o,c;const n=E(()=>e.triggers[0].cron?\"cron\":\"event\",[e.triggers]),r=E(()=>{const _=e.triggers[0];return _.cron||_.event||\"\"},[e.triggers]),s=E(()=>{var _;return Boolean((_=e.errors)==null?void 0:_.size)},[e.errors]);return l(b,{children:[l(\"div\",{class:C({\"w-full grid grid-cols-[1fr_1fr_1fr] p-2 items-center\":!0,\"bg-slate-200/30\":Boolean(t),\"bg-red-400/30\":s}),children:[l(\"div\",{class:\"flex flex-col\",children:l(\"div\",{class:\"font-semibold text-sm\",children:[e.name,\" \",l(\"span\",{class:C({\"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:C({\"text-xs text-gray-500\":!0,\"bg-white\":s,\"bg-gray-500/10\":!s}),children:e.id})}),l(\"span\",{children:r?l(\"code\",{children:r}):l(\"code\",{class:\"bg-white\",children:\"Invalid or no expression\"})})]}),s?l(\"div\",{class:\"w-full p-2 bg-red-400/30\",children:(c=Array.from((o=e.errors)!=null?o:[]))==null?void 0:c.map(_=>l(\"div\",{class:\"bg-red-100 border border-red-400 rounded p-2\",children:zt[_]}))}):null]})},fn=({class:e=\"\"})=>l(\"svg\",{class:C({\"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\"})]}),hn=()=>l(ye,{children:e=>l(pn,{introspect:e})}),pn=({introspect:e})=>{var i;const{loading:t,value:n,retry:r,error:s}=e,[o,c]=G(!1);ut(r,5e3);const _=E(()=>(n==null?void 0:n.functions.some(p=>{var f;return(f=p.errors)==null?void 0:f.size}))||!1,[n==null?void 0:n.functions]),a=E(()=>Boolean(n==null?void 0:n.globalErrors.size),[n==null?void 0:n.globalErrors]),h=E(()=>[{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&&!n&&!s?l(\"div\",{class:\"flex-1 w-full h-full flex items-center justify-center\",children:l(fn,{class:\"h-8 w-8\"})}):l(b,{children:[l(\"div\",{class:\"flex flex-col gap-4 py-20 bg-gray-100\",children:l(H,{children:[l(\"div\",{class:\"text-3xl\",children:_?\"\\u274C Your functions are not set up correctly\":n!=null&&n.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-\",n==null?void 0:n.sdk]})})]})}),l(\"div\",{children:l(H,{children:l(\"div\",{class:\"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4\",children:h.map(p=>l(\"a\",{href:p.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:p.title}),l(\"div\",{class:\"text-sm\",children:p.description}),l(\"div\",{class:\"flex-1\"}),l(\"div\",{class:\"text-right font-semibold text-purple-500\",children:\"Explore \\u2192\"})]}))})})}),a?l(\"div\",{class:\"mt-8\",children:l(H,{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((i=n==null?void 0:n.globalErrors)!=null?i:[]).map(p=>l(\"div\",{class:\"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800\",children:Kt[p]}))]})})}):null,l(an,{expanded:o,onToggle:()=>c(p=>!p)}),l(\"div\",{class:\"w-full flex items-center justify-center mt-8 p-4\",children:l(H,{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 \",(n==null?void 0:n.functions.length)||0,\" functions\"]}),l(\"div\",{children:l(\"div\",{class:\"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase\",onClick:()=>r(),children:\"Refresh\"})})]}),l(\"a\",{class:\"mb-8\",href:\"#\",children:\"Don't see your function?\"})]}),n!=null&&n.functions.length?l(\"div\",{class:\"flex flex-col\",children:[l(\"div\",{class:\"w-full grid grid-cols-[1fr_1fr_1fr] font-semibold border-b-2 border-slate-300 pb-1\",children:[l(\"div\",{children:\"Name\"}),l(\"div\",{children:\"ID\"}),l(\"div\",{children:\"Event / Cron\"})]}),n==null?void 0:n.functions.map((p,f)=>l(dn,{config:p,altBg:f%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.\"]})]})]})})]})},vn=({copiable:e,value:t})=>l(\"code\",{class:C({\"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(gn,{}):null]}),gn=()=>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\"})]}),mn=\"http://localhost:8288\",yn=()=>l(ye,{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(bn,{introspect:e})]})}),bn=({introspect:e})=>{const{value:t,devConnected:n}=e,r=new URL((t==null?void 0:t.devServerURL)||mn);return r.pathname=\"dev\",l(b,{children:[l(\"div\",{class:\"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none\",children:[l(\"div\",{class:\"flex h-4 w-4 relative\",children:[l(\"span\",{class:C({\"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75\":!0,\"bg-green-400\":n,\"bg-red-400\":!n})}),l(\"span\",{class:C({\"relative inline-flex rounded-full h-4 w-4\":!0,\"bg-green-500\":n,\"bg-red-500\":!n})})]}),n?l(\"div\",{children:[\"Connected to \",l(\"code\",{children:\"inngest dev\"}),\" on\",\" \",l(\"code\",{children:[r.hostname,\":\",r.port]})]}):l(\"div\",{children:[\"Not connected to \",l(\"code\",{children:\"inngest dev\"})]})]}),n?null:l(b,{children:[l(\"div\",{className:\"text-sm\",children:\"Run the dev server: \"}),l(vn,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function wn(){return l(cn,{children:l(rn,{children:[l(yn,{}),l($t,{children:l(hn,{})})]})})}Nt(l(wn,{}),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\\]{grid-template-columns:1fr 1fr 1fr}.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";
//# sourceMappingURL=landing.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.landing = void 0;
exports.landing = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <title>Inngest SDK - Your functions</title>\n <script type="module" crossorigin>\nvar bt=Object.defineProperty;var wt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var A=(e,t,n)=>(wt(e,typeof t!="symbol"?t+"":t,n),n),ie=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var k=(e,t,n)=>(ie(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},D=(e,t,n,r)=>(ie(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var le=(e,t,n)=>(ie(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll(\'link[rel="modulepreload"]\'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(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 r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var oe,u,Ge,B,we,ze,Z={},Ke=[],xt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $(e,t){for(var n in t)e[n]=t[n];return e}function Je(e){var t=e.parentNode;t&&t.removeChild(e)}function ae(e,t,n){var r,s,o,c={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:c[o]=t[o];if(arguments.length>2&&(c.children=arguments.length>3?oe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)c[o]===void 0&&(c[o]=e.defaultProps[o]);return Y(e,c,r,s,null)}function Y(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++Ge:s};return s==null&&u.vnode!=null&&u.vnode(o),o}function b(e){return e.children}function N(e,t){this.props=e,this.context=t}function L(e,t){if(t==null)return e.__?L(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?L(e):null}function Ye(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ye(e)}}function ue(e){(!e.__d&&(e.__d=!0)&&B.push(e)&&!Q.__r++||we!==u.debounceRendering)&&((we=u.debounceRendering)||setTimeout)(Q)}function Q(){for(var e;Q.__r=B.length;)e=B.sort(function(t,n){return t.__v.__b-n.__v.__b}),B=[],e.some(function(t){var n,r,s,o,c,_;t.__d&&(c=(o=(n=t).__v).__e,(_=n.__P)&&(r=[],(s=$({},o)).__v=o.__v+1,he(_,o,s,n.__n,_.ownerSVGElement!==void 0,o.__h!=null?[c]:null,r,c==null?L(o):c,o.__h),Qe(r,o),o.__e!=c&&Ye(o)))})}function qe(e,t,n,r,s,o,c,_,a,h){var i,p,f,d,v,T,g,y=r&&r.__k||Ke,x=y.length;for(n.__k=[],i=0;i<t.length;i++)if((d=n.__k[i]=(d=t[i])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Y(null,d,null,null,d):Array.isArray(d)?Y(b,{children:d},null,null,null):d.__b>0?Y(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(f=y[i])===null||f&&d.key==f.key&&d.type===f.type)y[i]=void 0;else for(p=0;p<x;p++){if((f=y[p])&&d.key==f.key&&d.type===f.type){y[p]=void 0;break}f=null}he(e,d,f=f||Z,s,o,c,_,a,h),v=d.__e,(p=d.ref)&&f.ref!=p&&(g||(g=[]),f.ref&&g.push(f.ref,null,d),g.push(p,d.__c||v,d)),v!=null?(T==null&&(T=v),typeof d.type=="function"&&d.__k===f.__k?d.__d=a=Xe(d,a,e):a=Ze(e,d,f,y,v,a),typeof n.type=="function"&&(n.__d=a)):a&&f.__e==a&&a.parentNode!=e&&(a=L(f))}for(n.__e=T,i=x;i--;)y[i]!=null&&(typeof n.type=="function"&&y[i].__e!=null&&y[i].__e==n.__d&&(n.__d=L(r,i+1)),tt(y[i],y[i]));if(g)for(i=0;i<g.length;i++)et(g[i],g[++i],g[++i])}function Xe(e,t,n){for(var r,s=e.__k,o=0;s&&o<s.length;o++)(r=s[o])&&(r.__=e,t=typeof r.type=="function"?Xe(r,t,n):Ze(n,r,r,s,r.__e,t));return t}function ee(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){ee(n,t)}):t.push(e)),t}function Ze(e,t,n,r,s,o){var c,_,a;if(t.__d!==void 0)c=t.__d,t.__d=void 0;else if(n==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),c=null;else{for(_=o,a=0;(_=_.nextSibling)&&a<r.length;a+=2)if(_==s)break e;e.insertBefore(s,o),c=o}return c!==void 0?c:s.nextSibling}function kt(e,t,n,r,s){var o;for(o in n)o==="children"||o==="key"||o in t||te(e,o,null,n[o],r);for(o in t)s&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||te(e,o,t[o],n[o],r)}function xe(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||xt.test(t)?n:n+"px"}function te(e,t,n,r,s){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||xe(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||xe(e.style,t,n[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]=n,n?r||e.addEventListener(t,o?Ee:ke,o):e.removeEventListener(t,o?Ee:ke,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]=n==null?"":n;break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function ke(e){this.l[e.type+!1](u.event?u.event(e):e)}function Ee(e){this.l[e.type+!0](u.event?u.event(e):e)}function he(e,t,n,r,s,o,c,_,a){var h,i,p,f,d,v,T,g,y,x,P,be,z,w=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(a=n.__h,_=t.__e=n.__e,t.__h=null,o=[_]),(h=u.__b)&&h(t);try{e:if(typeof w=="function"){if(g=t.props,y=(h=w.contextType)&&r[h.__c],x=h?y?y.props.value:h.__:r,n.__c?T=(i=t.__c=n.__c).__=i.__E:("prototype"in w&&w.prototype.render?t.__c=i=new w(g,x):(t.__c=i=new N(g,x),i.constructor=w,i.render=St),y&&y.sub(i),i.props=g,i.state||(i.state={}),i.context=x,i.__n=r,p=i.__d=!0,i.__h=[]),i.__s==null&&(i.__s=i.state),w.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=$({},i.__s)),$(i.__s,w.getDerivedStateFromProps(g,i.__s))),f=i.props,d=i.state,p)w.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(w.getDerivedStateFromProps==null&&g!==f&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,x),!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,x)===!1||t.__v===n.__v){i.props=g,i.state=i.__s,t.__v!==n.__v&&(i.__d=!1),i.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(K){K&&(K.__=t)}),i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(f,d,v)})}if(i.context=x,i.props=g,i.__v=t,i.__P=e,P=u.__r,be=0,"prototype"in w&&w.prototype.render)i.state=i.__s,i.__d=!1,P&&P(t),h=i.render(i.props,i.state,i.context);else do i.__d=!1,P&&P(t),h=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++be<25);i.state=i.__s,i.getChildContext!=null&&(r=$($({},r),i.getChildContext())),p||i.getSnapshotBeforeUpdate==null||(v=i.getSnapshotBeforeUpdate(f,d)),z=h!=null&&h.type===b&&h.key==null?h.props.children:h,qe(e,Array.isArray(z)?z:[z],t,n,r,s,o,c,_,a),i.base=t.__e,t.__h=null,i.__h.length&&c.push(i),T&&(i.__E=i.__=null),i.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Et(n.__e,t,n,r,s,o,c,a);(h=u.diffed)&&h(t)}catch(K){t.__v=null,(a||o!=null)&&(t.__e=_,t.__h=!!a,o[o.indexOf(_)]=null),u.__e(K,t,n)}}function Qe(e,t){u.__c&&u.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){u.__e(r,n.__v)}})}function Et(e,t,n,r,s,o,c,_){var a,h,i,p=n.props,f=t.props,d=t.type,v=0;if(d==="svg"&&(s=!0),o!=null){for(;v<o.length;v++)if((a=o[v])&&"setAttribute"in a==!!d&&(d?a.localName===d:a.nodeType===3)){e=a,o[v]=null;break}}if(e==null){if(d===null)return document.createTextNode(f);e=s?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),o=null,_=!1}if(d===null)p===f||_&&e.data===f||(e.data=f);else{if(o=o&&oe.call(e.childNodes),h=(p=n.props||Z).dangerouslySetInnerHTML,i=f.dangerouslySetInnerHTML,!_){if(o!=null)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(i||h)&&(i&&(h&&i.__html==h.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||""))}if(kt(e,f,p,s,_),i)t.__k=[];else if(v=t.props.children,qe(e,Array.isArray(v)?v:[v],t,n,r,s&&d!=="foreignObject",o,c,o?o[0]:n.__k&&L(n,0),_),o!=null)for(v=o.length;v--;)o[v]!=null&&Je(o[v]);_||("value"in f&&(v=f.value)!==void 0&&(v!==e.value||d==="progress"&&!v||d==="option"&&v!==p.value)&&te(e,"value",v,p.value,!1),"checked"in f&&(v=f.checked)!==void 0&&v!==e.checked&&te(e,"checked",v,p.checked,!1))}return e}function et(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){u.__e(r,n)}}function tt(e,t,n){var r,s;if(u.unmount&&u.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){u.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&tt(r[s],t,typeof e.type!="function");n||e.__e==null||Je(e.__e),e.__=e.__e=e.__d=void 0}function St(e,t,n){return this.constructor(e,n)}function Nt(e,t,n){var r,s,o;u.__&&u.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],he(t,e=(!r&&n||t).__k=ae(b,null,[e]),s||Z,Z,t.ownerSVGElement!==void 0,!r&&n?[n]:s?null:t.firstChild?oe.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r),Qe(o,e)}function nt(e,t){var n={__c:t="__cC"+ze++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&s.some(ue)},this.sub=function(c){s.push(c);var _=c.componentWillUnmount;c.componentWillUnmount=function(){s.splice(s.indexOf(c),1),_&&_.call(c)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}oe=Ke.slice,u={__e:function(e,t,n,r){for(var s,o,c;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),c=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),c=s.__d),c)return s.__E=s}catch(_){e=_}throw e}},Ge=0,N.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof e=="function"&&(e=e($({},n),this.props)),e&&$(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),ue(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ue(this))},N.prototype.render=b,B=[],Q.__r=0,ze=0;var Ct=0;function l(e,t,n,r,s){var o,c,_={};for(c in t)c=="ref"?o=t[c]:_[c]=t[c];var a={type:e,props:_,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ct,__source:s,__self:r};if(typeof e=="function"&&(o=e.defaultProps))for(c in o)_[c]===void 0&&(_[c]=o[c]);return u.vnode&&u.vnode(a),a}const $t=({children:e})=>l("div",{class:"w-full h-full",children:e}),H=({children:e})=>l("div",{class:"w-full flex justify-center",children:l("div",{class:"w-[70rem] max-w-full px-8",children:e})});var W,m,ce,Se,j=0,rt=[],q=[],Ne=u.__b,Ce=u.__r,$e=u.diffed,Ie=u.__c,Te=u.unmount;function se(e,t){u.__h&&u.__h(m,e,j||t),j=0;var n=m.__H||(m.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:q}),n.__[e]}function G(e){return j=1,ot(it,e)}function ot(e,t,n){var r=se(W++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):it(void 0,t),function(o){var c=r.__N?r.__N[0]:r.__[0],_=r.t(c,o);c!==_&&(r.__N=[_,r.__[1]],r.__c.setState({}))}],r.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,c,_){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(i){return i.__c});if(a.every(function(i){return!i.__N}))return!s||s.call(this,o,c,_);var h=!1;return a.forEach(function(i){if(i.__N){var p=i.__[0];i.__=i.__N,i.__N=void 0,p!==i.__[0]&&(h=!0)}}),!!h&&(!s||s.call(this,o,c,_))}}return r.__N||r.__}function V(e,t){var n=se(W++,3);!u.__s&&st(n.__H,t)&&(n.__=e,n.i=t,m.__H.__h.push(n))}function pe(e){return j=5,E(function(){return{current:e}},[])}function E(e,t){var n=se(W++,7);return st(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ve(e,t){return j=8,E(function(){return e},t)}function It(e){var t=m.context[e.__c],n=se(W++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(m)),t.props.value):e.__}function Tt(){for(var e;e=rt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(X),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){typeof e.type!="function"||e.o||e.type===b?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,Ne&&Ne(e)},u.__r=function(e){Ce&&Ce(e),W=0;var t=(m=e.__c).__H;t&&(ce===m?(t.__h=[],m.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=q,n.__N=n.i=void 0})):(t.__h.forEach(X),t.__h.forEach(de),t.__h=[])),ce=m},u.diffed=function(e){$e&&$e(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(rt.push(t)!==1&&Se===u.requestAnimationFrame||((Se=u.requestAnimationFrame)||At)(Tt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==q&&(n.__=n.__V),n.i=void 0,n.__V=q})),ce=m=null},u.__c=function(e,t){t.some(function(n){try{n.__h.forEach(X),n.__h=n.__h.filter(function(r){return!r.__||de(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],u.__e(r,n.__v)}}),Ie&&Ie(e,t)},u.unmount=function(e){Te&&Te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{X(r)}catch(s){t=s}}),n.__H=void 0,t&&u.__e(t,n.__v))};var Ae=typeof requestAnimationFrame=="function";function At(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function X(e){var t=m,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),m=t}function de(e){var t=m;e.__c=e.__(),m=t}function st(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function it(e,t){return typeof t=="function"?t(e):t}function Ut(e,t){for(var n in t)e[n]=t[n];return e}function Ue(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Le(e){this.props=e}(Le.prototype=new N).isPureReactComponent=!0,Le.prototype.shouldComponentUpdate=function(e,t){return Ue(this.props,e)||Ue(this.state,t)};var Re=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Re&&Re(e)};var Lt=u.__e;u.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Lt(e,t,n,r)};var Pe=u.unmount;function lt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ut({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return lt(r,t,n)})),e}function ct(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ct(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function _e(){this.__u=0,this.t=null,this.__b=null}function _t(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function J(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Pe&&Pe(e)},(_e.prototype=new N).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=_t(r.__v),o=!1,c=function(){o||(o=!0,n.__R=null,s?s(_):_())};n.__R=c;var _=function(){if(!--r.__u){if(r.state.__a){var h=r.state.__a;r.__v.__k[0]=ct(h,h.__c.__P,h.__c.__O)}var i;for(r.setState({__a:r.__b=null});i=r.t.pop();)i.forceUpdate()}},a=t.__h===!0;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(c,c)},_e.prototype.componentWillUnmount=function(){this.t=[]},_e.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=lt(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&ae(b,null,e.fallback);return s&&(s.__h=null),[ae(b,null,t.__a?null:e.children),s]};var De=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(J.prototype=new N).__a=function(e){var t=this,n=_t(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),De(t,e,r)):s()};n?n(o):o()}},J.prototype.render=function(e){this.u=null,this.o=new Map;var t=ee(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},J.prototype.componentDidUpdate=J.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){De(e,n,t)})};var Rt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Pt=/^(?: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]/,Dt=typeof document<"u",Ht=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};N.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(N.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var He=u.event;function Bt(){}function jt(){return this.cancelBubble}function Vt(){return this.defaultPrevented}u.event=function(e){return He&&(e=He(e)),e.persist=Bt,e.isPropagationStopped=jt,e.isDefaultPrevented=Vt,e.nativeEvent=e};var Be={configurable:!0,get:function(){return this.class}},je=u.vnode;u.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var s=t.indexOf("-")===-1;for(var o in r={},n){var c=n[o];Dt&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&c==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&c===!0?c="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Ht(n.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&&Pt.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():c===null&&(c=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=c)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=ee(n.children).forEach(function(_){_.props.selected=r.value.indexOf(_.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=ee(n.children).forEach(function(_){_.props.selected=r.multiple?r.defaultValue.indexOf(_.props.value)!=-1:r.defaultValue==_.props.value})),e.props=r,n.class!=n.className&&(Be.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Be))}e.$$typeof=Rt,je&&je(e)};var Ve=u.__r;u.__r=function(e){Ve&&Ve(e),e.__c};var R=function(){return R=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},R.apply(this,arguments)};function Oe(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),s=0,t=0;t<n;t++)for(var o=arguments[t],c=0,_=o.length;c<_;c++,s++)r[s]=o[c];return r}function Ot(){var e=pe(!1),t=ve(function(){return e.current},[]);return V(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Ft(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=pe(0),s=Ot(),o=G(n),c=o[0],_=o[1],a=ve(function(){for(var h=[],i=0;i<arguments.length;i++)h[i]=arguments[i];var p=++r.current;return c.loading||_(function(f){return R(R({},f),{loading:!0})}),e.apply(void 0,h).then(function(f){return s()&&p===r.current&&_({value:f,loading:!1}),f},function(f){return s()&&p===r.current&&_({error:f,loading:!1}),f})},t);return[c,a]}function Mt(e,t){t===void 0&&(t=[]);var n=Ft(e,t,{loading:!0}),r=n[0],s=n[1];return V(function(){s()},[s]),r}var Wt=function(e,t){t===void 0&&(t=[]);var n=G(0),r=n[0],s=n[1],o=Mt(e,Oe(t,[r])),c=o.loading,_=ve(function(){c||s(function(a){return a+1})},Oe(t,[c]));return R(R({},o),{retry:_})};const at=Wt;var Gt=function(e,t){var n=pe(function(){});V(function(){n.current=e}),V(function(){if(t!==null){var r=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(r)}}},[t])};const ut=Gt;var ge=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(ge||{}),O=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(O||{});const zt={[O.EmptyTrigger]:l(b,{children:"One or more triggers seems invalid; it has no event or cron definition. Make sure you\'ve correctly used the function creation methods."}),[O.NoTriggers]:l(b,{children:"Can\'t find any triggers for this function, such as an event or a cron definition. Make sure you\'ve correctly used the function creation methods."})},Kt={[ge.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 fe=(e=>(e.FnId="fnId",e.StepId="stepId",e.Introspect="introspect",e))(fe||{}),dt=(e=>(e.SigningKey="INNGEST_SIGNING_KEY",e.EventKey="INNGEST_EVENT_KEY",e.LandingPage="INNGEST_LANDING_PAGE",e.DevServerUrl="INNGEST_DEVSERVER_URL",e))(dt||{});const ft="http://127.0.0.1:8288/",Jt=async(e=ft,t)=>{try{const n=ht(e,"/dev");return await(await t(n.toString())).json(),!0}catch{return!1}},ht=(e=ft,t="")=>new URL(t,e.includes("://")?e:`http://${e}`),Yt=()=>(me()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),qt=()=>(me()?["production",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes("production"),me=()=>typeof process<"u"&&"env"in process,Xt="0.6.1-redwood.1",Zt=e=>{const t="-";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)};var S,F,U,ne,pt;class Fe{constructor(t,n,r){I(this,ne);I(this,S,void 0);I(this,F,void 0);I(this,U,void 0);D(this,S,t),D(this,F,n),D(this,U,r||{})}id(t){return k(this,S).id||(k(this,S).id=le(this,ne,pt).call(this,t)),k(this,S).id}get name(){return k(this,S).name}getConfig(t,n){const r=this.id(n);return{id:r,name:this.name,triggers:[k(this,F)],steps:Object.keys(k(this,U)).reduce((s,o)=>{const c=new URL(t.href);return c.searchParams.set(fe.FnId,r),c.searchParams.set(fe.StepId,o),{...s,[o]:{id:o,name:o,runtime:{type:"http",url:c.href}}}},{})}}runStep(t,n){const r=k(this,U)[t];if(!r)throw new Error(`Could not find step with ID "${t}" in function "${this.name}"`);return r.run(n)}}S=new WeakMap,F=new WeakMap,U=new WeakMap,ne=new WeakSet,pt=function(t){return Zt([t||"",k(this,S).name].join("-"))};var M;class Me{constructor(t){I(this,M,void 0);D(this,M,t)}async run(t){return k(this,M).call(this,t)}}M=new WeakMap;var re,vt;class Qt{constructor({name:t,eventKey:n,inngestBaseUrl:r="https://inn.gs/"}){I(this,re);A(this,"name");A(this,"eventKey");A(this,"inngestBaseUrl");A(this,"inngestApiUrl");A(this,"headers");if(!t)throw new Error("A name must be passed to create an Inngest instance.");if(!n)throw new Error("An event key must be passed to create an Inngest instance.");this.name=t,this.eventKey=n||me()&&process.env[dt.EventKey]||"",this.inngestBaseUrl=new URL(r),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),this.headers={"Content-Type":"application/json","User-Agent":`InngestJS v${Xt}`}}async send(t,n){let r;if(typeof t=="string"?r=(Array.isArray(n)?n:n?[n]:[]).map(c=>({...c,name:t})):r=Array.isArray(t)?t:t?[t]:[],!r.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(!qt()){const c=Yt();(c!==void 0||await Jt(c,fetch))&&(s=ht(c,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:"POST",body:JSON.stringify(r),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await le(this,re,vt).call(this,o)}createFunction(t,n,r){return new Fe(typeof t=="string"?{name:t}:t,{event:n},{step:new Me(r)})}createScheduledFunction(t,n,r){return new Fe(typeof t=="string"?{name:t}:t,{cron:n},{step:new Me(r)})}}re=new WeakSet,vt=async function(t){let n="Unknown error";switch(t.status){case 401:n="Event key Not Found";break;case 400:n="Cannot process event payload";break;case 403:n="Forbidden";break;case 404:n="Event key not found";break;case 406:n=`${JSON.stringify(await t.json())}`;break;case 409:case 412:n="Event transformation failed";break;case 413:n="Event payload too large";break;case 500:n="Internal server error";break}return new Error(`Inngest API Error: ${t.status} ${n}`)};const C=e=>Object.entries(e).reduce((n,[r,s])=>s?[...n,r]:n,[]).filter(Boolean).join(" ").trim(),en=({children:e,onClick:t,type:n,disabled:r})=>l("button",{class:`${r?"bg-slate-400":"bg-blue-500"} text-white px-5 py-1 font-semibold rounded`,onClick:t,type:n,disabled:r,children:e}),tn=()=>at(async()=>{const t=new URL(window.location.href);t.searchParams.set("introspect","true");const r=await(await fetch(t)).json();return r.functions=r.functions.map(s=>{var c;const o=new Set;return((c=s.triggers)==null?void 0:c.length)<1?o.add(O.NoTriggers):s.triggers.some(a=>!(a!=null&&a.event)&&!(a!=null&&a.cron))&&o.add(O.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var a,h;const c=Boolean((a=s.errors)==null?void 0:a.size),_=Boolean((h=o.errors)==null?void 0:h.size);return c!==_?c?-1:1:s.name.localeCompare(o.name)}),r.globalErrors=new Set,r.hasSigningKey||r.globalErrors.add(ge.NoSigningKey),r}),nn="http://localhost:8288",gt=nt({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ye=gt.Consumer,rn=({children:e})=>{const{value:t,retry:n,loading:r,error:s}=tn(),o=new URL((t==null?void 0:t.devServerURL)||nn);o.pathname="dev";const{value:c,retry:_}=at(async()=>await(await fetch(o)).json());ut(_,1e3);const a=E(()=>Boolean(c),[c]);return l(gt.Provider,{value:{value:t,retry:n,loading:r,error:s,dev:c,devConnected:a},children:e})},on=({value:e,label:t,onChange:n,className:r="",disabled:s})=>l(b,{children:[t?l(sn,{children:t}):null,l("textarea",{disabled:s,class:C({"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500":!0,[r]:!0}),value:e,onChange:o=>n==null?void 0:n(o.currentTarget.value)})]}),sn=({children:e})=>l("label",{class:"font-semibold text-sm",children:e}),mt=nt({push:e=>()=>{},remove:e=>{}}),ln=(e,t)=>{switch(t.type){case"add":return e.find(n=>n.id===t.toast.id)?e:e.concat([{...t.toast}]);case"remove":return e.filter(n=>n.id!==t.id)}},cn=({children:e})=>{const[t,n]=ot(ln,[]),r=o=>n({type:"remove",id:o}),s=o=>{const c=Math.random().toString(16);return n({type:"add",toast:{...o,id:o.id||c}}),()=>r(c)};return l(mt.Provider,{value:{push:s,remove:r},children:[l("div",{className:"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8",children:t.map(o=>l(_n,{toast:o},o.id))}),e]})},yt=()=>It(mt),We=5e3,_n=({toast:e})=>{const{remove:t}=yt(),[n,r]=G(!1),s=e.icon;V(()=>{setTimeout(()=>{r(!0)},25),setTimeout(()=>{!e.sticky&&r(!1)},e.duration||We-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||We)},[e.id]);const o=e.message||(e.type==="error"?"Something went wrong":"");let c="text-slate-200 bg-gray-800";switch(e.type){case"success":c="text-slate-200 bg-green-600";break;case"error":c="text-slate-200 bg-red-800"}return n?l("div",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${c} 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},an=e=>l(ye,{children:t=>l(un,{...e,introspect:t})}),un=({introspect:e,eventData:t})=>{const{push:n}=yt(),{value:r,devConnected:s}=e,[o,c]=G(t||JSON.stringify({name:"",data:{}},void 0," ")),_=E(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),a=async h=>{if(h.preventDefault(),!r||!s){n({type:"error",message:"You must run the dev server to send test events"});return}await new Qt({name:r.appName,inngestBaseUrl:r.devServerURL,eventKey:"dev-server"}).send(JSON.parse(o)),n({type:"success",message:"Event sent. Check your terminal for logs."})};return l(H,{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:a,children:[l("div",{class:"my-4",children:l(on,{label:"Event data (JSON)",className:C({"font-mono overflow-y-scroll h-48 resize-none":!0,"bg-red-100":!_}),value:o,onChange:c})}),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(en,{type:"submit",disabled:!s,children:"Send event"})]})]})]})})},dn=({config:e,altBg:t})=>{var o,c;const n=E(()=>e.triggers[0].cron?"cron":"event",[e.triggers]),r=E(()=>{const _=e.triggers[0];return _.cron||_.event||""},[e.triggers]),s=E(()=>{var _;return Boolean((_=e.errors)==null?void 0:_.size)},[e.errors]);return l(b,{children:[l("div",{class:C({"w-full grid grid-cols-[1fr_1fr_1fr] p-2 items-center":!0,"bg-slate-200/30":Boolean(t),"bg-red-400/30":s}),children:[l("div",{class:"flex flex-col",children:l("div",{class:"font-semibold text-sm",children:[e.name," ",l("span",{class:C({"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:C({"text-xs text-gray-500":!0,"bg-white":s,"bg-gray-500/10":!s}),children:e.id})}),l("span",{children:r?l("code",{children:r}):l("code",{class:"bg-white",children:"Invalid or no expression"})})]}),s?l("div",{class:"w-full p-2 bg-red-400/30",children:(c=Array.from((o=e.errors)!=null?o:[]))==null?void 0:c.map(_=>l("div",{class:"bg-red-100 border border-red-400 rounded p-2",children:zt[_]}))}):null]})},fn=({class:e=""})=>l("svg",{class:C({"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"})]}),hn=()=>l(ye,{children:e=>l(pn,{introspect:e})}),pn=({introspect:e})=>{var i;const{loading:t,value:n,retry:r,error:s}=e,[o,c]=G(!1);ut(r,5e3);const _=E(()=>(n==null?void 0:n.functions.some(p=>{var f;return(f=p.errors)==null?void 0:f.size}))||!1,[n==null?void 0:n.functions]),a=E(()=>Boolean(n==null?void 0:n.globalErrors.size),[n==null?void 0:n.globalErrors]),h=E(()=>[{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&&!n&&!s?l("div",{class:"flex-1 w-full h-full flex items-center justify-center",children:l(fn,{class:"h-8 w-8"})}):l(b,{children:[l("div",{class:"flex flex-col gap-4 py-20 bg-gray-100",children:l(H,{children:[l("div",{class:"text-3xl",children:_?"\\u274C Your functions are not set up correctly":n!=null&&n.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-",n==null?void 0:n.sdk]})})]})}),l("div",{children:l(H,{children:l("div",{class:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4",children:h.map(p=>l("a",{href:p.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:p.title}),l("div",{class:"text-sm",children:p.description}),l("div",{class:"flex-1"}),l("div",{class:"text-right font-semibold text-purple-500",children:"Explore \\u2192"})]}))})})}),a?l("div",{class:"mt-8",children:l(H,{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((i=n==null?void 0:n.globalErrors)!=null?i:[]).map(p=>l("div",{class:"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800",children:Kt[p]}))]})})}):null,l(an,{expanded:o,onToggle:()=>c(p=>!p)}),l("div",{class:"w-full flex items-center justify-center mt-8 p-4",children:l(H,{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 ",(n==null?void 0:n.functions.length)||0," functions"]}),l("div",{children:l("div",{class:"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase",onClick:()=>r(),children:"Refresh"})})]}),l("a",{class:"mb-8",href:"#",children:"Don\'t see your function?"})]}),n!=null&&n.functions.length?l("div",{class:"flex flex-col",children:[l("div",{class:"w-full grid grid-cols-[1fr_1fr_1fr] font-semibold border-b-2 border-slate-300 pb-1",children:[l("div",{children:"Name"}),l("div",{children:"ID"}),l("div",{children:"Event / Cron"})]}),n==null?void 0:n.functions.map((p,f)=>l(dn,{config:p,altBg:f%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."]})]})]})})]})},vn=({copiable:e,value:t})=>l("code",{class:C({"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(gn,{}):null]}),gn=()=>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"})]}),mn="http://localhost:8288",yn=()=>l(ye,{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(bn,{introspect:e})]})}),bn=({introspect:e})=>{const{value:t,devConnected:n}=e,r=new URL((t==null?void 0:t.devServerURL)||mn);return r.pathname="dev",l(b,{children:[l("div",{class:"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none",children:[l("div",{class:"flex h-4 w-4 relative",children:[l("span",{class:C({"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75":!0,"bg-green-400":n,"bg-red-400":!n})}),l("span",{class:C({"relative inline-flex rounded-full h-4 w-4":!0,"bg-green-500":n,"bg-red-500":!n})})]}),n?l("div",{children:["Connected to ",l("code",{children:"inngest dev"})," on"," ",l("code",{children:[r.hostname,":",r.port]})]}):l("div",{children:["Not connected to ",l("code",{children:"inngest dev"})]})]}),n?null:l(b,{children:[l("div",{className:"text-sm",children:"Run the dev server: "}),l(vn,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function wn(){return l(cn,{children:l(rn,{children:[l(yn,{}),l($t,{children:l(hn,{})})]})})}Nt(l(wn,{}),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\\]{grid-template-columns:1fr 1fr 1fr}.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';
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 bt=Object.defineProperty;var wt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var A=(e,t,n)=>(wt(e,typeof t!="symbol"?t+"":t,n),n),ie=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var k=(e,t,n)=>(ie(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},D=(e,t,n,r)=>(ie(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var le=(e,t,n)=>(ie(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll(\'link[rel="modulepreload"]\'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(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 r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var oe,u,Ge,B,we,ze,Z={},Ke=[],xt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $(e,t){for(var n in t)e[n]=t[n];return e}function Je(e){var t=e.parentNode;t&&t.removeChild(e)}function ae(e,t,n){var r,s,o,c={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:c[o]=t[o];if(arguments.length>2&&(c.children=arguments.length>3?oe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)c[o]===void 0&&(c[o]=e.defaultProps[o]);return Y(e,c,r,s,null)}function Y(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++Ge:s};return s==null&&u.vnode!=null&&u.vnode(o),o}function b(e){return e.children}function N(e,t){this.props=e,this.context=t}function L(e,t){if(t==null)return e.__?L(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?L(e):null}function Ye(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ye(e)}}function ue(e){(!e.__d&&(e.__d=!0)&&B.push(e)&&!Q.__r++||we!==u.debounceRendering)&&((we=u.debounceRendering)||setTimeout)(Q)}function Q(){for(var e;Q.__r=B.length;)e=B.sort(function(t,n){return t.__v.__b-n.__v.__b}),B=[],e.some(function(t){var n,r,s,o,c,_;t.__d&&(c=(o=(n=t).__v).__e,(_=n.__P)&&(r=[],(s=$({},o)).__v=o.__v+1,he(_,o,s,n.__n,_.ownerSVGElement!==void 0,o.__h!=null?[c]:null,r,c==null?L(o):c,o.__h),Qe(r,o),o.__e!=c&&Ye(o)))})}function qe(e,t,n,r,s,o,c,_,a,h){var i,p,f,d,v,T,g,y=r&&r.__k||Ke,x=y.length;for(n.__k=[],i=0;i<t.length;i++)if((d=n.__k[i]=(d=t[i])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Y(null,d,null,null,d):Array.isArray(d)?Y(b,{children:d},null,null,null):d.__b>0?Y(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(f=y[i])===null||f&&d.key==f.key&&d.type===f.type)y[i]=void 0;else for(p=0;p<x;p++){if((f=y[p])&&d.key==f.key&&d.type===f.type){y[p]=void 0;break}f=null}he(e,d,f=f||Z,s,o,c,_,a,h),v=d.__e,(p=d.ref)&&f.ref!=p&&(g||(g=[]),f.ref&&g.push(f.ref,null,d),g.push(p,d.__c||v,d)),v!=null?(T==null&&(T=v),typeof d.type=="function"&&d.__k===f.__k?d.__d=a=Xe(d,a,e):a=Ze(e,d,f,y,v,a),typeof n.type=="function"&&(n.__d=a)):a&&f.__e==a&&a.parentNode!=e&&(a=L(f))}for(n.__e=T,i=x;i--;)y[i]!=null&&(typeof n.type=="function"&&y[i].__e!=null&&y[i].__e==n.__d&&(n.__d=L(r,i+1)),tt(y[i],y[i]));if(g)for(i=0;i<g.length;i++)et(g[i],g[++i],g[++i])}function Xe(e,t,n){for(var r,s=e.__k,o=0;s&&o<s.length;o++)(r=s[o])&&(r.__=e,t=typeof r.type=="function"?Xe(r,t,n):Ze(n,r,r,s,r.__e,t));return t}function ee(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){ee(n,t)}):t.push(e)),t}function Ze(e,t,n,r,s,o){var c,_,a;if(t.__d!==void 0)c=t.__d,t.__d=void 0;else if(n==null||s!=o||s.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(s),c=null;else{for(_=o,a=0;(_=_.nextSibling)&&a<r.length;a+=2)if(_==s)break e;e.insertBefore(s,o),c=o}return c!==void 0?c:s.nextSibling}function kt(e,t,n,r,s){var o;for(o in n)o==="children"||o==="key"||o in t||te(e,o,null,n[o],r);for(o in t)s&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||te(e,o,t[o],n[o],r)}function xe(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||xt.test(t)?n:n+"px"}function te(e,t,n,r,s){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||xe(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||xe(e.style,t,n[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]=n,n?r||e.addEventListener(t,o?Ee:ke,o):e.removeEventListener(t,o?Ee:ke,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]=n==null?"":n;break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function ke(e){this.l[e.type+!1](u.event?u.event(e):e)}function Ee(e){this.l[e.type+!0](u.event?u.event(e):e)}function he(e,t,n,r,s,o,c,_,a){var h,i,p,f,d,v,T,g,y,x,P,be,z,w=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(a=n.__h,_=t.__e=n.__e,t.__h=null,o=[_]),(h=u.__b)&&h(t);try{e:if(typeof w=="function"){if(g=t.props,y=(h=w.contextType)&&r[h.__c],x=h?y?y.props.value:h.__:r,n.__c?T=(i=t.__c=n.__c).__=i.__E:("prototype"in w&&w.prototype.render?t.__c=i=new w(g,x):(t.__c=i=new N(g,x),i.constructor=w,i.render=St),y&&y.sub(i),i.props=g,i.state||(i.state={}),i.context=x,i.__n=r,p=i.__d=!0,i.__h=[]),i.__s==null&&(i.__s=i.state),w.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=$({},i.__s)),$(i.__s,w.getDerivedStateFromProps(g,i.__s))),f=i.props,d=i.state,p)w.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(w.getDerivedStateFromProps==null&&g!==f&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,x),!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,x)===!1||t.__v===n.__v){i.props=g,i.state=i.__s,t.__v!==n.__v&&(i.__d=!1),i.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(K){K&&(K.__=t)}),i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(f,d,v)})}if(i.context=x,i.props=g,i.__v=t,i.__P=e,P=u.__r,be=0,"prototype"in w&&w.prototype.render)i.state=i.__s,i.__d=!1,P&&P(t),h=i.render(i.props,i.state,i.context);else do i.__d=!1,P&&P(t),h=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++be<25);i.state=i.__s,i.getChildContext!=null&&(r=$($({},r),i.getChildContext())),p||i.getSnapshotBeforeUpdate==null||(v=i.getSnapshotBeforeUpdate(f,d)),z=h!=null&&h.type===b&&h.key==null?h.props.children:h,qe(e,Array.isArray(z)?z:[z],t,n,r,s,o,c,_,a),i.base=t.__e,t.__h=null,i.__h.length&&c.push(i),T&&(i.__E=i.__=null),i.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Et(n.__e,t,n,r,s,o,c,a);(h=u.diffed)&&h(t)}catch(K){t.__v=null,(a||o!=null)&&(t.__e=_,t.__h=!!a,o[o.indexOf(_)]=null),u.__e(K,t,n)}}function Qe(e,t){u.__c&&u.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){u.__e(r,n.__v)}})}function Et(e,t,n,r,s,o,c,_){var a,h,i,p=n.props,f=t.props,d=t.type,v=0;if(d==="svg"&&(s=!0),o!=null){for(;v<o.length;v++)if((a=o[v])&&"setAttribute"in a==!!d&&(d?a.localName===d:a.nodeType===3)){e=a,o[v]=null;break}}if(e==null){if(d===null)return document.createTextNode(f);e=s?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),o=null,_=!1}if(d===null)p===f||_&&e.data===f||(e.data=f);else{if(o=o&&oe.call(e.childNodes),h=(p=n.props||Z).dangerouslySetInnerHTML,i=f.dangerouslySetInnerHTML,!_){if(o!=null)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(i||h)&&(i&&(h&&i.__html==h.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||""))}if(kt(e,f,p,s,_),i)t.__k=[];else if(v=t.props.children,qe(e,Array.isArray(v)?v:[v],t,n,r,s&&d!=="foreignObject",o,c,o?o[0]:n.__k&&L(n,0),_),o!=null)for(v=o.length;v--;)o[v]!=null&&Je(o[v]);_||("value"in f&&(v=f.value)!==void 0&&(v!==e.value||d==="progress"&&!v||d==="option"&&v!==p.value)&&te(e,"value",v,p.value,!1),"checked"in f&&(v=f.checked)!==void 0&&v!==e.checked&&te(e,"checked",v,p.checked,!1))}return e}function et(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){u.__e(r,n)}}function tt(e,t,n){var r,s;if(u.unmount&&u.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){u.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&tt(r[s],t,typeof e.type!="function");n||e.__e==null||Je(e.__e),e.__=e.__e=e.__d=void 0}function St(e,t,n){return this.constructor(e,n)}function Nt(e,t,n){var r,s,o;u.__&&u.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],he(t,e=(!r&&n||t).__k=ae(b,null,[e]),s||Z,Z,t.ownerSVGElement!==void 0,!r&&n?[n]:s?null:t.firstChild?oe.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r),Qe(o,e)}function nt(e,t){var n={__c:t="__cC"+ze++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&s.some(ue)},this.sub=function(c){s.push(c);var _=c.componentWillUnmount;c.componentWillUnmount=function(){s.splice(s.indexOf(c),1),_&&_.call(c)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}oe=Ke.slice,u={__e:function(e,t,n,r){for(var s,o,c;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),c=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),c=s.__d),c)return s.__E=s}catch(_){e=_}throw e}},Ge=0,N.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof e=="function"&&(e=e($({},n),this.props)),e&&$(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),ue(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ue(this))},N.prototype.render=b,B=[],Q.__r=0,ze=0;var Ct=0;function l(e,t,n,r,s){var o,c,_={};for(c in t)c=="ref"?o=t[c]:_[c]=t[c];var a={type:e,props:_,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ct,__source:s,__self:r};if(typeof e=="function"&&(o=e.defaultProps))for(c in o)_[c]===void 0&&(_[c]=o[c]);return u.vnode&&u.vnode(a),a}const $t=({children:e})=>l("div",{class:"w-full h-full",children:e}),H=({children:e})=>l("div",{class:"w-full flex justify-center",children:l("div",{class:"w-[70rem] max-w-full px-8",children:e})});var W,m,ce,Se,j=0,rt=[],q=[],Ne=u.__b,Ce=u.__r,$e=u.diffed,Ie=u.__c,Te=u.unmount;function se(e,t){u.__h&&u.__h(m,e,j||t),j=0;var n=m.__H||(m.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:q}),n.__[e]}function G(e){return j=1,ot(it,e)}function ot(e,t,n){var r=se(W++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):it(void 0,t),function(o){var c=r.__N?r.__N[0]:r.__[0],_=r.t(c,o);c!==_&&(r.__N=[_,r.__[1]],r.__c.setState({}))}],r.__c=m,!m.u)){m.u=!0;var s=m.shouldComponentUpdate;m.shouldComponentUpdate=function(o,c,_){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(i){return i.__c});if(a.every(function(i){return!i.__N}))return!s||s.call(this,o,c,_);var h=!1;return a.forEach(function(i){if(i.__N){var p=i.__[0];i.__=i.__N,i.__N=void 0,p!==i.__[0]&&(h=!0)}}),!!h&&(!s||s.call(this,o,c,_))}}return r.__N||r.__}function V(e,t){var n=se(W++,3);!u.__s&&st(n.__H,t)&&(n.__=e,n.i=t,m.__H.__h.push(n))}function pe(e){return j=5,E(function(){return{current:e}},[])}function E(e,t){var n=se(W++,7);return st(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ve(e,t){return j=8,E(function(){return e},t)}function It(e){var t=m.context[e.__c],n=se(W++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(m)),t.props.value):e.__}function Tt(){for(var e;e=rt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(X),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){typeof e.type!="function"||e.o||e.type===b?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,Ne&&Ne(e)},u.__r=function(e){Ce&&Ce(e),W=0;var t=(m=e.__c).__H;t&&(ce===m?(t.__h=[],m.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=q,n.__N=n.i=void 0})):(t.__h.forEach(X),t.__h.forEach(de),t.__h=[])),ce=m},u.diffed=function(e){$e&&$e(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(rt.push(t)!==1&&Se===u.requestAnimationFrame||((Se=u.requestAnimationFrame)||At)(Tt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==q&&(n.__=n.__V),n.i=void 0,n.__V=q})),ce=m=null},u.__c=function(e,t){t.some(function(n){try{n.__h.forEach(X),n.__h=n.__h.filter(function(r){return!r.__||de(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],u.__e(r,n.__v)}}),Ie&&Ie(e,t)},u.unmount=function(e){Te&&Te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{X(r)}catch(s){t=s}}),n.__H=void 0,t&&u.__e(t,n.__v))};var Ae=typeof requestAnimationFrame=="function";function At(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function X(e){var t=m,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),m=t}function de(e){var t=m;e.__c=e.__(),m=t}function st(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function it(e,t){return typeof t=="function"?t(e):t}function Ut(e,t){for(var n in t)e[n]=t[n];return e}function Ue(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Le(e){this.props=e}(Le.prototype=new N).isPureReactComponent=!0,Le.prototype.shouldComponentUpdate=function(e,t){return Ue(this.props,e)||Ue(this.state,t)};var Re=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Re&&Re(e)};var Lt=u.__e;u.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Lt(e,t,n,r)};var Pe=u.unmount;function lt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ut({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return lt(r,t,n)})),e}function ct(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ct(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function _e(){this.__u=0,this.t=null,this.__b=null}function _t(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function J(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Pe&&Pe(e)},(_e.prototype=new N).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=_t(r.__v),o=!1,c=function(){o||(o=!0,n.__R=null,s?s(_):_())};n.__R=c;var _=function(){if(!--r.__u){if(r.state.__a){var h=r.state.__a;r.__v.__k[0]=ct(h,h.__c.__P,h.__c.__O)}var i;for(r.setState({__a:r.__b=null});i=r.t.pop();)i.forceUpdate()}},a=t.__h===!0;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(c,c)},_e.prototype.componentWillUnmount=function(){this.t=[]},_e.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=lt(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&ae(b,null,e.fallback);return s&&(s.__h=null),[ae(b,null,t.__a?null:e.children),s]};var De=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(J.prototype=new N).__a=function(e){var t=this,n=_t(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),De(t,e,r)):s()};n?n(o):o()}},J.prototype.render=function(e){this.u=null,this.o=new Map;var t=ee(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},J.prototype.componentDidUpdate=J.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){De(e,n,t)})};var Rt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Pt=/^(?: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]/,Dt=typeof document<"u",Ht=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};N.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(N.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var He=u.event;function Bt(){}function jt(){return this.cancelBubble}function Vt(){return this.defaultPrevented}u.event=function(e){return He&&(e=He(e)),e.persist=Bt,e.isPropagationStopped=jt,e.isDefaultPrevented=Vt,e.nativeEvent=e};var Be={configurable:!0,get:function(){return this.class}},je=u.vnode;u.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var s=t.indexOf("-")===-1;for(var o in r={},n){var c=n[o];Dt&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&c==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&c===!0?c="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Ht(n.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&&Pt.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():c===null&&(c=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=c)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=ee(n.children).forEach(function(_){_.props.selected=r.value.indexOf(_.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=ee(n.children).forEach(function(_){_.props.selected=r.multiple?r.defaultValue.indexOf(_.props.value)!=-1:r.defaultValue==_.props.value})),e.props=r,n.class!=n.className&&(Be.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Be))}e.$$typeof=Rt,je&&je(e)};var Ve=u.__r;u.__r=function(e){Ve&&Ve(e),e.__c};var R=function(){return R=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},R.apply(this,arguments)};function Oe(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),s=0,t=0;t<n;t++)for(var o=arguments[t],c=0,_=o.length;c<_;c++,s++)r[s]=o[c];return r}function Ot(){var e=pe(!1),t=ve(function(){return e.current},[]);return V(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Ft(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=pe(0),s=Ot(),o=G(n),c=o[0],_=o[1],a=ve(function(){for(var h=[],i=0;i<arguments.length;i++)h[i]=arguments[i];var p=++r.current;return c.loading||_(function(f){return R(R({},f),{loading:!0})}),e.apply(void 0,h).then(function(f){return s()&&p===r.current&&_({value:f,loading:!1}),f},function(f){return s()&&p===r.current&&_({error:f,loading:!1}),f})},t);return[c,a]}function Mt(e,t){t===void 0&&(t=[]);var n=Ft(e,t,{loading:!0}),r=n[0],s=n[1];return V(function(){s()},[s]),r}var Wt=function(e,t){t===void 0&&(t=[]);var n=G(0),r=n[0],s=n[1],o=Mt(e,Oe(t,[r])),c=o.loading,_=ve(function(){c||s(function(a){return a+1})},Oe(t,[c]));return R(R({},o),{retry:_})};const at=Wt;var Gt=function(e,t){var n=pe(function(){});V(function(){n.current=e}),V(function(){if(t!==null){var r=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(r)}}},[t])};const ut=Gt;var ge=(e=>(e[e.NoSigningKey=0]="NoSigningKey",e))(ge||{}),O=(e=>(e[e.EmptyTrigger=0]="EmptyTrigger",e[e.NoTriggers=1]="NoTriggers",e))(O||{});const zt={[O.EmptyTrigger]:l(b,{children:"One or more triggers seems invalid; it has no event or cron definition. Make sure you\'ve correctly used the function creation methods."}),[O.NoTriggers]:l(b,{children:"Can\'t find any triggers for this function, such as an event or a cron definition. Make sure you\'ve correctly used the function creation methods."})},Kt={[ge.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 fe=(e=>(e.FnId="fnId",e.StepId="stepId",e.Introspect="introspect",e))(fe||{}),dt=(e=>(e.SigningKey="INNGEST_SIGNING_KEY",e.EventKey="INNGEST_EVENT_KEY",e.LandingPage="INNGEST_LANDING_PAGE",e.DevServerUrl="INNGEST_DEVSERVER_URL",e))(dt||{});const ft="http://127.0.0.1:8288/",Jt=async(e=ft,t)=>{try{const n=ht(e,"/dev");return await(await t(n.toString())).json(),!0}catch{return!1}},ht=(e=ft,t="")=>new URL(t,e.includes("://")?e:`http://${e}`),Yt=()=>(me()?[process.env.INNGEST_DEVSERVER_URL,process.env.REACT_APP_INNGEST_DEVSERVER_URL,process.env.NEXT_PUBLIC_INNGEST_DEVSERVER_URL]:[]).find(t=>!!t),qt=()=>(me()?["production",process.env.VERCEL_ENV,process.env.CONTEXT]:[]).includes("production"),me=()=>typeof process<"u"&&"env"in process,Xt="0.6.1-redwood.2",Zt=e=>{const t="-";return e.toLowerCase().replace(/[^a-z0-9-]+/g,t).replace(/-+/g,t).split(t).filter(Boolean).join(t)};var S,F,U,ne,pt;class Fe{constructor(t,n,r){I(this,ne);I(this,S,void 0);I(this,F,void 0);I(this,U,void 0);D(this,S,t),D(this,F,n),D(this,U,r||{})}id(t){return k(this,S).id||(k(this,S).id=le(this,ne,pt).call(this,t)),k(this,S).id}get name(){return k(this,S).name}getConfig(t,n){const r=this.id(n);return{id:r,name:this.name,triggers:[k(this,F)],steps:Object.keys(k(this,U)).reduce((s,o)=>{const c=new URL(t.href);return c.searchParams.set(fe.FnId,r),c.searchParams.set(fe.StepId,o),{...s,[o]:{id:o,name:o,runtime:{type:"http",url:c.href}}}},{})}}runStep(t,n){const r=k(this,U)[t];if(!r)throw new Error(`Could not find step with ID "${t}" in function "${this.name}"`);return r.run(n)}}S=new WeakMap,F=new WeakMap,U=new WeakMap,ne=new WeakSet,pt=function(t){return Zt([t||"",k(this,S).name].join("-"))};var M;class Me{constructor(t){I(this,M,void 0);D(this,M,t)}async run(t){return k(this,M).call(this,t)}}M=new WeakMap;var re,vt;class Qt{constructor({name:t,eventKey:n,inngestBaseUrl:r="https://inn.gs/"}){I(this,re);A(this,"name");A(this,"eventKey");A(this,"inngestBaseUrl");A(this,"inngestApiUrl");A(this,"headers");if(!t)throw new Error("A name must be passed to create an Inngest instance.");if(!n)throw new Error("An event key must be passed to create an Inngest instance.");this.name=t,this.eventKey=n||me()&&process.env[dt.EventKey]||"",this.inngestBaseUrl=new URL(r),this.inngestApiUrl=new URL(`e/${this.eventKey}`,this.inngestBaseUrl),this.headers={"Content-Type":"application/json","User-Agent":`InngestJS v${Xt}`}}async send(t,n){let r;if(typeof t=="string"?r=(Array.isArray(n)?n:n?[n]:[]).map(c=>({...c,name:t})):r=Array.isArray(t)?t:t?[t]:[],!r.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(!qt()){const c=Yt();(c!==void 0||await Jt(c,fetch))&&(s=ht(c,`e/${this.eventKey}`).href)}const o=await fetch(s,{method:"POST",body:JSON.stringify(r),headers:{...this.headers}});if(!(o.status>=200&&o.status<300))throw await le(this,re,vt).call(this,o)}createFunction(t,n,r){return new Fe(typeof t=="string"?{name:t}:t,{event:n},{step:new Me(r)})}createScheduledFunction(t,n,r){return new Fe(typeof t=="string"?{name:t}:t,{cron:n},{step:new Me(r)})}}re=new WeakSet,vt=async function(t){let n="Unknown error";switch(t.status){case 401:n="Event key Not Found";break;case 400:n="Cannot process event payload";break;case 403:n="Forbidden";break;case 404:n="Event key not found";break;case 406:n=`${JSON.stringify(await t.json())}`;break;case 409:case 412:n="Event transformation failed";break;case 413:n="Event payload too large";break;case 500:n="Internal server error";break}return new Error(`Inngest API Error: ${t.status} ${n}`)};const C=e=>Object.entries(e).reduce((n,[r,s])=>s?[...n,r]:n,[]).filter(Boolean).join(" ").trim(),en=({children:e,onClick:t,type:n,disabled:r})=>l("button",{class:`${r?"bg-slate-400":"bg-blue-500"} text-white px-5 py-1 font-semibold rounded`,onClick:t,type:n,disabled:r,children:e}),tn=()=>at(async()=>{const t=new URL(window.location.href);t.searchParams.set("introspect","true");const r=await(await fetch(t)).json();return r.functions=r.functions.map(s=>{var c;const o=new Set;return((c=s.triggers)==null?void 0:c.length)<1?o.add(O.NoTriggers):s.triggers.some(a=>!(a!=null&&a.event)&&!(a!=null&&a.cron))&&o.add(O.EmptyTrigger),o.size&&(s.errors=o),s}).sort((s,o)=>{var a,h;const c=Boolean((a=s.errors)==null?void 0:a.size),_=Boolean((h=o.errors)==null?void 0:h.size);return c!==_?c?-1:1:s.name.localeCompare(o.name)}),r.globalErrors=new Set,r.hasSigningKey||r.globalErrors.add(ge.NoSigningKey),r}),nn="http://localhost:8288",gt=nt({value:void 0,retry:()=>{},loading:!1,devConnected:!1}),ye=gt.Consumer,rn=({children:e})=>{const{value:t,retry:n,loading:r,error:s}=tn(),o=new URL((t==null?void 0:t.devServerURL)||nn);o.pathname="dev";const{value:c,retry:_}=at(async()=>await(await fetch(o)).json());ut(_,1e3);const a=E(()=>Boolean(c),[c]);return l(gt.Provider,{value:{value:t,retry:n,loading:r,error:s,dev:c,devConnected:a},children:e})},on=({value:e,label:t,onChange:n,className:r="",disabled:s})=>l(b,{children:[t?l(sn,{children:t}):null,l("textarea",{disabled:s,class:C({"w-full bg-gray-100 rounded p-2 focus:outline-none focus:ring focus:border-blue-500":!0,[r]:!0}),value:e,onChange:o=>n==null?void 0:n(o.currentTarget.value)})]}),sn=({children:e})=>l("label",{class:"font-semibold text-sm",children:e}),mt=nt({push:e=>()=>{},remove:e=>{}}),ln=(e,t)=>{switch(t.type){case"add":return e.find(n=>n.id===t.toast.id)?e:e.concat([{...t.toast}]);case"remove":return e.filter(n=>n.id!==t.id)}},cn=({children:e})=>{const[t,n]=ot(ln,[]),r=o=>n({type:"remove",id:o}),s=o=>{const c=Math.random().toString(16);return n({type:"add",toast:{...o,id:o.id||c}}),()=>r(c)};return l(mt.Provider,{value:{push:s,remove:r},children:[l("div",{className:"pointer-events-none fixed flex flex-col items-center justify-center w-full py-8",children:t.map(o=>l(_n,{toast:o},o.id))}),e]})},yt=()=>It(mt),We=5e3,_n=({toast:e})=>{const{remove:t}=yt(),[n,r]=G(!1),s=e.icon;V(()=>{setTimeout(()=>{r(!0)},25),setTimeout(()=>{!e.sticky&&r(!1)},e.duration||We-500),setTimeout(()=>{!e.sticky&&t(e.id)},e.duration||We)},[e.id]);const o=e.message||(e.type==="error"?"Something went wrong":"");let c="text-slate-200 bg-gray-800";switch(e.type){case"success":c="text-slate-200 bg-green-600";break;case"error":c="text-slate-200 bg-red-800"}return n?l("div",{className:`flex items-center align-center justify-center p-4 w-full max-w-sm rounded-lg shadow-2xl ${c} 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},an=e=>l(ye,{children:t=>l(un,{...e,introspect:t})}),un=({introspect:e,eventData:t})=>{const{push:n}=yt(),{value:r,devConnected:s}=e,[o,c]=G(t||JSON.stringify({name:"",data:{}},void 0," ")),_=E(()=>{try{return JSON.parse(o||null),!0}catch{return!1}},[o]),a=async h=>{if(h.preventDefault(),!r||!s){n({type:"error",message:"You must run the dev server to send test events"});return}await new Qt({name:r.appName,inngestBaseUrl:r.devServerURL,eventKey:"dev-server"}).send(JSON.parse(o)),n({type:"success",message:"Event sent. Check your terminal for logs."})};return l(H,{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:a,children:[l("div",{class:"my-4",children:l(on,{label:"Event data (JSON)",className:C({"font-mono overflow-y-scroll h-48 resize-none":!0,"bg-red-100":!_}),value:o,onChange:c})}),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(en,{type:"submit",disabled:!s,children:"Send event"})]})]})]})})},dn=({config:e,altBg:t})=>{var o,c;const n=E(()=>e.triggers[0].cron?"cron":"event",[e.triggers]),r=E(()=>{const _=e.triggers[0];return _.cron||_.event||""},[e.triggers]),s=E(()=>{var _;return Boolean((_=e.errors)==null?void 0:_.size)},[e.errors]);return l(b,{children:[l("div",{class:C({"w-full grid grid-cols-[1fr_1fr_1fr] p-2 items-center":!0,"bg-slate-200/30":Boolean(t),"bg-red-400/30":s}),children:[l("div",{class:"flex flex-col",children:l("div",{class:"font-semibold text-sm",children:[e.name," ",l("span",{class:C({"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:C({"text-xs text-gray-500":!0,"bg-white":s,"bg-gray-500/10":!s}),children:e.id})}),l("span",{children:r?l("code",{children:r}):l("code",{class:"bg-white",children:"Invalid or no expression"})})]}),s?l("div",{class:"w-full p-2 bg-red-400/30",children:(c=Array.from((o=e.errors)!=null?o:[]))==null?void 0:c.map(_=>l("div",{class:"bg-red-100 border border-red-400 rounded p-2",children:zt[_]}))}):null]})},fn=({class:e=""})=>l("svg",{class:C({"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"})]}),hn=()=>l(ye,{children:e=>l(pn,{introspect:e})}),pn=({introspect:e})=>{var i;const{loading:t,value:n,retry:r,error:s}=e,[o,c]=G(!1);ut(r,5e3);const _=E(()=>(n==null?void 0:n.functions.some(p=>{var f;return(f=p.errors)==null?void 0:f.size}))||!1,[n==null?void 0:n.functions]),a=E(()=>Boolean(n==null?void 0:n.globalErrors.size),[n==null?void 0:n.globalErrors]),h=E(()=>[{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&&!n&&!s?l("div",{class:"flex-1 w-full h-full flex items-center justify-center",children:l(fn,{class:"h-8 w-8"})}):l(b,{children:[l("div",{class:"flex flex-col gap-4 py-20 bg-gray-100",children:l(H,{children:[l("div",{class:"text-3xl",children:_?"\\u274C Your functions are not set up correctly":n!=null&&n.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-",n==null?void 0:n.sdk]})})]})}),l("div",{children:l(H,{children:l("div",{class:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 py-4 gap-4",children:h.map(p=>l("a",{href:p.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:p.title}),l("div",{class:"text-sm",children:p.description}),l("div",{class:"flex-1"}),l("div",{class:"text-right font-semibold text-purple-500",children:"Explore \\u2192"})]}))})})}),a?l("div",{class:"mt-8",children:l(H,{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((i=n==null?void 0:n.globalErrors)!=null?i:[]).map(p=>l("div",{class:"bg-yellow-100 border border-yellow-400 rounded p-2 text-yellow-800",children:Kt[p]}))]})})}):null,l(an,{expanded:o,onToggle:()=>c(p=>!p)}),l("div",{class:"w-full flex items-center justify-center mt-8 p-4",children:l(H,{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 ",(n==null?void 0:n.functions.length)||0," functions"]}),l("div",{children:l("div",{class:"bg-gray-100 rounded px-1 py-0.5 hover:cursor-pointer text-sm uppercase",onClick:()=>r(),children:"Refresh"})})]}),l("a",{class:"mb-8",href:"#",children:"Don\'t see your function?"})]}),n!=null&&n.functions.length?l("div",{class:"flex flex-col",children:[l("div",{class:"w-full grid grid-cols-[1fr_1fr_1fr] font-semibold border-b-2 border-slate-300 pb-1",children:[l("div",{children:"Name"}),l("div",{children:"ID"}),l("div",{children:"Event / Cron"})]}),n==null?void 0:n.functions.map((p,f)=>l(dn,{config:p,altBg:f%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."]})]})]})})]})},vn=({copiable:e,value:t})=>l("code",{class:C({"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(gn,{}):null]}),gn=()=>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"})]}),mn="http://localhost:8288",yn=()=>l(ye,{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(bn,{introspect:e})]})}),bn=({introspect:e})=>{const{value:t,devConnected:n}=e,r=new URL((t==null?void 0:t.devServerURL)||mn);return r.pathname="dev",l(b,{children:[l("div",{class:"flex flex-row items-center gap-2 bg-slate-700 text-white py-1 px-3 rounded-full text-sm dark leading-none",children:[l("div",{class:"flex h-4 w-4 relative",children:[l("span",{class:C({"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75":!0,"bg-green-400":n,"bg-red-400":!n})}),l("span",{class:C({"relative inline-flex rounded-full h-4 w-4":!0,"bg-green-500":n,"bg-red-500":!n})})]}),n?l("div",{children:["Connected to ",l("code",{children:"inngest dev"})," on"," ",l("code",{children:[r.hostname,":",r.port]})]}):l("div",{children:["Not connected to ",l("code",{children:"inngest dev"})]})]}),n?null:l(b,{children:[l("div",{className:"text-sm",children:"Run the dev server: "}),l(vn,{copiable:!0,value:`npx inngest-cli@latest dev -u ${window.location.href}`})]})]})};function wn(){return l(cn,{children:l(rn,{children:[l(yn,{}),l($t,{children:l(hn,{})})]})})}Nt(l(wn,{}),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\\]{grid-template-columns:1fr 1fr 1fr}.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';
//# sourceMappingURL=landing.js.map
{
"name": "inngest",
"version": "0.6.1-redwood.1",
"version": "0.6.1-redwood.2",
"description": "Official SDK for Inngest.com",

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

@@ -79,3 +79,12 @@ "use strict";

});
const stepRes = await this.runStep(fnId, stepId, JSON.parse(event.body || "{}"));
/**
* Some requests can be base64 encoded, requiring us to decode it
* first before parsing as JSON.
*/
const strJson = event.body
? event.isBase64Encoded
? Buffer.from(event.body, "base64").toString()
: event.body
: "{}";
const stepRes = await this.runStep(fnId, stepId, JSON.parse(strJson));
if (stepRes.status === 500) {

@@ -82,0 +91,0 @@ return {

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

export declare const version = "0.6.1-redwood.1";
export declare const version = "0.6.1-redwood.2";
//# sourceMappingURL=version.d.ts.map

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

// Generated by genversion.
exports.version = "0.6.1-redwood.1";
exports.version = "0.6.1-redwood.2";
//# sourceMappingURL=version.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc