mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
7 lines
46 KiB
JavaScript
7 lines
46 KiB
JavaScript
/*
|
|
* SystemJS v0.20.0-alpha.1
|
|
*/
|
|
!function(){"use strict";function e(e){return st?Symbol():"@@"+e}function t(e,t){nt||(t=t.replace(it?/file:\/\/\//g:/file:\/\//g,""));var r,n=(e.message||e)+"\n "+t;r=ft&&e.fileName?new Error(n,e.fileName,e.lineNumber):new Error(n);var o=e.originalErr?e.originalErr.stack:e.stack;return ot?r.stack=n+"\n "+o:r.stack=o,r.originalErr=e.originalErr||e,r}function r(e,t){function r(){throw new RangeError('Unable to resolve "'+e+'" to '+t)}var n=e.indexOf(":");if(n!==-1)return ot&&":"===e[1]&&"\\"===e[2]&&e[0].match(/[a-z]/i)&&"file:"===t.substr(0,5)?"file:///"+e.replace(/\\/g,"/"):e;var o=t&&t.substr(0,t.indexOf(":")+1);if("/"===e[0]&&"/"===e[1])return o||r(),o+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length)||1===e.length)||"/"===e[0]){var i,a=!o||"/"!==t[o.length];if(a?(void 0===t&&r(),i=t):"/"===t[o.length+1]?"file:"!==o?(i=t.substr(o.length+2),i=i.substr(i.indexOf("/")+1)):i=t.substr(8):i=t.substr(o.length+1),"/"===e[0]){if(!a)return t.substr(0,t.length-i.length-1)+e;r()}for(var s=i.substr(0,i.lastIndexOf("/")+1)+e,u=[],l=void 0,f=0;f<s.length;f++)if(void 0===l)if("."!==s[f])l=f;else{if("."!==s[f+1]||"/"!==s[f+2]&&f!==s.length-2){if("/"!==s[f+1]&&f!==s.length-1){l=f;continue}f+=1}else u.pop(),f+=2;a&&0===u.length&&r(),f===s.length&&u.push("")}else"/"===s[f]&&(u.push(s.substr(l,f-l+1)),l=void 0);return void 0!==l&&u.push(s.substr(l,s.length-l)),t.substr(0,t.length-i.length)+u.join("")}}function n(e,t){(t||this.warnings&&"undefined"!=typeof console&&console.warn)&&console.warn(e)}function o(e,t){if("."===e[0])throw new Error("Node module "+e+" can't be loaded as it is not a package require.");if(!ht){var r=this._nodeRequire("module"),n=t.substr(it?8:7);ht=new r(n),ht.paths=r._nodeModulePaths(n)}return ht.require(e)}function i(e,t,r){for(var n in t)t.hasOwnProperty(n)&&(r&&void 0!==e[n]||(e[n]=t[n]));return e}function a(e,t,r){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];void 0===e[n]?e[n]=o:o instanceof Array&&e[n]instanceof Array?e[n]=[].concat(r?o:e[n]).concat(r?e[n]:o):"object"==typeof o&&null!==o&&"object"==typeof e[n]?e[n]=i(i({},e[n]),o,r):r||(e[n]=o)}}function s(e,t,r){try{importScripts(e)}catch(e){r(e)}t()}function u(e,t,r,n,o){function i(){n(),u()}function a(t){u(),o(new Error("Fetching "+e))}function u(){at.System=mt,at.require=vt,l.removeEventListener("load",i,!1),l.removeEventListener("error",a,!1),document.head.removeChild(l)}if(e=e.replace(/#/g,"%23"),ct)return s(e,n,o);mt=at.System,vt=at.require;var l=document.createElement("script");l.type="text/javascript",l.charset="utf-8",l.async=!0,t&&(l.crossOrigin=t),r&&(l.integrity=r),l.addEventListener("load",i,!1),l.addEventListener("error",a,!1),l.src=e,document.head.appendChild(l)}function l(e,t){for(var r=e.split(".");r.length;)t=t[r.shift()];return t}function f(e,t){var r,n=0;for(var o in e)if(t.substr(0,o.length)===o&&(t.length===o.length||"/"===t[o.length])){var i=o.split("/").length;if(i<=n)continue;r=o,n=i}return r}function c(e){return bt?wt+new Buffer(e).toString("base64"):"undefined"!=typeof btoa?wt+btoa(unescape(encodeURIComponent(e))):""}function d(e,t,r,n){var o=e.lastIndexOf("\n");if(t){if("object"!=typeof t)throw new TypeError("load.metadata.sourceMap must be set to an object.");t=JSON.stringify(t)}return(n?"(function(System, SystemJS) {":"")+e+(n?"\n})(System, System);":"")+("\n//# sourceURL="!=e.substr(o,15)?"\n//# sourceURL="+r+(t?"!transpiled":""):"")+(t&&c(t)||"")}function p(e){0==kt++&&(mt=at.System),at.System=at.SystemJS=e}function g(){0==--kt&&(at.System=at.SystemJS=mt)}function h(e,r,n,o,i){St||(St=document.head||document.body||document.documentElement);var a=document.createElement("script");a.text=d(r,n,o,!1);var s,u=window.onerror;if(window.onerror=function(e){s=t(e,"Evaluating "+o),u&&u.apply(this,arguments)},p(e),i&&a.setAttribute("nonce",i),St.appendChild(a),St.removeChild(a),g(),window.onerror=u,s)return s}function m(e,t,r,n,o,i,a){if(t){if(i&&xt)return h(e,t,r,n,i);try{p(e),!Et&&e._nodeRequire&&(Et=e._nodeRequire("vm"),Ot=Et.runInThisContext("typeof System !== 'undefined' && System")===e),Ot?Et.runInThisContext(d(t,r,n,!a),{filename:n+(r?"!transpiled":"")}):(0,eval)(d(t,r,n,!a)),g()}catch(e){return g(),e}}}function v(e){if(e.values)return e.values();if("undefined"==typeof Symbol||!Symbol.iterator)throw new Error("Cannot return values iterator unless Symbol.iterator is defined");var t={};return t[Symbol.iterator]=function(){var t=Object.keys(e),r=0;return{next:function(){return r<t.length?{value:e[t[r++]],done:!1}:{value:void 0,done:!0}}}},t}function y(e){this.key=e||rt,this.registry=new b}function b(){this._registry={}}function w(e){Object.defineProperty(this,Ct,{value:e}),Object.getOwnPropertyNames(e).forEach(k,this)}function k(e){Object.defineProperty(this,e,{enumerable:!0,get:function(){return this[Ct][e]}})}function x(e){y.apply(this,arguments),this[Lt]=void 0,this[_t]={},this.trace=!1,this.loads={}}function S(e){if(void 0===e)throw new RangeError("No resolution found.");return e}function E(e,r,n,o,i){return Promise.resolve().then(function(){return e.normalize(r,n,o,i)}).then(S).catch(function(e){throw t(e,'Resolving dependency "'+r+'" to '+n)})}function O(e,t){return this[_t][e]={key:e,registration:t,metadata:void 0,module:void 0,importerSetters:void 0,linkRecord:{instantiatePromise:void 0,dependencies:void 0,execute:void 0,moduleObj:void 0,setters:void 0,depsInstantiatePromise:void 0,dependencyInstantiations:void 0,linked:!1,error:void 0}}}function P(e,t,r,n,o){var i=n[t];if(i)return Promise.resolve(i);var a=o[t];if(a&&!a.module)return R(e,a,a.linkRecord,n,o);var s=o[r],u=e.createMetadata();return E(e,t,r,u,s&&s.metadata).then(function(t){if(i=n[t])return i;a=o[t],a&&!a.module||(a=O.call(e,t,a&&a.registration));var r=a.linkRecord;return r?(a.metadata||(a.metadata=u,a.registration&&(a.metadata.registered=!0)),R(e,a,r,n,o)):a})}function j(e,t){return function(){var r=e[Lt];r&&(e[Lt]=void 0,t.registration=r,t.metadata.registered=!0)}}function R(e,r,n,o,i){return n.instantiatePromise||(n.instantiatePromise=(r.registration?Promise.resolve():Promise.resolve().then(function(){return e.instantiate(r.key,r.metadata,e.instantiate.length>2&&j(e,r))})).then(function(t){if(void 0!==t){if(!(t instanceof w))throw new TypeError("Instantiate did not return a valid Module object.");return i[r.key]=void 0,e.trace&&C(e,r,n),o[r.key]=t}var a=r.registration;if(r.registration=void 0,!a)throw new TypeError("Module instantiation did not call an anonymous or correctly named System.register.");return n.dependencies=a[0],r.importerSetters=[],n.moduleObj={},a[2]?(n.moduleObj.default={},n.moduleObj.__useDefault=!0,n.execute=a[1]):A(e,r,n,a[1]),n.dependencies.length||(n.linked=!0,e.trace&&C(e,r,n)),r}).catch(function(e){throw n.error=t(e,"Instantiating "+r.key)}))}function M(e,t,r,n,o,i,a){var s=e.createMetadata();return E(e,t,r,s,n).then(function(r){a&&(a[t]=t);var n=i[r],u=o[r];if(u&&(!n||n.module&&u!==n.module))return u;(!n||!u&&n.module)&&(n=O.call(e,r,n&&n.registration));var l=n.linkRecord;return l?(n.metadata=n.metadata||s,n.registration&&(n.metadata.registered=!0),R(e,n,l,o,i)):n})}function C(e,t,r){e.loads[t.key]={key:t.key,dependencies:r.dependencies,deps:r.dependencies,depMap:r.depMap||{},metadata:t.metadata}}function _(e,t){if(("object"==typeof e||"function"==typeof e)&&e!==at)for(var r=Object.getOwnPropertyNames(e),n=0;n<r.length;n++)L(t,e,r[n]);t.default=e}function L(e,t,r){try{var n;(n=Object.getOwnPropertyDescriptor(t,r))&&n.value&&(e[r]=n.value)}catch(e){}}function A(e,t,r,n){var o=r.moduleObj,i=t.importerSetters,a=!1,s=n.call(at,function(e,t){if(!a){if("object"==typeof e)for(var r in e)"__useDefault"!==r&&(o[r]=e[r]);else o[e]=t;a=!0;for(var n=0;n<i.length;n++)i[n](o);return a=!1,t}},new D(e,t.key));"function"!=typeof s?(r.setters=s.setters,r.execute=s.execute):(r.setters=[],r.execute=s)}function I(e,r,n,o,i,a){return(n.depsInstantiatePromise||(n.depsInstantiatePromise=Promise.resolve().then(function(){for(var t=Array(n.dependencies.length),a=0;a<n.dependencies.length;a++)t[a]=M(e,n.dependencies[a],r.key,r.metadata,o,i,e.trace&&(n.depMap={}));return Promise.all(t)}).then(function(e){if(n.dependencyInstantiations=e,n.setters)for(var t=0;t<e.length;t++){var r=n.setters[t];if(r){var o=e[t];o instanceof w?r(o):(r(o.module||o.linkRecord.moduleObj),o.importerSetters&&o.importerSetters.push(r))}}}))).then(function(){for(var t=[],r=0;r<n.dependencies.length;r++){var s=n.dependencyInstantiations[r],u=s.linkRecord;u&&!u.linked&&a.indexOf(s)===-1&&(a.push(s),t.push(I(e,s,s.linkRecord,o,i,a)))}return Promise.all(t)}).then(function(){return n.linked=!0,e.trace&&C(e,r,n),r}).catch(function(e){throw e=t(e,"Loading "+r.key),n.error=n.error||e,e})}function K(e,t){e[_t][t.key]===t&&(e[_t][t.key]=void 0);var r=t.linkRecord;r&&r.dependencyInstantiations&&r.dependencyInstantiations.forEach(function(t,n){if(t&&!(t instanceof w)&&t.linkRecord&&(t.linkRecord.error&&e[_t][t.key]===t&&K(e,t),r.setters&&t.importerSetters)){var o=t.importerSetters.indexOf(r.setters[n]);t.importerSetters.splice(o,1)}})}function F(e,t,r){return function(n,o,i){if(!t)for(var a=0;a<e.length;a++)n(e[a]);i.exports=r.apply(at,arguments)||i.exports}}function D(e,t){this.loader=e,this.key=this.id=t}function T(e,t,r,n,o,i){if(t.module)return t.module;if(r.error)throw r.error;if(i&&i.indexOf(t)!==-1)return t.linkRecord.moduleObj;var a=U(e,t,r,n,o,t.setters?[]:i||[]);if(a)throw K(e,t),a;return t.module}function q(e,t,r,n,o,i,a){return function(s){for(var u=0;u<r.length;u++)if(r[u]===s){var l,f=n[u];return l=f instanceof w?f:T(e,f,f.linkRecord,o,i,a),l.__useDefault?l.default:l}throw new Error("Module "+s+" not declared as a System.registerDynamic dependency of "+t)}}function U(e,r,n,o,i,a){a.push(r);var s;if(n.setters)for(var u,l,f=0;f<n.dependencies.length;f++)if(u=n.dependencyInstantiations[f],u instanceof w?s=N(u):(l=u.linkRecord,l&&a.indexOf(u)===-1&&(s=l.error?l.error:U(e,u,l,o,i,l.setters?a:[]))),s)return n.error=t(s,"Evaluating "+r.key);if(n.execute)if(n.setters)s=z(n.execute,At);else{var c={id:r.key},d=n.moduleObj;Object.defineProperty(c,"exports",{set:function(e){d.default=e},get:function(){return d.default}}),s=z(n.execute,c.exports,[q(e,r.key,n.dependencies,n.dependencyInstantiations,o,i,a),c.exports,c]),s||_(c.exports,d)}if(s)return n.error=t(s,"Evaluating "+r.key);if(o[r.key]=r.module=new w(n.moduleObj),!n.setters){if(r.importerSetters)for(var f=0;f<r.importerSetters.length;f++)r.importerSetters[f](r.module);r.importerSetters=void 0}r.linkRecord=void 0}function z(e,t,r){try{e.apply(t,r)}catch(e){return e}}function N(e){try{w.evaluate(e)}catch(e){return e}}function J(e,t,r,n){if("file:///"===e.substr(0,8)){if(Ft)return $(e,t);throw new Error("Unable to fetch file URLs in this environment.")}e=e.replace(/#/g,"%23");var o={headers:{Accept:"application/x-es-module, */*"}};return r&&(o.integrity=r),t&&("string"==typeof t&&(o.headers.Authorization=t),o.credentials="include"),fetch(e,o).then(function(e){if(e.ok)return n?e.arrayBuffer():e.text();throw new Error("Fetch error: "+e.status+" "+e.statusText)})}function $(e,t,r,n){return new Promise(function(r,o){function i(){r(n?s.response:s.responseText)}function a(){o(new Error("XHR error"+(s.status?" ("+s.status+(s.statusText?" "+s.statusText:"")+")":"")+" loading "+e))}e=e.replace(/#/g,"%23");var s=new XMLHttpRequest;n&&(s.responseType="arraybuffer"),s.onreadystatechange=function(){4===s.readyState&&(0==s.status?s.response?i():(s.addEventListener("error",a),s.addEventListener("load",i)):200===s.status?i():a())},s.open("GET",e,!0),s.setRequestHeader&&(s.setRequestHeader("Accept","application/x-es-module, */*"),t&&("string"==typeof t&&s.setRequestHeader("Authorization",t),s.withCredentials=!0)),s.send(null)})}function B(e,t,r,n){return"file:///"!=e.substr(0,8)?Promise.reject(new Error('Unable to fetch "'+e+'". Only file URLs of the form file:/// supported running in Node.')):(It=It||require("fs"),e=it?e.replace(/\//g,"\\").substr(8):e.substr(7),new Promise(function(t,r){It.readFile(e,function(e,o){if(e)return r(e);if(n)t(o);else{var i=o+"";"\ufeff"===i[0]&&(i=i.substr(1)),t(i)}})}))}function G(){throw new Error("No fetch method is defined for this environment.")}function H(e,t){var r,n="";for(var o in e)if(e.hasOwnProperty(o)){if(t===o)return e[o];if((t.length<o.length||t[o.length-1]===o[o.length-1])&&("/"===e[o][e[o].length-1]||""===e[o])&&t.substr(0,o.length-1)===o.substr(0,o.length-1))return e[o].substr(0,e[o].length-1)+(t.length>o.length?(e[o]&&"/"||"")+t.substr(o.length):"")}var i=e[n];return"string"==typeof r&&(i=i.replace("*",r)),i}function W(e,t,r,n){var o=e[dr]();if(n){var i;t.pluginFirst?(i=n.lastIndexOf("!"))!==-1&&(o.pluginArgument=o.pluginKey=n.substr(0,i)):(i=n.indexOf("!"))!==-1&&(o.pluginArgument=o.pluginKey=n.substr(i+1)),o.packageKey=se(t,n),o.packageKey&&(o.packageConfig=t.packages[o.packageKey])}return o}function Z(e,t,r,n){var o=this[cr];r=r||this[dr](),n=n||W(this,o,r,t);var i=this;return xe.call(i,e,t).then(function(e){return ee.call(i,o,e,t,r,n)}).then(function(e){return ke.call(i,e,t,n)}).then(function(e){return oe.call(i,o,e,r),r.pluginKey||!r.load.loader?e:i.normalize(r.load.loader,e,i[dr](),r).then(function(t){return r.pluginKey=t,r.pluginArgument=e,e})})}function X(e,t){var r=ie(e,t);if(r){var n=X.call(this,e,r.plugin);return ae(e,V.call(this,e,r.argument,void 0,!1),n)}return V.call(this,e,t,void 0,!1)}function Y(e,t){var r=this[cr],n=this[dr](),o=o||W(this,r,n,t),i=ie(r,e);return i?(n.pluginKey=this.normalizeSync(i.plugin,t),ae(r,te.call(this,r,i.argument,o.pluginArgument||t,n,o,!!n.pluginKey),n.pluginKey)):te.call(this,r,e,o.pluginArgument||t,n,o,!!n.pluginKey)}function Q(e){for(var t in e.paths)if(e.paths.hasOwnProperty(t)){var n=e.paths[t];n.indexOf("*")!==-1&&warn.call(e,'Paths configuration "'+t+'" -> "'+n+'" uses wildcards which are no longer supported.',!0),e.paths[t]=r(n,rt)||r("./"+n,e.baseURL)}e.pathsLocked=!0}function V(e,t,n,o){e.pathsLocked||Q(e);var i=r(t,n||rt);if(i)return H(e.paths,i)||i;if(o){var a=f(e.map,t);if(a&&(t=e.map[a]+t.substr(a.length),i=r(t,rt)))return i}return this.registry.has(t)?t:"@node/"===t.substr(0,6)?t:H(e.paths,t)||e.baseURL+t}function ee(e,t,r,n,o){var i=ie(e,t);return i?(n.pluginKey=i.plugin,Promise.all([re.call(this,e,i.argument,o&&o.pluginArgument||r,n,o,!0),this.resolve(i.plugin,r)]).then(function(t){if(n.pluginArgument=t[0],n.pluginKey=t[1],n.pluginArgument===n.pluginKey)throw new Error("Plugin "+n.pluginArgument+" cannot load itself, make sure it is excluded from any wildcard meta configuration via a custom loader: false rule.");return ae(e,t[0],t[1])})):re.call(this,e,t,o&&o.pluginArgument||r,n,o,!1)}function te(e,t,r,n,o,i){if(o&&o.packageConfig&&"."!==t[0]){var a=o.packageConfig.map,s=a&&f(a,t);if(s&&"string"==typeof a[s]){var u=ce(this,e,o.packageConfig,o.packageKey,s,t,n,i);if(u)return u}}var l=V.call(this,e,t,r,!0),c=he(e,l);if(n.packageKey=c&&c.packageKey||se(e,l),!n.packageKey)return l;if(e.packageConfigKeys.indexOf(l)!==-1)return n.packageKey=void 0,l;n.packageConfig=e.packages[n.packageKey]||(e.packages[n.packageKey]=Re());var d=l.substr(n.packageKey.length+1);return le(this,e,n.packageConfig,n.packageKey,d,n,i)}function re(e,t,r,n,o,i){var a=this;return Promise.resolve().then(function(){if(o&&o.packageConfig&&"./"!==t.substr(0,2)){var r=o.packageConfig.map,s=r&&f(r,t);if(s)return pe(a,e,o.packageConfig,o.packageKey,s,t,n,i)}return Promise.resolve()}).then(function(o){if(o)return o;var s=V.call(a,e,t,r,!0),u=he(e,s);if(n.packageKey=u&&u.packageKey||se(e,s),!n.packageKey)return Promise.resolve(s);if(e.packageConfigKeys.indexOf(s)!==-1)return n.packageKey=void 0,n.load=ne(),n.load.format="json",Promise.resolve(s);n.packageConfig=e.packages[n.packageKey]||(e.packages[n.packageKey]=Re());var l=u&&!n.packageConfig.configured;return(l?me(a,e,u.configPath,n):Promise.resolve()).then(function(){var t=s.substr(n.packageKey.length+1);return de(a,e,n.packageConfig,n.packageKey,t,n,i)})})}function ne(){return{extension:"",deps:void 0,format:void 0,loader:void 0,scriptLoad:void 0,globals:void 0,nonce:void 0,integrity:void 0,sourceMap:void 0,exports:void 0,encapsulateGlobal:!1,crossOrigin:void 0,cjsRequireDetection:!0,cjsDeferDepsExecute:!1}}function oe(e,t,r){r.load=r.load||ne();var n,o=0;for(var i in e.meta)if(n=i.indexOf("*"),n!==-1&&i.substr(0,n)===t.substr(0,n)&&i.substr(n+1)===t.substr(t.length-i.length+n+1)){var s=i.split("/").length;s>o&&(o=s),a(r.load,e.meta[i],o!==s)}if(e.meta[t]&&a(r.load,e.meta[t]),r.packageKey){var u=t.substr(r.packageKey.length+1),l={};if(r.packageConfig.meta){var o=0;ve(r.packageConfig.meta,u,function(e,t,r){r>o&&(o=r),a(l,t,r&&o>r)}),a(r.load,l)}r.packageConfig.format&&!r.pluginKey&&(r.load.format=r.load.format||r.packageConfig.format)}}function ie(e,t){var r,n,o=t.lastIndexOf("!");if(o!==-1)return e.pluginFirst?(r=t.substr(o+1),n=t.substr(0,o)):(r=t.substr(0,o),n=t.substr(o+1)||r.substr(r.lastIndexOf(".")+1)),{argument:r,plugin:n}}function ae(e,t,r){return e.pluginFirst?r+"!"+t:t+"!"+r}function se(e,t){var r,n,o=0;for(var i in e.packages)t.substr(0,i.length)!==i||t.length!==i.length&&"/"!==t[i.length]||(n=i.split("/").length,n>o&&(r=i,o=n));return r}function ue(e,t,r,n,o){if(!n||!t.defaultExtension||"/"===n[n.length-1]||o)return n;var i=!1;if(t.meta&&ve(t.meta,n,function(e,t,r){if(0===r||e.lastIndexOf("*")!==e.length-1)return i=!0}),!i&&e.meta&&ve(e.meta,r+"/"+n,function(e,t,r){if(0===r||e.lastIndexOf("*")!==e.length-1)return i=!0}),i)return n;var a="."+t.defaultExtension;return n.substr(n.length-a.length)!==a?n+a:n}function le(e,t,r,n,o,i,a){if(!o){if(!r.main)return n;o="./"===r.main.substr(0,2)?r.main.substr(2):r.main}if(r.map){var s="./"+o,u=f(r.map,s);if(u||(s="./"+ue(e,r,n,o,a),s!=="./"+o&&(u=f(r.map,s))),u){var l=ce(e,t,r,n,u,s,i,a);if(l)return l}}return n+"/"+ue(e,r,n,o,a)}function fe(e,t,r){return!(t.substr(0,e.length)===e&&r.length>e.length)}function ce(e,t,r,n,o,i,a,s){"/"===i[i.length-1]&&(i=i.substr(0,i.length-1));var u=r.map[o];if("object"==typeof u)throw new Error("Synchronous conditional normalization not supported sync normalizing "+o+" in "+n);if(fe(o,u,i)&&"string"==typeof u)return te.call(this,t,u+i.substr(o.length),n+"/",a,a,s)}function de(e,t,r,n,o,i,a){if(!o){if(!r.main)return Promise.resolve(n);o="./"===r.main.substr(0,2)?r.main.substr(2):r.main}var s,u;return r.map&&(s="./"+o,u=f(r.map,s),u||(s="./"+ue(e,r,n,o,a),s!=="./"+o&&(u=f(r.map,s)))),(u?pe(e,t,r,n,u,s,i,a):Promise.resolve()).then(function(t){return t?Promise.resolve(t):Promise.resolve(n+"/"+ue(e,r,n,o,a))})}function pe(e,t,r,n,o,i,a,s){"/"===i[i.length-1]&&(i=i.substr(0,i.length-1));var u=r.map[o];if("string"==typeof u)return fe(o,u,i)?re.call(e,t,u+i.substr(o.length),n+"/",a,a,s).then(function(t){return ke.call(e,t,n+"/",a)}):Promise.resolve();var f=[],c=[];for(var d in u){var p=ye(d);c.push({condition:p,map:u[d]}),f.push(e.import(p.module,n))}return Promise.all(f).then(function(e){for(var t=0;t<c.length;t++){var r=c[t].condition,n=l(r.prop,e[t].__useDefault?e[t].default:e[t]);if(!r.negate&&n||r.negate&&!n)return c[t].map}}).then(function(r){if(r)return fe(o,r,i)?re.call(e,t,r+i.substr(o.length),n+"/",a,a,s).then(function(t){return ke.call(e,t,n+"/",a)}):Promise.resolve()})}function ge(e){var t=e.lastIndexOf("*"),r=Math.max(t+1,e.lastIndexOf("/"));return{length:r,regEx:new RegExp("^("+e.substr(0,r).replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,"[^\\/]+")+")(\\/|$)"),wildcard:t!==-1}}function he(e,t){for(var r,n,o=!1,i=0;i<e.packageConfigPaths.length;i++){var a=e.packageConfigPaths[i],s=Tt[a]||(Tt[a]=ge(a));if(!(t.length<s.length)){var u=t.match(s.regEx);!u||r&&(o&&s.wildcard||!(r.length<u[1].length))||(r=u[1],o=!s.wildcard,n=r+a.substr(s.length))}}if(r)return{packageKey:r,configPath:n}}function me(e,r,n,o,i){var a=e.pluginLoader||e;return r.packageConfigKeys.indexOf(n)===-1&&r.packageConfigKeys.push(n),a.import(n).then(function(e){e.__useDefault&&(e=e.default),Me(o.packageConfig,e,o.packageKey,!0,r),o.packageConfig.configured=!0}).catch(function(e){throw t(e,"Unable to fetch package configuration file "+n)})}function ve(e,t,r){var n;for(var o in e){var i="./"===o.substr(0,2)?"./":"";if(i&&(o=o.substr(2)),n=o.indexOf("*"),n!==-1&&o.substr(0,n)===t.substr(0,n)&&o.substr(n+1)===t.substr(t.length-o.length+n+1)&&r(o,e[i+o],o.split("/").length))return}var a=e[t]&&e.hasOwnProperty&&e.hasOwnProperty(t)?e[t]:e["./"+t];a&&r(a,a,0)}function ye(e){var t,r,n,n,o=e.lastIndexOf("|");return o!==-1?(t=e.substr(o+1),r=e.substr(0,o),"~"===t[0]&&(n=!0,t=t.substr(1))):(n="~"===e[0],t="default",r=e.substr(n),qt.indexOf(r)!=-1&&(t=r,r=null)),{module:r||"@system-env",prop:t,negate:n}}function be(e){return e.module+"|"+(e.negate?"~":"")+e.prop}function we(e,t,r){return this.load(e.module,t).then(function(t){var n=l(e.prop,t);if(r&&"boolean"!=typeof n)throw new TypeError("Condition "+be(e)+" did not resolve to a boolean.");return e.negate?!n:n})}function ke(e,t,r){var n=e.match(Ut);if(!n)return Promise.resolve(e);var o=ye.call(this,n[0].substr(2,n[0].length-3));return we.call(this,o,t,!1).then(function(r){if("string"!=typeof r)throw new TypeError("The condition value for "+e+" doesn't resolve to a string.");if(r.indexOf("/")!==-1)throw new TypeError("Unabled to interpolate conditional "+e+(t?" in "+t:"")+"\n\tThe condition value "+r+' cannot contain a "/" separator.');return e.replace(Ut,r)})}function xe(e,t){var r=e.lastIndexOf("#?");if(r===-1)return Promise.resolve(e);var n=ye.call(this,e.substr(r+2));return we.call(this,n,t,!0).then(function(t){return t?e.substr(0,r):"@empty"})}function Se(e,t,r){for(var n=0;n<zt.length;n++){var o=zt[n];t[o]&&Ht[o.substr(0,o.length-6)]&&r(t[o])}}function Ee(e,t){var r={};for(var n in e){var o=e[n];t>1?"object"==typeof o?r[n]=Ee(o,t-1):"packageConfig"!==n&&(r[n]=o):r[n]=o}return r}function Oe(e,t){var r=e[t];return r instanceof Array?e[t].concat([]):"object"==typeof r?Ee(r,3):e[t]}function Pe(e){if(e){if(hr.indexOf(e)!==-1)return Oe(this[cr],e);throw new Error('"'+e+'" is not a valid configuration name to get. Must be one of '+hr.join(", ")+".")}for(var t={},r=0;r<hr.length;r++){var n=hr[r],o=Oe(this[cr],n);void 0!==o&&(t[n]=o)}return t}function je(e,t){var o=this,a=this[cr];if("warnings"in e&&(a.warnings=e.warnings),"wasm"in e&&(a.wasm=e.wasm),("production"in e||"build"in e)&&tt.call(o,!!e.production,!!(e.build||Ht&&Ht.build)),!t){var s;Se(o,e,function(e){s=s||e.baseURL}),s=s||e.baseURL,s&&(a.pathsLocked&&n.call(a,"baseURL should be set before other config to avoid conflicts."),a.baseURL=r(s,rt)||r("./"+s,rt),"/"!==a.baseURL[a.baseURL.length-1]&&(a.baseURL+="/"));var u=!1;e.paths&&(i(a.paths,e.paths),u=!0),Se(o,e,function(e){e.paths&&(i(a.paths,e.paths),u=!0)}),a.pathsLocked&&u&&Q(a)}if(e.defaultJSExtensions&&n.call(a,"The defaultJSExtensions configuration option has been removed, use packages configuration defaultExtension instead.",!0),"boolean"==typeof e.pluginFirst&&(a.pluginFirst=e.pluginFirst),e.map)for(var l in e.map){var f=e.map[l];if("string"==typeof f)a.map[l]=V.call(o,a,f,void 0,!1);else{var c=V.call(o,a,l,void 0,!0),d=a.packages[c];d||(d=a.packages[c]=Re(),d.defaultExtension=""),Me(d,{map:f},c,!1,a)}}if(e.packageConfigPaths){for(var p=[],g=0;g<e.packageConfigPaths.length;g++){var h=e.packageConfigPaths[g],m=Math.max(h.lastIndexOf("*")+1,h.lastIndexOf("/")),v=V.call(o,a,h.substr(0,m),void 0,!1);p[g]=v+h.substr(m)}a.packageConfigPaths=p}if(e.bundles)for(var l in e.bundles){for(var y=[],g=0;g<e.bundles[l].length;g++)y.push(o.normalizeSync(e.bundles[l][g]));a.bundles[l]=y}if(e.packages)for(var l in e.packages){if(l.match(/^([^\/]+:)?\/\/$/))throw new TypeError('"'+l+'" is not a valid package name.');var c=V.call(o,a,l,void 0,!0);"/"===c[c.length-1]&&(c=c.substr(0,c.length-1)),Me(a.packages[c]=a.packages[c]||Re(),e.packages[l],c,!1,a)}if(e.depCache)for(var l in e.depCache)a.depCache[o.normalizeSync(l)]=[].concat(e.depCache[l]);if(e.meta)for(var l in e.meta)if("*"===l[0])i(a.meta[l]=a.meta[l]||{},e.meta[l]);else{var b=V.call(o,a,l,void 0,!0);i(a.meta[b]=a.meta[b]||{},e.meta[l])}"transpiler"in e&&(a.transpiler=e.transpiler);for(var w in e)hr.indexOf(w)===-1&&zt.indexOf(w)===-1&&(a[w]=e[w]);Se(o,e,function(e){o.config(e,!0)})}function Re(){return{defaultExtension:void 0,main:void 0,format:void 0,meta:void 0,map:void 0,packageConfig:void 0,configured:!1}}function Me(e,t,r,o,a){for(var s in t)"main"===s||"format"===s||"defaultExtension"===s||"configured"===s?o&&void 0!==e[s]||(e[s]=t[s]):"map"===s?i(e.map=e.map||{},t.map,o):"meta"===s?i(e.meta=e.meta||{},t.meta,o):Object.hasOwnProperty.call(t,s)&&n.call(a,'"'+s+'" is not a valid package configuration option in package '+r);return void 0===e.defaultExtension&&(e.defaultExtension="js"),void 0===e.main&&e.map&&e.map["."]?(e.main=e.map["."],delete e.map["."]):"object"==typeof e.main&&(e.map=e.map||{},e.map["./@main"]=e.main,e.main.default=e.main.default||"./",e.main="@main"),e}function Ce(e){function t(r,n,o,i){if("object"==typeof r&&!(r instanceof Array))return t.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if("string"==typeof r&&"function"==typeof n&&(r=[r]),!(r instanceof Array)){if("string"==typeof r){var a=e.decanonicalize(r,i),s=e.get(a);if(!s)throw new Error('Module not already loaded loading "'+r+'" as '+a+(i?' from "'+i+'".':"."));return s.__useDefault?s.default:s}throw new TypeError("Invalid require")}for(var u=[],l=0;l<r.length;l++)u.push(e.import(r[l],i));Promise.all(u).then(function(e){for(var t=0;t<e.length;t++)e[t]=e[t].__useDefault?e[t].default:e[t];n&&n.apply(null,e)},o)}function r(r,n,o){function i(r,i,l){for(var f=[],c=0;c<n.length;c++)f.push(r(n[c]));if(l.uri=l.id,l.config=function(){},u!==-1&&f.splice(u,0,l),s!==-1&&f.splice(s,0,i),a!==-1){var d=function(n,o,i){return"string"==typeof n&&"function"!=typeof o?r(n):t.call(e,n,o,i,l.id)};d.toUrl=function(t){return e.normalizeSync(t,l.id)},f.splice(a,0,d)}var p=at.require;at.require=t;var g=o.apply(s===-1?at:i,f);at.require=p,"undefined"!=typeof g&&(l.exports=g)}"string"!=typeof r&&(o=n,n=r,r=null,Bt&&(n=n.concat(Bt),Bt=void 0)),n instanceof Array||(o=n,n=["require","exports","module"].splice(0,o.length)),"function"!=typeof o&&(o=function(e){return function(){return e}}(o));var a,s,u;(a=n.indexOf("require"))!==-1&&(n.splice(a,1),r||(n=n.concat(Te(o.toString(),a)))),(s=n.indexOf("exports"))!==-1&&n.splice(s,1),(u=n.indexOf("module"))!==-1&&n.splice(u,1),r?(e.registerDynamic(r,n,i),$t?($t=void 0,rr=!0):rr||($t=[n,i])):e.registerDynamic(n,i)}e.set("@@cjs-helpers",e.newModule({requireResolve:Le.bind(e),getPathVars:Ae})),e.set("@@global-helpers",e.newModule({prepareGlobal:De})),r.amd={},e.amdDefine=r,e.amdRequire=t}function _e(e){return"file:///"===e.substr(0,8)?e.substr(7+!!it):Nt&&e.substr(0,Nt.length)===Nt?e.substr(Nt.length):e}function Le(e,t){return _e(this.normalizeSync(e,t))}function Ae(e){var t,r=e.lastIndexOf("!");t=r!==-1?e.substr(0,r):e;var n=t.split("/");return n.pop(),n=n.join("/"),{filename:_e(t),dirname:_e(n)}}function Ie(e){function t(e,t){for(var r=0;r<e.length;r++)if(e[r][0]<t.index&&e[r][1]>t.index)return!0;return!1}Pt.lastIndex=Wt.lastIndex=Zt.lastIndex=0;var r,n=[],o=[],i=[];if(e.length/e.split("\n").length<200){for(;r=Zt.exec(e);)o.push([r.index,r.index+r[0].length]);for(;r=Wt.exec(e);)t(o,r)||i.push([r.index+r[1].length,r.index+r[0].length-1])}for(;r=Pt.exec(e);)if(!t(o,r)&&!t(i,r)){var a=r[1].substr(1,r[1].length-2);if(a.match(/"|'/))continue;n.push(a)}return n}function Ke(e){if(Xt.indexOf(e)===-1){try{var t=at[e]}catch(t){Xt.push(e)}this(e,t)}}function Fe(e){if("string"==typeof e)return l(e,at);if(!(e instanceof Array))throw new Error("Global exports must be a string or array.");for(var t={},r=0;r<e.length;r++)t[e[r].split(".").pop()]=l(e[r],at);return t}function De(e,t,r,n){var o=at.define;at.define=void 0;var i;if(r){i={};for(var a in r)i[a]=at[a],at[a]=r[a]}return t||(Jt={},Object.keys(at).forEach(Ke,function(e,t){Jt[e]=t})),function(){var e,r=t?Fe(t):{},a=!!t;if(t&&!n||Object.keys(at).forEach(Ke,function(o,i){Jt[o]!==i&&void 0!==i&&(n&&(at[o]=void 0),t||(r[o]=i,void 0!==e?a||e===i||(a=!0):e=i))}),r=a?r:e,i)for(var s in i)at[s]=i[s];return at.define=o,r}}function Te(e,t){e=e.replace(Wt,"");var r=e.match(Vt),n=(r[1].split(",")[t]||"require").replace(er,""),o=tr[n]||(tr[n]=new RegExp(Yt+n+Qt,"g"));o.lastIndex=0;for(var i,a=[];i=o.exec(e);)a.push(i[2]||i[3]);return a}function qe(e){Bt=e,$t=void 0,rr=!1}function Ue(e){$t?e.registerDynamic(Bt?$t[0].concat(Bt):$t[0],$t[1]):rr&&e.registerDynamic([],function(){})}function ze(e,t,r){var i=this,a=this[cr];return(Be(a,this,e)||Promise.resolve()).then(function(){if(!t.registered){if("@node/"===e.substr(0,6)){if(!i._nodeRequire)throw new TypeError("Error loading "+e+". Can only load node core modules in Node.");return i.registerDynamic([],function(t,r,n){n.exports=o.call(i,e.substr(6),i.baseURL)}),void r()}return t.load.scriptLoad?!t.load.pluginKey&&yt||(t.load.scriptLoad=!1,n.call(a,'scriptLoad not supported for "'+e+'"')):t.load.scriptLoad!==!1&&yt&&(t.load.deps||t.load.globals||!("system"===t.load.format||"register"===t.load.format||"global"===t.load.format&&t.load.exports)||(t.load.scriptLoad=!0)),t.load.scriptLoad?new Promise(function(n,o){if("amd"===t.load.format&&at.define!==i.amdDefine)throw new Error("Loading AMD with scriptLoad requires setting the global `"+nr+".define = SystemJS.amdDefine`");u(e,t.load.crossOrigin,t.load.integrity,function(){if(r(),!t.registered){t.load.format="global";var e=Fe(t.load.exports);i.registerDynamic([],function(t,r,n){n.exports=e}),r()}n()},o)}):Ne(i,e,t).then(function(){return t.pluginModule&&"function"==typeof t.pluginModule.default?$e(i,t.pluginArgument,e,t,t.pluginKey,t.pluginModule):Ge(i,e,t,r,a.wasm)})}})}function Ne(e,t,r){return r.pluginKey?e.import(r.pluginKey).then(function(e){r.pluginModule=e,r.pluginLoad={name:t,address:r.pluginArgument,source:void 0,metadata:r.load},r.load.deps=r.load.deps||[]}):Promise.resolve()}function Je(e){if(e instanceof w)return e;if("object"!=typeof e)throw new TypeError('Cannot create a module namespace from an object of type "'+typeof e+'".');return new w(e)}function $e(e,r,n,o,i,a){return Promise.resolve().then(function(){return a.default.call(e,r,n)}).then(function(e){return void 0===e?o.registered?e:Gt:Je(e)}).catch(function(e){throw t(e,"Error running instantiate plugin "+i)})}function Be(e,t,r){var n=e.depCache[r];if(n)for(var o=0;o<n.length;o++)t.load(n[o],r);else{var i=!1;for(var a in e.bundles){for(var o=0;o<e.bundles[a].length;o++){var s=e.bundles[a][o];if(s==r){i=!0;break}if(s.indexOf("*")!=-1){var u=s.split("*");if(2!=u.length){e.bundles[a].splice(o--,1);continue}if(r.substring(0,u[0].length)==u[0]&&r.substr(r.length-u[1].length,u[1].length)==u[1]&&r.substr(u[0].length,r.length-u[1].length-u[0].length).indexOf("/")==-1){i=!0;break}}}if(i)return t.import(a)}}}function Ge(e,t,r,n,o){return r.load.exports&&!r.load.format&&(r.load.format="global"),Promise.resolve().then(function(){if(r.pluginModule&&r.pluginModule.locate)return r.pluginModule.locate.call(e,r.pluginLoad).then(function(e){e&&(r.pluginLoad.address=e)})}).then(function(){return r.pluginModule?r.pluginModule.fetch?(o=!1,r.pluginModule.fetch.call(e,r.pluginLoad,function(e){return Dt(e.address,r.load.authorization,r.load.integrity,!1)})):Dt(r.pluginArgument,r.load.authorization,r.load.integrity,o):Dt(t,r.load.authorization,r.load.integrity,o)}).then(function(i){if(!o)return He(e,t,i,r,n);var a=new Uint8Array(i);if(0===a[0]&&97===a[1]&&115===a[2])return WebAssembly.compile(a).then(function(t){var r=new WebAssembly.Instance(t,{});return e.newModule(r.exports)});var s=new TextDecoder("utf-8").decode(a);return He(e,t,s,r,n)})}function He(e,t,r,n,o){return Promise.resolve(r).then(function(t){return"detect"===n.load.format&&(n.load.format=void 0),Ve(t,n),n.pluginModule&&n.pluginModule.translate?(n.pluginLoad.source=t,Promise.resolve(n.pluginModule.translate.call(e,n.pluginLoad,n.traceOpts)).then(function(e){if(n.load.sourceMap){if("object"!=typeof n.load.sourceMap)throw new Error("metadata.load.sourceMap must be set to an object.");
|
|
Xe(n.pluginLoad.address,n.load.sourceMap)}return"string"==typeof e?e:n.pluginLoad.source})):t}).then(function(r){return"register"===n.load.format||!n.load.format&&We(r)?(n.load.format="register",r):"esm"===n.load.format||!n.load.format&&r.match(or)?(n.load.format="esm",Ye(e,r,t,n)):r}).then(function(t){if("string"!=typeof t||!n.pluginModule||!n.pluginModule.instantiate)return t;var r=!1;return n.pluginLoad.source=t,Promise.resolve(n.pluginModule.instantiate.call(e,n.pluginLoad,function(e){if(t=e.source,n.load=e.metadata,r)throw new Error("Instantiate must only be called once.");r=!0})).then(function(e){return r?t:Je(e)})}).then(function(r){if("string"!=typeof r)return r;switch(n.load.format||(n.load.format=Ze(r)),n.load.format){case"esm":case"register":case"system":var i=m(e,r,n.load.sourceMap,t,n.load.integrity,n.load.nonce,!1);if(i)throw i;if(o(),!n.registered)return Gt;break;case"json":return e.newModule({default:JSON.parse(r),__useDefault:!0});case"amd":var a=at.define;at.define=e.amdDefine,qe(n.load.deps);var i=m(e,r,n.load.sourceMap,t,n.load.integrity,n.load.nonce,!1);if(o(),n.registered||(Ue(e),o()),at.define=a,i)throw i;break;case"cjs":var s=n.load.deps,u=(n.load.deps||[]).concat(n.load.cjsRequireDetection?Ie(r):[]);for(var l in n.load.globals)n.load.globals[l]&&u.push(n.load.globals[l]);e.registerDynamic(u,function(o,i,a){if(o.resolve=function(t){return Le.call(e,t,a.id)},a.paths=[],a.require=o,!n.load.cjsDeferDepsExecute&&s)for(var u=0;u<s.length;u++)o(s[u]);var l=Ae(a.id),f={exports:i,args:[o,i,a,l.filename,l.dirname,at,at]},c="(function (require, exports, module, __filename, __dirname, global, GLOBAL";if(n.load.globals)for(var d in n.load.globals)f.args.push(o(n.load.globals[d])),c+=", "+d;var p=at.define;at.define=void 0,at.__cjsWrapper=f,r=c+") {"+r.replace(ur,"")+"\n}).apply(__cjsWrapper.exports, __cjsWrapper.args);";var g=m(e,r,n.load.sourceMap,t,n.load.integrity,n.load.nonce,!1);if(g)throw g;at.__cjsWrapper=void 0,at.define=p}),o();break;case"global":var u=n.load.deps||[];for(var l in n.load.globals){var f=n.load.globals[l];f&&u.push(f)}e.registerDynamic(u,function(o,i,a){for(var s=0;s<u.length;s++)o(u[s]);var l;if(n.load.globals){l={};for(var f in n.load.globals)n.load.globals[f]&&(l[f]=o(n.load.globals[f]))}var c=n.load.exports;c&&(r+="\n"+nr+'["'+c+'"] = '+c+";");var d=De(a.id,c,l,n.load.encapsulateGlobal),p=m(e,r,n.load.sourceMap,t,n.load.integrity,n.load.nonce,!0);if(p)throw p;a.exports=d()}),o();break;default:throw new TypeError('Unknown module format "'+n.load.format+'" for "'+t+'".'+("es6"===n.load.format?' Use "esm" instead here.':""))}if(!n.registered)throw new Error("Module "+t+" detected as "+n.load.format+" but didn't execute correctly.")})}function We(e){var t=e.match(ir);return t&&"System.register"===e.substr(t[0].length,15)}function Ze(e){return e.match(ar)?"amd":(sr.lastIndex=0,Pt.lastIndex=0,Pt.exec(e)||sr.exec(e)?"cjs":"global")}function Xe(e,t){var r=e.split("!")[0];t.file&&t.file!=e||(t.file=r+"!transpiled"),(!t.sources||t.sources.length<=1&&(!t.sources[0]||t.sources[0]===e))&&(t.sources=[r])}function Ye(e,r,n,o){if(!e.transpiler)throw new TypeError("Unable to dynamically transpile ES module\n A loader plugin needs to be configured via `SystemJS.config({ transpiler: 'transpiler-module' })`.");if(o.load.deps){for(var i="",a=0;a<o.load.deps.length;a++)i+='import "'+o.load.deps[a]+'"; ';r=i+r}return e.import.call(e,e.transpiler).then(function(t){if("function"==typeof t.default)return $e(e,n,n,o,e.transpiler,t);if(t.__useDefault&&(t=t.default),!t.translate)throw new Error("Unable to load transpiler, ensure the SystemJS.transpiler is configured to a transpiler plugin.");return t===o.pluginModule?load.source:("string"==typeof o.load.sourceMap&&(o.load.sourceMap=JSON.parse(o.load.sourceMap)),o.pluginLoad=o.pluginLoad||{name:n,address:n,source:r,metadata:o.load},o.load.deps=o.load.deps||[],Promise.resolve(t.translate.call(e,o.pluginLoad,o.traceOpts)).then(function(e){var t=o.load.sourceMap;return t&&"object"==typeof t&&Xe(n,t),"esm"===o.load.format&&We(e)&&(o.load.format="register"),e}))},function(e){throw t(e,"Unable to load transpiler to transpile "+n)})}function Qe(e,t,r){for(var n,o=t.split(".");o.length>1;)n=o.shift(),e=e[n]=e[n]||{};n=o.shift(),void 0===e[n]&&(e[n]=r)}function Ve(e,t){var r=e.match(lr);if(r)for(var n=r[0].match(fr),o=0;o<n.length;o++){var i=n[o],a=i.length,s=i.substr(0,1);if(";"==i.substr(a-1,1)&&a--,'"'==s||"'"==s){var u=i.substr(1,i.length-3),l=u.substr(0,u.indexOf(" "));if(l){var f=u.substr(l.length+1,u.length-l.length-1);"deps"===l&&(l="deps[]"),"[]"===l.substr(l.length-2,2)?(l=l.substr(0,l.length-2),t.load[l]=t.load[l]||[],t.load[l].push(f)):"use"!==l&&Qe(t.load,l,f)}else t.load[u]=!0}}}function et(e){x.call(this,e),this._loader={},this[cr]={pathsLocked:!1,baseURL:rt,paths:{},packageConfigPaths:[],packageConfigKeys:[],map:{},packages:{},depCache:{},meta:{},bundles:{},production:!1,transpiler:void 0,loadedBundles:{},warnings:!1,pluginFirst:!1,wasm:!1},this.scriptSrc=lt,this._nodeRequire=gt,this.set("@empty",Gt=this.newModule({})),tt.call(this,!1,!1),Ce(this)}function tt(e,t){this[cr].production=e,this.set("@system-env",Ht=this.newModule({browser:nt,node:!!this._nodeRequire,production:!t&&e,dev:t||!e,build:t,default:!0}))}var rt,nt="undefined"!=typeof window&&"undefined"!=typeof document,ot="undefined"!=typeof process&&process.versions&&process.versions.node,it="undefined"!=typeof process&&"string"==typeof process.platform&&process.platform.match(/^win/),at="undefined"!=typeof self?self:global,st="undefined"!=typeof Symbol;if("undefined"!=typeof document&&document.getElementsByTagName){if(rt=document.baseURI,!rt){var ut=document.getElementsByTagName("base");rt=ut[0]&&ut[0].href||window.location.href}}else"undefined"!=typeof location&&(rt=location.href);if(rt)rt=rt.split("#")[0].split("?")[0],rt=rt.substr(0,rt.lastIndexOf("/")+1);else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURI");rt="file://"+(it?"/":"")+process.cwd(),it&&(rt=rt.replace(/\\/g,"/"))}"/"!==rt[rt.length-1]&&(rt+="/");var lt,ft="_"==new Error(0,"_").fileName,ct="undefined"==typeof window&&"undefined"!=typeof self&&"undefined"!=typeof importScripts;if("undefined"==typeof Promise)throw new Error("SystemJS requires a global Promise polyfill to be set before loading.");if("undefined"!=typeof document){var dt=document.getElementsByTagName("script"),pt=dt[dt.length-1];document.currentScript&&(pt.defer||pt.async)&&(pt=document.currentScript),lt=pt.src}else if("undefined"!=typeof importScripts)try{throw new Error("_")}catch(e){e.stack.replace(/(?:at|@).*(http.+):[\d]+:[\d]+/,function(e,t){lt=t})}else"undefined"!=typeof __filename&&(lt=__filename);var gt;"undefined"==typeof require||"undefined"==typeof process||process.browser||(gt=require);var ht,mt,vt,yt=(nt||ct)&&"undefined"!=typeof navigator&&navigator.userAgent&&!navigator.userAgent.match(/MSIE (9|10).0/),bt="undefined"!=typeof Buffer;try{bt&&"YQ=="!==new Buffer("a").toString("base64")&&(bt=!1)}catch(e){bt=!1}var wt="\n//# sourceMappingURL=data:application/json;base64,",kt=0,xt=!1;nt&&"undefined"!=typeof document&&document.getElementsByTagName&&(window.chrome&&window.chrome.extension||navigator.userAgent.match(/^Node\.js/)||(xt=!0));var St,Et,Ot,Pt=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g;y.prototype.constructor=y,y.prototype.import=y.prototype.load=function(e,r){if("string"!=typeof e)throw new TypeError("Loader import method must be passed a module key string");return Promise.resolve(this[Rt](e,r||this.key)).catch(function(n){throw t(n,"Loading "+e+(r?" from "+r:""))})};var jt=y.resolve=e("resolve"),Rt=y.resolveInstantiate=e("resolveInstantiate");y.prototype[Rt]=function(e,t){var r=this;return this.resolve(e,t).then(function(e){var t=r.registry.get(e);if(!t)throw new Error('Resolve did not define the "'+e+'" module into the registry.');return t})},y.prototype[jt]=function(){throw new TypeError("No loader resolve hook implementation provided.")},y.prototype.resolve=function(e,r){var n=this;return Promise.resolve().then(function(){return n[jt](e,r)}).then(function(e){if(void 0===e)throw new RangeError("No resolution found.");return e}).catch(function(n){throw t(n,"Resolving "+e+(r?" to "+r:""))})};var Mt="undefined"!=typeof Symbol&&Symbol.iterator;b.prototype.constructor=function(){throw new TypeError("Custom registries cannot be created.")},Mt&&(b.prototype[Symbol.iterator]=function(){return this.entries()[Symbol.iterator]()},b.prototype.entries=function(){var e=this._registry;return v(Object.keys(e).map(function(t){return[t,e[t]]}))}),b.prototype.keys=function(){return v(Object.keys(this._registry))},b.prototype.values=function(){var e=this._registry;return v(Object.keys(e).map(function(t){return e[t]}))},b.prototype.get=function(e){return this._registry[e]},b.prototype.set=function(e,t){if(!(t instanceof w))throw new Error("Registry must be set with an instance of Module Namespace");return this._registry[e]=t,this},b.prototype.has=function(e){return!!this._registry[e]},b.prototype.delete=function(e){return!!this._registry[e]&&(this._registry[e]=void 0,!0)};var Ct=e("baseObject");w.prototype=Object.create(null),"undefined"!=typeof Symbol&&Symbol.toStringTag?w.prototype[Symbol.toStringTag]="Module":Object.defineProperty(w.prototype,"toString",{value:function(){return"[object Module]"}});var _t=e("registerRegistry"),Lt=e("registeredLastAnon");x.prototype=Object.create(y.prototype),x.prototype.constructor=x,x.normalize=x.resolve="normalize",x.instantiate="instantiate",x.createMetadata="createMetadata",x.processRegisterContext="processRegisterContext",x.prototype.normalize=function(e,t,n,o){return this[_t][e]||this.registry._registry[e]?e:r(e,t)},x.prototype.instantiate=function(e,t,r){},x.prototype.createMetadata=function(){return{registered:!1}},x.prototype[y.resolve]=function(e,t){var r=t&&this[_t][t];return E(this,e,t,this.createMetadata(),r&&r.metadata)},x.prototype[y.resolveInstantiate]=function(e,t){var r=this,n=r.registry._registry,o=r[_t];return P(r,e,t,n,o).then(function(e){return e instanceof w?e:e.module?e.module:e.linkRecord.linked?T(r,e,e.linkRecord,n,o,void 0):I(r,e,e.linkRecord,n,o,[e]).then(function(){return T(r,e,e.linkRecord,n,o,void 0)}).catch(function(t){throw K(r,e),t})})},x.prototype.register=function(e,t,r){if(void 0===r)this[Lt]=[e,t,!1];else{var n=this[_t][e]||O.call(this,e,void 0);n.registration=[t,r,!1],n.metadata&&(n.metadata.registered=!0)}},x.prototype.registerDynamic=function(e,t,r){if("string"!=typeof e)this[Lt]=[e,"boolean"==typeof t?F(e,t,r):t,!0];else{var n=this[_t][e]||O.call(this,e,void 0);n.registration=[t,"boolean"==typeof r?F(t,r,arguments[3]):r,!0],n.metadata&&(n.metadata.registered=!0)}},x.prototype.processRegisterContext=function(e){var t=this[Lt];if(t){this[Lt]=void 0;var r=this[_t][e]||O.call(this,e,void 0);r.registration=t,r.metadata.registered=!0}},D.prototype.constructor=function(){throw new TypeError("Cannot subclass the contextual loader only Reflect.Loader.")},D.prototype.import=function(e){return this.loader.import(e,this.key)},D.prototype.resolve=function(e){return this.loader.resolve(e,this.key)},D.prototype.load=function(e){return this.loader.load(e,this.key)};var At={};Object.freeze&&Object.freeze(At);var It,Kt,Ft="undefined"!=typeof XMLHttpRequest;Kt="undefined"!=typeof self&&"undefined"!=typeof self.fetch?J:Ft?$:"undefined"!=typeof require&&"undefined"!=typeof process?B:G;var Dt=Kt,Tt={},qt=["browser","node","dev","build","production","default"],Ut=/#\{[^\}]+\}/,zt=["browserConfig","nodeConfig","devConfig","buildConfig","productionConfig"];if("undefined"!=typeof window&&"undefined"!=typeof document&&window.location)var Nt=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"");var Jt,$t,Bt,Gt,Ht,Wt=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,Zt=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g,Xt=["_g","sessionStorage","localStorage","clipboardData","frames","frameElement","external","mozAnimationStartTime","webkitStorageInfo","webkitIndexedDB","mozInnerScreenY","mozInnerScreenX"],Yt="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",Qt="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",Vt=/\(([^\)]*)\)/,er=/^\s+|\s+$/g,tr={},rr=!1,nr="undefined"!=typeof self?"self":"global",or=/(^\s*|[}\);\n]\s*)(import\s*(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s*from\s*['"]|\{)|export\s+\*\s+from\s+["']|export\s*(\{|default|function|class|var|const|let|async\s+function))/,ir=/^(\s*\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)*\s*/,ar=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,sr=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.]))/,ur=/^\#\!.*/,lr=/^(\s*\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,fr=/\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g,cr=e("loader-config"),dr=et.createMetadata=x.createMetadata,pr=et.resolve=x.resolve,gr=et.instantiate=x.instantiate;et.prototype=Object.create(x.prototype),et.prototype.constructor=et,et.prototype[dr]=function(){return{registered:!1,pluginKey:void 0,pluginArgument:void 0,pluginModule:void 0,packageKey:void 0,packageConfig:void 0,load:void 0}},et.prototype[pr]=Z,et.prototype.decanonicalize=et.prototype.normalizeSync=Y,et.prototype[gr]=ze,et.prototype.config=je,et.prototype.getConfig=Pe,et.prototype.global=at;for(var hr=["baseURL","map","paths","packages","packageConfigPaths","depCache","meta","bundles","transpiler","warnings","pluginFirst","production"],mr="undefined"!=typeof Proxy,vr=0;vr<hr.length;vr++)(function(e){Object.defineProperty(et.prototype,e,{get:function(){var t=Oe(this[cr],e);return mr&&"object"==typeof t&&(t=new Proxy(t,{set:function(t,r){throw new Error("Cannot set SystemJS."+e+'["'+r+'"] directly. Use SystemJS.config({ '+e+': { "'+r+'": ... } }) rather.')}})),t},set:function(t){throw new Error("Setting `SystemJS."+e+"` directly is no longer supported. Use `SystemJS.config({ "+e+": ... })`.")}})})(hr[vr]);et.prototype.delete=function(e){this.registry.delete(e)},et.prototype.get=function(e){return this.registry.get(e)},et.prototype.has=function(e){return this.registry.has(e)},et.prototype.set=function(e,t){return this.registry.set(e,t)},et.prototype.newModule=function(e){return new w(e)},et.prototype.register=function(e,t,r){return"string"==typeof e&&(e=X.call(this,this[cr],e)),x.prototype.register.call(this,e,t,r)},et.prototype.registerDynamic=function(e,t,r,n){return"string"==typeof e&&(e=X.call(this,this[cr],e)),x.prototype.registerDynamic.call(this,e,t,r,n)},et.prototype.version="0.20.0-alpha.1";var yr=new et;at.System=at.SystemJS=yr,"undefined"!=typeof module&&module.exports&&(module.exports=yr)}();
|
|
//# sourceMappingURL=dist/system.js.map
|