1// modules are defined as an array2// [ module function, map of requireuires ]3//4// map of requireuires is short require name -> numeric require5//6// anything defined in a previous bundle is accessed via the7// orig method which is the requireuire for previous bundles89(function outer (modules, cache, entry) {10// Save the require from previous bundle to this closure if any11var previousRequire = typeof require == "function" && require;1213function newRequire(name, jumped){14if(!cache[name]) {15if(!modules[name]) {16// if we cannot find the module within our internal map or17// cache jump to the current global require ie. the last bundle18// that was added to the page.19var currentRequire = typeof require == "function" && require;20if (!jumped && currentRequire) return currentRequire(name, true);2122// If there are other bundles on this page the require from the23// previous one is saved to 'previousRequire'. Repeat this as24// many times as there are bundles until the module is found or25// we exhaust the require chain.26if (previousRequire) return previousRequire(name, true);27var err = new Error('Cannot find module \'' + name + '\'');28err.code = 'MODULE_NOT_FOUND';29throw err;30}31var m = cache[name] = {exports:{}};32modules[name][0].call(m.exports, function(x){33var id = modules[name][1][x];34return newRequire(id ? id : x);35},m,m.exports,outer,modules,cache,entry);36}37return cache[name].exports;38}39for(var i=0;i<entry.length;i++) newRequire(entry[i]);4041// Override the current require with this new one42return newRequire;43})444546