(function(g){typeofdefine=="function"&&define.amd?define(g):g()})(function(){"use strict";functiong(a){returna&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}functiond(a){if(typeofa!="string")thrownewTypeError("Path must be a string. Received "+JSON.stringify(a))}functionP(a,e){for(varr="",i=0,t=-1,l=0,n,s=0;s<=a.length;++s){if(s<a.length)n=a.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(t===s-1||l===1))if(t!==s-1&&l===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){varo=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",i=0):(r=r.slice(0,o),i=r.length-1-r.lastIndexOf("/")),t=s,l=0;continue}}elseif(r.length===2||r.length===1){r="",i=0,t=s,l=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}elser.length>0?r+="/"+a.slice(t+1,s):r=a.slice(t+1,s),i=s-t-1;t=s,l=0}elsen===46&&l!==-1?++l:l=-1}returnr}functionS(a,e){varr=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");returnr?r===e.root?r+i:r+a+i:i}varv={resolve:function(){for(vare="",r=!1,i,t=arguments.length-1;t>=-1&&!r;t--){varl;t>=0?l=arguments[t]:(i===void0&&(i=process.cwd()),l=i),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}returne=P(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";varr=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;returne=P(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){returnd(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(vare,r=0;r<arguments.length;++r){vari=arguments[r];d(i),i.length>0&&(e===void0?e=i:e+="/"+i)}returne===void0?".":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(vari=1;i<e.length&&e.charCodeAt(i)===47;++i);for(vart=e.length,l=t-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(vars=r.length,o=s-n,u=l<o?l:o,c=-1,f=0;f<=u;++f){if(f===u){if(o>u){if(r.charCodeAt(n+f)===47)returnr.slice(n+f+1);if(f===0)returnr.slice(n+f)}elsel>u&&(e.charCodeAt(i+f)===47?c=f:f===0&&(c=0));break}var_=e.charCodeAt(i+f),k=r.charCodeAt(n+f);if(_!==k)break;_===47&&(c=f)}varh="";for(f=i+c+1;f<=t;++f)(f===t||e.charCodeAt(f)===47)&&(h.length===0?h+="..":h+="/..");returnh.length>0?h+r.slice(n+c):(n+=c,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){returne},dirname:function(e){if(d(e),e.length===0)return".";for(varr=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}}elsel=!1;returnt===-1?i?"/":".":i&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void0&&typeofr!="string")thrownewTypeError('"ext" argument must be a string');d(e);vari=0,t=-1,l=!0,n;if(r!==void0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";vars=r.length-1,o=-1;for(n=e.length-1;n>=0;--n){varu=e.charCodeAt(n);if(u===47){if(!l){i=n+1;break}}elseo===-1&&(l=!1,o=n+1),s>=0&&(u===r.charCodeAt(s)?--s===-1&&(t=n):(s=-1,t=o))}returni===t?t=o: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}}elset===-1&&(l=!1,t=n+1);returnt===-1?"":e.slice(i,t)}},extname:function(e){d(e);for(varr=-1,i=0,t=-1,l=!0,n=0,s=e.length-1;s>=0;--s){varo=e.charCodeAt(s);if(o===47){if(!l){i=s+1;break}continue}t===-1&&(l=!1,t=s+1),o===46?r===-1?r=s:n!==1&&(n=1):r!==-1&&(n=-1)}returnr===-1||t===-1||n===0||n===1&&r===t-1&&r===i+1?"":e.slice(r,t)},format:function(e){if(e===null||typeofe!="object")thrownewTypeError('The "pathObject" argument must be of type Object. Received type '+typeofe);returnS("/",e)},parse:function(e){d(e);varr={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)returnr;vari=e.charCodeAt(0),t=i===47,l;t?(r.root="/",l=1):l=0;for(varn=-1,s=0,o=-1,u=!0,c=e.length-1,f=0;c>=l;--c){if(i=e.charCodeAt(c),i===47){if(!u){s=c+1;break}continue}o===-1&&(u=!1,o=c+1),i===46?n===-1?n=c:f!==1&&(f=1):n!==-1&&(f=-1)}returnn===-1||o===-1||f===0||f===1&&n===o-1&&n===s+1?o!==-1&&(s===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(s,o)):(s===0&&t?(r.name=e.slice(1,n),r.base=e.slice(1,o)):(r.name=e.slice(s,n),r.base=e.slice(s,o)),r.ext=e.slice(n,o)),s>0?r.dir=e.slice(0,s-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};v.posix=v;varL=v,C=g(L),p=Object.defineProperty,E=(a,e,r)=>eina?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,A=(a,e,r)=>(E(a,typeofe!="symbol"?e+"":e,r),r),D=(a,e,r)=>newPromise((i,t)=>{varl=o=>{try{s(r.next(o))}catch(u){t(u)}},n=o=>{try{s(r.throw(o))}catch(u){t(u)}},s=o=>o.done?i(o.value):Promise.resolve(o.value).then(l,n);s((r=r.apply(a,e)).next())});classw{constructor(e){A(this,"baseDir"),A(this,"styleElementMap",newMap),A(this,"url"),this.url=newURL(e);constr=C.dirname(this.url.pathname);this.baseDir=r}dir(e){returnC.resolve(this.baseDir,e)}loadStyle(e){returnD(this,null,function*(){constr=e.map(i=>{constt=this.dir(i);returnthis.styleElementMap.has(t)?!1:(this.styleElementMap.set(t,null),newPromise((l,n)=>{consts=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)}))});yieldPromise.all(r)})}}varM=Object.defineProperty,R=(a,e,r)=>eina?M(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,y=(a,e,r)=>(R(a,typeofe!="symbol"?e+"":e,r),r),b=(a,e,r)=>newPromise((i,t)=>{varl=o=>{try{s(r.next(o))}catch(u){t(u)}},n=o=>{try{s(r.throw(o))}catch(u){t(u)}},s=o=>o.done?i(o.value):Promise.resolve(o.value).then(l,n);s((r=r.apply(a,e)).next())});classm{staticaddImportStyleMap(e,r){consti=neww(e);this.map.set(i,r)}staticinit(){conste=this,r=System.constructor.prototype.resolve;System.constructor.prototype.resolve=function(i,t){returnPromise.resolve(r.call(this,i,t)).then(l=>b(this,null,function*(){returnl&&(yielde.loadStyle(i)),l}))}}staticloadStyle(e){returnb(this,null,function*(){this.isLoaded===!1&&(this.isLoaded=!0,this.configLoadPromise=this.resolveConfig()),this.configLoadPromise&&(yieldthis.configLoadPromise);constr=[];this.map.forEach((i,t)=>{constl=i[e];l&&(Array.isArray(l)?r.push(t.loadStyle(l)):r.push(t.loadStyle([l])))}),yieldPromise.all(r)})}staticresolveConfig(){returnb(this,null,function*(){conste=document.querySelectorAll("script"),i=Array.from(e).map(t=>b(this,null,function*(){if(t.type==="systemjs-importmap"){constl=yieldwindow.fetch(t.src);if(l.ok){constn=yieldl.json();if(n.styles){consts=neww(t.src);this.map.set(s,n.styles)}}}}));yieldPromise.all(i),this.configLoadPromise&&(this.configLoadPromise=null)})}}y(m,"map",newMap),y(m,"styleElementMap",newMap),y(m,"configLoadPromise",null),y(m,"isLoaded",!1),m.init()});
(function(g){typeofdefine=="function"&&define.amd?define(g):g()})(function(){"use strict";functiong(o){returno&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}functiond(o){if(typeofo!="string")thrownewTypeError("Path must be a string. Received "+JSON.stringify(o))}functionP(o,e){for(varr="",i=0,t=-1,l=0,n,s=0;s<=o.length;++s){if(s<o.length)n=o.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(t===s-1||l===1))if(t!==s-1&&l===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){vara=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}}elseif(r.length===2||r.length===1){r="",i=0,t=s,l=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}elser.length>0?r+="/"+o.slice(t+1,s):r=o.slice(t+1,s),i=s-t-1;t=s,l=0}elsen===46&&l!==-1?++l:l=-1}returnr}function_(o,e){varr=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");returnr?r===e.root?r+i:r+o+i:i}varv={resolve:function(){for(vare="",r=!1,i,t=arguments.length-1;t>=-1&&!r;t--){varl;t>=0?l=arguments[t]:(i===void0&&(i=process.cwd()),l=i),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}returne=P(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";varr=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;returne=P(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){returnd(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(vare,r=0;r<arguments.length;++r){vari=arguments[r];d(i),i.length>0&&(e===void0?e=i:e+="/"+i)}returne===void0?".":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(vari=1;i<e.length&&e.charCodeAt(i)===47;++i);for(vart=e.length,l=t-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(vars=r.length,a=s-n,c=l<a?l:a,u=-1,f=0;f<=c;++f){if(f===c){if(a>c){if(r.charCodeAt(n+f)===47)returnr.slice(n+f+1);if(f===0)returnr.slice(n+f)}elsel>c&&(e.charCodeAt(i+f)===47?u=f:f===0&&(u=0));break}varS=e.charCodeAt(i+f),z=r.charCodeAt(n+f);if(S!==z)break;S===47&&(u=f)}varh="";for(f=i+u+1;f<=t;++f)(f===t||e.charCodeAt(f)===47)&&(h.length===0?h+="..":h+="/..");returnh.length>0?h+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){returne},dirname:function(e){if(d(e),e.length===0)return".";for(varr=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}}elsel=!1;returnt===-1?i?"/":".":i&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void0&&typeofr!="string")thrownewTypeError('"ext" argument must be a string');d(e);vari=0,t=-1,l=!0,n;if(r!==void0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";vars=r.length-1,a=-1;for(n=e.length-1;n>=0;--n){varc=e.charCodeAt(n);if(c===47){if(!l){i=n+1;break}}elsea===-1&&(l=!1,a=n+1),s>=0&&(c===r.charCodeAt(s)?--s===-1&&(t=n):(s=-1,t=a))}returni===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}}elset===-1&&(l=!1,t=n+1);returnt===-1?"":e.slice(i,t)}},extname:function(e){d(e);for(varr=-1,i=0,t=-1,l=!0,n=0,s=e.length-1;s>=0;--s){vara=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)}returnr===-1||t===-1||n===0||n===1&&r===t-1&&r===i+1?"":e.slice(r,t)},format:function(e){if(e===null||typeofe!="object")thrownewTypeError('The "pathObject" argument must be of type Object. Received type '+typeofe);return_("/",e)},parse:function(e){d(e);varr={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)returnr;vari=e.charCodeAt(0),t=i===47,l;t?(r.root="/",l=1):l=0;for(varn=-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)}returnn===-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;varL=v,y=g(L),E=Object.defineProperty,M=(o,e,r)=>eino?E(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,b=(o,e,r)=>(M(o,typeofe!="symbol"?e+"":e,r),r),D=(o,e,r)=>newPromise((i,t)=>{varl=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())});classw{constructor(e){b(this,"baseDir"),b(this,"styleElementMap",newMap),b(this,"url"),b(this,"regex",/^https?:\/\//),this.url=this.regex.test(e)?newURL(e):newURL(e,y.join(location.origin,location.pathname));constr=y.dirname(this.url.pathname);this.baseDir=r}dir(e){returnthis.regex.test(e)?e:y.resolve(this.baseDir,e)}loadStyle(e){returnD(this,null,function*(){constr=e.map(i=>{constt=this.dir(i);returnthis.styleElementMap.has(t)?!1:(this.styleElementMap.set(t,null),newPromise((l,n)=>{consts=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)}))});yieldPromise.all(r)})}}varR=Object.defineProperty,k=(o,e,r)=>eino?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,A=(o,e,r)=>(k(o,typeofe!="symbol"?e+"":e,r),r),C=(o,e,r)=>newPromise((i,t)=>{varl=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())});constm=classp{staticaddImportStyleMap(e,r){consti=neww(e);this.map.set(i,r)}staticinit(){conste=this,r=System.constructor.prototype.resolve;System.constructor.prototype.resolve=function(t,l){returnPromise.resolve(r.call(this,t,l)).then(n=>C(this,null,function*(){returnn&&(yielde.loadStyle(t)),n}))};consti=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)}}staticloadStyle(e){returnC(this,null,function*(){this.isLoaded===!1&&(this.isLoaded=!0,this.configLoadPromise=this.resolveConfig()),this.configLoadPromise&&(yieldthis.configLoadPromise);constr=[];this.map.forEach((i,t)=>{constl=i[e];l&&(Array.isArray(l)?r.push(t.loadStyle(l)):r.push(t.loadStyle([l])))}),yieldPromise.all(r)})}staticresolveConfig(){returnC(this,null,function*(){conste=document.querySelectorAll("script"),i=Array.from(e).map(t=>C(this,null,function*(){if(t.type==="systemjs-importmap"){constl=yieldwindow.fetch(t.src);if(l.ok){constn=yieldl.json();if(n.styles){consts=neww(t.src);this.map.set(s,n.styles)}}}}));yieldPromise.all(i),this.configLoadPromise&&(this.configLoadPromise=null)})}};A(m,"map",newMap),A(m,"styleElementMap",newMap),A(m,"configLoadPromise",null),A(m,"isLoaded",!1),m.init()});