!function(){function t(t){return t&&t.__esModule?t.default:t}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},n={},o=e.parcelRequire10c2;null==o&&((o=function(t){if(t in r)return r[t].exports;if(t in n){var e=n[t];delete n[t];var o={id:t,exports:{}};return r[t]=o,e.call(o.exports,o,o.exports),o.exports}var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(t,e){n[t]=e},e.parcelRequire10c2=o),o.register("aTZ6u",(function(t,e){"use strict";Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.default=function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}}));var i={};function a(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))}};var c={};Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(t){for(var e=1;e=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=w.call(i,"catchLoc"),u=w.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&w.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),h(r),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;h(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:d(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),P}},t}(s);try{regeneratorRuntime=f}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=f:Function("r","regeneratorRuntime = r")(f)}null===window||void 0===window||window.innerHeight,null===window||void 0===window||window.innerHeight;function h(t){return new Promise((function(e,r){t.onload=function(){return e(t)},t.onerror=r}))}function p(t,e){return d.apply(this,arguments)}function d(){return(d=t(i)(t(s).mark((function e(r,n){var o,i,a;return t(s).wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=document.createElement("script"),i=h(o),o.type="text/javascript",o.async=!1,o.src=r,null==(a=document.getElementById(n))||a.appendChild(o),t.abrupt("return",i);case 8:case"end":return t.stop()}}),e)})))).apply(this,arguments)}function v(t,e){var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.href=t;var n=document.getElementById(e);null==n||n.appendChild(r)}function y(){return(y=t(i)(t(s).mark((function e(r){var n,o,i,a,u,l,f,h,d,y,w;return t(s).wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.assetBaseUrl,o=r.portalBaseUrl,i=null!=(i=r.rootHtmlId)?i:"embeddablePortalApp",a="".concat(null!=n?n:o,"/asset-manifest.json"),e.next=5,fetch(a);case 5:return e.next=7,e.sent.json();case 7:u=e.sent,l=!0,f=!1,h=void 0,e.prev=9,d=u.entrypoints[Symbol.iterator]();case 11:if(l=(y=d.next()).done){e.next=22;break}if(!(w=y.value).endsWith(".js")){e.next=18;break}return e.next=16,p("".concat(null!=n?n:o,"/").concat(w),i);case 16:e.next=19;break;case 18:w.endsWith(".css")&&v("".concat(null!=n?n:o,"/").concat(w),i);case 19:l=!0,e.next=11;break;case 22:e.next=28;break;case 24:e.prev=24,e.t0=e.catch(9),f=!0,h=e.t0;case 28:e.prev=28,e.prev=29,l||null==d.return||d.return();case 31:if(e.prev=31,!f){e.next=34;break}throw h;case 34:return e.finish(31);case 35:return e.finish(28);case 36:CivicPlus.renderPortal(t(c)({},r));case 37:case"end":return e.stop()}}),e,null,[[9,24,28,36],[29,,31,35]])})))).apply(this,arguments)}function w(t){!function(t){y.apply(this,arguments)}(t)}void 0===window.CivicPlus&&(window.CivicPlus={embedPortal:w}),void 0===window.CivicPlus.embedPortal&&(window.CivicPlus.embedPortal=w)}(); //# sourceMappingURL=portal-embed.js.map