/* * SystemJS * * Copyright (c) 2013 Guy Bedford * MIT License */ !function(e){e.upgradeSystemLoader=function(){delete e.upgradeSystemLoader,function(){if("undefined"==typeof System)throw"System not defined. Include the `es6-module-loader.js` polyfill before SystemJS.";var e=function(t){if(!(t instanceof Module)){for(var r=[],n=0;nn.length)return 0;for(var s=0;sparseInt(s[a])?1:-1}return 0},r=System.normalize;System.versions=System.versions||{},System.normalize=function(n,s,a){var o=System.versions;return Promise.resolve(r.call(this,n,s,a)).then(function(r){var n,s,a,i,u=r.indexOf("@");if(-1==u){for(var l in o)if(i=o[l],"string"==typeof i&&(i=[i]),r.substr(0,l.length)==l&&(a=r.charAt(l.length),!a||"/"==a))return l+"@"+i[i.length-1]+r.substr(l.length);return r}n=r.substr(u+1).split("/")[0];var m;if("^"==n.substr(0,1)&&(n=n.substr(1),m=!0),s=n.match(e),m&&(s[1]>0?(m=n,s=[s[1]]):s[2]>0?(m=n,s=[0,s[2]]):(m=!1,s=[0,0,s[3]]),n=s.join("."),r=r.substr(0,u+1)+n),!s)return r;var d=r.substr(0,u);if(i=o[d]||[],"string"==typeof i&&(i=[i]),!s[3]||m)for(var f=i.length-1;f>=0;f--){var c=i[f];if(c.substr(0,n.length)==n&&c.charAt(n.length).match(/^[\.\-]?$/)&&(!m||m&&-1!=t(c,m)))return d+"@"+c+r.substr(d.length+n.length+1)}return-1==i.indexOf(n)&&(i.push(n),i.sort(t),o[d]=1==i.length?i[0]:i),r})}}()},function(){if(!e.System||e.System.registerModule)if("undefined"!=typeof window){var t=document.getElementsByTagName("script"),r=t[t.length-1].src,n=r.substr(0,r.lastIndexOf("/")+1);document.write('')}else{var s=require("es6-module-loader");e.System=s.System,e.Loader=s.Loader,e.Module=s.Module,module.exports=e.System,e.upgradeSystemLoader()}else e.upgradeSystemLoader()}()}("undefined"!=typeof window?window:global);