!function(){var n,t,r=(t="undefined"!=typeof self)?self:global;"undefined"!=typeof document&&((t=document.querySelector("base[href]"))&&(n=t.href));n||"undefined"==typeof location||-1!==(t=(n=location.href.split("#")[0].split("?")[0]).lastIndexOf("/"))&&(n=n.slice(0,t+1));var o="undefined"!=typeof Symbol,f=o&&Symbol.toStringTag,l=o?Symbol():"@";function u(){this[l]={}}var s,a=u.prototype;a.import=function(n,t){var r=this;return Promise.resolve(r.resolve(n,t)).then((function(n){var t=function e(n,t,r){var o=n[l][t];if(o)return o;var s=[],a=Object.create(null);f&&Object.defineProperty(a,f,{value:"Module"});var d=Promise.resolve().then((function(){return n.instantiate(t,r)})).then((function(r){if(!r)throw Error("Module "+t+" did not instantiate");var f=r[1]((function(n,t){o.h=!0;var r=!1;if("object"!=typeof n)n in a&&a[n]===t||(a[n]=t,r=!0);else for(var t in n){var f=n[t];t in a&&a[t]===f||(a[t]=f,r=!0)}if(r)for(n=0;n<s.length;n++)s[n](a);return t}),2===r[1].length?{import:function(r){return n.import(r,t)},meta:n.createContext(t)}:void 0);return o.e=f.execute||function(){},[r[0],f.setters||[]]})),h=d.then((function(r){return Promise.all(r[0].map((function(o,f){var l=r[1][f];return Promise.resolve(n.resolve(o,t)).then((function(r){var o=e(n,r,t);return Promise.resolve(o.I).then((function(){return l&&(o.i.push(l),!o.h&&o.I||l(o.n)),o}))}))}))).then((function(n){o.d=n}))}));return h.catch((function(n){o.e=null,o.er=n})),o=n[l][t]={id:t,i:s,n:a,I:d,L:h,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(r,n);return t.C||function(n,t){return t.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then((function(){return Promise.all(t.d.map((function(t){return e(n,t,r)})))}))}(n,t,{}).then((function(){return function e(n,t,r){if(!r[t.id]){if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}var o;return t.d.forEach((function(t){var f=e(n,t,r);f&&(o=o||[]).push(f)})),o?Promise.all(o).then(i):i()}function i(){try{var n=t.e.call(d);if(n)return n=n.then((function(){t.C=t.n,t.E=null})),t.E=t.E||n;t.C=t.n}catch(n){throw t.er=n,n}finally{t.L=t.I=void 0,t.e=null}}}(n,t,{})})).then((function(){return t.n}))}(r,t)}))},a.createContext=function(n){return{url:n}},a.register=function(n,t){s=[n,t]},a.getRegister=function(){var n=s;return s=void 0,n};var d=Object.freeze(Object.create(null));r.System=r.System||new u;var h=a.register;a.register=function(n,t){h.call(this,n,t)},a.instantiate=function(n,t){var r=this;return".json"===n.substr(-5)?fetch(n).then((function(n){return n.text()})).then((function(n){return[[],function(t){return{execute:function(){t("default",JSON.parse(n))}}}]})):new Promise((function(o,f){var l;function c(t){t.filename===n&&(l=t.error)}window.addEventListener("error",c);var s=document.createElement("script");s.charset="utf-8",s.async=!0,s.addEventListener("error",(function(){window.removeEventListener("error",c),f(Error("Error loading "+n+(t?" from "+t:"")))})),s.addEventListener("load",(function(){window.removeEventListener("error",c),document.head.removeChild(s),l?f(l):o(r.getRegister())})),s.src=n,document.head.appendChild(s)}))},t&&"function"==typeof importScripts&&(a.instantiate=function(n){var t=this;return new Promise((function(r,o){try{importScripts(n)}catch(n){o(n)}r(t.getRegister())}))}),a.resolve=function(t,r){var o=function(n,t){if(-1!==n.indexOf("\\")&&(n=n.replace(r,"/")),"/"===n[0]&&"/"===n[1])return t.slice(0,t.indexOf(":")+1)+n;if("."===n[0]&&("/"===n[1]||"."===n[1]&&("/"===n[2]||2===n.length&&(n+="/"))||1===n.length&&(n+="/"))||"/"===n[0]){var r,o=t.slice(0,t.indexOf(":")+1);if(r="/"===t[o.length+1]?"file:"!==o?(r=t.slice(o.length+2)).slice(r.indexOf("/")+1):t.slice(8):t.slice(o.length+("/"===t[o.length])),"/"===n[0])return t.slice(0,t.length-r.length-1)+n;var f=r.slice(0,r.lastIndexOf("/")+1)+n,l=[],s=-1;for(n=0;n<f.length;n++)-1!==s?"/"===f[n]&&(l.push(f.slice(s,n+1)),s=-1):"."===f[n]?"."!==f[n+1]||"/"!==f[n+2]&&n+2!==f.length?"/"===f[n+1]||n+1===f.length?n+=1:s=n:(l.pop(),n+=2):s=n;return-1!==s&&l.push(f.slice(s)),t.slice(0,t.length-r.length)+l.join("")}}(t,r||n);if(!o){if(-1!==t.indexOf(":"))return Promise.resolve(t);throw Error('Cannot resolve "'+t+(r?'" from '+r:'"'))}return Promise.resolve(o)}}();