{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./web_modules/controllers/page/index.js","webpack:///./web_modules/apps/helpers/init.js","webpack:///./web_modules/controllers/validation/constants/index.js","webpack:///./web_modules/stores/base.js","webpack:///./web_modules/controllers/configuration/index.js","webpack:///./node_modules/core-js/modules/es6.array.find.js","webpack:///./node_modules/process/browser.js","webpack:///./web_modules/apps/base.js","webpack:///./web_modules/actions/configuration/index.js","webpack:///./node_modules/util/support/isBufferBrowser.js","webpack:///./node_modules/util/node_modules/inherits/inherits_browser.js","webpack:///./web_modules/controllers/touch/index.js","webpack:///./web_modules/utils/cookie.js","webpack:///./web_modules/controllers/validation/helpers/showerror.js","webpack:///./web_modules/utils/dom.js","webpack:///./web_modules/controllers/translations/index.js","webpack:///./web_modules/actions/translations/index.js","webpack:///./web_modules/utils/log.js","webpack:///./node_modules/core-js/modules/es6.string.includes.js","webpack:///./node_modules/core-js/modules/_string-context.js","webpack:///./node_modules/core-js/modules/_fails-is-regexp.js","webpack:///./node_modules/core-js/modules/es7.array.includes.js","webpack:///./web_modules/controllers/validation/external.js","webpack:///./node_modules/superagent/lib/client.js","webpack:///./node_modules/component-emitter/index.js","webpack:///./node_modules/reduce-component/index.js","webpack:///./web_modules/utils/lock.js","webpack:///./web_modules/controllers/login/index.js","webpack:///./web_modules/controllers/login/findUser.js","webpack:///./web_modules/utils/referrer.js","webpack:///./web_modules/stores/password/index.js","webpack:///./web_modules/actions/password/index.js","webpack:///./src/resources/svgs/Eye.svg","webpack:///./src/resources/svgs/EyeShut.svg","webpack:///./web_modules/components/password/index.js","webpack:///./web_modules/controllers/validation/schema.js","webpack:///./web_modules/controllers/validation/inline.js","webpack:///./web_modules/dispatcher/index.js","webpack:///./web_modules/polyfils/classList.js","webpack:///./web_modules/stores/translations/index.js","webpack:///./node_modules/events/events.js","webpack:///./web_modules/apps/login.js","webpack:///./node_modules/core-js/modules/es6.regexp.constructor.js","webpack:///./node_modules/util/util.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","82","module","l","exports","e","script","error","onScriptComplete","timeout","promises","installedChunkData","Promise","resolve","reject","href","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","appendChild","then","promise","charset","nc","setAttribute","clearTimeout","errorType","chunk","realSrc","message","name","undefined","setTimeout","head","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","oldJsonpFunction","jsonpArray","window","slice","PageController","onDomReady","cb","_this","test","readyState","opts","pageController","views","controllers","utils","getElementById","ReactDOM","render","React","logUtil","log","setupControllers","init","setupUtils","ERROR_CLS","SUBMIT_CLS","ERROR_TEXT_CLS","BaseStore","EventEmitter","this","require","util","CHANGE_EVENT","ERROR_EVENT","inherits","addChangeListener","on","addErrorListener","removeChangeListener","removeListener","removeErrorListener","emitChange","emit","emitError","configEl","configActions","default","config","grabConfig","el","JSON","parse","innerHTML","REGISTER_CONFIG","$export","$find","KEY","forced","Array","P","F","find","callbackfn","arguments","cachedSetTimeout","cachedClearTimeout","process","defaultSetTimout","defaultClearTimeout","runTimeout","fun","currentQueue","queue","draining","queueIndex","cleanUpNextTick","concat","drainQueue","len","run","runClearTimeout","marker","Item","array","noop","nextTick","args","title","browser","env","argv","version","versions","addListener","once","off","removeAllListeners","prependListener","prependOnceListener","listeners","binding","cwd","chdir","dir","umask","touch","dispatcher","arg","copy","fill","readUInt8","ctor","superCtor","super_","constructor","writable","configurable","TempCtor","isTouchDevice","DocumentTouch","classList","toggle","body","cname","ca","cookie","split","charAt","substring","indexOf","set","cvalue","path","exdays","Date","expires","setTime","getTime","toUTCString","remove","msg","Boolean","parent","parentElement","dom","add","classname","children","className","translationsEl","translationsActions","translations","grabTranslations","REGISTER_TRANSLATIONS","context","INCLUDES","includes","searchString","isRegExp","defined","that","NAME","TypeError","String","MATCH","re","f","$includes","showError","Lock","translationsStore","form","lock","buildOutput","output","forEach","input","showErrors","errors","Context","querySelector","Message","endpoint","success","dataset","preventDefault","generalErrorMsg","getTranslation","post","send","end","res","status","unlock","parsed","text","Errors","EmailAddress","location","addEventListener","invoke","Emitter","reduce","root","self","isHost","obj","toString","getXHR","XMLHttpRequest","protocol","ActiveXObject","trim","replace","isObject","serialize","pairs","encodeURIComponent","join","parseString","str","parts","decodeURIComponent","Response","req","options","xhr","method","responseType","responseText","statusText","setStatusProperties","header","headers","index","field","val","lines","fields","pop","line","toLowerCase","getAllResponseHeaders","getResponseHeader","setHeaderProperties","parseBody","response","Request","url","_query","_header","new_err","original","callback","serializeObject","types","html","json","xml","urlencoded","stringify","ct","statusType","info","ok","clientError","serverError","toError","accepted","noContent","badRequest","unauthorized","notAcceptable","notFound","forbidden","use","fn","ms","_timeout","_timer","abort","aborted","unset","getHeader","accept","auth","user","pass","btoa","query","_formData","FormData","append","attach","file","filename","_data","_callback","crossDomainError","crossDomain","timeoutError","withCredentials","_withCredentials","handleProgress","total","percent","loaded","onreadystatechange","timedout","hasListeners","onprogress","upload","open","setRequestHeader","del","patch","put","mixin","_callbacks","removeEventListener","callbacks","arr","initial","idx","curr","isLocked","_proto","showSuccess","oldOpen","formContentEl","formContent","onStateChange","responseURL","match","RegExp","clsList","findUser","setReferrer","AUTH_COOKIE_NAME","userName","domain","referrer","_BaseStore","PasswordStore","score","visible","Dispatcher","onUpdateIndicator","getHumanReadableScore","getState","variations","hist","tests","digits","lower","upper","nonWords","symbol","Password","_React$Component","props","state","getTranslations","pwdType","_onUpdateIndicator","_assertThisInitialized","_onShowIndicator","onShowIndicator","_onTranslationsChange","onTranslationsChange","componentDidMount","componentWillUnmount","setState","onChange","PasswordActions","onClick","typ","refs","password","showPassword","renderPasswordStrength","_jsxs","_jsx","data-pwdtype","htmlFor","ref","maxLength","onBlur","id","placeholder","Icon","glyph","Eye","EyeShut","Component","inputNotEmpty","inputContainsNumbers","FirstName","errorTranslationKey","validation","LastName","LoginPassword","valid","validations","schema","item","toggleSubmitDisabled","disabled","curValues","getElementsByName","keyCode","contains","force","classname1","classname2","TranslationsStore","registerTranslations","R","Reflect","ReflectApply","receiver","Function","ReflectOwnKeys","ownKeys","getOwnPropertySymbols","getOwnPropertyNames","NumberIsNaN","Number","isNaN","emitter","errorListener","resolver","handler","flags","eventTargetAgnosticAddListener","_events","_eventsCount","_maxListeners","defaultMaxListeners","checkListener","listener","_getMaxListeners","_addListener","prepend","events","existing","newListener","unshift","warned","w","count","warning","warn","_onceWrap","fired","wrapFn","wrapped","_listeners","unwrap","evlistener","unwrapListeners","ret","arrayClone","listenerCount","wrapListener","RangeError","getPrototypeOf","setMaxListeners","getMaxListeners","doError","er","list","position","originalListener","spliceOne","keys","rawListeners","eventNames","passwordfield","inline","external","login","global","inheritIfRequired","dP","gOPN","$flags","Base","$RegExp","proto","re1","re2","CORRECT_NEW","tiRE","piRE","fiU","source","proxy","it","debugEnviron","getOwnPropertyDescriptors","descriptors","getOwnPropertyDescriptor","formatRegExp","debugs","format","isString","objects","inspect","x","_","isNull","deprecate","noDeprecation","throwDeprecation","traceDeprecation","trace","ctx","seen","stylize","stylizeNoColor","depth","colors","isBoolean","showHidden","_extend","isUndefined","customInspect","stylizeWithColor","formatValue","styleType","style","styles","recurseTimes","isFunction","primitive","simple","isNumber","hash","visibleKeys","isError","formatError","isDate","base","braces","isArray","formatProperty","map","reduceToSingleString","prev","cur","numLinesEst","desc","substr","ar","objectToString","pad","debuglog","pid","NODE_DEBUG","toUpperCase","isNullOrUndefined","isSymbol","isPrimitive","isBuffer","months","prop","time","getHours","getMinutes","getSeconds","getDate","getMonth","origin","kCustomPromisifiedSymbol","callbackifyOnRejected","reason","newReason","promisify","promiseResolve","promiseReject","setPrototype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AO/K,KAMX+N,EAASpV,MAAMqH,KAAMyD,CAAI,EACtB7H,KAAK,SAASof,GAAO3Y,EAAQmB,SAAS/E,EAAI,KAAMuc,CAAG,CAAE,EAChD,SAAS8H,GAAOzgB,EAAQmB,SAAS0e,EAAuBY,EAAKrkB,CAAE,CAAE,CAAC,CAC5E,CAKA,OAHAxG,OAAOuqB,eAAeI,EAAe3qB,OAAOojB,eAAetN,CAAQ,CAAC,EACpE9V,OAAOwqB,iBAAiBG,EACArF,EAA0BxP,CAAQ,CAAC,EACpD6U,CACT,C","file":"login.min.js?v=1742493153278","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t82: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t82: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"\" + ({\"81\":\"intersection-observer\",\"83\":\"market-selector\",\"87\":\"pwa\"}[chunkId]||chunkId) + \".min.js?v=1742493153278\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"87\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"../styles/\" + ({\"81\":\"intersection-observer\",\"83\":\"market-selector\",\"87\":\"pwa\"}[chunkId]||chunkId) + \".components.css?v=1742493153278\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"https://localhost.media.livenationinternational.com/assets/scripts/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([703,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","//\n// Implementation\n//\n\n/**\n * Constructor\n */\nvar PageController = function() {\n // Do nothing\n};\n\n/**\n * On dom ready check, from smallest DOM ready ever\n * http://www.dustindiaz.com/smallest-domready-ever\n */\nPageController.prototype.onDomReady = function (cb) {\n if (/in/.test(document.readyState)) {\n setTimeout(() => {\n this.onDomReady(cb);\n }, 9);\n }\n else {\n cb();\n }\n};\n\n//\n// Exports\n//\n\nexport default new PageController();\n","//\n// Imports\n//\n\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport pageController from '../../controllers/page'\nimport logUtil from '../../utils/log'\n\n//\n// Implementation\n//\n\n/**\n * Render all the views defined above\n */\nconst setupViews = views => {\n for (var key in views) {\n if (!document.getElementById(key)) {\n logUtil.log('Could not find el: #' + key)\n continue\n }\n try {\n ReactDOM.render(\n React.createElement(views[key], null),\n document.getElementById(key)\n )\n } catch (e) {\n logUtil.log('could not render the view', key, e)\n }\n }\n}\n\n/** Initialize controllers */\nconst setupControllers = controllers => {\n for (var key in controllers) {\n try {\n controllers[key].init()\n } catch (e) {\n logUtil.log('could not initialize controller', key, e)\n }\n }\n}\n\n/** Initialize controllers */\nconst setupUtils = utils => {\n for (var key in utils) {\n try {\n utils[key]()\n } catch (e) {\n logUtil.log('could not initialize util method', key, e)\n }\n }\n}\n\n/**\n * Init runbook\n */\nexport default opts => {\n if (!opts) {\n throw new Error(\n 'Please supply opts with views and controllers to initialize'\n )\n }\n\n pageController.onDomReady(() => {\n const views = opts.views\n const controllers = opts.controllers\n const utils = opts.utils\n\n setupViews(views)\n setupControllers(controllers)\n setupUtils(utils)\n })\n}\n","export const ERROR_CLS = 'form__error'\nexport const INPUT_CLS = 'form__input'\nexport const SUBMIT_CLS = 'form__submit'\nexport const ERROR_TEXT_CLS = 'form__error__text'\n","//\n// Imports\n//\n\nvar EventEmitter = require('events').EventEmitter\nvar util = require('util')\n\n//\n// Variables\n//\n\nvar CHANGE_EVENT = 'change'\nvar ERROR_EVENT = 'error'\n\n//\n// Implementation\n//\n\n/**\n * Constructor\n */\nvar BaseStore = function() {\n EventEmitter.call(this)\n this.init()\n}\nutil.inherits(BaseStore, EventEmitter)\n\n/**\n * Initialize store\n */\nBaseStore.prototype.init = function() {\n // override\n}\n\n/**\n * Add change listener\n * @param {Function} callback to add\n */\nBaseStore.prototype.addChangeListener = function(cb) {\n if (!cb || typeof cb !== 'function') {\n throw new Error('Must supply function callback for adding change listeners')\n }\n\n this.on(CHANGE_EVENT, cb)\n}\n\n/**\n * Add error listener\n * @param {Function} callback to add\n */\nBaseStore.prototype.addErrorListener = function(cb) {\n if (!cb || typeof cb !== 'function') {\n throw new Error('Must supply function callback for adding error listeners')\n }\n\n this.on(ERROR_EVENT, cb)\n}\n\n/**\n * Remove change listener\n * @param {Function} callback to remove\n */\nBaseStore.prototype.removeChangeListener = function(cb) {\n if (!cb || typeof cb !== 'function') {\n throw new Error(\n 'Must supply function callback for removing change listeners'\n )\n }\n\n this.removeListener(CHANGE_EVENT, cb)\n}\n\n/**\n * Add error listener\n * @param {Function} callback to add\n */\nBaseStore.prototype.removeErrorListener = function(cb) {\n if (!cb || typeof cb !== 'function') {\n throw new Error(\n 'Must supply function callback for removing error listeners'\n )\n }\n\n this.removeListener(ERROR_EVENT, cb)\n}\n\n/**\n * Emit change\n */\nBaseStore.prototype.emitChange = function() {\n this.emit(CHANGE_EVENT)\n}\n\n/**\n * Emit Error\n */\nBaseStore.prototype.emitError = function() {\n this.emit(ERROR_EVENT)\n}\n\n//\n// Exports\n//\n\nexport default BaseStore\n","//\n// Imports\n//\n\nvar configActions = require('../../actions/configuration/index.js').default\nvar logUtil = require('../../utils/log').default\n//\n// Variables\n//\n\nvar config = null\nvar configEl = null\nvar configId = 'config'\n\n//\n// Public Methods\n//\n\nfunction init() {\n configEl = document.getElementById(configId)\n\n if (configEl) {\n grabConfig(configEl)\n }\n}\n\n//\n// Implementation\n//\n\n/**\n * Grab Configuration, Ensure they're valid JSON and call Action\n * @param {Boolean} Element containing\n */\nfunction grabConfig(el) {\n try {\n config = JSON.parse(el.innerHTML)\n configActions.REGISTER_CONFIG(config)\n } catch (e) {\n logUtil.log('Config: ' + e.message)\n }\n}\n\n//\n// Exports\n//\n\nexport default {\n init: init,\n}\n","'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","//\n// Imports\n//\n\nvar init = require('./helpers/init').default\n\n//\n// Setup\n//\nimport '../../src/views/static/static'\n\ninit({\n controllers: {\n config: require('../controllers/configuration').default,\n touch: require('../controllers/touch').default,\n },\n})\n","//\n// Imports\n//\n\nvar dispatcher = require('../../dispatcher').default\n\n//\n// Exports\n//\n\nexport default {\n REGISTER_CONFIG: function(config) {\n dispatcher.emit('configuration:register', config)\n },\n}\n","module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n","//\n// Imports\n//\n\nimport classList from '../../polyfils/classList.js'\n\n//\n// Public Methods\n//\n\nfunction init() {\n // touch device?\n classList.toggle(document.body, 'no-touch', !isTouchDevice())\n}\n\n//\n// Implementation\n//\n\n/**\n * Small check for touch enabled devices\n * @return {Boolean} value of check\n */\nfunction isTouchDevice() {\n if (\n 'ontouchstart' in window ||\n (window.DocumentTouch && document instanceof DocumentTouch)\n ) {\n return true\n }\n\n return false\n}\n\n//\n// Exports\n//\n\nexport default {\n init: init,\n isTouchDevice: isTouchDevice,\n}\n","//\n// Implementation\n//\n\n/**\n * Get cookie by name\n * @param {String} cname, name of cookie to return\n */\nfunction get(cname) {\n var name = cname + '=';\n var ca = document.cookie.split(';');\n\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) === 0) {\n return c.substring(name.length, c.length);\n }\n }\n\n return null;\n}\n\n/**\n * Set a cookie\n * @param {String} cname, name of the cookie to set\n * @param {String} cvalue, value to save\n * @param {Number} exdays, days to save cookie\n */\nfunction set(cname, cvalue, path, exdays) {\n var d = new Date();\n d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));\n var expires = 'expires=' + d.toUTCString();\n var cpath = 'path=' + (path || '/');\n document.cookie = cname + '=' + cvalue + '; ' + expires + '; ' + cpath;\n}\n\n/**\n * Delete a cookie\n * @param {String} cname name of cookie to delete\n */\nfunction remove(cname, path) {\n var cpath = 'path=' + (path || '/');\n document.cookie = cname + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC;' + cpath;\n}\n\n//\n// Exports\n//\n\nexport default {\n get: get,\n set: set,\n remove: remove\n};\n","//\n// Imports\n//\n\nimport dom from '../../../utils/dom.js'\nimport classList from '../../../polyfils/classList.js'\nimport logUtil from '../../../utils/log.js'\nimport { ERROR_CLS, ERROR_TEXT_CLS } from '../constants'\n\n//\n// Exports\n//\n\n/**\n * Show or hide error text if input is invalid or valid respectively\n * @param {Element} target - the input the value was entered into\n * @param {String} errorTranslationKey - the database key for the translation of the error\n */\nexport default (target, msg) => {\n if (!target) {\n logUtil.log('Missing target in show error helper')\n return\n }\n\n if (Boolean(msg) === false) return\n\n const parent = target.parentElement\n const errorEl = dom.find(parent, ERROR_TEXT_CLS)\n\n errorEl.innerHTML = `
${msg}
`\n classList.add(parent, ERROR_CLS)\n}\n","//\n// Implementation\n//\n\n/**\n * @param {Element} el, the element to be looked inside of\n * @param {String} classname, the class of the element to be found\n * @returns {Element or null}, returns element with given class if exists, null if not\n * Searches the children of a given element for an element with a given class\n */\n\nfunction find(el, classname) {\n var children = el.children;\n\n for (var i = 0; i < children.length; i++) {\n var classes = children[i].className.split(' ');\n\n if (classes.indexOf(classname) > -1) {\n return children[i];\n }\n }\n\n return null;\n}\n\n//\n// Exports\n//\n\nexport default {\n find: find\n};\n","//\n// Imports\n//\n\nvar translationsActions = require('../../actions/translations/index').default\nvar logUtil = require('../../utils/log').default\n\n//\n// Variables\n//\n\nvar translations = null\nvar translationsEl = null\nvar translationsId = 'translations'\n\n//\n// Public Methods\n//\n\nfunction init() {\n translationsEl = document.getElementById(translationsId)\n\n if (translationsEl) {\n grabTranslations(translationsEl)\n }\n}\n\n//\n// Implementation\n//\n\n/**\n * Grab Translations, Ensure they're valid JSON and call Action\n * @param {Boolean} value of show / hide\n */\nfunction grabTranslations(el) {\n try {\n translations = JSON.parse(el.innerHTML)\n translationsActions.REGISTER_TRANSLATIONS(translations)\n } catch (e) {\n logUtil.log('Translations: ' + e.message)\n }\n}\n\n//\n// Exports\n//\n\nexport default {\n init: init,\n}\n","//\n// Imports\n//\n\nvar dispatcher = require('../../dispatcher').default\n\n//\n// Exports\n//\n\nexport default {\n REGISTER_TRANSLATIONS: function(translations) {\n dispatcher.emit('translations:register', translations)\n },\n}\n","/**\n * Log util method, hides check\n */\nfunction log() {\n if (console && console.log && __DEV__) {\n console.log.apply(console, arguments)\n }\n}\n\n/**\n * Error util method, hides check\n */\nfunction error() {\n if (console && console.error && __DEV__) {\n console.error.apply(console, arguments)\n }\n}\n\nexport default {\n log: log,\n error: error,\n}\n","// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n'use strict';\nvar $export = require('./_export');\nvar context = require('./_string-context');\nvar INCLUDES = 'includes';\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(INCLUDES), 'String', {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~context(this, searchString, INCLUDES)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = require('./_is-regexp');\nvar defined = require('./_defined');\n\nmodule.exports = function (that, searchString, NAME) {\n if (isRegExp(searchString)) throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n","var MATCH = require('./_wks')('match');\nmodule.exports = function (KEY) {\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch (e) {\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch (f) { /* empty */ }\n } return true;\n};\n","'use strict';\n// https://github.com/tc39/Array.prototype.includes\nvar $export = require('./_export');\nvar $includes = require('./_array-includes')(true);\n\n$export($export.P, 'Array', {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nrequire('./_add-to-unscopables')('includes');\n","//\n// Imports\n//\n\nconst request = require('superagent')\nconst logUtil = require('../../utils/log.js').default\nconst showError = require('./helpers/showerror.js').default\nconst Lock = require('../../utils/lock').default\nconst classList = require('../../polyfils/classList.js').default\nconst translationsStore = require('../../stores/translations').default\nconst dispatcher = require('../../dispatcher').default\n\n//\n// Setup\n//\n\nlet form = null\nlet lock = null\n\n//\n// Events\n//\n\n/**\n * On submit event handler\n * @param {Event} e\n */\nconst onSubmit = endpoint => {\n return success => {\n return e => {\n e.preventDefault()\n\n logUtil.log('External: submit action invoked')\n\n classList.add(form, 'loading')\n\n const output = buildOutput()\n const generalErrorMsg = translationsStore.getTranslation(\n 'Responsive.Form.SomethingWentWrong'\n )\n\n request\n .post(endpoint)\n .send(output)\n .set('Content-Type', 'application/x-www-form-urlencoded')\n .end((err, res) => {\n classList.remove(form, 'loading')\n if (err && err.status >= 400) {\n try {\n // unlock\n lock.unlock()\n const parsed = JSON.parse(res.text)\n showErrors(parsed.Errors)\n } catch (e) {\n showError(\n form.querySelector('input[name=\"NoContext\"]'),\n generalErrorMsg\n )\n throw new Error('Error parsing register response, err: ', e)\n }\n } else {\n if (success) {\n // need to go to success page\n document.cookie = 'email=' + output.EmailAddress\n window.location = success\n } else {\n dispatcher.emit('external:success')\n }\n }\n })\n }\n }\n}\n\n//\n// Implementation\n//\n\n/**\n * Build output\n * @return {Object} build values from form\n */\nconst buildOutput = () => {\n const output = {}\n const inputs = Array.prototype.slice.call(\n form.getElementsByTagName('input'),\n 0\n )\n\n inputs.forEach(input => {\n // ignore\n if (input.type !== 'submit' && input.name !== 'NoContext') {\n output[input.name] = input.value\n }\n })\n\n return output\n}\n\n/**\n * Show errors\n */\nconst showErrors = errors => {\n errors.forEach(err => {\n let name = err.Context\n\n if (!name) {\n name = 'NoContext'\n }\n\n showError(form.querySelector('input[name=\"' + name + '\"]'), err.Message)\n })\n}\n\n/**\n * Initialize the controller\n */\nconst init = () => {\n form = document.getElementsByTagName('form')[0]\n\n if (!form) {\n logUtil.log('Missing form element, stopping')\n return\n }\n\n const endpoint = form.dataset.endpoint\n const success = form.dataset.success\n\n if (!endpoint) {\n logUtil.log('External: Missing data attr endpoint')\n return\n }\n\n // this prevents double clicks etc\n lock = new Lock(onSubmit(endpoint)(success))\n\n form.addEventListener('submit', lock.invoke.bind(lock))\n}\n\n//\n// Exports\n//\n\nexport default {\n init: init,\n}\n","/**\n * Module dependencies.\n */\n\nvar Emitter = require('emitter');\nvar reduce = require('reduce');\n\n/**\n * Root reference for iframes.\n */\n\nvar root = 'undefined' == typeof window\n ? (this || self)\n : window;\n\n/**\n * Noop.\n */\n\nfunction noop(){};\n\n/**\n * Check if `obj` is a host object,\n * we don't want to serialize these :)\n *\n * TODO: future proof, move to compoent land\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\n\nfunction isHost(obj) {\n var str = {}.toString.call(obj);\n\n switch (str) {\n case '[object File]':\n case '[object Blob]':\n case '[object FormData]':\n return true;\n default:\n return false;\n }\n}\n\n/**\n * Determine XHR.\n */\n\nrequest.getXHR = function () {\n if (root.XMLHttpRequest\n && (!root.location || 'file:' != root.location.protocol\n || !root.ActiveXObject)) {\n return new XMLHttpRequest;\n } else {\n try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {}\n }\n return false;\n};\n\n/**\n * Removes leading and trailing whitespace, added to support IE.\n *\n * @param {String} s\n * @return {String}\n * @api private\n */\n\nvar trim = ''.trim\n ? function(s) { return s.trim(); }\n : function(s) { return s.replace(/(^\\s*|\\s*$)/g, ''); };\n\n/**\n * Check if `obj` is an object.\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\n\nfunction isObject(obj) {\n return obj === Object(obj);\n}\n\n/**\n * Serialize the given `obj`.\n *\n * @param {Object} obj\n * @return {String}\n * @api private\n */\n\nfunction serialize(obj) {\n if (!isObject(obj)) return obj;\n var pairs = [];\n for (var key in obj) {\n if (null != obj[key]) {\n pairs.push(encodeURIComponent(key)\n + '=' + encodeURIComponent(obj[key]));\n }\n }\n return pairs.join('&');\n}\n\n/**\n * Expose serialization method.\n */\n\n request.serializeObject = serialize;\n\n /**\n * Parse the given x-www-form-urlencoded `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseString(str) {\n var obj = {};\n var pairs = str.split('&');\n var parts;\n var pair;\n\n for (var i = 0, len = pairs.length; i < len; ++i) {\n pair = pairs[i];\n parts = pair.split('=');\n obj[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);\n }\n\n return obj;\n}\n\n/**\n * Expose parser.\n */\n\nrequest.parseString = parseString;\n\n/**\n * Default MIME type map.\n *\n * superagent.types.xml = 'application/xml';\n *\n */\n\nrequest.types = {\n html: 'text/html',\n json: 'application/json',\n xml: 'application/xml',\n urlencoded: 'application/x-www-form-urlencoded',\n 'form': 'application/x-www-form-urlencoded',\n 'form-data': 'application/x-www-form-urlencoded'\n};\n\n/**\n * Default serialization map.\n *\n * superagent.serialize['application/xml'] = function(obj){\n * return 'generated xml here';\n * };\n *\n */\n\n request.serialize = {\n 'application/x-www-form-urlencoded': serialize,\n 'application/json': JSON.stringify\n };\n\n /**\n * Default parsers.\n *\n * superagent.parse['application/xml'] = function(str){\n * return { object parsed from str };\n * };\n *\n */\n\nrequest.parse = {\n 'application/x-www-form-urlencoded': parseString,\n 'application/json': JSON.parse\n};\n\n/**\n * Parse the given header `str` into\n * an object containing the mapped fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseHeader(str) {\n var lines = str.split(/\\r?\\n/);\n var fields = {};\n var index;\n var line;\n var field;\n var val;\n\n lines.pop(); // trailing CRLF\n\n for (var i = 0, len = lines.length; i < len; ++i) {\n line = lines[i];\n index = line.indexOf(':');\n field = line.slice(0, index).toLowerCase();\n val = trim(line.slice(index + 1));\n fields[field] = val;\n }\n\n return fields;\n}\n\n/**\n * Return the mime type for the given `str`.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nfunction type(str){\n return str.split(/ *; */).shift();\n};\n\n/**\n * Return header field parameters.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction params(str){\n return reduce(str.split(/ *; */), function(obj, str){\n var parts = str.split(/ *= */)\n , key = parts.shift()\n , val = parts.shift();\n\n if (key && val) obj[key] = val;\n return obj;\n }, {});\n};\n\n/**\n * Initialize a new `Response` with the given `xhr`.\n *\n * - set flags (.ok, .error, etc)\n * - parse header\n *\n * Examples:\n *\n * Aliasing `superagent` as `request` is nice:\n *\n * request = superagent;\n *\n * We can use the promise-like API, or pass callbacks:\n *\n * request.get('/').end(function(res){});\n * request.get('/', function(res){});\n *\n * Sending data can be chained:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' })\n * .end(function(res){});\n *\n * Or passed to `.send()`:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' }, function(res){});\n *\n * Or passed to `.post()`:\n *\n * request\n * .post('/user', { name: 'tj' })\n * .end(function(res){});\n *\n * Or further reduced to a single call for simple cases:\n *\n * request\n * .post('/user', { name: 'tj' }, function(res){});\n *\n * @param {XMLHTTPRequest} xhr\n * @param {Object} options\n * @api private\n */\n\nfunction Response(req, options) {\n options = options || {};\n this.req = req;\n this.xhr = this.req.xhr;\n // responseText is accessible only if responseType is '' or 'text' and on older browsers\n this.text = ((this.req.method !='HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text')) || typeof this.xhr.responseType === 'undefined')\n ? this.xhr.responseText\n : null;\n this.statusText = this.req.xhr.statusText;\n this.setStatusProperties(this.xhr.status);\n this.header = this.headers = parseHeader(this.xhr.getAllResponseHeaders());\n // getAllResponseHeaders sometimes falsely returns \"\" for CORS requests, but\n // getResponseHeader still works. so we get content-type even if getting\n // other headers fails.\n this.header['content-type'] = this.xhr.getResponseHeader('content-type');\n this.setHeaderProperties(this.header);\n this.body = this.req.method != 'HEAD'\n ? this.parseBody(this.text ? this.text : this.xhr.response)\n : null;\n}\n\n/**\n * Get case-insensitive `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nResponse.prototype.get = function(field){\n return this.header[field.toLowerCase()];\n};\n\n/**\n * Set header related properties:\n *\n * - `.type` the content type without params\n *\n * A response of \"Content-Type: text/plain; charset=utf-8\"\n * will provide you with a `.type` of \"text/plain\".\n *\n * @param {Object} header\n * @api private\n */\n\nResponse.prototype.setHeaderProperties = function(header){\n // content-type\n var ct = this.header['content-type'] || '';\n this.type = type(ct);\n\n // params\n var obj = params(ct);\n for (var key in obj) this[key] = obj[key];\n};\n\n/**\n * Parse the given body `str`.\n *\n * Used for auto-parsing of bodies. Parsers\n * are defined on the `superagent.parse` object.\n *\n * @param {String} str\n * @return {Mixed}\n * @api private\n */\n\nResponse.prototype.parseBody = function(str){\n var parse = request.parse[this.type];\n return parse && str && (str.length || str instanceof Object)\n ? parse(str)\n : null;\n};\n\n/**\n * Set flags such as `.ok` based on `status`.\n *\n * For example a 2xx response will give you a `.ok` of __true__\n * whereas 5xx will be __false__ and `.error` will be __true__. The\n * `.clientError` and `.serverError` are also available to be more\n * specific, and `.statusType` is the class of error ranging from 1..5\n * sometimes useful for mapping respond colors etc.\n *\n * \"sugar\" properties are also defined for common cases. Currently providing:\n *\n * - .noContent\n * - .badRequest\n * - .unauthorized\n * - .notAcceptable\n * - .notFound\n *\n * @param {Number} status\n * @api private\n */\n\nResponse.prototype.setStatusProperties = function(status){\n // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n if (status === 1223) {\n status = 204;\n }\n\n var type = status / 100 | 0;\n\n // status / class\n this.status = status;\n this.statusType = type;\n\n // basics\n this.info = 1 == type;\n this.ok = 2 == type;\n this.clientError = 4 == type;\n this.serverError = 5 == type;\n this.error = (4 == type || 5 == type)\n ? this.toError()\n : false;\n\n // sugar\n this.accepted = 202 == status;\n this.noContent = 204 == status;\n this.badRequest = 400 == status;\n this.unauthorized = 401 == status;\n this.notAcceptable = 406 == status;\n this.notFound = 404 == status;\n this.forbidden = 403 == status;\n};\n\n/**\n * Return an `Error` representative of this response.\n *\n * @return {Error}\n * @api public\n */\n\nResponse.prototype.toError = function(){\n var req = this.req;\n var method = req.method;\n var url = req.url;\n\n var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')';\n var err = new Error(msg);\n err.status = this.status;\n err.method = method;\n err.url = url;\n\n return err;\n};\n\n/**\n * Expose `Response`.\n */\n\nrequest.Response = Response;\n\n/**\n * Initialize a new `Request` with the given `method` and `url`.\n *\n * @param {String} method\n * @param {String} url\n * @api public\n */\n\nfunction Request(method, url) {\n var self = this;\n Emitter.call(this);\n this._query = this._query || [];\n this.method = method;\n this.url = url;\n this.header = {};\n this._header = {};\n this.on('end', function(){\n var err = null;\n var res = null;\n\n try {\n res = new Response(self);\n } catch(e) {\n err = new Error('Parser is unable to parse the response');\n err.parse = true;\n err.original = e;\n return self.callback(err);\n }\n\n self.emit('response', res);\n\n if (err) {\n return self.callback(err, res);\n }\n\n if (res.status >= 200 && res.status < 300) {\n return self.callback(err, res);\n }\n\n var new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n new_err.original = err;\n new_err.response = res;\n new_err.status = res.status;\n\n self.callback(err || new_err, res);\n });\n}\n\n/**\n * Mixin `Emitter`.\n */\n\nEmitter(Request.prototype);\n\n/**\n * Allow for extension\n */\n\nRequest.prototype.use = function(fn) {\n fn(this);\n return this;\n}\n\n/**\n * Set timeout to `ms`.\n *\n * @param {Number} ms\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.timeout = function(ms){\n this._timeout = ms;\n return this;\n};\n\n/**\n * Clear previous timeout.\n *\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.clearTimeout = function(){\n this._timeout = 0;\n clearTimeout(this._timer);\n return this;\n};\n\n/**\n * Abort the request, and clear potential timeout.\n *\n * @return {Request}\n * @api public\n */\n\nRequest.prototype.abort = function(){\n if (this.aborted) return;\n this.aborted = true;\n this.xhr.abort();\n this.clearTimeout();\n this.emit('abort');\n return this;\n};\n\n/**\n * Set header `field` to `val`, or multiple fields with one object.\n *\n * Examples:\n *\n * req.get('/')\n * .set('Accept', 'application/json')\n * .set('X-API-Key', 'foobar')\n * .end(callback);\n *\n * req.get('/')\n * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })\n * .end(callback);\n *\n * @param {String|Object} field\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.set = function(field, val){\n if (isObject(field)) {\n for (var key in field) {\n this.set(key, field[key]);\n }\n return this;\n }\n this._header[field.toLowerCase()] = val;\n this.header[field] = val;\n return this;\n};\n\n/**\n * Remove header `field`.\n *\n * Example:\n *\n * req.get('/')\n * .unset('User-Agent')\n * .end(callback);\n *\n * @param {String} field\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.unset = function(field){\n delete this._header[field.toLowerCase()];\n delete this.header[field];\n return this;\n};\n\n/**\n * Get case-insensitive header `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api private\n */\n\nRequest.prototype.getHeader = function(field){\n return this._header[field.toLowerCase()];\n};\n\n/**\n * Set Content-Type to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.xml = 'application/xml';\n *\n * request.post('/')\n * .type('xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * request.post('/')\n * .type('application/xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * @param {String} type\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.type = function(type){\n this.set('Content-Type', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Accept to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.json = 'application/json';\n *\n * request.get('/agent')\n * .accept('json')\n * .end(callback);\n *\n * request.get('/agent')\n * .accept('application/json')\n * .end(callback);\n *\n * @param {String} accept\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.accept = function(type){\n this.set('Accept', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Authorization field value with `user` and `pass`.\n *\n * @param {String} user\n * @param {String} pass\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.auth = function(user, pass){\n var str = btoa(user + ':' + pass);\n this.set('Authorization', 'Basic ' + str);\n return this;\n};\n\n/**\n* Add query-string `val`.\n*\n* Examples:\n*\n* request.get('/shoes')\n* .query('size=10')\n* .query({ color: 'blue' })\n*\n* @param {Object|String} val\n* @return {Request} for chaining\n* @api public\n*/\n\nRequest.prototype.query = function(val){\n if ('string' != typeof val) val = serialize(val);\n if (val) this._query.push(val);\n return this;\n};\n\n/**\n * Write the field `name` and `val` for \"multipart/form-data\"\n * request bodies.\n *\n * ``` js\n * request.post('/upload')\n * .field('foo', 'bar')\n * .end(callback);\n * ```\n *\n * @param {String} name\n * @param {String|Blob|File} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.field = function(name, val){\n if (!this._formData) this._formData = new root.FormData();\n this._formData.append(name, val);\n return this;\n};\n\n/**\n * Queue the given `file` as an attachment to the specified `field`,\n * with optional `filename`.\n *\n * ``` js\n * request.post('/upload')\n * .attach(new Blob(['hey!'], { type: \"text/html\"}))\n * .end(callback);\n * ```\n *\n * @param {String} field\n * @param {Blob|File} file\n * @param {String} filename\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.attach = function(field, file, filename){\n if (!this._formData) this._formData = new root.FormData();\n this._formData.append(field, file, filename);\n return this;\n};\n\n/**\n * Send `data`, defaulting the `.type()` to \"json\" when\n * an object is given.\n *\n * Examples:\n *\n * // querystring\n * request.get('/search')\n * .end(callback)\n *\n * // multiple data \"writes\"\n * request.get('/search')\n * .send({ search: 'query' })\n * .send({ range: '1..5' })\n * .send({ order: 'desc' })\n * .end(callback)\n *\n * // manual json\n * request.post('/user')\n * .type('json')\n * .send('{\"name\":\"tj\"})\n * .end(callback)\n *\n * // auto json\n * request.post('/user')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // manual x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send('name=tj')\n * .end(callback)\n *\n * // auto x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // defaults to x-www-form-urlencoded\n * request.post('/user')\n * .send('name=tobi')\n * .send('species=ferret')\n * .end(callback)\n *\n * @param {String|Object} data\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.send = function(data){\n var obj = isObject(data);\n var type = this.getHeader('Content-Type');\n\n // merge\n if (obj && isObject(this._data)) {\n for (var key in data) {\n this._data[key] = data[key];\n }\n } else if ('string' == typeof data) {\n if (!type) this.type('form');\n type = this.getHeader('Content-Type');\n if ('application/x-www-form-urlencoded' == type) {\n this._data = this._data\n ? this._data + '&' + data\n : data;\n } else {\n this._data = (this._data || '') + data;\n }\n } else {\n this._data = data;\n }\n\n if (!obj || isHost(data)) return this;\n if (!type) this.type('json');\n return this;\n};\n\n/**\n * Invoke the callback with `err` and `res`\n * and handle arity check.\n *\n * @param {Error} err\n * @param {Response} res\n * @api private\n */\n\nRequest.prototype.callback = function(err, res){\n var fn = this._callback;\n this.clearTimeout();\n fn(err, res);\n};\n\n/**\n * Invoke callback with x-domain error.\n *\n * @api private\n */\n\nRequest.prototype.crossDomainError = function(){\n var err = new Error('Origin is not allowed by Access-Control-Allow-Origin');\n err.crossDomain = true;\n this.callback(err);\n};\n\n/**\n * Invoke callback with timeout error.\n *\n * @api private\n */\n\nRequest.prototype.timeoutError = function(){\n var timeout = this._timeout;\n var err = new Error('timeout of ' + timeout + 'ms exceeded');\n err.timeout = timeout;\n this.callback(err);\n};\n\n/**\n * Enable transmission of cookies with x-domain requests.\n *\n * Note that for this to work the origin must not be\n * using \"Access-Control-Allow-Origin\" with a wildcard,\n * and also must set \"Access-Control-Allow-Credentials\"\n * to \"true\".\n *\n * @api public\n */\n\nRequest.prototype.withCredentials = function(){\n this._withCredentials = true;\n return this;\n};\n\n/**\n * Initiate request, invoking callback `fn(res)`\n * with an instanceof `Response`.\n *\n * @param {Function} fn\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.end = function(fn){\n var self = this;\n var xhr = this.xhr = request.getXHR();\n var query = this._query.join('&');\n var timeout = this._timeout;\n var data = this._formData || this._data;\n\n // store callback\n this._callback = fn || noop;\n\n // state change\n xhr.onreadystatechange = function(){\n if (4 != xhr.readyState) return;\n\n // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n // result in the error \"Could not complete the operation due to error c00c023f\"\n var status;\n try { status = xhr.status } catch(e) { status = 0; }\n\n if (0 == status) {\n if (self.timedout) return self.timeoutError();\n if (self.aborted) return;\n return self.crossDomainError();\n }\n self.emit('end');\n };\n\n // progress\n var handleProgress = function(e){\n if (e.total > 0) {\n e.percent = e.loaded / e.total * 100;\n }\n self.emit('progress', e);\n };\n if (this.hasListeners('progress')) {\n xhr.onprogress = handleProgress;\n }\n try {\n if (xhr.upload && this.hasListeners('progress')) {\n xhr.upload.onprogress = handleProgress;\n }\n } catch(e) {\n // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n // Reported here:\n // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n }\n\n // timeout\n if (timeout && !this._timer) {\n this._timer = setTimeout(function(){\n self.timedout = true;\n self.abort();\n }, timeout);\n }\n\n // querystring\n if (query) {\n query = request.serializeObject(query);\n this.url += ~this.url.indexOf('?')\n ? '&' + query\n : '?' + query;\n }\n\n // initiate request\n xhr.open(this.method, this.url, true);\n\n // CORS\n if (this._withCredentials) xhr.withCredentials = true;\n\n // body\n if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !isHost(data)) {\n // serialize stuff\n var serialize = request.serialize[this.getHeader('Content-Type')];\n if (serialize) data = serialize(data);\n }\n\n // set header fields\n for (var field in this.header) {\n if (null == this.header[field]) continue;\n xhr.setRequestHeader(field, this.header[field]);\n }\n\n // send stuff\n this.emit('request', this);\n xhr.send(data);\n return this;\n};\n\n/**\n * Expose `Request`.\n */\n\nrequest.Request = Request;\n\n/**\n * Issue a request:\n *\n * Examples:\n *\n * request('GET', '/users').end(callback)\n * request('/users').end(callback)\n * request('/users', callback)\n *\n * @param {String} method\n * @param {String|Function} url or callback\n * @return {Request}\n * @api public\n */\n\nfunction request(method, url) {\n // callback\n if ('function' == typeof url) {\n return new Request('GET', method).end(url);\n }\n\n // url first\n if (1 == arguments.length) {\n return new Request('GET', method);\n }\n\n return new Request(method, url);\n}\n\n/**\n * GET `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.get = function(url, data, fn){\n var req = request('GET', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * HEAD `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.head = function(url, data, fn){\n var req = request('HEAD', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * DELETE `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.del = function(url, fn){\n var req = request('DELETE', url);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * PATCH `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} data\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.patch = function(url, data, fn){\n var req = request('PATCH', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * POST `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} data\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.post = function(url, data, fn){\n var req = request('POST', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * PUT `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} data or fn\n * @param {Function} fn\n * @return {Request}\n * @api public\n */\n\nrequest.put = function(url, data, fn){\n var req = request('PUT', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * Expose `request`.\n */\n\nmodule.exports = request;\n","\n/**\n * Expose `Emitter`.\n */\n\nmodule.exports = Emitter;\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks[event] = this._callbacks[event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n var self = this;\n this._callbacks = this._callbacks || {};\n\n function on() {\n self.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks[event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks[event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n var args = [].slice.call(arguments, 1)\n , callbacks = this._callbacks[event];\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks[event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n","\n/**\n * Reduce `arr` with `fn`.\n *\n * @param {Array} arr\n * @param {Function} fn\n * @param {Mixed} initial\n *\n * TODO: combatible error handling?\n */\n\nmodule.exports = function(arr, fn, initial){ \n var idx = 0;\n var len = arr.length;\n var curr = arguments.length == 3\n ? initial\n : arr[idx++];\n\n while (idx < len) {\n curr = fn.call(null, curr, arr[idx], ++idx, arr);\n }\n \n return curr;\n};","//\n// Exports\n//\n\nexport default class Lock {\n /**\n * constructor\n * @param {Function} cb wrapped method\n */\n constructor(cb) {\n this.cb = cb;\n this.isLocked = false;\n }\n\n /**\n * Invoke the wrapped cb, only calls if the lock is unlocked\n */\n invoke() {\n if (this.isLocked) {\n // handle events\n if (arguments[0] !== null && arguments[0].target !== null) {\n arguments[0].preventDefault();\n }\n\n return;\n }\n\n this.isLocked = true;\n this.cb.apply(this.cb, arguments);\n }\n\n /**\n * Unlock the switch\n */\n unlock() {\n this.isLocked = false;\n }\n}\n","//\n// Imports\n//\n\nconst findUser = require('./findUser.js').default\nconst clsList = require('../../polyfils/classList.js').default\nconst dispatcher = require('../../dispatcher').default\nconst cookie = require('../../utils/cookie.js').default\nconst { setReferrer } = require('../../utils/referrer.js')\n\n//\n// Variables\n//\n\nconst formContent = '.formcontent'\n\n//\n// Implementation\n//\n\nconst showSuccess = () => {\n var oldOpen = XMLHttpRequest.prototype.open\n const formContentEl = document.querySelector(formContent)\n\n function onStateChange() {\n if (\n this.readyState === 4 &&\n this.status === 200 &&\n (this.responseURL.includes('/account/login') || this.responseURL.match(new RegExp(`targetUrl=[^&]*${encodeURIComponent('/account/login')}`)) ||\n this.responseURL.includes('/myln/resetpassword') || this.responseURL.match(new RegExp(`targetUrl=[^&]*${encodeURIComponent('/myln/resetpassword')}`)))\n ) {\n if (formContentEl) {\n clsList.add(formContentEl, 'is-successful')\n setTimeout(() => {\n // go to referrer if available\n window.location = cookie.get('referral') || '/'\n }, 2500)\n }\n }\n }\n\n XMLHttpRequest.prototype.open = function () {\n // when an XHR object is opened, add a listener for its readystatechange events\n this.addEventListener('readystatechange', onStateChange)\n\n // run the real `open`\n oldOpen.apply(this, arguments)\n }\n}\n\n//\n// Public Methods\n//\n\n/**\n * Initialize the controller\n */\nconst init = () => {\n setReferrer()\n showSuccess()\n dispatcher.on('external:success', showSuccess)\n}\n\n//\n// Exports\n//\n\nexport default {\n init,\n findUser,\n}\n","//\n// Imports\n//\n\nvar cookie = require('../../utils/cookie.js').default\nvar {\n AUTH_COOKIE_NAME,\n} = require('../../../src/core/services/constants/constants')\n\n//\n// Exports\n//\n\nexport default function () {\n var user = cookie.get(AUTH_COOKIE_NAME)\n\n if (user) {\n var parts = user.split('&')\n if (parts.length >= 2) {\n var userName = parts[0].split('=')[1]\n var domain = parts[1].split('=')[1]\n\n return { name: decodeURIComponent(userName), domain: domain }\n }\n }\n\n return null\n}\n","const cookie = require('./cookie.js').default\r\n\r\nexport function setReferrer() {\r\n if(!/\\/(register|login|account)/i.test(document.referrer)){\r\n cookie.set('referral', document.referrer, '/', 1)\r\n }\r\n}","//\n// Imports\n//\n\nimport BaseStore from '../base.js';\nimport Dispatcher from '../../dispatcher';\n\n//\n// Implementation\n//\n\nclass PasswordStore extends BaseStore {\n //\n // Public Methods\n //\n\n /**\n * Create new notification store\n */\n constructor() {\n super();\n this.data = {\n score: 0,\n visible: false\n };\n }\n\n /**\n * Initialize the store\n */\n init() {\n Dispatcher.on('passwordstrength:update', this.onUpdateIndicator.bind(this));\n }\n\n //\n // Implementation\n //\n\n /**\n * Get human readable score\n * @param {Number} score of current password\n * @return {String} output of check, values are weak, ok, good, great\n */\n getHumanReadableScore(score) {\n if (score > 80)\n return 'great';\n if (score >= 60)\n return 'good';\n if (score >= 40)\n return 'ok';\n if (score > 20)\n return 'weak';\n }\n\n /**\n * Get visibility\n */\n getState() {\n return this.data;\n }\n\n //\n // Events\n //\n\n /**\n * On Update Indicator, emits change when score is determined\n * @param {String} val password string\n */\n onUpdateIndicator(val) {\n // no point in continuing\n if (val.length < 6) {\n this.data.visible = false;\n this.emitChange();\n return;\n }\n\n let score = 0;\n let variations = 0;\n const hist = {};\n\n // weight each unique letter up to 5\n for (let i = 0, len = val.length; i < len; i++) {\n hist[val[i]] = (hist[val[i]] || 0) + 1;\n score += 5 / hist[val[i]];\n }\n\n // check make up of string\n const tests = {\n digits: /\\d/.test(val),\n lower: /[a-z]/.test(val),\n upper: /[A-Z]/.test(val),\n nonWords: /\\W/.test(val)\n };\n\n for (const key in tests) {\n variations += (tests[key] === true) ? 1 : 0;\n }\n\n score += (variations - 1) * 10;\n\n this.data = {\n visible: true,\n score: this.getHumanReadableScore(score)\n };\n\n this.emitChange();\n }\n}\n\n//\n// Exports\n//\n\nexport default new PasswordStore();\n","//\n// Imports\n//\n\nimport Dispatcher from '../../dispatcher';\n\n//\n// Exports\n//\n\nexport default {\n UPDATE_INDICATOR: (value) => {\n Dispatcher.emit('passwordstrength:update', value);\n }\n};\n","import SpriteSymbol from \"svg-baker-runtime/browser-symbol\";\nimport sprite from \"svg-sprite-loader/runtime/browser-sprite.build\";\nvar symbol = new SpriteSymbol({\n \"id\": \"Eye\",\n \"use\": \"Eye-usage\",\n \"viewBox\": \"0 0 100 100\",\n \"content\": \"\\n\\n\\t\\n\\t\\n\\n\\n\\t\\n\\n\"\n});\nvar result = sprite.add(symbol);\nexport default symbol","import SpriteSymbol from \"svg-baker-runtime/browser-symbol\";\nimport sprite from \"svg-sprite-loader/runtime/browser-sprite.build\";\nvar symbol = new SpriteSymbol({\n \"id\": \"EyeShut\",\n \"use\": \"EyeShut-usage\",\n \"viewBox\": \"0 0 100 100\",\n \"content\": \"\\n\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\n\\n\"\n});\nvar result = sprite.add(symbol);\nexport default symbol","//\n// Imports\n//\nimport React from 'react'\nimport PasswordStore from '../../stores/password'\nimport PasswordActions from '../../actions/password'\nimport translationsStore from '../../stores/translations'\nimport Icon from '../../../src/core/patterns/icon/icon'\nimport Eye from '../../../src/resources/svgs/Eye.svg'\nimport EyeShut from '../../../src/resources/svgs/EyeShut.svg'\n\n//\n// Exports\n//\n\nexport default class Password extends React.Component {\n /**\n * Create new Password View\n * @param {Object} props\n */\n constructor(props) {\n super(props)\n\n this.state = {\n score: PasswordStore.getState().score,\n visible: PasswordStore.getState().visible,\n translations: this.getTranslations(),\n pwdType: 'password',\n }\n\n this._onUpdateIndicator = this.onUpdateIndicator.bind(this)\n this._onShowIndicator = this.onShowIndicator.bind(this)\n this._onTranslationsChange = this.onTranslationsChange.bind(this)\n }\n\n /**\n * Component did mount\n */\n componentDidMount() {\n translationsStore.addChangeListener(this._onTranslationsChange)\n PasswordStore.addChangeListener(this._onUpdateIndicator)\n PasswordStore.addChangeListener(this._onShowIndicator)\n }\n\n /**\n * componentWillUnmount\n */\n componentWillUnmount() {\n translationsStore.removeChangeListener(this._onTranslationsChange)\n PasswordStore.removeChangeListener(this._onUpdateIndicator)\n PasswordStore.removeChangeListener(this._onShowIndicator)\n }\n\n //\n // Events\n //\n\n /**\n * On update indicator\n */\n onShowIndicator() {\n this.setState({\n visible: PasswordStore.getState().visible,\n })\n }\n\n /**\n * On update indicator\n */\n onUpdateIndicator() {\n this.setState({\n score: PasswordStore.getState().score,\n })\n }\n\n /**\n * On Translations Change\n */\n onTranslationsChange() {\n this.setState({\n translations: this.getTranslations(),\n })\n }\n\n /**\n * On Input Change\n * @param {Event} e\n */\n onChange(e) {\n PasswordActions.UPDATE_INDICATOR(e.target.value)\n }\n\n onClick(e) {\n const typ = this.refs.password.type\n\n this.setState({\n pwdType: typ === 'password' ? 'text' : 'password',\n })\n }\n\n //\n // Implementation\n //\n\n /**\n * Get translations\n * @return {Object} translations\n */\n getTranslations() {\n var translations = {}\n\n translations.password = translationsStore.getTranslation(\n 'Responsive.Registration.Password'\n )\n translations.showPassword = translationsStore.getTranslation(\n 'Responsive.Registration.ShowPassword'\n )\n translations['weak'] = translationsStore.getTranslation(\n 'Responsive.Registration.StrengthWeak'\n )\n translations['ok'] = translationsStore.getTranslation(\n 'Responsive.Registration.StrengthFair'\n )\n translations['good'] = translationsStore.getTranslation(\n 'Responsive.Registration.StrengthGood'\n )\n translations['great'] = translationsStore.getTranslation(\n 'Responsive.Registration.StrengthGreat'\n )\n\n return translations\n }\n\n //\n // Render Methods\n //\n\n /**\n * Render Password\n */\n renderPasswordStrength() {\n const score = this.state.score\n\n return (\n \n \n \n {this.state.translations[score]}\n \n \n )\n }\n\n /**\n * Render the view\n * @return {View} the DOM of the view\n */\n render() {\n return (\n \n \n \n \n \n {this.state.translations.showPassword}\n \n \n \n )\n }\n}\n","//\r\n// Constants\r\n//\r\n\r\nconst inputNotEmpty = val => {\r\n return val !== ''\r\n}\r\n\r\nconst inputContainsNumbers = val => {\r\n return /^([^0-9]*)$/.test(val)\r\n}\r\n\r\n//\r\n// Exports\r\n//\r\n\r\nexport default {\r\n FirstName: [\r\n {\r\n errorTranslationKey: 'Crm.IsRequired',\r\n validation: inputNotEmpty,\r\n },\r\n {\r\n errorTranslationKey: 'Responsive.Form.NameNumbers',\r\n validation: inputContainsNumbers,\r\n },\r\n ],\r\n LastName: [\r\n {\r\n errorTranslationKey: 'Crm.IsRequired',\r\n validation: inputNotEmpty,\r\n },\r\n {\r\n errorTranslationKey: 'Responsive.Form.NameNumbers',\r\n validation: inputContainsNumbers,\r\n },\r\n ],\r\n EmailAddress: [\r\n {\r\n errorTranslationKey: 'Crm.IsRequired',\r\n validation: inputNotEmpty,\r\n },\r\n {\r\n errorTranslationKey: 'Crm.InvalidEmail',\r\n validation: val => {\r\n var regex = /[a-zA-Z0-9_+-]+(\\.[a-zA-Z0-9_+-]+)*@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\\.([a-zA-Z]{2,4})/\r\n return regex.test(val)\r\n },\r\n },\r\n ],\r\n Password: [\r\n {\r\n errorTranslationKey: 'Crm.IsRequired',\r\n validation: inputNotEmpty,\r\n },\r\n {\r\n errorTranslationKey: 'Responsive.Form.PasswordTooShort',\r\n validation: val => {\r\n return val.length >= 6\r\n },\r\n },\r\n {\r\n errorTranslationKey: 'Responsive.Form.PasswordNeedsANumber',\r\n validation: val => {\r\n var regex = /\\d/\r\n return regex.test(val)\r\n },\r\n },\r\n {\r\n errorTranslationKey: 'Responsive.Form.PasswordNeedsLowerCase',\r\n validation: val => {\r\n return /(?=.*[a-z])/.test(val)\r\n },\r\n },\r\n {\r\n errorTranslationKey: 'Responsive.Form.PasswordNeedsUpperCase',\r\n validation: val => {\r\n return /(?=.*[A-Z])/.test(val)\r\n },\r\n },\r\n ],\r\n LoginPassword: [\r\n {\r\n errorTranslationKey: 'Crm.IsRequired',\r\n validation: inputNotEmpty,\r\n },\r\n {\r\n errorTranslationKey: 'Responsive.Form.PasswordTooShort',\r\n validation: val => {\r\n return val.length >= 6\r\n },\r\n },\r\n ],\r\n}\r\n","//\r\n// Imports\r\n//\r\n\r\nimport schema from './schema.js'\r\nimport classList from '../../polyfils/classList.js'\r\nimport { ERROR_CLS, SUBMIT_CLS } from './constants'\r\nimport showError from './helpers/showerror'\r\nimport translationsStore from '../../stores/translations'\r\n\r\n//\r\n// Variables\r\n//\r\n\r\nlet elements = []\r\nlet valid = []\r\n\r\n//\r\n// Events\r\n//\r\n\r\n/**\r\n * On change Check whether input qualifies as valid then update valid array and show/hide errors accordingly\r\n * @param {Event} e - the event object.\r\n * @param {Number} i - the index of the element on the page.\r\n */\r\nconst onChange = (el, i) => {\r\n // reset relevant valid array value to false\r\n valid[i] = false\r\n\r\n classList.remove(el.parentElement, ERROR_CLS)\r\n let validations = schema[el.name]\r\n const form = el.parentElement.parentElement.parentElement\r\n\r\n if (form.dataset.endpoint === '/login' || form.dataset.endpoint === '/api/account/login') {\r\n validations = schema['LoginPassword']\r\n }\r\n\r\n if (!validations) {\r\n // set relevant valid array value to true if there is no validation necessary\r\n valid[i] = true\r\n return\r\n }\r\n\r\n for (let j = 0; j < validations.length; j++) {\r\n const item = validations[j]\r\n\r\n if (item.validation(el.value)) {\r\n // set relevant valid array value to true if the input passes validation\r\n valid[i] = true\r\n } else {\r\n // set relevant valid array value to false if the input fails validation\r\n valid[i] = false\r\n\r\n showError(el, translationsStore.getTranslation(item.errorTranslationKey))\r\n toggleSubmitDisabled()\r\n\r\n return\r\n }\r\n }\r\n toggleSubmitDisabled()\r\n}\r\n\r\n//\r\n// Implementation\r\n//\r\n\r\n/**\r\n * Check valid array for matching invalid fields, enable or disable sumbit button accordingly\r\n */\r\nconst toggleSubmitDisabled = () => {\r\n // if the valid array has no fals values, enable the submit button\r\n document.querySelector('.' + SUBMIT_CLS).disabled =\r\n valid.indexOf(false) !== -1\r\n}\r\n\r\n/**\r\n * Add event listeners for elements\r\n * @param {HTMLElement} el element to attach listeners\r\n * @param {Number} i index of element ()\r\n * @return {[type]} [description]\r\n */\r\nconst addEventListeners = (el, i) => {\r\n el.addEventListener('blur', e => {\r\n if (e.target.value !== '') {\r\n onChange(e.target, i)\r\n }\r\n })\r\n\r\n el.addEventListener('keyup', e => {\r\n if (e.keyCode !== 9 && e.keyCode !== 16) {\r\n onChange(e.target, i)\r\n }\r\n })\r\n\r\n el.addEventListener('input', e => {\r\n if (e.target.value !== '') {\r\n onChange(e.target, i)\r\n }\r\n })\r\n\r\n valid[i] = false\r\n}\r\n\r\n/**\r\n * Finds all inputs on page and adds event listner for change or blur,\r\n * creates an array to check which inputs are valid\r\n */\r\nconst init = () => {\r\n let i = 0\r\n const curValues = []\r\n\r\n for (const key in schema) {\r\n const el = document.getElementsByName(key)[0]\r\n\r\n if (el) {\r\n el.value && curValues.push(el.value)\r\n addEventListeners(el, i)\r\n i++\r\n }\r\n }\r\n\r\n i = 0\r\n\r\n for (const key in schema) {\r\n const el = document.getElementsByName(key)[0]\r\n\r\n if (el) {\r\n // HACK: When checking values on autofill password, the value\r\n // is set to an empty string for security reasons, in this loop\r\n // we special case the password and ignore the validation\r\n if (el.name === 'Password' && curValues.length) {\r\n valid[i] = true\r\n toggleSubmitDisabled()\r\n continue\r\n }\r\n\r\n if (el.value) {\r\n onChange(el, i)\r\n }\r\n i++\r\n }\r\n }\r\n}\r\n\r\n//\r\n// Exports\r\n//\r\n\r\nexport default {\r\n init: init,\r\n}\r\n","//\n// Imports\n//\n\nimport { EventEmitter } from 'events'\nvar util = require('util')\n\n//\n// Implementation\n//\n\nvar Dispatcher = function() {\n EventEmitter.call(this)\n}\n\nutil.inherits(Dispatcher, EventEmitter)\n\n//\n// Exports\n//\n\nexport default new Dispatcher()\n","//\n// Implementation\n//\n\n/**\n * @param {Element} el, the element to be checked\n * @param {String} classname, class to be checked\n * @returns {Boolean} true if class is on element or false if not\n * This method returns whether a given element has a given class\n */\nfunction contains(el, classname) {\n if (!classname) {\n return false;\n }\n\n if (el.classList) {\n return el.classList.contains(classname);\n }\n\n return el.className.indexOf(classname) > -1;\n}\n\n/**\n * @param {Element} el, the element to be changed\n * @param {String} classname, class to be added\n * @returns {Element} the element with the new class\n * This method adds a class to an element and returns the element\n */\nfunction add(el, classname) {\n if (el.classList) {\n return el.classList.add(classname);\n }\n\n var parts = el.className.split(' ');\n parts.push(classname);\n\n el.className = parts.join(' ');\n}\n\n/**\n * @param {Element} el, the element to be changed\n * @param {String} classname, class to be removed\n * @returns {Element} the element without the given class\n * This method removes a class from an element and returns the element\n */\nfunction remove(el, classname) {\n if (el.classList) {\n return el.classList.remove(classname);\n }\n\n var parts = el.className.split(' ');\n\n for (var i = 0; i < parts.length; i++) {\n if (parts[i] === classname) {\n parts.splice(i, 1);\n }\n }\n\n el.className = parts.join(' ');\n}\n\n/**\n * @param {Element} el, the element to be changed\n * @param {String} classname, class to be toggled\n * @returns {Boolean} the outcome\n * This method toggles a class on a given element\n */\nfunction toggle(el, classname, force) {\n classname += '';\n\n\tvar result = contains(el, classname);\n\tvar method = result ? force !== true && 'remove' : force !== false && 'add';\n\n\tswitch (method) {\n case 'remove':\n remove(el, classname);\n break;\n case 'add':\n add(el, classname);\n }\n\n\tif (force === true || force === false) {\n\t\treturn force;\n\t} else {\n\t\treturn !result;\n\t}\n}\n\n/**\n * @param {Element} el, the element to be changed\n * @param {String} classname1, class to be removed\n * @param {String} classname2, class to be added\n * @returns {Element} the element with the new class\n * This method replaces a given class of an element with another class\n */\nfunction replace(el, classname1, classname2) {\n if (el.classList) {\n el.classList.remove(classname1);\n el.classList.add(classname2);\n return el;\n }\n\n el.className = el.className.replace(new RegExp(classname1, 'g'), classname2);\n return el;\n}\n\n//\n// Exports\n//\n\nexport default {\n contains: contains,\n add: add,\n remove: remove,\n toggle: toggle,\n replace: replace\n};\n","//\n// Imports\n//\n\nvar BaseStore = require('../base.js').default\n\nvar dispatcher = require('../../dispatcher').default\nvar util = require('util')\nvar logUtil = require('../../utils/log').default\n\n//\n// Implementation\n//\n\n/**\n * Constructor\n */\nvar TranslationsStore = function() {\n this.translations = null\n BaseStore.call(this)\n}\nutil.inherits(TranslationsStore, BaseStore)\n\n/**\n * Initialize the store\n */\nTranslationsStore.prototype.init = function() {\n dispatcher.on('translations:register', this.registerTranslations.bind(this))\n}\n\n/**\n * Register Translations\n */\nTranslationsStore.prototype.registerTranslations = function(translations) {\n this.translations = translations\n this.emitChange()\n}\n\n/**\n * Get selected translation\n */\nTranslationsStore.prototype.getTranslation = function(key) {\n // not yet initialized\n if (!this.translations) {\n return ''\n }\n\n var translation = this.translations[key]\n\n if (!translation) {\n logUtil.log('Missing translation for key ' + key + ' in TranslationsStore')\n return ''\n }\n\n return translation\n}\n\n//\n// Exports\n//\n\nexport default new TranslationsStore()\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","//\n// Imports\n//\n\nvar init = require('./helpers/init').default\n\n//\n// Setup\n//\n\ninit({\n views: {\n passwordfield: require('../components/password').default,\n },\n controllers: {\n translations: require('../controllers/translations').default,\n inline: require('../controllers/validation/inline').default,\n external: require('../controllers/validation/external').default,\n login: require('../controllers/login').default,\n },\n})\n","var global = require('./_global');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar dP = require('./_object-dp').f;\nvar gOPN = require('./_object-gopn').f;\nvar isRegExp = require('./_is-regexp');\nvar $flags = require('./_flags');\nvar $RegExp = global.RegExp;\nvar Base = $RegExp;\nvar proto = $RegExp.prototype;\nvar re1 = /a/g;\nvar re2 = /a/g;\n// \"new\" creates a new object, old webkit buggy here\nvar CORRECT_NEW = new $RegExp(re1) !== re1;\n\nif (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function () {\n re2[require('./_wks')('match')] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';\n}))) {\n $RegExp = function RegExp(p, f) {\n var tiRE = this instanceof $RegExp;\n var piRE = isRegExp(p);\n var fiU = f === undefined;\n return !tiRE && piRE && p.constructor === $RegExp && fiU ? p\n : inheritIfRequired(CORRECT_NEW\n ? new Base(piRE && !fiU ? p.source : p, f)\n : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)\n , tiRE ? this : proto, $RegExp);\n };\n var proxy = function (key) {\n key in $RegExp || dP($RegExp, key, {\n configurable: true,\n get: function () { return Base[key]; },\n set: function (it) { Base[key] = it; }\n });\n };\n for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n require('./_redefine')(global, 'RegExp', $RegExp);\n}\n\nrequire('./_set-species')('RegExp');\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||\n function getOwnPropertyDescriptors(obj) {\n var keys = Object.keys(obj);\n var descriptors = {};\n for (var i = 0; i < keys.length; i++) {\n descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);\n }\n return descriptors;\n };\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n if (typeof process !== 'undefined' && process.noDeprecation === true) {\n return fn;\n }\n\n // Allow for deprecating things in the process of starting up.\n if (typeof process === 'undefined') {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nvar kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;\n\nexports.promisify = function promisify(original) {\n if (typeof original !== 'function')\n throw new TypeError('The \"original\" argument must be of type Function');\n\n if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {\n var fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== 'function') {\n throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');\n }\n Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return fn;\n }\n\n function fn() {\n var promiseResolve, promiseReject;\n var promise = new Promise(function (resolve, reject) {\n promiseResolve = resolve;\n promiseReject = reject;\n });\n\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n args.push(function (err, value) {\n if (err) {\n promiseReject(err);\n } else {\n promiseResolve(value);\n }\n });\n\n try {\n original.apply(this, args);\n } catch (err) {\n promiseReject(err);\n }\n\n return promise;\n }\n\n Object.setPrototypeOf(fn, Object.getPrototypeOf(original));\n\n if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return Object.defineProperties(\n fn,\n getOwnPropertyDescriptors(original)\n );\n}\n\nexports.promisify.custom = kCustomPromisifiedSymbol\n\nfunction callbackifyOnRejected(reason, cb) {\n // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).\n // Because `null` is a special error value in callbacks which means \"no error\n // occurred\", we error-wrap so the callback consumer can distinguish between\n // \"the promise rejected with null\" or \"the promise fulfilled with undefined\".\n if (!reason) {\n var newReason = new Error('Promise was rejected with a falsy value');\n newReason.reason = reason;\n reason = newReason;\n }\n return cb(reason);\n}\n\nfunction callbackify(original) {\n if (typeof original !== 'function') {\n throw new TypeError('The \"original\" argument must be of type Function');\n }\n\n // We DO NOT return the promise as it gives the user a false sense that\n // the promise is actually somehow related to the callback's execution\n // and that the callback throwing will reject the promise.\n function callbackified() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n\n var maybeCb = args.pop();\n if (typeof maybeCb !== 'function') {\n throw new TypeError('The last argument must be of type Function');\n }\n var self = this;\n var cb = function() {\n return maybeCb.apply(self, arguments);\n };\n // In true node style we process the callback on `nextTick` with all the\n // implications (stack, `uncaughtException`, `async_hooks`)\n original.apply(this, args)\n .then(function(ret) { process.nextTick(cb, null, ret) },\n function(rej) { process.nextTick(callbackifyOnRejected, rej, cb) });\n }\n\n Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));\n Object.defineProperties(callbackified,\n getOwnPropertyDescriptors(original));\n return callbackified;\n}\nexports.callbackify = callbackify;\n"],"sourceRoot":""}