/*! * SystemJS 6.14.2 */ !function(){function e(e,t){return(t||"")+" (SystemJS Error#"+e+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+e+")"}function t(e,t){if(-1!==e.indexOf("\\")&&(e=e.replace(j,"/")),"/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var n,r=t.slice(0,t.indexOf(":")+1);if(n="/"===t[r.length+1]?"file:"!==r?(n=t.slice(r.length+2)).slice(n.indexOf("/")+1):t.slice(8):t.slice(r.length+("/"===t[r.length])),"/"===e[0])return t.slice(0,t.length-n.length-1)+e;for(var i=n.slice(0,n.lastIndexOf("/")+1)+e,o=[],s=-1,u=0;un.length&&"/"!==r[r.length-1]))return r+e.slice(n.length);u("W2",n,r,"should have a trailing '/'")}}function u(t,n,r,i){console.warn(e(t,"Package target "+i+", resolving target '"+r+"' for "+n))}function c(e,t,n){for(var r=e.scopes,i=n&&o(n,r);i;){var u=s(t,r[i]);if(u)return u;i=o(i.slice(0,i.lastIndexOf("/")),r)}return s(t,e.imports)||-1!==t.indexOf(":")&&t}function a(){this[M]={}}function f(e){return e.id}function l(e,t,n,r){if(e.onload(n,t.id,t.d&&t.d.map(f),!!r),n)throw n}function d(t,n,r,i){var o=t[M][n];if(o)return o;var s=[],u=Object.create(null);P&&Object.defineProperty(u,P,{value:"Module"});var c=Promise.resolve().then((function(){return t.instantiate(n,r,i)})).then((function(r){if(!r)throw Error(e(2,"Module "+n+" did not instantiate"));var i=r[1]((function(e,t){o.h=!0;var n=!1;if("string"==typeof e)e in u&&u[e]===t||(u[e]=t,n=!0);else{for(var r in e)t=e[r],r in u&&u[r]===t||(u[r]=t,n=!0);e&&e.__esModule&&(u.__esModule=e.__esModule)}if(n)for(var i=0;i-1){var n=document.createEvent("Event");n.initEvent("error",!1,!1),t.dispatchEvent(n)}return Promise.reject(e)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var r=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,passThrough:!0}).then((function(e){if(!e.ok)throw Error("Invalid status code: "+e.status);return e.text()})).catch((function(n){return n.message=e("W4","Error fetching systemjs-import map "+t.src)+"\n"+n.message,console.warn(n),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;W=W.then((function(){return r})).then((function(n){!function(t,n,r){var o={};try{o=JSON.parse(n)}catch(s){console.warn(Error(e("W5","systemjs-importmap contains invalid JSON")+"\n\n"+n+"\n"))}i(o,r,t)}(T,n,t.src||g)}))}}))}var g,y="undefined"!=typeof Symbol,b="undefined"!=typeof self,w="undefined"!=typeof document,S=b?self:global;if(w){var E=document.querySelector("base[href]");E&&(g=E.href)}if(!g&&"undefined"!=typeof location){var O=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==O&&(g=g.slice(0,O+1))}var x,j=/\\/g,P=y&&Symbol.toStringTag,M=y?Symbol():"@",L=a.prototype;L.import=function(e,t,n){var r=this;return t&&"object"==typeof t&&(n=t,t=void 0),Promise.resolve(r.prepareImport()).then((function(){return r.resolve(e,t,n)})).then((function(e){var t=d(r,e,void 0,n);return t.C||p(r,t)}))},L.createContext=function(e){var t=this;return{url:e,resolve:function(n,r){return Promise.resolve(t.resolve(n,r||e))}}},L.onload=function(){},L.register=function(e,t,n){x=[e,t,n]},L.getRegister=function(){var e=x;return x=void 0,e};var C=Object.freeze(Object.create(null));S.System=new a;var I,R,W=Promise.resolve(),T={imports:{},scopes:{},depcache:{},integrity:{}},A=w;if(L.prepareImport=function(e){return(A||e)&&(m(),A=!1),W},w&&(m(),window.addEventListener("DOMContentLoaded",m)),L.addImportMap=function(e,t){i(e,t||g,T)},w){window.addEventListener("error",(function(e){_=e.filename,J=e.error}));var N=location.origin}L.createScript=function(e){var t=document.createElement("script");t.async=!0,e.indexOf(N+"/")&&(t.crossOrigin="anonymous");var n=T.integrity[e];return n&&(t.integrity=n),t.src=e,t};var _,J,k={},U=L.register;L.register=function(e,t){if(w&&"loading"===document.readyState&&"string"!=typeof e){var n=document.querySelectorAll("script[src]"),r=n[n.length-1];if(r){I=e;var i=this;R=setTimeout((function(){k[r.src]=[e,t],i.import(r.src)}))}}else I=void 0;return U.call(this,e,t)},L.instantiate=function(t,n){var r=k[t];if(r)return delete k[t],r;var i=this;return Promise.resolve(L.createScript(t)).then((function(r){return new Promise((function(o,s){r.addEventListener("error",(function(){s(Error(e(3,"Error loading "+t+(n?" from "+n:""))))})),r.addEventListener("load",(function(){if(document.head.removeChild(r),_===t)s(J);else{var e=i.getRegister(t);e&&e[0]===I&&clearTimeout(R),o(e)}})),document.head.appendChild(r)}))}))},L.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(L.fetch=fetch);var $=L.instantiate,B=/^(text|application)\/(x-)?javascript(;|$)/;L.instantiate=function(t,n,r){var i=this;return this.shouldFetch(t,n,r)?this.fetch(t,{credentials:"same-origin",integrity:T.integrity[t],meta:r}).then((function(r){if(!r.ok)throw Error(e(7,r.status+" "+r.statusText+", loading "+t+(n?" from "+n:"")));var o=r.headers.get("content-type");if(!o||!B.test(o))throw Error(e(4,'Unknown Content-Type "'+o+'", loading '+t+(n?" from "+n:"")));return r.text().then((function(e){return e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL="+t),(0,eval)(e),i.getRegister(t)}))})):$.apply(this,arguments)},L.resolve=function(n,r){return c(T,t(n,r=r||g)||n,r)||function(t,n){throw Error(e(8,"Unable to resolve bare specifier '"+t+(n?"' from "+n:"'")))}(n,r)};var F=L.instantiate;L.instantiate=function(e,t,n){var r=T.depcache[e];if(r)for(var i=0;i2){var a=r.lastIndexOf("/");if(a!==r.length-1){a===-1?(r="",i=0):(r=r.slice(0,a),i=r.length-1-r.lastIndexOf("/")),t=s,l=0;continue}}else if(r.length===2||r.length===1){r="",i=0,t=s,l=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(t+1,s):r=o.slice(t+1,s),i=s-t-1;t=s,l=0}else n===46&&l!==-1?++l:l=-1}return r}function _(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var v={resolve:function(){for(var e="",r=!1,i,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(i===void 0&&(i=process.cwd()),l=i),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=P(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=P(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":v.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=v.resolve(e),r=v.resolve(r),e===r))return"";for(var i=1;ic){if(r.charCodeAt(n+f)===47)return r.slice(n+f+1);if(f===0)return r.slice(n+f)}else l>c&&(e.charCodeAt(i+f)===47?u=f:f===0&&(u=0));break}var S=e.charCodeAt(i+f),z=r.charCodeAt(n+f);if(S!==z)break;S===47&&(u=f)}var h="";for(f=i+u+1;f<=t;++f)(f===t||e.charCodeAt(f)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,t=-1,l=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!l){t=n;break}}else l=!1;return t===-1?i?"/":".":i&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var i=0,t=-1,l=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,a=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(c===47){if(!l){i=n+1;break}}else a===-1&&(l=!1,a=n+1),s>=0&&(c===r.charCodeAt(s)?--s===-1&&(t=n):(s=-1,t=a))}return i===t?t=a:t===-1&&(t=e.length),e.slice(i,t)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!l){i=n+1;break}}else t===-1&&(l=!1,t=n+1);return t===-1?"":e.slice(i,t)}},extname:function(e){d(e);for(var r=-1,i=0,t=-1,l=!0,n=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a===47){if(!l){i=s+1;break}continue}t===-1&&(l=!1,t=s+1),a===46?r===-1?r=s:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||t===-1||n===0||n===1&&r===t-1&&r===i+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return _("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),t=i===47,l;t?(r.root="/",l=1):l=0;for(var n=-1,s=0,a=-1,c=!0,u=e.length-1,f=0;u>=l;--u){if(i=e.charCodeAt(u),i===47){if(!c){s=u+1;break}continue}a===-1&&(c=!1,a=u+1),i===46?n===-1?n=u:f!==1&&(f=1):n!==-1&&(f=-1)}return n===-1||a===-1||f===0||f===1&&n===a-1&&n===s+1?a!==-1&&(s===0&&t?r.base=r.name=e.slice(1,a):r.base=r.name=e.slice(s,a)):(s===0&&t?(r.name=e.slice(1,n),r.base=e.slice(1,a)):(r.name=e.slice(s,n),r.base=e.slice(s,a)),r.ext=e.slice(n,a)),s>0?r.dir=e.slice(0,s-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};v.posix=v;var L=v,y=g(L),E=Object.defineProperty,M=(o,e,r)=>e in o?E(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,b=(o,e,r)=>(M(o,typeof e!="symbol"?e+"":e,r),r),D=(o,e,r)=>new Promise((i,t)=>{var l=a=>{try{s(r.next(a))}catch(c){t(c)}},n=a=>{try{s(r.throw(a))}catch(c){t(c)}},s=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,n);s((r=r.apply(o,e)).next())});class w{constructor(e){b(this,"baseDir"),b(this,"styleElementMap",new Map),b(this,"url"),b(this,"regex",/^https?:\/\//),this.url=this.regex.test(e)?new URL(e):new URL(e,y.join(location.origin,location.pathname));const r=y.dirname(this.url.pathname);this.baseDir=r}dir(e){return this.regex.test(e)?e:y.resolve(this.baseDir,e)}loadStyle(e){return D(this,null,function*(){const r=e.map(i=>{const t=this.dir(i);return this.styleElementMap.has(t)?!1:(this.styleElementMap.set(t,null),new Promise((l,n)=>{const s=document.createElement("link");s.setAttribute("type","text/css"),s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.onload=l,s.onerror=n,document.head.appendChild(s)}))});yield Promise.all(r)})}}var R=Object.defineProperty,k=(o,e,r)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,A=(o,e,r)=>(k(o,typeof e!="symbol"?e+"":e,r),r),C=(o,e,r)=>new Promise((i,t)=>{var l=a=>{try{s(r.next(a))}catch(c){t(c)}},n=a=>{try{s(r.throw(a))}catch(c){t(c)}},s=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,n);s((r=r.apply(o,e)).next())});const m=class p{static addImportStyleMap(e,r){const i=new w(e);this.map.set(i,r)}static init(){const e=this,r=System.constructor.prototype.resolve;System.constructor.prototype.resolve=function(t,l){return Promise.resolve(r.call(this,t,l)).then(n=>C(this,null,function*(){return n&&(yield e.loadStyle(t)),n}))};const i=System.constructor.prototype.addImportMap;System.constructor.prototype.addImportMap=function(t){i.call(this,t),t.styles&&p.addImportStyleMap(y.join(location.origin,location.pathname),t.styles)}}static loadStyle(e){return C(this,null,function*(){this.isLoaded===!1&&(this.isLoaded=!0,this.configLoadPromise=this.resolveConfig()),this.configLoadPromise&&(yield this.configLoadPromise);const r=[];this.map.forEach((i,t)=>{const l=i[e];l&&(Array.isArray(l)?r.push(t.loadStyle(l)):r.push(t.loadStyle([l])))}),yield Promise.all(r)})}static resolveConfig(){return C(this,null,function*(){const e=document.querySelectorAll("script"),i=Array.from(e).map(t=>C(this,null,function*(){if(t.type==="systemjs-importmap"){const l=yield window.fetch(t.src);if(l.ok){const n=yield l.json();if(n.styles){const s=new w(t.src);this.map.set(s,n.styles)}}}}));yield Promise.all(i),this.configLoadPromise&&(this.configLoadPromise=null)})}};A(m,"map",new Map),A(m,"styleElementMap",new Map),A(m,"configLoadPromise",null),A(m,"isLoaded",!1),m.init()});