var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function u(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}c((r=r.apply(e,t||[])).next())})};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-b236363f.system.js"],function(e){"use strict";var t;return{setters:[function(e){t=e.h}],execute:function(){e({b:r,f:a,g:n,t:i});function n(e){return document.querySelector(e?"gl-map#"+e:"gl-map")}function r(e){if(e.image)return t("ion-thumbnail",{slot:"start"},t("img",{src:e.image}))}function i(e,t){if(t===void 0){t=","}if(!e)return[];if(Array.isArray(e))return e;return e.split(t)}var o=e("a",function(){var e;return function(t){if(!e)e=document.createElement("a");e.href=t;return e.href}}());function a(e,t,n){return __awaiter(this,void 0,void 0,function(){var r,i;return __generator(this,function(o){switch(o.label){case 0:return[4,fetch(e+t,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})];case 1:r=o.sent();return[4,r.blob()];case 2:i=o.sent();if(window.navigator.msSaveOrOpenBlob){window.navigator.msSaveOrOpenBlob(i,t+".pdf")}else{window.open(window.URL.createObjectURL(i))}return[2]}})})}}}});