(()=>{"use strict";var w={32159:function(M,s){var O=this&&this.__createBinding||(Object.create?function(n,t,e,a){a===void 0&&(a=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,a,u)}:function(n,t,e,a){a===void 0&&(a=e),n[a]=t[e]}),R=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),m=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&O(t,n,e);return R(t,n),t},f=this&&this.__awaiter||function(n,t,e,a){function u(r){return r instanceof e?r:new e(function(c){c(r)})}return new(e||(e=Promise))(function(r,c){function o(l){try{i(a.next(l))}catch(_){c(_)}}function b(l){try{i(a.throw(l))}catch(_){c(_)}}function i(l){l.done?r(l.value):u(l.value).then(o,b)}i((a=a.apply(n,t||[])).next())})},h=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,u,r,c;return c={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function o(i){return function(l){return b([i,l])}}function b(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,u&&(r=i[0]&2?u.return:i[0]?u.throw||((r=u.return)&&r.call(u),0):u.next)&&!(r=r.call(u,i[1])).done)return r;switch(u=0,r&&(i=[i[0]&2,r.value]),i[0]){case 0:case 1:r=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,u=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!r||i[1]>r[0]&&i[1]<r[3])){e.label=i[1];break}if(i[0]===6&&e.label<r[1]){e.label=r[1],r=i;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(i);break}r[2]&&e.ops.pop(),e.trys.pop();continue}i=t.call(n,e)}catch(l){i=[6,l],u=0}finally{a=r=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},d=this&&this.__read||function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var a=e.call(n),u,r=[],c;try{for(;(t===void 0||t-- >0)&&!(u=a.next()).done;)r.push(u.value)}catch(o){c={error:o}}finally{try{u&&!u.done&&(e=a.return)&&e.call(a)}finally{if(c)throw c.error}}return r},v=this&&this.__spreadArray||function(n,t,e){if(e||arguments.length===2)for(var a=0,u=t.length,r;a<u;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(s,"__esModule",{value:!0}),s.httpSignedReq=s.httpReq=s.run=s.startCoordinator=void 0;var p=process.env.AIRNODE_CLOUD_PROVIDER;if(!p)throw new Error("Missing cloud specification");function y(){return f(this,void 0,void 0,function(){return h(this,function(n){switch(n.label){case 0:return[4,Promise.resolve().then(function(){return m(require("./handlers/".concat(p)))})];case 1:return[2,n.sent()]}})})}function S(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return f(this,void 0,void 0,function(){var e;return h(this,function(a){switch(a.label){case 0:return[4,y()];case 1:return e=a.sent(),[2,e.startCoordinator.apply(e,v([],d(n),!1))]}})})}s.startCoordinator=S;function q(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return f(this,void 0,void 0,function(){var e;return h(this,function(a){switch(a.label){case 0:return[4,y()];case 1:return e=a.sent(),[2,e.run.apply(e,v([],d(n),!1))]}})})}s.run=q;function j(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return f(this,void 0,void 0,function(){var e;return h(this,function(a){switch(a.label){case 0:return[4,y()];case 1:return e=a.sent(),[2,e.processHttpRequest.apply(e,v([],d(n),!1))]}})})}s.httpReq=j;function D(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return f(this,void 0,void 0,function(){var e;return h(this,function(a){switch(a.label){case 0:return[4,y()];case 1:return e=a.sent(),[2,e.processHttpSignedDataRequest.apply(e,v([],d(n),!1))]}})})}s.httpSignedReq=D}},g={};w[32159](0,g),module.exports=g})();

//# sourceMappingURL=index.js.map