/
steal-sans-promises.production.js
7 lines (6 loc) · 63.2 KB
/
steal-sans-promises.production.js
1
2
3
4
5
6
7
/*
* steal v1.5.13
*
* Copyright (c) 2017 Bitovi; Licensed MIT
*/
!function(__global){function __eval(__source,__global,__load){try{eval('(function() { var __moduleName = "'+(__load.name||"").replace('"','"')+'"; '+__source+" \n }).call(__global);")}catch(e){throw"SyntaxError"!=e.name&&"TypeError"!=e.name||(e.message="Evaluating "+(__load.name||load.address)+"\n\t"+e.message),e}}__global.$__Object$getPrototypeOf=Object.getPrototypeOf||function(e){return e.__proto__};var $__Object$defineProperty;!function(){try{Object.defineProperty({},"a",{})&&($__Object$defineProperty=Object.defineProperty)}catch(e){$__Object$defineProperty=function(e,t,n){try{e[t]=n.value||n.get.call(e)}catch(e){}}}}(),__global.$__Object$create=Object.create||function(e,t){function n(){}if(n.prototype=e,"object"==typeof t)for(prop in t)t.hasOwnProperty(prop)&&(n[prop]=t[prop]);return new n},function(){function e(e){return{status:"loading",name:e,linkSets:[],dependencies:[],metadata:{}}}function t(e,t,n){return new M(i({step:n.address?"fetch":"locate",loader:e,moduleName:t,moduleMetadata:n&&n.metadata||{},moduleSource:n.source,moduleAddress:n.address}))}function n(t,n,a,o){return new M(function(e,r){e(t.loaderObj.normalize(n,a,o))}).then(function(n){var a;if(t.modules[n])return a=e(n),a.status="linked",a.module=t.modules[n],a;for(var o=0,i=t.loads.length;o<i;o++)if((a=t.loads[o]).name==n)return E.assert("loading"==a.status||"loaded"==a.status,"loading or loaded"),a;return a=e(n),t.loads.push(a),r(t,a),a})}function r(e,t){a(e,t,M.resolve().then(function(){return e.loaderObj.locate({name:t.name,metadata:t.metadata})}))}function a(e,t,n){o(e,t,n.then(function(n){if("loading"==t.status)return t.address=n,e.loaderObj.fetch({name:t.name,metadata:t.metadata,address:n})}))}function o(e,t,r){r.then(function(r){if("loading"==t.status)return M.resolve(e.loaderObj.translate({name:t.name,metadata:t.metadata,address:t.address,source:r})).then(function(n){if("loading"==t.status)return t.source=n,e.loaderObj.instantiate({name:t.name,metadata:t.metadata,address:t.address,source:n})}).then(function(n){if("loading"==t.status){if(void 0===n)return t.address=t.address||"<Anonymous Module "+ ++I+">",t.isDeclarative=!0,e.loaderObj.transpile(t).then(function(e){var n=__global.System,r=n.register;n.register=function(e,n,r){var a=r,o=n;"string"!=typeof e&&(a=o,o=e),t.declare=a,t.depsList=o},__eval(e,__global,t),n.register=r});if("object"!=typeof n)throw TypeError("Invalid instantiate return value");t.depsList=n.deps||[],t.execute=n.execute,t.isDeclarative=!1}}).then(function(){if("loading"==t.status){t.dependencies=[];for(var r=t.depsList,a=[],o=0,i=r.length;o<i;o++)!function(r,o){a.push(n(e,r,t.name,t.address).then(function(e){if(t.dependencies[o]={key:r,value:e.name},"linked"!=e.status)for(var n=t.linkSets.concat([]),a=0,i=n.length;a<i;a++)l(n[a],e)}))}(r[o],o);return M.all(a)}}).then(function(){if("loading"==t.status){E.assert("loading"==t.status,"is loading"),t.status="loaded";for(var e=t.linkSets.concat([]),n=0,r=e.length;n<r;n++)d(e[n],t)}})}).catch(function(e){t.status="failed",t.exception=e;for(var n=t.linkSets.concat([]),r=0,a=n.length;r<a;r++)c(n[r],t,e);E.assert(0==t.linkSets.length,"linkSets not removed")})}function i(t){return function(n,i){var l=t.loader,u=t.moduleName,d=t.step,c=t.moduleMetadata.importingModuleName;if(l.modules[u])throw new TypeError('"'+u+'" already exists in the module table');for(var f,p,m=0,h=l.loads.length;m<h;m++)if(l.loads[m].name==u){if(f=l.loads[m],"translate"!=d||f.source||(f.address=t.moduleAddress,o(l,f,M.resolve(t.moduleSource))),p=f.linkSets[0],c&&p.loads[c])continue;return p.done.then(function(){n(f)})}var v;f?v=f:(v=e(u)).metadata=t.moduleMetadata;var g=s(l,v);f||l.loads.push(v),n(g.done),"locate"==d?r(l,v):"fetch"==d?a(l,v,M.resolve(t.moduleAddress)):(E.assert("translate"==d,"translate step"),v.address=t.moduleAddress,o(l,v,M.resolve(t.moduleSource)))}}function s(e,t){var n={loader:e,loads:[],startingLoad:t,loadingCount:0};return n.done=new M(function(e,t){n.resolve=e,n.reject=t}),l(n,t),n}function l(e,t){E.assert("loading"==t.status||"loaded"==t.status,"loading or loaded on link set");for(var n=0,r=e.loads.length;n<r;n++)if(e.loads[n]==t)return;e.loads.push(t),e.loads[t.name]=!0,t.linkSets.push(e),"loaded"!=t.status&&e.loadingCount++;for(var a=e.loader,n=0,r=t.dependencies.length;n<r;n++){var o=t.dependencies[n].value;if(!a.modules[o])for(var i=0,s=a.loads.length;i<s;i++)if(a.loads[i].name==o){l(e,a.loads[i]);break}}}function u(e){var t=!1;try{h(e,function(n,r){c(e,n,r),t=!0})}catch(n){c(e,null,n),t=!0}return t}function d(e,t){if(E.assert("loaded"==t.status||"linked"==t.status,"loaded or linked"),e.loadingCount--,!(e.loadingCount>0)){var n=e.startingLoad;if(!1===e.loader.loaderObj.execute){for(var r=[].concat(e.loads),a=0,o=r.length;a<o;a++)(t=r[a]).module=t.isDeclarative?{name:t.name,module:R({}),evaluated:!0}:{module:R({})},t.status="linked",f(e.loader,t);return e.resolve(n)}u(e)||(E.assert(0==e.loads.length,"loads cleared"),e.resolve(n))}}function c(e,t,n){var r=e.loader,a=n;e.loads[0].name!=t.name&&(a=w(a,'Error loading "'+t.name+'" from "'+e.loads[0].name+'" at '+(e.loads[0].address||"<unknown>")+"\n")),a=w(a,'Error loading "'+t.name+'" at '+(t.address||"<unknown>")+"\n");for(var o=e.loads.concat([]),i=0,s=o.length;i<s;i++){var t=o[i];r.loaderObj.failed=r.loaderObj.failed||[],-1==P.call(r.loaderObj.failed,t)&&r.loaderObj.failed.push(t);var l=P.call(t.linkSets,e);if(E.assert(-1!=l,"link not present"),t.linkSets.splice(l,1),0==t.linkSets.length){var u=P.call(e.loader.loads,t);-1!=u&&e.loader.loads.splice(u,1)}}e.reject(a)}function f(e,t){if(e.loaderObj.trace){e.loaderObj.loads||(e.loaderObj.loads={});var n={};t.dependencies.forEach(function(e){n[e.key]=e.value}),e.loaderObj.loads[t.name]={name:t.name,deps:t.dependencies.map(function(e){return e.key}),depMap:n,address:t.address,metadata:t.metadata,source:t.source,kind:t.isDeclarative?"declarative":"dynamic"}}t.name&&(E.assert(!e.modules[t.name],"load not in module table"),e.modules[t.name]=t.module);var r=P.call(e.loads,t);-1!=r&&e.loads.splice(r,1);for(var a=0,o=t.linkSets.length;a<o;a++)-1!=(r=P.call(t.linkSets[a].loads,t))&&t.linkSets[a].loads.splice(r,1);t.linkSets.splice(0,t.linkSets.length)}function p(e,t,n){if(n[e.groupIndex]=n[e.groupIndex]||[],-1==P.call(n[e.groupIndex],e)){n[e.groupIndex].push(e);for(var r=0,a=t.length;r<a;r++)for(var o=t[r],i=0;i<e.dependencies.length;i++)if(o.name==e.dependencies[i].value){E.assert("loaded"==o.status,"Load in linkSet not loaded!");var s=e.groupIndex+(o.isDeclarative!=e.isDeclarative);if(void 0===o.groupIndex||o.groupIndex<s){if(void 0!==o.groupIndex&&(n[o.groupIndex].splice(P.call(n[o.groupIndex],o),1),0==n[o.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");o.groupIndex=s}p(o,t,n)}}}function m(e,t,n){try{var r=t.execute()}catch(e){return void n(t,e)}if(r&&r instanceof S)return r;n(t,new TypeError("Execution must define a Module instance"))}function h(e,t){var n=e.loader;if(e.loads.length){var r=[],a=e.loads[0];a.groupIndex=0,p(a,e.loads,r);for(var o=a.isDeclarative==r.length%2,i=r.length-1;i>=0;i--){for(var s=r[i],l=0;l<s.length;l++){var u=s[l];if(o)g(u,e.loads,n);else{var d=m(e,u,t);if(!d)return;u.module={name:u.name,module:d},u.status="linked"}f(n,u)}o=!o}}}function v(e,t){var n=t.moduleRecords;return n[e]||(n[e]={name:e,dependencies:[],module:new S,importers:[]})}function g(e,t,n){if(!e.module){var r=e.module=v(e.name,n),a=e.module.module,o=e.declare.call(__global,function(e,t){if(r.locked=!0,"object"==typeof e)for(var n in e)a[n]=e[n];else a[e]=t;for(var o=0,i=r.importers.length;o<i;o++){var s=r.importers[o];if(!s.locked){var l=P.call(s.dependencies,r);s.setters[l](a)}}return r.locked=!1,t});r.setters=o.setters,r.execute=o.execute;for(var i=0,s=e.dependencies.length;i<s;i++){var l=e.dependencies[i].value,u=n.modules[l];if(!u)for(var d=0;d<t.length;d++)t[d].name==l&&(t[d].module?u=v(l,n):(g(t[d],t,n),u=t[d].module));u.importers?(r.dependencies.push(u),u.importers.push(r)):r.dependencies.push(null),r.setters[i]&&r.setters[i](u.module)}e.status="linked"}}function b(e,t){return E.assert("linked"==t.status,"is linked "+t.name),x(t.module,[],e),t.module.module}function y(e){try{e.execute.call(__global)}catch(e){return e}}function x(e,t,n){var r=_(e,t,n);if(r)throw r}function _(e,t,n){if(!e.evaluated&&e.dependencies){t.push(e);for(var r,a=e.dependencies,o=0,i=a.length;o<i;o++){var s=a[o];if(s&&(-1==P.call(t,s)&&(r=_(s,t,n))))return r=w(r,"Error evaluating "+s.name+"\n")}if(e.failed)return new Error("Module failed execution.");if(!e.evaluated)return e.evaluated=!0,(r=y(e))?e.failed=!0:Object.preventExtensions&&Object.preventExtensions(e.module),e.execute=void 0,r}}function w(e,t){var n=e;return n instanceof Error?n.message=t+n.message:n=t+n,n}function j(e){if("object"!=typeof e)throw new TypeError("Options must be an object");e.normalize&&(this.normalize=e.normalize),e.locate&&(this.locate=e.locate),e.fetch&&(this.fetch=e.fetch),e.translate&&(this.translate=e.translate),e.instantiate&&(this.instantiate=e.instantiate),this._loader={loaderObj:this,loads:[],modules:{},importPromises:{},moduleRecords:{}},L(this,"global",{get:function(){return __global}})}function S(){}function O(e,t,n){var r=e._loader.importPromises;return r[t]=n.then(function(e){return r[t]=void 0,e},function(e){throw r[t]=void 0,e})}var E,M=__global.Promise||require("when/es6-shim/Promise");__global.console?(E=__global.console).assert=E.assert||function(){}:E={assert:function(){}};var P=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},L=$__Object$defineProperty,I=0,R=(j.prototype={constructor:j,define:function(e,t,n){if(this._loader.importPromises[e])throw new TypeError("Module is already loading.");return O(this,e,new M(i({step:"translate",loader:this._loader,moduleName:e,moduleMetadata:n&&n.metadata||{},moduleSource:t,moduleAddress:n&&n.address})))},delete:function(e){var t=this._loader;return delete t.importPromises[e],delete t.moduleRecords[e],!!t.modules[e]&&delete t.modules[e]},get:function(e){if(this._loader.modules[e])return x(this._loader.modules[e],[],this),this._loader.modules[e].module},has:function(e){return!!this._loader.modules[e]},import:function(e,n){var r=this;return M.resolve(r.normalize(e,n&&n.name,n&&n.address)).then(function(e){var a=r._loader;return a.modules[e]?(x(a.modules[e],[],a._loader),a.modules[e].module):a.importPromises[e]||O(r,e,t(a,e,n||{}).then(function(t){return delete a.importPromises[e],b(a,t)},function(t){return r.defined&&(r.defined[e]=void 0),M.reject(t)}))})},load:function(e,n){return this._loader.modules[e]?(x(this._loader.modules[e],[],this._loader),M.resolve(this._loader.modules[e].module)):this._loader.importPromises[e]||O(this,e,t(this._loader,e,{}))},module:function(t,n){var r=e();r.address=n&&n.address;var a=s(this._loader,r),i=M.resolve(t),l=this._loader,u=a.done.then(function(){return b(l,r)});return o(l,r,i),u},newModule:function(e){if("object"!=typeof e)throw new TypeError("Expected object");var t,n=new S;if(Object.getOwnPropertyNames&&null!=e)t=Object.getOwnPropertyNames(e);else{t=[];for(var r in e)t.push(r)}for(var a=0;a<t.length;a++)!function(t){L(n,t,{configurable:!1,enumerable:!0,get:function(){return e[t]}})}(t[a]);return Object.preventExtensions&&Object.preventExtensions(n),n},set:function(e,t){if(!(t instanceof S))throw new TypeError("Loader.set("+e+", module) must be a module");this._loader.modules[e]={module:t}},normalize:function(e,t,n){return e},locate:function(e){return e.name},fetch:function(e){throw new TypeError("Fetch not implemented")},translate:function(e){return e.source},instantiate:function(e){}}).newModule;"object"==typeof exports&&(module.exports=j),__global.Reflect=__global.Reflect||{},__global.Reflect.Loader=__global.Reflect.Loader||j,__global.Reflect.global=__global.Reflect.global||__global,__global.LoaderPolyfill=j}(),function(e){function t(e,t){return e.newModule({__useDefault:!0,default:m[t]})}function n(e){return"babel"===e?"Babel":e}function r(e,t){var n=this.traceurOptions||{};n.modules="instantiate",n.script=!1,n.sourceMaps="inline",n.filename=e.address,n.inputSourceMap=e.metadata.sourceMap,n.moduleName=!1;var r=new t.Compiler(n),o=a(e.source,r,n.filename);return o+="!eval"}function a(e,t,n){try{return t.compile(e,n)}catch(e){throw e[0]}}function o(){var e=this,t="function"==typeof e.getEnv&&e.getEnv();return h?process.env.BABEL_ENV||process.env.NODE_ENV||t||"development":t||"development"}function i(e){return s(e)?"string"==typeof e?e:e[0]:null}function s(e){return"string"==typeof e||e.length&&"string"==typeof e[0]}function l(e){var t=e||[],n="transform-es2015-modules-systemjs";return-1===t.indexOf(n)&&t.unshift(n),t}function u(e){var t=e||[],n=["es2015-no-commonjs"];if(t.length)for(var r=n.length-1;r>=0;r-=1){var a=n[r];-1===t.indexOf(a)&&t.unshift(a)}else t=["es2015-no-commonjs","react","stage-0"];return t}function d(e){return(e.version?+e.version.split(".")[0]:6)||6}function c(e,t){var n=this.babelOptions||{};return n.sourceMap="inline",n.filename=e.address,n.code=!0,n.ast=!1,d(t)>=6?(delete n.optional,delete n.whitelist,delete n.blacklist,n.presets=u(n.presets),n.plugins=l(n.plugins)):(n.modules="system",n.blacklist||(n.blacklist=["react"])),n}function f(e){var t=e.types;return{visitor:{Program:function(e,n){e.unshiftContainer("body",[t.exportNamedDeclaration(null,[t.exportSpecifier(t.identifier("true"),t.identifier("__esModule"))])])}}}}function p(e,t){var n=t.Babel||t.babel||t,r=d(n),a=c.call(this,e,n);return Promise.all([v.call(this,n,a),g.call(this,n,a)]).then(function(t){return r>=6&&(a.plugins=[f].concat(t[0]),a.presets=t[1]),n.transform(e.source,a).code+"\n//# sourceURL="+e.address+"!eval"})}var m=__global,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process);e.prototype.transpiler="babel",e.prototype.transpile=function(e){var n=this;return n.transpilerHasRun||(m.traceur&&!n.has("traceur")&&n.set("traceur",t(n,"traceur")),m.Babel&&!n.has("babel")&&n.set("babel",t(n,"Babel")),n.transpilerHasRun=!0),n.import(n.transpiler).then(function(t){var a=t;return a.__useDefault&&(a=a.default),(a.Compiler?r:p).call(n,e,a)}).then(function(t){return'var __moduleAddress = "'+e.address+'";'+t})},e.prototype.instantiate=function(e){var r=this;return Promise.resolve(r.normalize(r.transpiler)).then(function(a){if(e.name===a)return{deps:[],execute:function(){var a=m.System,o=m.Reflect.Loader;return __eval("(function(require,exports,module){"+e.source+"})();",m,e),m.System=a,m.Reflect.Loader=o,t(r,n(e.name))}}})};var v=function(){function e(e,r){var a=[];return(r||[]).forEach(function(r){var o=i(r);if(!s(r)||t(e,o))a.push(r);else if(!t(e,o)){var l=this.configMain||"package.json!npm",u=n(o);a.push(this.import(u,{name:l}).then(function(e){var t=e.__esModule?e.default:e;return"string"==typeof r?t:[t,r[1]]}))}},this),Promise.all(a)}function t(e,t){var n=/^(?:babel-plugin-)/;return!!(e.availablePlugins||{})[n.test(t)?t.replace("babel-plugin-",""):t]}function n(e){var t=/^(?:babel-plugin-)/;return/\//.test(e)||t.test(e)?e:"babel-plugin-"+e}return function(t,n){var r=o.call(this),a=n.env||{},i=[e.call(this,t,n.plugins)];for(var s in a)if(r===s){var l=a[s].plugins||[];i.push(e.call(this,t,l))}return Promise.all(i).then(function(e){var t=[];return e.forEach(function(e){t=t.concat(e)}),t})}}(),g=function(){function e(e,r){var a=[];return(r||[]).forEach(function(r){var o=i(r);if(!s(r)||t(e,o))a.push(r);else if(!t(e,o)){var l=this.configMain||"package.json!npm",u=n(o);a.push(this.import(u,{name:l}).then(function(e){var t=e.__esModule?e.default:e;return"string"==typeof r?t:[t,r[1]]}))}},this),Promise.all(a)}function t(e,t){var n=/^(?:babel-preset-)/;return!!(e.availablePresets||{})[n.test(t)?t.replace("babel-preset-",""):t]}function n(e){var t=/^(?:babel-preset-)/;return/\//.test(e)||t.test(e)?e:"babel-preset-"+e}return function(t,n){var r=o.call(this),a=n.env||{},i=[e.call(this,t,n.presets)];for(var s in a)if(r===s){var l=a[s].presets||[];i.push(e.call(this,t,l))}return Promise.all(i).then(function(e){var t=[];return e.forEach(function(e){t=t.concat(e)}),t})}}()}(__global.LoaderPolyfill),function(){function e(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function t(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}function n(n,r){var a=r,o=n;return i&&(a=a.replace(/\\/g,"/")),a=e(a||""),o=e(o||""),a&&o?(a.protocol||o.protocol)+(a.protocol||a.authority?a.authority:o.authority)+t(a.protocol||a.authority||"/"===a.pathname.charAt(0)?a.pathname:a.pathname?(o.authority&&!o.pathname?"/":"")+o.pathname.slice(0,o.pathname.lastIndexOf("/")+1)+a.pathname:o.pathname)+(a.protocol||a.authority||a.pathname?a.search:a.search||o.search)+a.hash:null}var r,a="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,o="undefined"!=typeof window&&!a,i="undefined"!=typeof process&&!!process.platform.match(/^win/),s=__global.Promise||require("when/es6-shim/Promise");if("undefined"!=typeof XMLHttpRequest)r=function(e,t,n){function r(){t(o.responseText)}function a(){var t=o.statusText+": "+e||"XHR error",r=new Error(t);r.statusCode=o.status,n(r)}var o=new XMLHttpRequest,i=!0,s=!1;if(!("withCredentials"in o)){var l=/^(\w+:)?\/\/([^\/]+)/.exec(e);l&&(i=l[2]===window.location.host,l[1]&&(i&=l[1]===window.location.protocol))}i||"undefined"==typeof XDomainRequest||((o=new XDomainRequest).onload=r,o.onerror=a,o.ontimeout=a,o.onprogress=function(){},o.timeout=0,s=!0),o.onreadystatechange=function(){4===o.readyState&&(200===o.status||0==o.status&&o.responseText?r():a())},o.open("GET",e,!0),s&&setTimeout(function(){o.send()},0),o.send(null)};else if("undefined"!=typeof require){var l,u=/ENOENT/;r=function(e,t,n){if("file:"!=e.substr(0,5))throw"Only file URLs of the form file: allowed running in Node.";l=l||require("fs");var r=e.substr(5);return i&&(r=r.replace(/\//g,"\\")),l.readFile(r,function(e,r){if(e)return u.test(e.message)&&(e.statusCode=404),n(e);t(r+"")})}}else{if("function"!=typeof fetch)throw new TypeError("No environment fetch API available.");r=function(e,t,n){fetch(e).then(function(e){return e.text()}).then(function(e){t(e)}).then(null,function(e){n(e)})}}var d=new(function(e){function t(t){if(e.call(this,t||{}),"undefined"!=typeof location&&location.href){var n=__global.location.href.split("#")[0].split("?")[0];this.baseURL=n.substring(0,n.lastIndexOf("/")+1)}else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURL");this.baseURL="file:"+process.cwd()+"/",i&&(this.baseURL=this.baseURL.replace(/\\/g,"/"))}this.paths={"*":"*.js"}}return t.__proto__=null!==e?e:Function.prototype,t.prototype=$__Object$create(null!==e?e.prototype:null),$__Object$defineProperty(t.prototype,"constructor",{value:t}),$__Object$defineProperty(t.prototype,"global",{get:function(){return o?window:a?self:__global},enumerable:!1}),$__Object$defineProperty(t.prototype,"strict",{get:function(){return!0},enumerable:!1}),$__Object$defineProperty(t.prototype,"normalize",{value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Module name must be a string");var r=e.split("/");if(0==r.length)throw new TypeError("No module name provided");var a=0,o=!1,i=0;if("."==r[0]){if(++a==r.length)throw new TypeError('Illegal module name "'+e+'"');o=!0}else{for(;".."==r[a];)if(++a==r.length)throw new TypeError('Illegal module name "'+e+'"');a&&(o=!0),i=a}for(var s=a;s<r.length;s++){var l=r[s];if(""==l||"."==l||".."==l)throw new TypeError('Illegal module name "'+e+'"')}if(!o)return e;var u=[],d=(t||"").split("/");d.length;return u=u.concat(d.splice(0,d.length-1-i)),(u=u.concat(r.splice(a,r.length-a))).join("/")},enumerable:!1,writable:!0}),$__Object$defineProperty(t.prototype,"locate",{value:function(e){var t,r=e.name,a="";for(var i in this.paths){var s=i.split("*");if(s.length>2)throw new TypeError("Only one wildcard in a path is permitted");if(1==s.length){if(r==i&&i.length>a.length){a=i;break}}else r.substr(0,s[0].length)==s[0]&&r.substr(r.length-s[1].length)==s[1]&&(a=i,t=r.substr(s[0].length,r.length-s[1].length-s[0].length))}var l=this.paths[a];return t&&(l=l.replace("*",t)),o&&(l=l.replace(/#/g,"%23")),n(this.baseURL,l)},enumerable:!1,writable:!0}),$__Object$defineProperty(t.prototype,"fetch",{value:function(e){var t=this;return new s(function(a,o){r(n(t.baseURL,e.address),function(e){a(e)},o)})},enumerable:!1,writable:!0}),t}(__global.LoaderPolyfill));"object"==typeof exports&&(module.exports=d),__global.System=d}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(e){e.upgradeSystemLoader=function(){function t(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function r(e,n){var r=e,a=n;return x&&(a=a.replace(/\\/g,"/")),a=t(a||""),r=t(r||""),a&&r?(a.protocol||r.protocol)+(a.protocol||a.authority?a.authority:r.authority)+function(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}(a.protocol||a.authority||"/"===a.pathname.charAt(0)?a.pathname:a.pathname?(r.authority&&!r.pathname?"/":"")+r.pathname.slice(0,r.pathname.lastIndexOf("/")+1)+a.pathname:r.pathname)+(a.protocol||a.authority||a.pathname?a.search:a.search||r.search)+a.hash:null}function a(t){var n={};if(("object"==typeof t||"function"==typeof t)&&t!==e)if(_)for(var r in t)"default"!==r&&o(n,t,r);else i(n,t);return n.default=t,w(n,"__useDefault",{value:!0}),n}function o(e,t,n){try{var r;(r=Object.getOwnPropertyDescriptor(t,n))&&w(e,n,r)}catch(r){return e[n]=t[n],!1}}function i(e,t,n){var r=t&&t.hasOwnProperty;for(var a in t)r&&!t.hasOwnProperty(a)||n&&a in e||(e[a]=t[a]);return e}function s(e){function t(e,t){t._extensions=[];for(var n=0,r=e.length;n<r;n++)e[n](t)}var n=e.import;e.import=function(e,t){return n.call(this,e,t).then(function(e){return e.__useDefault?e.default:e})},e.set("@empty",e.newModule({})),"undefined"!=typeof require&&(e._nodeRequire=require),e.config=function(e){for(var t in e){var n=e[t];if("object"!=typeof n||n instanceof Array)this[t]=n;else{this[t]=this[t]||{};for(var r in n)this[t][r]=n[r]}}};var a;if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)a="file:"+process.cwd()+"/",x&&(a=a.replace(/\\/g,"/"));else if("undefined"==typeof window)a=e.global.location.href;else if(!(a=document.baseURI)){var o=document.getElementsByTagName("base");a=o[0]&&o[0].href||window.location.href}var i,l=e.locate;e.locate=function(e){return this.baseURL!=i&&("/"!=(i=r(a,this.baseURL)).substr(i.length-1,1)&&(i+="/"),this.baseURL=i),Promise.resolve(l.call(this,e))},e._extensions=e._extensions||[],e._extensions.push(s),e.clone=function(){var e=this,n=new LoaderPolyfill(j);return n.baseURL=e.baseURL,n.paths={"*":"*.js"},t(e._extensions,n),n}}function l(e){function t(e,t){var n=e.meta&&e.meta[t.name];if(n)for(var r in n)t.metadata[r]=t.metadata[r]||n[r]}var n=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,r=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;e.meta={},e._extensions=e._extensions||[],e._extensions.push(l);var a=e.locate;e.locate=function(e){return t(this,e),a.call(this,e)};var o=e.translate;e.translate=function(e){var a=e.source.match(n);if(a)for(var i=a[0].match(r),s=0;s<i.length;s++){var l=i[s].length,u=i[s].substr(0,1);if(";"==i[s].substr(l-1,1)&&l--,'"'==u||"'"==u){var d=i[s].substr(1,i[s].length-3),c=d.substr(0,d.indexOf(" "));if(c){var f=d.substr(c.length+1,d.length-c.length-1);e.metadata[c]instanceof Array?e.metadata[c].push(f):e.metadata[c]||(e.metadata[c]=f)}}}return t(this,e),o.call(this,e)}}function u(e){function t(e,t){var a,o=this,i=t,s=e.source.lastIndexOf("\n");-1!=s&&"//# sourceMappingURL="==e.source.substr(s+1,21)&&(a=e.source.substr(s+22,e.source.length-s-22),void 0!==r&&(a=r(e.address,a)));var l=e.metadata&&e.metadata.eval;i=i||o.global,n(e.source,e.address,i,a,l)}function o(e){for(var t=[],n=0,r=e.length;n<r;n++)-1==y.call(t,e[n])&&t.push(e[n]);return t}function i(t,n,r,a){var o=t,i=n,s=r,l=a;"string"!=typeof o&&(l=s,s=i,i=o,o=null),g=!0;var u;if(u="boolean"==typeof s?{declarative:!1,deps:i,execute:l,executingRequire:s}:{declarative:!0,deps:i,declare:s},o)u.name=o,o in e.defined||(e.defined[o]=u);else if(u.declarative){if(v)throw new TypeError("Multiple anonymous System.register calls in the same module file.");v=u}}function s(e){if(!e.register){e.register=i,e.defined||(e.defined={});var t=e.onScriptLoad;e.onScriptLoad=function(e){t(e),v&&(e.metadata.entry=v),g&&(e.metadata.format=e.metadata.format||"register",e.metadata.registered=!0)}}}function l(e,t,n){if(n[e.groupIndex]=n[e.groupIndex]||[],-1==y.call(n[e.groupIndex],e)){n[e.groupIndex].push(e);for(var r=0,a=e.normalizedDeps.length;r<a;r++){var o=e.normalizedDeps[r],i=t.defined[o];if(i&&!i.evaluated){var s=e.groupIndex+(i.declarative!=e.declarative);if(void 0===i.groupIndex||i.groupIndex<s){if(void 0!==i.groupIndex&&(n[i.groupIndex].splice(y.call(n[i.groupIndex],i),1),0==n[i.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");i.groupIndex=s}l(i,t,n)}}}}function d(e,t){var n=t.defined[e];if(!n.module){n.groupIndex=0;var r=[];l(n,t,r);for(var a=!!n.declarative==r.length%2,o=r.length-1;o>=0;o--){for(var i=r[o],s=0;s<i.length;s++){var u=i[s];a?f(u,t):m(u,t)}a=!a}}}function c(e){return x[e]||(x[e]={name:e,dependencies:[],exports:{},importers:[]})}function f(e,t){if(!e.module){var n=e.module=c(e.name),r=e.module.exports,a=e.declare.call(t.global,function(e,t){n.locked=!0,r[e]=t;for(var a=0,o=n.importers.length;a<o;a++){var i=n.importers[a];if(!i.locked){var s=y.call(i.dependencies,n);i.setters[s](r)}}return n.locked=!1,t});if(n.setters=a.setters,n.execute=a.execute,!n.setters||!n.execute)throw new TypeError("Invalid System.register form for "+e.name);for(var o=0,i=e.normalizedDeps.length;o<i;o++){var s,l=e.normalizedDeps[o],u=t.defined[l],d=x[l];d?s=d.exports:u&&!u.declarative?s=u.module.exports&&u.module.exports.__esModule?u.module.exports:u.esModule:u?(f(u,t),s=(d=u.module).exports):s=t.get(l),d&&d.importers?(d.importers.push(n),n.dependencies.push(d)):n.dependencies.push(null),n.setters[o]&&n.setters[o](s)}}}function p(e,t){var n,r=t.defined[e];if(r)r.declarative?h(e,[],t):r.evaluated||m(r,t),n=r.module.exports;else if(!(n=t.get(e)))throw new Error("Unable to load dependency "+e+".");return(!r||r.declarative)&&n&&n.__useDefault?n.default:n}function m(e,t){if(!e.module){var n={},r=e.module={exports:n,id:e.name};if(!e.executingRequire)for(var o=0,i=e.normalizedDeps.length;o<i;o++){var s=e.normalizedDeps[o],l=t.defined[s];l&&m(l,t)}e.evaluated=!0;var u=e.execute.call(t.global,function(n){for(var r=0,a=e.deps.length;r<a;r++)if(e.deps[r]==n)return p(e.normalizedDeps[r],t);throw new TypeError("Module "+n+" not declared as a dependency.")},n,r);u&&(r.exports=u),(n=r.exports)&&(n.__esModule||n instanceof _)?e.esModule=n:e.esmExports&&n!==t.global?e.esModule=a(n):e.esModule={default:n}}}function h(e,t,n){var r=n.defined[e];if(r&&!r.evaluated&&r.declarative){t.push(e);for(var a=0,o=r.normalizedDeps.length;a<o;a++){var i=r.normalizedDeps[a];-1==y.call(t,i)&&(n.defined[i]?h(i,t,n):n.get(i))}r.evaluated||(r.evaluated=!0,r.module.execute.call(n.global))}}void 0===y&&(y=Array.prototype.indexOf),(void 0===n||"undefined"!=typeof document&&!document.addEventListener)&&(n=eval),e._extensions=e._extensions||[],e._extensions.push(u);e.__exec=t;var v,g;s(e);var x={},_=e.newModule({}).constructor,w=/System\.register/,j=e.fetch;e.fetch=function(e){var t=this;return s(t),t.defined[e.name]?(e.metadata.format="defined",""):(v=null,g=!1,j.call(t,e))};var S=e.translate;e.translate=function(e){return this.register=i,this.__exec=t,e.metadata.deps=e.metadata.deps||[],Promise.resolve(S.call(this,e)).then(function(t){return(e.metadata.init||e.metadata.exports)&&(e.metadata.format=e.metadata.format||"global"),("register"==e.metadata.format||!e.metadata.format&&e.source.match(w))&&(e.metadata.format="register"),t})};var O=e.instantiate;e.instantiate=function(e){var t,n=this;if(n.defined[e.name])(t=n.defined[e.name]).deps=t.deps.concat(e.metadata.deps);else if(e.metadata.entry)t=e.metadata.entry;else if(e.metadata.execute)t={declarative:!1,deps:e.metadata.deps||[],esModule:null,execute:e.metadata.execute,executingRequire:e.metadata.executingRequire};else if("register"==e.metadata.format){v=null,g=!1;var r=n.global.System;if(n.global.System=n,n.__exec(e),n.global.System=r,v&&(t=v),!t&&b.defined[e.name]&&(t=b.defined[e.name]),!g&&!e.metadata.registered)throw new TypeError(e.name+" detected as System.register but didn't execute.")}if(!t&&"es6"!=e.metadata.format)return{deps:e.metadata.deps,execute:function(){return n.newModule({})}};if(!t)return O.call(this,e);n.defined[e.name]=t,t.deps=o(t.deps),t.name=e.name,t.esmExports=!1!==e.metadata.esmExports;for(var a=[],i=0,s=t.deps.length;i<s;i++)a.push(Promise.resolve(n.normalize(t.deps[i],e.name)));return Promise.all(a).then(function(r){return t.normalizedDeps=r,{deps:t.deps,execute:function(){d(e.name,n),h(e.name,[],n),n.defined[e.name]=void 0;var r=t.module.exports;return t.declarative||(r=t.esModule),n.newModule(r)}}})}}function d(e){function t(e,t,n){if(e.meta[t]={format:"global"},l&&!e.paths[t])try{e.paths[t]=require.resolve(n||t)}catch(e){}}e._extensions.push(d);var n,r,a=/(^\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))/,o=/\$traceurRuntime\s*\./,i=/babelHelpers\s*\./,s=!0,l="undefined"!=typeof process&&"undefined"!=typeof require&&require.resolve,u=e.locate;e.locate=function(e){var n=this;return s&&("traceur"==n.transpiler?(t(n,"traceur","traceur/bin/traceur.js"),n.meta.traceur.exports="traceur",t(n,"traceur-runtime","traceur/bin/traceur-runtime.js")):"babel"==n.transpiler&&t(n,"babel","babel-standalone/babel.js"),s=!1),u.call(n,e)};var c=e.translate;e.translate=function(e){var t=this;return c.call(t,e).then(function(s){if("es6"==e.metadata.format||!e.metadata.format&&s.match(a))return e.metadata.format="es6",s;if("register"==e.metadata.format){if(!t.global.$traceurRuntime&&e.source.match(o))return t.import("traceur-runtime").then(function(){return s});if(!t.global.babelHelpers&&e.source.match(i))return t.import("babel/external-helpers").then(function(){return s})}return"traceur"==t.transpiler?Promise.all([n||(n=t.normalize(t.transpiler)),r||(r=t.normalize(t.transpiler+"-runtime"))]).then(function(t){return e.name==t[0]||e.name==t[1]?"(function() { var curSystem = System; "+s+"\nSystem = curSystem; })();":s}):s})}}function c(e){function t(e,t){for(var n=e.split("."),r=t;n.length;)r=r[n.shift()];return r}function n(e){function n(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n]]=!0;return t}if(!e.has("@@global-helpers")){var r,a,o=e.global.hasOwnProperty,i={};e.set("@@global-helpers",e.newModule({prepareGlobal:function(t,s,l){var u,d,c=t,f=s,p=l;if("object"==typeof c){var m=c;f=m.deps,u=m.globals,p=m.exportName,c=m.moduleName,d=m.require}if(f)for(var h=0;h<f.length;h++){var v=i[f[h]];if(v)for(var g in v)e.global[g]=v[g]}if(u&&d)for(var b in u)e.global[b]=d(u[b]);if(!p&&!1!==p&&!1!==e.inferGlobals){r={},a=n(["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo","toolbar","statusbar","scrollbars","personalbar","menubar","locationbar","webkitIndexedDB","screenTop","screenLeft"]);for(var y in e.global)if(!a[y]&&(!o||e.global.hasOwnProperty(y)))try{r[y]=e.global[y]}catch(e){a[y]=!0}}},retrieveGlobal:function(n,s,l){var u,d,c={};if(l)u=l.call(e.global);else if(s){var f=s.split(".")[0];u=t(s,e.global),c[f]=e.global[f]}else if(!1!==s&&!1!==e.inferGlobals)for(var p in e.global)a[p]||o&&!e.global.hasOwnProperty(p)||p==e.global||r[p]==e.global[p]||(c[p]=e.global[p],u?u!==e.global[p]&&(d=!0):void 0===u&&(u=e.global[p]));return i[n]=c,d?c:u}}))}}e._extensions.push(c),n(e);var r=e.instantiate;e.instantiate=function(e){var t=this;n(t);var a=e.metadata.exports;if(e.metadata.format||(e.metadata.format="global"),e.metadata.globals)for(var o in e.metadata.globals)e.metadata.deps.push(e.metadata.globals[o]);return"global"==e.metadata.format&&(e.metadata.execute=function(n,r,o){t.get("@@global-helpers").prepareGlobal({require:n,moduleName:o.id,exportName:a,deps:e.metadata.deps,globals:e.metadata.globals}),a&&(e.source+='\nthis["'+a+'"] = '+a+";");var i=t.global.define,n=t.global.require;return t.global.define=void 0,t.global.module=void 0,t.global.exports=void 0,t.__exec(e,t.global),t.global.require=n,t.global.define=i,t.get("@@global-helpers").retrieveGlobal(o.id,a,e.metadata.init)}),r.call(t,e)}}function f(e){function t(e){function t(e,t){for(var n=0;n<e.length;n++)if(e[n][0]<t.index&&e[n][1]>t.index)return!0;return!1}r.lastIndex=a.lastIndex=o.lastIndex=0;var n,i=[],s=[],l=[];if(e.length/e.split("\n").length<200){for(;n=o.exec(e);)s.push([n.index,n.index+n[0].length]);for(;n=a.exec(e);)t(s,n)||l.push([n.index,n.index+n[0].length])}for(;n=r.exec(e);)if(!t(s,n)&&!t(l,n)){var u=n[1].substr(1,n[1].length-2);if(u.match(/"|'/))continue;i.push(u)}return i}e._extensions.push(f);var n=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.])|Object.defineProperty\(\s*module\s*,\s*(?:'|")exports(?:'|"))/,r=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,a=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,o=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g,i=e.instantiate;e.instantiate=function(a){return a.metadata.format||(n.lastIndex=0,r.lastIndex=0,(r.exec(a.source)||n.exec(a.source))&&(a.metadata.format="cjs")),"cjs"==a.metadata.format&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(t(a.source)):t(a.source),a.metadata.executingRequire=!0,a.metadata.execute=function(t,n,r){var o=(a.address||"").split("/");o.pop(),o=o.join("/"),b._nodeRequire&&(o=o.substr(5));e.global._g={global:e.global,exports:n,module:r,require:t,__filename:b._nodeRequire?a.address.substr(5):a.address,__dirname:o};var i=e.global.define;e.global.define=void 0;var s={name:a.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+a.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:a.address};e.__exec(s),e.global.define=i,e.global._g=void 0}),i.call(this,a)}}function p(e){function t(e,t){var n=[],r=(e.match(f)[1].split(",")[t]||"require").replace(m,""),a=h[r]||(h[r]=new RegExp("/\\*|//|\"|'|`|(?:^|\\breturn\\b|[([=,;:?><&|^*%~+-])\\s*(?=/)|\\b"+r+"(?=\\s*\\()","g"));a.lastIndex=0,v[r]=v.require;for(var o,i,s,l;o=a.exec(e);)i=o[0],(s=v[i])||(s=v[i="/regexp/"]),s.lastIndex=a.lastIndex,(l=s.exec(e))&&l.index===a.lastIndex&&(a.lastIndex=s.lastIndex,s===v.require&&l[2]&&n.push(l[2]));return n}function n(e,t,r,a){var o=this;if("object"==typeof e&&!(e instanceof Array))return n.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(e instanceof Array)){if("string"==typeof e){var i=o.get(e);return i.__useDefault?i.default:i}throw new TypeError("Invalid require")}Promise.all(e.map(function(e){return o.import(e,a)})).then(function(e){t&&t.apply(null,e)},r)}function r(e,t,r){return function(a,o,i){return"string"==typeof a?t(a):n.call(r,a,o,i,{name:e})}}function a(e){function n(n,a,o){var i=n,s=a,l=o;"string"!=typeof i&&(l=s,s=i,i=null),s instanceof Array||(l=s,s=["require","exports","module"]),"function"!=typeof l&&(l=function(e){return function(){return e}}(l)),void 0===s[s.length-1]&&s.pop();var u,d,f;if(-1!=(u=y.call(s,"require"))){s.splice(u,1);var p=l.toString();s=s.concat(t(p,u))}-1!=(d=y.call(s,"exports"))&&s.splice(d,1),-1!=(f=y.call(s,"module"))&&s.splice(f,1);var m={deps:s,execute:function(t,n,a){for(var o=[],i=0;i<s.length;i++)o.push(t(s[i]));a.uri=e.baseURL+a.id,a.config=function(){},-1!=f&&o.splice(f,0,a),-1!=d&&o.splice(d,0,n),-1!=u&&o.splice(u,0,r(a.id,t,e));var p=l.apply(c,o);if(void 0===p&&a&&(p=a.exports),void 0!==p)return p}};if(i){var h=x&&x.metadata&&x.metadata.parsedModuleName;h&&h.version&&(h.modulePath===i||h.packageName===i)&&e.register(h.moduleName,m.deps,!1,m.execute),g=0!=s.length||g||b?null:m,b=!0,e.register(i,m.deps,!1,m.execute)}else{if(g)throw new TypeError("Multiple defines for anonymous module");g=m}}var a=e.onScriptLoad;e.onScriptLoad=function(e){a(e),(g||b)&&(e.metadata.format="defined",e.metadata.registered=!0),g&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(g.deps):g.deps,e.metadata.execute=g.execute)},n.amd={},e.amdDefine=n}function o(e,t){e.amdDefine||a(e),g=null,b=null,x=t;var n=e.global;_=n.module,w=n.exports,j=n.define,n.module=void 0,n.exports=void 0,n.define&&n.define===e.amdDefine||(n.define=e.amdDefine)}function i(e){var t=e.global;t.define=j,t.module=_,t.exports=w,x=void 0}var s="undefined"!=typeof module&&module.exports;e._extensions.push(p);var l=/(?:^\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]*\))/,u=/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm,d=/(function|var|let|const|return|export|\"|\'|\(|\=)$/i,f=/\(([^\)]*)\)/,m=/^\s+|\s+$/g,h={},v={"/*":/[\s\S]*?\*\//g,"//":/[^\r\n]+(?:\r?\n|$)/g,'"':/(?:\\[\s\S]|[^\\])*?"/g,"'":/(?:\\[\s\S]|[^\\])*?'/g,"`":/(?:\\[\s\S]|[^\\])*?`/g,require:/\s*\(\s*(['"`])((?:\\[\s\S]|(?!\1)[^\\])*?)\1\s*\)/g,"/regexp/":/\/(?:(?:\\.|[^\/\r\n])+?)\//g};e.amdRequire=function(){return n.apply(this,arguments)};var g,b,x,_,w,j;if(a(e),e.scriptLoader){var S=e.fetch;e.fetch=function(e){return o(this,e),S.call(this,e)}}var O=e.instantiate;e.instantiate=function(e){var t=this,n=e.source.replace(u,"$1"),r=n.match(l);if("amd"==e.metadata.format||!e.metadata.format&&r){var a=n.substring(0,n.indexOf(r[0])).replace(m,"");if(!d.test(a)){if(e.metadata.format="amd",!1!==t.execute&&(o(t,e),t.__exec(e),i(t),!g&&!b&&!s))throw new TypeError("AMD module "+e.name+" did not define");g&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(g.deps):g.deps,e.metadata.execute=g.execute)}}return O.call(t,e)}}function m(e){function t(e,t){return!(e.length<t.length)&&(e.substr(0,t.length)==t&&(!e[t.length]||"/"==e[t.length]))}function n(e){for(var t=1,n=0,r=e.length;n<r;n++)"/"===e[n]&&t++;return t}function r(e,t,n){return n+e.substr(t)}function a(e,a,o){var i,s,l,u,d=0,c=0;if(a)for(var f in o.map)if("object"==typeof(m=o.map[f])&&t(a,f)&&!((l=n(f))<=c))for(var p in m)t(e,p)&&((u=n(p))<=d||(i=p,d=u,s=f,c=l));if(i)return r(e,i.length,o.map[s][i]);for(var f in o.map){var m=o.map[f];"string"==typeof m&&(t(e,f)&&((u=n(f))<=d||(i=f,d=u)))}return i?r(e,i.length,o.map[i]):e}e.map=e.map||{},e._extensions.push(m);var o=e.normalize;e.normalize=function(e,t,n){var r=this,i=e;r.map||(r.map={});var s=!1;return"/"==i.substr(i.length-1,1)&&(s=!0,i+="#"),Promise.resolve(o.call(r,i,t,n)).then(function(e){var n=a(e,t,r);if(s){var o=n.split("/");o.pop();var i=o.pop();o.push(i),o.push(i),n=o.join("/")}return n})}}function h(e){void 0===y&&(y=Array.prototype.indexOf),e._extensions.push(h);var t=e.normalize;e.normalize=function(e,n,r){var a,o=this,i=n;return i&&-1!=(a=i.indexOf("!"))&&(i=i.substr(0,a)),Promise.resolve(t.call(o,e,i,r)).then(function(e){var t=e.lastIndexOf("!");if(-1!=t){var n=e.substr(0,t),a=e.substr(t+1)||n.substr(n.lastIndexOf(".")+1);return new Promise(function(e){e(o.normalize(a,i,r))}).then(function(e){return a=e,o.normalize(n,i,r,!0)}).then(function(e){return e+"!"+a})}return e})};var n=e.locate;e.locate=function(e){var t=this,r=e.name;if(this.defined&&this.defined[r])return n.call(this,e);var a=r.lastIndexOf("!");if(-1!=a){var o=r.substr(a+1);e.name=r.substr(0,a);var i=t.pluginLoader||t;return i.import(o,{metadata:{importingModuleName:r}}).then(function(){var n=i.get(o);return!1===(n=n.default||n).build&&t.pluginLoader&&(e.metadata.build=!1),e.metadata.plugin=n,e.metadata.pluginName=o,e.metadata.pluginArgument=e.name,e.metadata.buildType=n.buildType||"js",n.locate?n.locate.call(t,e):Promise.resolve(t.locate(e)).then(function(e){return e.replace(/\.js$/,"")})})}return n.call(this,e)};var r=e.fetch;e.fetch=function(e){var t=this;return!1===e.metadata.build&&t.pluginLoader?"":e.metadata.plugin&&e.metadata.plugin.fetch&&!e.metadata.pluginFetchCalled?(e.metadata.pluginFetchCalled=!0,e.metadata.plugin.fetch.call(t,e,r)):r.call(t,e)};var a=e.translate;e.translate=function(e){var t=this;return e.metadata.plugin&&e.metadata.plugin.translate?Promise.resolve(e.metadata.plugin.translate.call(t,e)).then(function(n){return"string"==typeof n&&(e.source=n),a.call(t,e)}):a.call(t,e)};var o=e.instantiate;e.instantiate=function(e){var t=this;return e.metadata.plugin&&e.metadata.plugin.instantiate?Promise.resolve(e.metadata.plugin.instantiate.call(t,e)).then(function(n){return n||o.call(t,e)}):e.metadata.plugin&&!1===e.metadata.plugin.build?(e.metadata.format="defined",e.metadata.deps.push(e.metadata.pluginName),e.metadata.execute=function(){return t.newModule({})},o.call(t,e)):o.call(t,e)}}function v(e){void 0===y&&(y=Array.prototype.indexOf),e._extensions.push(v),e.bundles=e.bundles||{};var t=e.fetch;e.fetch=function(e){var n=this;if(n.trace)return t.call(this,e);n.bundles||(n.bundles={});for(var r in n.bundles)if(-1!=y.call(n.bundles[r],e.name))return Promise.resolve(n.normalize(r)).then(function(e){return n.bundles[e]=n.bundles[e]||n.bundles[r],n.meta=n.meta||{},n.meta[e]=n.meta[e]||{},n.meta[e].bundle=!0,n.load(e)}).then(function(){return""});return t.call(this,e)}}function g(e){e.depCache=e.depCache||{},e._extensions.push(g);var t=e.locate;e.locate=function(e){var n=this;n.depCache||(n.depCache={});var r=n.depCache[e.name];if(r)for(var a=0;a<r.length;a++)n.load(r[a]);return t.call(n,e)}}e.upgradeSystemLoader=void 0;var b,y=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},x="undefined"!=typeof process&&!!process.platform.match(/^win/);!function(){var t=e.System;(b=e.System=new LoaderPolyfill(t)).baseURL=t.baseURL,b.paths={"*":"*.js"},b.originalSystem=t}(),b.noConflict=function(){e.SystemJS=b,e.System=b.originalSystem};var _=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(e){_=!1}var w;!function(){try{Object.defineProperty({},"a",{})&&(w=Object.defineProperty)}catch(e){w=function(e,t,n){try{e[t]=n.value||n.get.call(e)}catch(e){}}}}();var j=e.System.originalSystem;s(b),l(b),u(b),d(b),c(b),f(b),p(b),m(b),h(b),v(b),g(b)};var t,n;!function(){function r(e,n){if(!e.originalErr)for(var r=(e.stack||e.message||e).toString().split("\n"),a=[],o=0;o<r.length;o++)void 0!==t&&-1!=r[o].indexOf(t.src)||a.push(r[o]);var i=(a?a.join("\n\t"):e.message)+"\n\t"+n;s||(i=i.replace(c?/file:\/\/\//g:/file:\/\//g,""));var l=v?new Error(i,e.fileName,e.lineNumber):new Error(i);return l.stack=s?null:i,l.originalErr=e.originalErr||e,l}var a,o,i="undefined"==typeof window&&"undefined"!=typeof self&&"undefined"!=typeof importScripts,s="undefined"!=typeof window&&"undefined"!=typeof document,l="object"==typeof process&&"[object process]"==={}.toString.call(process),u=!!(l&&global.nw&&global.nw.process),d=s&&!u&&window.chrome&&window.chrome.extension,c="undefined"!=typeof process&&!!process.platform.match(/^win/);if(a=function(e,t,n){try{new Function(e).call(n)}catch(e){throw r(e,"Evaluating "+t)}},i)e.upgradeSystemLoader();else if(!s&&!u||d){if(l){var f=require("./src/loader");e.System=f.System,e.Loader=f.Loader,e.upgradeSystemLoader(),module.exports=e.System;var p=require("vm");a=function(e){p.runInThisContext(e)}}}else{var m,h=document.getElementsByTagName("script");t=h[h.length-1],o=function(e){m||(m=document.head||document.body||document.documentElement);var t=document.createElement("script");t.text=e;var n,r=window.onerror;if(window.onerror=function(e){n=e},m.appendChild(t),m.removeChild(t),window.onerror=r,n)throw n},e.upgradeSystemLoader()}var v="_"==new Error(0,"_").fileName;n=function(e,t,n,r,i){var s=e;s+="\n//# sourceURL="+t+(r?"\n//# sourceMappingURL="+r:""),"script"===i&&"function"==typeof o?o(s):a(s,t,n)}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(e){var t=function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},n=function(e,t){var n,r;if("number"==typeof e.length&&e.length-1 in e)for(n=0,r=e.length;n<r;n++)t.call(e[n],e[n],n,e);else for(n in e)e.hasOwnProperty(n)&&t.call(e[n],e[n],n,e);return e},r=function(e,t){var r=[];return n(e,function(e,n){r[n]=t(e,n)}),r},a=function(e){return"string"==typeof e},o=function(e,t){return n(t,function(t,n){e[n]=t}),e},i=function(e){var t=e.lastIndexOf("/");return-1===t&&(t=e.lastIndexOf("\\")),-1!==t?e.substr(0,t):e},s=function(e){return e[e.length-1]},l=function(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/]*(?::[^:@\/]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null},u=function(e,t){return t=l(t||""),e=l(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+function(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}(t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null},d=function(e,t){for(var n=t.split("/"),r=e.split("/"),a=[];n.length&&r.length&&n[0]==r[0];)n.shift(),r.shift();for(var o=0;o<r.length-1;o++)a.push("../");return"./"+a.join("")+n.join("/")},c=Function.prototype.bind,f=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},p="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!(g="object"==typeof process&&"[object process]"==={}.toString.call(process))&&"undefined"!=typeof window,h=g&&function(){try{return"undefined"!==require("nw.gui")}catch(e){return!1}}(),v=g&&!!process.versions.electron,g=g&&!h&&!v,b="object"==typeof console?c.call(console.warn,console):function(){},y=function(e){var t=e.lastIndexOf("/");-1===t&&(t=e.lastIndexOf("\\"));var n=(-1==t?e:e.substr(t+1)).match(/^[\w-\s\.!]+/);return n?n[0]:""},x=function(e){var t=y(e),n=t.lastIndexOf(".");return-1!==n?t.substr(n+1):""},_=function(e,t){var n=e,r=n.lastIndexOf("!"),a="";if(-1!=r){var o=n.substr(0,r);a="!"+n.substr(r+1),n=o}var i=y(n),s=x(n);return"/"===n[n.length-1]?n+y(n.substr(0,n.length-1))+a:/^(\w+(?:s)?:\/\/|\.|file|\/)/.test(n)||-1!==i.indexOf(".")?"js"===s?n.substr(0,n.lastIndexOf("."))+a:n+a:n+"/"+i+a},w=function(e){var t=e||this.System,n=j(t.clone());return n.loader.set("@steal",n.loader.newModule({default:n,__useDefault:!0})),n.clone=w,n},j=function(e){var x=function(t){void 0!==e&&f(t)&&(e._extensions&&e._extensions.push(t),t(e))};e.set("@loader",e.newModule({default:e,__useDefault:!0})),e.set("less",e.newModule({__useDefault:!0,default:{fetch:function(){throw new Error(["steal-less plugin must be installed and configured properly","See https://stealjs.com/docs/steal-less.html"].join("\n"))}}})),e.config({map:{"@loader/@loader":"@loader","@steal/@steal":"@steal"}});var w,j,S,O=function(){var t=arguments,r=function(){var e,r=[];n(t,function(t){a(t)?r.push(O.System.import(_(t))):"function"==typeof t&&(e=t)});var o=Promise.all(r);return e?o.then(function(t){return e&&e.apply(null,t)}):o};return e.isEnv("production")?r():w.then(r,r)};e.set("@steal",e.newModule({default:O,__useDefault:!0}));var E=e.clone;e.clone=function(){var e=E.apply(this,arguments);return e.set("@loader",e.newModule({default:e,__useDefault:!0})),e.set("@steal",e.newModule({default:O,__useDefault:!0})),e},O.System=O.loader=e,O.parseURI=l,O.joinURIs=u,O.normalize=_,O.relativeURI=d,O.addExtension=x,x(function(e){e.ext={};var t=e.normalize,n=/\.(\w+)!?$/;e.normalize=function(r,a,o,i){if(i)return t.apply(this,arguments);var s=r.match(n),l=r;if(s){var u="!"===r[r.length-1],d=s[1];a&&e.configMain!==r&&".js"===s[0]?l=r.substr(0,r.lastIndexOf(".")):e.ext[d]&&(l=r+(u?"":"!")+e.ext[d])}return t.call(this,l,a,o)}}),x(function(e){var t=e.normalize,n=/@.+#.+/;e.normalize=function(e,r,a,o){var i,s,l=e.length-1,u=e;return"/"===e[l]&&(i=e.substring(0,l).lastIndexOf("/"),s=e.substring(i+1,l),n.test(s)&&(s=s.substr(s.lastIndexOf("#")+1)),u+=s),t.call(this,u,r,a,o)}}),x(function(e){var t=function(e,t){var n=this;return Promise.resolve(n.normalize(e,t)).then(function(e){return n.locate({name:e,metadata:{}})}).then(function(e){var t=e;return".js"===e.substr(e.length-3)&&(t=e.substr(0,e.length-3)),t})},n=function(e,t){for(var n=t.split("/"),r=e.split("/"),a=[];n.length&&r.length&&n[0]==r[0];)n.shift(),r.shift();for(var o=0;o<r.length-1;o++)a.push("../");return a.join("")+n.join("/")},r=/(locate):\/\/([a-z0-9/._@-]*)/gi,a=function(e,t){var a=[];return e.replace(r,function(e,r,o,i){a.push({start:i,end:i+e.length,name:o,postLocate:function(e){return n(t,e)}})}),a},o=e.translate;e.translate=function(e){var n=this;if(!e.metadata.plugin)return o.call(this,e);if(!e.metadata.plugin.locateScheme)return o.call(this,e);var r=a(e.source,e.address);if(!r.length)return o.call(this,e);for(var i=[],s=0,l=r.length;s<l;s++)i.push(t.call(this,r[s].name,e.name));return Promise.all(i).then(function(t){for(var a=r.length-1;a>=0;a--)e.source=e.source.substr(0,r[a].start)+r[a].postLocate(t[a])+e.source.substr(r[a].end,e.source.length);return o.call(n,e)})}}),x(function(e){e._contextualModules={},e.setContextual=function(e,t){this._contextualModules[e]=t};var t=e.normalize;e.normalize=function(e,n){var r=this,a=r.pluginLoader||r;if(n){var o=this._contextualModules[e];if(o){var i=e+"/"+n;return r.has(i)?Promise.resolve(i):("string"==typeof o&&(o=a.import(o)),Promise.resolve(o).then(function(e){var t=e;return t.default&&(t=t.default),Promise.resolve(t.call(r,n))}).then(function(e){return r.set(i,r.newModule(e)),i}))}}return t.apply(this,arguments)}}),x(function(e){function t(){document.removeEventListener("DOMContentLoaded",t,!1),window.removeEventListener("load",t,!1),n()}function n(){for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){var r=t[n];if("steal-module"==r.type||"text/steal-module"==r.type){var a=r.innerHTML;/\S/.test(a)&&e.module(a).catch(function(e){setTimeout(function(){throw e})})}}}e.loadScriptModules=function(){m&&("complete"===document.readyState?setTimeout(n):document.addEventListener&&(document.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1)))}}),x(function(e){function t(e){n=null,e.global.module=void 0,e.global.exports=void 0,e.global.steal=function(){for(var t,r=[],a=0;a<arguments.length;a++)"string"==typeof arguments[a]?r.push(_(arguments[a])):t=arguments[a];"function"!=typeof t&&(t=function(e){return function(){return e}}(t)),n={deps:r,execute:function(n,a,o){for(var i=[],s=0;s<r.length;s++)i.push(n(r[s]));var l=t.apply(e.global,i);if(void 0!==l)return l}}}}var n,r=/(?:^\s*|[}{\(\);,\n\?\&]\s*)steal\s*\(\s*((?:"[^"]+"\s*,|'[^']+'\s*,\s*)*)/,a=e.instantiate;e.instantiate=function(e){var o=this;if("steal"===e.metadata.format||!e.metadata.format&&e.source.match(r)){e.metadata.format="steal";var i=o.global.steal;if(t(o),o.__exec(e),o.global.steal=i,!n)throw"Steal module "+e.name+" did not call steal";n&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(n.deps):n.deps,e.metadata.execute=n.execute)}return a.call(o,e)}}),x(function(e){var t=e.instantiate,n="object"==typeof console?Function.prototype.bind.call(console.warn,console):null;e._instantiatedModules=e._instantiatedModules||{},e.instantiate=function(r){var a=e._instantiatedModules;if(n&&a[r.address]){var o=e._traceData&&e._traceData.loads||{},i=e._traceData&&e._traceData.parentMap||{},s=(i[r.name]?Object.keys(i[r.name]):[]).map(function(e){return"\t "+o[e].address}).join("\n");n(["The module with address "+r.address+" is being instantiated twice","This happens when module identifiers normalize to different module names.\n","HINT: Import the module using the ~/[modulePath] identifier"+(s?" in ":""),(s||"")+"\n","Learn more at https://stealjs.com/docs/moduleName.html and https://stealjs.com/docs/tilde.html"].join("\n"))}else a[r.address]=r;return t.apply(e,arguments)}}),x(function e(t){function n(e,t){var n;for(n in e)t(n,e[n])}function r(e){function t(e,t){for(var n=0;n<e.length;n++)if(e[n][0]<t.index&&e[n][1]>t.index)return!0;return!1}function n(e){for(;a=e.exec(r);)if(!t(i,a)){var n=a[1];o.push(n)}}var r=e.replace(c,"");u.lastIndex=c.lastIndex=d.lastIndex=f.lastIndex=0;var a,o=[],i=[];if(e.length/e.split("\n").length<200)for(;a=f.exec(r);)i.push([a.index,a.index+a[0].length]);return n(u),n(d),o}t._extensions&&t._extensions.push(e),t._traceData={loads:{},parentMap:{}},t.getDependencies=function(e){var t=this.getModuleLoad(e);return t?t.metadata.dependencies:void 0},t.getDependants=function(e){var t=[];return n(this._traceData.parentMap[e]||{},function(e){t.push(e)}),t},t.getModuleLoad=function(e){return this._traceData.loads[e]},t.getBundles=function(e,t){var r=t||{};r[e]=!0;var a=this,o=a._traceData.parentMap[e];if(!o)return[e];var i=[];return n(o,function(e,t){r[e]||(i=i.concat(a.getBundles(e,r)))}),i},t._allowModuleExecution={},t.allowModuleExecution=function(e){var t=this;return t.normalize(e).then(function(e){t._allowModuleExecution[e]=!0})};var a=t.normalize;t.normalize=function(e,t){var n=a.apply(this,arguments);if(t){var r=this._traceData.parentMap;return n.then(function(e){return r[e]||(r[e]={}),r[e][t]=!0,e})}return n};var o=function(){return t.newModule({})},i={traceur:!0,babel:!0},s=function(e){return i[e.name]||this._allowModuleExecution[e.name]},l=[].map||function(e){for(var t=[],n=0,r=this.length;n<r;n++)t.push(e(this[n]));return t},u=/import [\s\S]*?["'](.+)["']/g,d=/export .+ from ["'](.+)["']/g,c=/(?:(?:^|\s)\/\/(.+?)$)|(?:\/\*([\S\s]*?)\*\/)/gm,f=/(?:("|')[^\1\\\n\r]*(?:\\.[^\1\\\n\r]*)*\1|`[^`]*`)/g,p=t.instantiate;t.instantiate=function(e){function t(t){var r=n.preventModuleExecution&&!s.call(n,e),a=t?t.deps:e.metadata.deps;return Promise.all(l.call(a,function(t){return n.normalize(t,e.name)})).then(function(n){return e.metadata.deps=a,e.metadata.dependencies=n,r?{deps:a,execute:o}:t})}this._traceData.loads[e.name]=e;var n=this;return Promise.resolve(p.apply(this,arguments)).then(function(n){if(!n){var a=r(e.source);e.metadata.deps=a}return t(n)})};var m=t.transpile;t.transpile=function(e){var t=e.metadata.transpiledSource;return t?(delete e.metadata.transpiledSource,Promise.resolve(t)):m.apply(this,arguments)},t.eachModule=function(e){for(var t in this._loader.modules)e.call(this,t,this.get(t))}}),x(function(e){function t(e){var t=e;return!!t&&(t=t.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@"),t=t.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]"),t=t.replace(/(?:^|:|,)(?:\s*\[)+/g,""),/^[\],:{}\s]*$/.test(t))}function n(e){if(("json"===e.metadata.format||!e.metadata.format)&&t(e.source))try{return JSON.parse(e.source)}catch(t){return b("Error parsing "+e.address+":",t),{}}}var r=/\.json$/i,a=/\.js$/i,o=e.locate;e.locate=function(e){return o.apply(this,arguments).then(function(t){return r.test(e.name)?t.replace(a,""):t})};var i=function(e,t,n){var r=e.jsonOptions&&e.jsonOptions.transform;return r?r.call(e,t,n):n};if(!g){var s=e.instantiate;return e.instantiate=function(e){var t,r=this;return(t=n(e))&&(t=i(r,e,t),e.metadata.format="json",e.metadata.execute=function(){return t}),s.call(r,e)},e}var l=e.translate;e.translate=function(e){var t=e.metadata.address||e.address;if(r.test(t)&&-1===e.name.indexOf("!")){var a=n(e);if(a)return a=i(this,e,a),"define([], function(){\n\treturn "+JSON.stringify(a)+"\n});"}return l.call(this,e)}}),x(function(e){var t=e.fetch;e.fetch=function(e){var n=this;if(n.isEnv("production")&&n.cacheVersion){var r=n.cacheVersion,a=(n.cacheKey||"version")+"="+r;e.address=e.address+(-1===e.address.indexOf("?")?"?":"&")+a}return t.call(this,e)}});var M=function(e,t,n){e[t]||(e[t]=n)};e.configMain="@config",e.devBundle="@empty",e.depsBundle="@empty",e.paths[e.configMain]="stealconfig.js",e.env=(p?"worker":"window")+"-development",e.ext=Object.create(null),e.logLevel=0;M(e.paths,"bundles/*.css","dist/bundles/*css"),M(e.paths,"bundles/*","dist/bundles/*.js");var P=function(t){return{order:t,set:function(t){var n=y(t),r=i(t);g||(e.configPath=u(location.href,t)),e.configMain=n,e.paths[n]=n,this.config({baseURL:(r===t?".":r)+"/"})}}},L=function(e,t){return{order:t,set:function(t){this[e]=t}}},I=function(e,t){return{order:t,set:function(t){this[e]=!!t}}},R=function(e){var t=e;return g&&!/^file:/.test(t)?("."===t[0]&&("/"===t[1]||"."===t[1]&&"/"===t[2])&&(t=require("path").join(process.cwd(),t)),t?"file:"+t:t):t},k=function(e){var t=e.lastIndexOf("!");if(-1!==t)return e.substr(t+1)},$=function(e){var t=e.lastIndexOf("!");if(-1!==t)return e.substr(0,t)},D=function(){if(this.loadBundles&&this.main&&!this.stealBundled){var t=this.main,n=this.bundlesName||"bundles/",r=n+t;M(this.meta,r,{format:"amd"});var a=k(e.configMain),o=[t,e.configMain];if(a&&e.set(a,e.newModule({})),a=k(t)){var i=$(t);o.push(a),o.push(i),r=n+i.substr(0,i.indexOf("."))}this.bundles[r]=o}},z=function(){if(this.envs){var e=this.envs[this.env];e&&this.config(e)}},T=function(){if(this.liveReloadInstalled){var e=this;this.import("live-reload",{name:"@@steal"}).then(function(t){t(e.configMain,function(){z.call(e)})})}},q=[],A={map:!0,paths:!0,meta:!0},N={instantiated:{order:1,set:function(e){var t=this;n(e||{},function(e,n){t.set(n,t.newModule(e))})}},envs:{order:2,set:function(e){var t=this.envs;t||(t=this.envs={}),n(e,function(e,r){var a=t[r];a||(a=t[r]={}),n(e,function(e,t){A[t]&&a[t]?o(a[t],e):a[t]=e})})}},env:{order:3,set:function(e){this.env=e,this.isEnv("production")&&(this.loadBundles=!0)}},loadBundles:I("loadBundles",4),stealBundled:I("stealBundled",5),bundle:{order:6,set:function(t){e.bundle=t}},bundlesPath:{order:7,set:function(e){return this.paths["bundles/*.css"]=e+"/*css",this.paths["bundles/*"]=e+"/*.js",e}},meta:{order:8,set:function(e){var t=this;n(e||{},function(e,n){if("object"==typeof e){var r=t.meta[n];if(r&&r.format===e.format){var a=e.deps;o(e,r),a&&(e.deps=a)}}}),o(this.meta,e)}},configMain:L("configMain",9),config:P(10),configPath:P(11),baseURL:function(e,t){return{order:t,set:function(t){this[e]=R(t)}}}("baseURL",12),main:L("main",13),stealPath:{order:14,set:function(t,n){var r=R(t),a=r.split("/");if(M(this.paths,"@dev",r+"/ext/dev.js"),M(this.paths,"npm",r+"/ext/npm.js"),M(this.paths,"npm-extension",r+"/ext/npm-extension.js"),M(this.paths,"npm-utils",r+"/ext/npm-utils.js"),M(this.paths,"npm-crawl",r+"/ext/npm-crawl.js"),M(this.paths,"npm-load",r+"/ext/npm-load.js"),M(this.paths,"npm-convert",r+"/ext/npm-convert.js"),M(this.paths,"semver",r+"/ext/semver.js"),M(this.paths,"bower",r+"/ext/bower.js"),M(this.paths,"live-reload",r+"/ext/live-reload.js"),M(this.paths,"steal-clone",r+"/ext/steal-clone.js"),this.paths.traceur=r+"/ext/traceur.js",this.paths["traceur-runtime"]=r+"/ext/traceur-runtime.js",this.paths.babel=r+"/ext/babel.js",this.paths["babel-runtime"]=r+"/ext/babel-runtime.js",M(this.meta,"traceur",{exports:"traceur"}),this.setContextual("steal-clone","steal-clone"),g)"@config"===this.configMain&&"steal"===s(a)&&(a.pop(),"node_modules"===s(a)&&(this.configMain="package.json!npm",a.pop())),(this.isEnv("production")||this.loadBundles)&&D.call(this);else if(!n.baseURL&&!n.config&&!n.configPath){if("steal"===s(a)){a.pop();var o=!1;s(a)!==n.bowerPath&&"bower_components"!==s(a)||(e.configMain="bower.json!bower",D.call(this),a.pop(),o=!0),"node_modules"===s(a)&&(e.configMain="package.json!npm",D.call(this),a.pop(),o=!0),o||a.push("steal")}this.config({baseURL:a.join("/")+"/"})}e.stealPath=r}},stealURL:{order:15,set:function(t,n){var r=t.split("?").shift(),a=r.split("/"),o=a.pop(),i=a.join("/"),s=this.getPlatform()||(p?"worker":"window");e.stealURL=r,(this.stealBundled&&!0===this.stealBundled||o.indexOf("steal.production")>-1||o.indexOf("steal-sans-promises.production")>-1&&!n.env)&&this.config({env:s+"-production"}),(this.isEnv("production")||this.loadBundles)&&D.call(this),N.stealPath.set.call(this,i,n)}},devBundle:{order:16,set:function(e,t){var n=!0===e?"dev-bundle":e;n&&(this.devBundle=n)}},depsBundle:{order:17,set:function(e,t){var n=!0===e?"dev-bundle":e;n&&(this.depsBundle=n)}}};n(N,function(e,t){e.order?q.splice(e.order,0,t):q.push(t)}),function(e,t,r){var a=e.config;e.config=function(i){var s=o({},i);n(t,function(t){var n=r[t];if(n.set&&s[t]){var a=n.set.call(e,s[t],i);void 0!==a&&(e[t]=a),delete s[t]}}),a.call(this,s)}}(e,q,N),O.config=function(e){if("string"==typeof e)return this.loader[e];this.loader.config(e)},x(function(e){e.getEnv=function(){return(this.env||"").split("-")[1]||this.env},e.getPlatform=function(){var e=(this.env||"").split("-");return 2===e.length?e[0]:void 0},e.isEnv=function(e){return this.getEnv()===e},e.isPlatform=function(e){return this.getPlatform()===e}});var U=function(e){var n={},r=/Url$/,a=e.split("?"),o=a.shift(),i=a.join("?").split("&"),s=o.split("/");s.pop(),s.join("/");if(i.length&&i[0].length)for(var l,u=0;u<i.length;u++){var d=(l=i[u]).split("=");if(d.length>1){var c=t(d[0]);n[c=c.replace(r,"URL")]=d.slice(1).join("=")}}return n},F=function(e){var r={},a=/Url$/;r.stealURL=e.src,n(e.attributes,function(e){var n=e.nodeName||e.name,o=t(0===n.indexOf("data-")?n.replace("data-",""):n);o=o.replace(a,"URL"),r[o]=""===e.value||e.value});var i=e.innerHTML;return/\S/.test(i)&&(r.mainSource=i),o(U(e.src),r)},B=function(){return new Promise(function(e,t){if(p)e(o({stealURL:location.href},U(location.href)));else if(m||h||v){if(document.currentScript)return void e(F(document.currentScript));var n=document.scripts;n.length&&e(F(n[n.length-1]))}else e({stealPath:__dirname})})};return O.startup=function(e){var t,n,a=this.loader;return w=new Promise(function(e,r){t=e,n=r}),S=B().then(function(i){var s;return s="object"==typeof e?o(e,i):i,a.config(s),z.call(a),a.loadBundles?(a.main||!a.isEnv("production")||a.stealBundled||b("Attribute 'main' is required in production environment. Please add it to the script tag."),a.import(a.configMain).then(t,n),w.then(function(e){return z.call(a),a.main?a.import(a.main):e})):(a.import(a.devBundle).then(function(){return a.import(a.configMain)}).then(function(){return a.import(a.depsBundle)}).then(t,n),(j=w.then(function(){return z.call(a),T.call(a),s&&a.config(s),a.import("@dev")})).then(function(){if(!a.main||a.localLoader)return w;var e=a.main;return"string"==typeof e&&(e=[e]),Promise.all(r(e,function(e){return a.import(e)}))}))}).then(function(e){return a.mainSource?a.module(a.mainSource):(a.loadScriptModules(),e)})},O.done=function(){return S},O.import=function(){var e=arguments,t=this.System;return w||(t.main||(t.main="@empty"),O.startup()),w.then(function(){var r=[];return n(e,function(e){r.push(t.import(e))}),r.length>1?Promise.all(r):r[0]})},O.setContextual=c.call(e.setContextual,e),O.isEnv=c.call(e.isEnv,e),O.isPlatform=c.call(e.isPlatform,e),O};if(!g||h||v){var S=e.steal;e.steal=j(System),e.steal.startup(S&&"object"==typeof S&&S).then(null,function(e){if("undefined"!=typeof console){var t=console;t[t.error?"error":"log"](e)}}),e.steal.clone=w}else e.steal=j(System),e.steal.System=System,e.steal.dev=require("./ext/dev.js"),steal.clone=w,module.exports=e.steal}("undefined"==typeof window?"undefined"==typeof global?this:global:window);