"use strict";function checkConfig(e,r){return __awaiter(this,void 0,void 0,function(){var t,o,n,i,a,a;return __generator(this,function(c){return!1===this.devConfig.isAuthApi&&(e.isAuthApi=!1),t=e.isAuthApi,o=e.method,n=this.invokeAPIConfigMapByMethod[o],n||!t?(i=void 0,n&&(i=n[this.env.platform]),e.apiConfig=i,i||!t?[2,r()]:(a=log_1.formatLog(log_1.diagnosticMessageMap.call_api_support_platform_error,o,this.env.platform),[2,Promise.reject({errorCode:log_1.diagnosticMessageMap.call_api_support_platform_error.code,errorMessage:a})])):(a=log_1.formatLog(log_1.diagnosticMessageMap.call_api_config_platform_error,this.env.platform),[2,Promise.reject({errorCode:log_1.diagnosticMessageMap.call_api_config_platform_error.code,errorMessage:a})])})})}var __awaiter=this&&this.__awaiter||function(e,r,t,o){function n(e){return e instanceof t?e:new t(function(r){r(e)})}return new(t||(t=Promise))(function(t,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function c(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?t(e.value):n(e.value).then(a,c)}l((o=o.apply(e,r||[])).next())})},__generator=this&&this.__generator||function(e,r){function t(e){return function(r){return o([e,r])}}function o(t){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,i&&(a=2&t[0]?i.return:t[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,t[1])).done)return a;switch(i=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,i=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=r.call(e,l)}catch(e){t=[6,e],i=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}var n,i,a,c,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return c={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c};Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkConfig=void 0;var log_1=require("../../log");exports.checkConfig=checkConfig;