{"size": 1043, "ext": "js", "max_stars_repo_path": "2018-user-conference/arcgis-js-api-road-ahead/demos/gamepad/api-snapshot/esri/core/workers/request.js", "max_stars_repo_name": "katahV/presentations", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "2018-user-conference/arcgis-js-api-road-ahead/demos/gamepad/api-snapshot/esri/core/workers/request.js", "max_issues_repo_name": "katahV/presentations", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "2018-user-conference/arcgis-js-api-road-ahead/demos/gamepad/api-snapshot/esri/core/workers/request.js", "max_forks_repo_name": "katahV/presentations", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 208.6, "max_line_length": 504, "alphanum_fraction": 0.6625119847}
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define(["require","exports","../tsSupport/assignHelper","../Error","../global"],function(r,l,m,n,q){Object.defineProperty(l,"__esModule",{value:!0});var f;l.execute=function(e,c){void 0===c&&(c={});var a=c.responseType;a?"json"!==a&&"text"!==a&&"blob"!==a&&"array-buffer"!==a&&(a="text"):a="json";return q.invokeStaticMessage("request",{url:e,options:c}).then(function(d){var g=d.data,h,k,b;if(g&&("json"===a||"text"===a||"blob"===a)&&(h=new Blob([g]),"json"===a||"text"===a)&&(f||(f=new FileReaderSync),
k=f.readAsText(h),"json"===a)){try{b=JSON.parse(k||null)}catch(p){throw d=m({},p,{url:e,requestOptions:c}),new n("request:server",p.message,d);}if(b.error)throw d=m({},b.error,{url:e,requestOptions:c}),new n("request:server",b.error.message,d);}switch(a){case "json":break;case "text":b=k;break;case "blob":b=h;break;default:b=g}return{data:b,requestOptions:c,ssl:d.ssl,url:e}})}});